Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

project-profiler项目分析器

Agent Skill

project-profiler 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

675

周安装

29

GitHub Stars

2

下载量

237
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:project-profiler(项目分析器)
来源仓库:https://github.com/yelban/orz99-skills
仓库路径:skills/project-profiler
安装命令:
npx skills add https://github.com/yelban/orz99-skills --skill project-profiler
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/yelban/orz99-skills --skill project-profiler

简介

project-profiler 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果时使用。
  • 可通过 npx skills add 命令从指定仓库安装,具体用法需结合 README 进一步确认。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

project-profiler

Generate an LLM-optimized project profile — a judgment-rich document that lets any future LLM answer within 60 seconds:

  1. What are the core abstractions?
  2. Which modules to modify for feature X?
  3. What is the biggest risk/debt?
  4. When should / shouldn't you use this?

This is NOT a codebase map (directory + module navigation) or a diff schematic. This is architectural judgment: design tradeoffs, usage patterns, and when NOT to use.


Model Strategy

  • Opus: Orchestrator — runs all phases, writes the final profile. Does NOT read source code directly (except in direct mode).
  • Sonnet: Subagents — read source code files, analyze patterns, report structured findings.
  • All subagents launch in a single message (parallel, never sequential).

Phase 0: Preflight

0.1 Target & Project Name

Determine the target directory (use argument if provided, else .).

Extract project name from the first available source:

  1. package.jsonname
  2. pyproject.toml[project] name
  3. Cargo.toml[package] name
  4. go.mod → module path (last segment)
  5. Directory name as fallback

0.2 Run Scanner

uv run {SKILL_DIR}/scripts/scan-project.py {TARGET_DIR} --format summary

Capture the summary output. This provides:

  • Project metadata (name, version, license, deps count)
  • Tech stack (languages, frameworks, package manager)
  • Language distribution (top 5 by tokens)
  • Entry points (CLI, API, library)
  • Project features (dockerfile, CI, tests, codebase_map)
  • Detected conditional sections (Storage, Embedding, Infrastructure, etc.)
  • Workspaces (monorepo packages, if any)
  • Top 20 largest files
  • Directory structure (depth 3)

For debugging or when full file details are needed, use --format json instead.

0.3 Git Metadata

Run these commands (use Bash tool):

# Recent commits
git -C {TARGET_DIR} log --oneline -20

# Contributors
git -C {TARGET_DIR} log --format="%aN" | sort -u | head -20

# Version tags
git -C {TARGET_DIR} tag --sort=-v:refname | head -5

# First commit date
git -C {TARGET_DIR} log --format="%aI" --reverse | head -1

0.4 Check Existing CODEBASE_MAP

If docs/CODEBASE_MAP.md exists, note its presence. The profile will reference it rather than duplicating directory structure.

0.5 Token Budget → Execution Mode

Based on total_tokens from scanner, choose execution mode:

Total TokensModeStrategy
≤ 80kDirectSkip subagents. Opus reads all files directly and performs all analysis in a single context.
80k – 200k2 agentsAgent AB (Core + Architecture + Design), Agent C (Usage + Patterns + Deployment)
200k – 400k3 agentsAgent A (Core + Design), Agent B (Architecture + Patterns), Agent C (Usage + Deployment)
> 400k3 agentsAgent A, Agent B, Agent C — each ≤150k tokens, with overflow files assigned to lightest agent

Why 80k threshold: Opus has 200k context. At ≤80k source tokens, loading all files + scanner output + git metadata + writing the profile all fit comfortably. Subagent overhead (spawn + communication + wait) adds 2-3 minutes for zero benefit.

Direct mode workflow: Skip Phase 2 entirely. After Phase 0+1, proceed to Phase 3 (read scanner detected_sections directly), then Phase 4, then Phase 5. Read files on-demand during synthesis — do NOT pre-read all files; read only what's needed for each section.


Phase 1: Community & External Data

Run in parallel with Phase 2 subagent launches (or with Phase 3 in direct mode).

1.1 GitHub Stats

Parse owner/repo from .git/config remote origin URL:

git -C {TARGET_DIR} remote get-url origin

Extract owner/repo from the URL. Then:

gh api repos/{owner}/{repo} --jq '{stars: .stargazers_count, forks: .forks_count, open_issues: .open_issues_count}'

If gh is unavailable or not a GitHub repo → fill with N/A. Do not fail.

1.2 Package Downloads

npm (if package.json exists):

WebFetch https://api.npmjs.org/downloads/point/last-month/{package_name}

PyPI (if pyproject.toml exists):

WebFetch https://pypistats.org/api/packages/{package_name}/recent

If fetch fails → fill with N/A.

1.3 License

Read from (in order): LICENSE file → package metadata field → N/A.

1.4 Maturity Assessment

Calculate from:

  • Git history length: first commit date → now
  • Release count: number of version tags
  • Contributor count: unique authors
CriteriaScore
< 3 months, < 3 releases, 1-2 contributorsexperimental
3-12 months, 3-10 releases, 2-5 contributorsgrowing
1-3 years, 10-50 releases, 5-20 contributorsstable
> 3 years, > 50 releases, > 20 contributorsmature

Use the lowest matching tier (conservative estimate).


Phase 2: Parallel Deep Exploration

Direct mode (≤80k tokens): SKIP this entire phase. Proceed to Phase 3. Opus reads files directly during synthesis.

Launch Sonnet subagents using the Task tool. All subagents must be launched in a single message.

Assign files to each agent based on the token budget from Phase 0.5. Use the scanner output to determine which files go to which agent.

File Assignment Strategy

If workspaces detected (monorepo):

  1. Group files by workspace package
  2. Assign complete packages to agents (never split a package across agents)
  3. Agent A gets packages with core business logic
  4. Agent B gets packages with infrastructure/shared libraries
  5. Agent C gets packages with CLI/API/SDK surface + docs

If no workspaces (single project):

  1. Sort all files by path
  2. Group by top-level directory
  3. Assign groups to agents based on their responsibility:

- Agent A gets: core source files (src/lib, core/, models/, types/) + README, CHANGELOG - Agent B gets: architecture files (routes/, middleware/, config/, entry points) + tests/ - Agent C gets: integration files (API, CLI, SDK, examples/, docs/) +.github/

  1. If files don't fit neatly, distribute remaining to agents under budget

Agent Prompts

Read references/agent-prompts.md for the full prompt template of each agent (A, B, C). Substitute {LIST_OF_ASSIGNED_FILES} with the files assigned per the strategy above.


Phase 3: Conditional Section Detection

Read the scanner's detected_sections output from Phase 0.2. This is the primary detection source — the scanner checks dependency manifests and file presence automatically.

Cross-reference with subagent reports (skip in direct mode) for additional evidence richness. If a subagent reports a pattern not caught by the scanner (e.g., concurrency via raw Promise.all without a library dependency), add it.

Refer to references/section-detection-rules.md for the full pattern reference.

Record results as a checklist:

- [x] Storage Layer — scanner detected: prisma in dependencies
- [ ] Embedding Pipeline — not detected
- [x] Infrastructure Layer — scanner detected: Dockerfile present
- [ ] Knowledge Graph — not detected
- [ ] Scalability — not detected
- [x] Concurrency — Agent B reported: Promise.all pattern in src/worker.ts

Phase 4: Synthesis & Draft

4.1 Merge Reports

Subagent mode: Combine all subagent outputs into a working document. Direct mode: Read key files on-demand as you write each section. Do NOT pre-read all files. For each section, read only the files relevant to that section's analysis.

Cross-validate:

  • Core abstractions ↔ Architecture layers: each abstraction belongs to a layer
  • Architecture data flow ↔ Usage interfaces: flows end at documented interfaces
  • Design decisions ↔ Code evidence: decisions are backed by found patterns

4.2 Generate Mermaid Diagrams + Structured Dependencies

Using Agent B's raw data (or direct file analysis in direct mode), create:

Architecture Topology (graph TB):

  • Each node = actual module/directory
  • Each edge = import/dependency relationship
  • Label edges with relationship type
  • Group nodes by layer using subgraph

Data Flow (sequenceDiagram):

  • Each participant = actual module
  • Each arrow = actual function call or event
  • Cover the primary user-facing operation

Structured Module Dependencies (text, below each Mermaid diagram):

  • Provide a machine-parseable dependency list as fallback for LLM readers
  • Format: - **{module_name}** (\{path}): imports [{dep1}, {dep2},...]

4.3 Fill Output Template

Follow references/output-template.md exactly. Fill each section:

SectionPrimary SourceSecondary Source
1. Project IdentityScanner metadata + Phase 1Git metadata
2. ArchitectureAgent B (Parts 1-6)Agent A (abstractions per layer)
3. Core AbstractionsAgent A (Part 1)Agent B (layer context)
4. ConditionalPhase 3 detection + relevant agents
5. Usage GuideAgent C (Parts 1-4)Scanner entry_points
6. Performance & CostAgent C (Part 6) + Agent B
7. Security & PrivacyAgent C (Part 5)
8. Design DecisionsAgent A (Part 2)Agent B (architecture context)
8.5 Code Quality & PatternsAgent B (Part 7)Agent A (supporting observations)
9. RecommendationsAgent A (Part 4)Agents B/C (supporting evidence)

4.4 Write Output

Write the profile to docs/{project-name}.md using the Write tool.


Phase 5: Quality Gate

Read references/quality-checklist.md and verify the output.

5.1 Banned Language Scan

Search the written file for any word from the banned list:

English:

well-designed, elegant, elegantly, robust, clean, impressive,
state-of-the-art, cutting-edge, best-in-class, beautifully,
carefully crafted, thoughtfully, well-thought-out, well-architected,
nicely, cleverly, sophisticated, powerful, seamless, seamlessly,
intuitive, intuitively

Chinese:

優雅、完美、強大、直觀、無縫、精心、巧妙、出色、卓越、先進、高效、靈活、穩健、簡潔

If found → replace with verifiable descriptions and re-write.

5.2 Number Audit

Scan for all numeric claims. Each must have a traceable source. Remove or fix any "approximately", "around", "roughly", "several", "many", "numerous".

5.3 Structure Verification

  • Every ## section starts with > blockquote summary
  • No directory tree duplicated from CODEBASE_MAP.md
  • No file extension enumeration (use percentages)
  • No generic concluding paragraph
  • At least one Mermaid diagram in Architecture section
  • Structured module dependency list below each Mermaid diagram
  • All Mermaid nodes reference actual modules

5.4 Core Question Test

For each of the 4 core questions, locate the specific answer in the output:

  1. Core abstractions → Section 3
  2. Module to modify → Section 2 Layer Boundaries table
  3. Biggest risk → Section 9 first recommendation
  4. When to use/not use → Section 1 positioning line

5.5 Evidence Audit

  • Section 3: every abstraction has file:SymbolName reference
  • Section 8: every decision has file:SymbolName + alternative + tradeoff
  • Section 8.5: code quality patterns have framework names + coverage facts
  • Section 9: every recommendation has file_path + specific problem + concrete fix

If any check fails → fix the issue in the file and re-verify.


Output

After all phases complete, report to the user:

Profile generated: docs/{project-name}.md
- {total_files} files scanned ({total_tokens} tokens)
- {N} core abstractions identified
- {N} design decisions documented
- {N} recommendations
- Conditional sections: {list of included sections or "none"}

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.74%
按下载量换算87

Claude

31.23%
按下载量换算74

Cursor

16.65%
按下载量换算39

Gemini CLI

9.92%
按下载量换算24

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/yelban/orz99-skills --skill project-profiler 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills