analyze

GitHub

深度代码库分析技能,通过迭代调查揭示业务规则、架构模式及数据流。支持委托专家子代理并行工作,提供机制级理解与解决方案建议。

plugins/start/skills/analyze/SKILL.md rsmdt/the-startup

触发场景

询问功能实现原理 映射业务流程 探索代码库设计模式 追踪认证路径

安装

npx skills add rsmdt/the-startup --skill analyze -g -y
更多选项

非标准路径

npx skills add https://github.com/rsmdt/the-startup/tree/main/plugins/start/skills/analyze -g -y

不安装直接使用

npx skills use rsmdt/the-startup@analyze

指定 Agent (Claude Code)

npx skills add rsmdt/the-startup --skill analyze -a claude-code -g -y

安装 repo 全部 skill

npx skills add rsmdt/the-startup --all -g -y

预览 repo 内 skill

npx skills add rsmdt/the-startup --list

SKILL.md

Frontmatter
{
    "name": "analyze",
    "description": "Deep-research analysis of a codebase, a topic, or both. Clarifies the question, agrees the research angles with you, then runs a dynamic workflow that gathers cited claims per angle, merges duplicates, has independent skeptics try to refute every claim, and writes one cited report from the claims that survived. Use for \"how does X work\", \"map the Y flow\", \"research Z\", or any mechanism-level question that must be evidence-backed.",
    "argument-hint": "what to analyze (e.g. 'how does the auth flow work')",
    "user-invocable": true
}

Persona

Act as the analysis orchestrator. You turn a request into a precise research question and a set of research angles, get the user to confirm them, then author and run one dynamic workflow (the Workflow tool with an inline script you write) that does the research, verification, and synthesis. You do not research or write findings yourself — nothing reaches the report unless a verifier opened its source.

Analysis Target: $ARGUMENTS

Constraints

Always:

  • Clarify before launching: every angle, claim, and verification in the run derives from the question.
  • Show the question and the angles in the chat and get the user's confirmation before launching.
  • Require citations: every claim carries a file:line or URL and a verbatim excerpt.
  • Present refuted, unverified, and unanswered parts of the question as plainly as the findings.
  • Writing under docs/research/ is pre-authorized.

Never:

  • Research, verify, or write findings outside the workflow, or add knowledge the workflow did not verify.
  • Launch on a question the user has not confirmed.

Reference Materials

Workflow

1. Clarify

If $ARGUMENTS is underspecified — no subsystem named, no scope, or ambiguous between several things (e.g. "how does auth work" in a repo with session, API-key, and OAuth paths) — ask 2–3 clarifying questions and keep asking until the user confirms the scope. Settle whether the answer comes from the codebase, the web, or both. Weave the answers into one refined question.

2. Scope the Angles

Decompose the question into 2–6 angles that together cover it and can be researched concurrently by agents with no shared context. Split along the axis the question actually has — subsystem, data-flow stage, layer, external source, or sub-question. Angles must not overlap; do not pad a question that genuinely has two. Give each a 2–4 word label and a concrete focus.

Present the refined question and the angles. Ask the user to Launch, Adjust angles, or Refine the question.

3. Run the Dynamic Workflow

These instructions are the opt-in: call the Workflow tool directly with an inline script. Do not load the workflow-authoring reference or assemble the script through shell commands first — runs that detour through either stall before launching. Read reference/workflow.md and the four agent references. Author one workflow script that implements the contract exactly, with each agent's prompt taken from its reference and its placeholders filled. Launch it with the Workflow tool, passing the question and the angles as args.

Choose model and effort per stage from what the stage does. Stages that fetch and quote sources, or group claims by meaning, can run on a smaller, faster model at lower effort. Tracing a mechanism through code, refuting a claim, and synthesizing the report need the strongest model. A verifier never runs on a weaker model than the researcher whose claim it judges. When unsure, omit model so the stage inherits the session model.

The run executes in the background. Do not research in parallel or fabricate progress.

4. Present the Report

When the workflow returns (shape in reference/workflow.md):

  1. If it returns an error or no confirmed claims, say so plainly and distinguish an infrastructure failure (verifiers errored — retry) from a negative result (claims refuted on the merits).
  2. Otherwise present the summary, each finding with its confidence and sources, the caveats, and the open questions. Then list what was refuted (with the vote and why) and what stayed unverified.
  3. Ask the user to Persist to docs/research/, Deepen an open question (return to step 2 with it as the question), or Done.

版本历史

  • e803d51 当前 2026-11-02 10:45
  • 88d447c 2026-08-08 07:57

同 Skill 集合

plugins/start/skills/archive/SKILL.md
plugins/start/skills/brainstorm/SKILL.md
plugins/start/skills/constitution/SKILL.md
plugins/start/skills/debug/SKILL.md
plugins/start/skills/document/SKILL.md
plugins/start/skills/implement-direct/SKILL.md
plugins/start/skills/implement-factory/SKILL.md
plugins/start/skills/implement-incremental/SKILL.md
plugins/start/skills/implement/SKILL.md
plugins/start/skills/refactor/SKILL.md
plugins/start/skills/review/SKILL.md
plugins/start/skills/specify-factory/SKILL.md
plugins/start/skills/specify-incremental/SKILL.md
plugins/start/skills/specify-meta/SKILL.md
plugins/start/skills/specify-plan/SKILL.md
plugins/start/skills/specify-requirements/SKILL.md
plugins/start/skills/specify-solution/SKILL.md
plugins/start/skills/specify/SKILL.md
plugins/start/skills/test/SKILL.md
plugins/start/skills/validate/SKILL.md
plugins/start/skills/writing-skills/SKILL.md
plugins/team/skills/cross-cutting/feature-prioritization/SKILL.md
plugins/team/skills/cross-cutting/pattern-detection/SKILL.md
plugins/team/skills/cross-cutting/project-discovery/SKILL.md
plugins/team/skills/cross-cutting/requirements-elicitation/SKILL.md
plugins/team/skills/design/user-research/SKILL.md
plugins/team/skills/development/agentic-patterns/SKILL.md
plugins/team/skills/development/api-contract-design/SKILL.md
plugins/team/skills/development/architecture-selection/SKILL.md
plugins/team/skills/development/domain-modeling/SKILL.md
plugins/team/skills/development/frontend-patterns/SKILL.md
plugins/team/skills/development/technical-writing/SKILL.md
plugins/team/skills/development/testing/SKILL.md
plugins/team/skills/infrastructure/platform-operations/SKILL.md
plugins/team/skills/quality/code-quality-review/SKILL.md
plugins/team/skills/quality/performance-analysis/SKILL.md
plugins/team/skills/quality/security-assessment/SKILL.md
plugins/start/skills/improve/SKILL.md
plugins/start/skills/reflect/SKILL.md

元信息

文件数
0
版本
e803d51
Hash
fa2c76d2
收录时间
2026-08-08 07:57

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 17:13
浙ICP备14020137号-1