agentleFS
mrzhangguoguomrzhangguoguo/oh-my-workbuddy/skills/analyze/SKILL.md

analyze

Skill2 starsChanged 5 months agoMITView on GitHub

Run read-only deep repository analysis and return a ranked synthesis with explicit confidence, concrete file references, and clear evidence-vs-inference boundaries. Use when a user says "analyze", "investigate", "why does", "what's causing", or needs grounded cross-file explanation before any changes are proposed.

39 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use write, monitor and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • DockerSkill

    write

    Write or edit reader-facing technical prose for immediate comprehension. Use for documentation, PR titles and descriptions, release notes, design documents, user-facing explanations, and substantive comments. Also use when asked to make writing clearer, more natural, less AI-generated, or easier to read. For documentation fixes, handles edits, formatting, self-review, and commits after research identifies what to change. Do not use for code-only tasks with no prose deliverable.

    Also in 4 projects that use this

  • MicrosoftSkill

    monitor

    Run a bounded, self-checking polling loop (sleep -> check -> decide, repeat) WITHOUT ENDING THE TURN. The turn ends only when the watched thing is done, has failed, or genuinely needs the user's attention — which is what makes Amplifier's end-of-turn notification fire correctly and honestly. Primarily invoked explicitly via `/monitor <thing to watch>`, e.g. `/monitor the CI run for PR 412, check every 2m, stop after 1h`. May also be self-invoked in the rare case you are about to tell the user "I'll keep working and let you know" for something with a genuinely checkable, bounded condition — see the self-invocation guard below before doing that. For continuous multi-lane parallel work toward an outcome, see the ten-lane-highway skill (ships with the Amplifier CLI).

    Also in 3 projects that use this

  • Hashaam101Skill

    optimize

    Automatically refines every user prompt into a structured, actionable version, then immediately executes the optimized prompt. When triggered explicitly with "/optimize {prompt}", "optimize:", or "optimize prompt:", outputs the refined prompt as text instead.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

22 rules. 0 are common, 20 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 32 edited versions we read keep these.

  • 20

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to answer the user's question through read-only repository analysis.

    line 15
  2. Distinctive:

    Do not edit files.

    line 43
  3. Distinctive:

    Do not turn the answer into an implementation plan.

    line 44
  4. Distinctive:

    Do not recommend fixes as the primary output.

    line 45
  5. Distinctive:

    Do not silently switch into execution work.

    line 46
  6. Distinctive:

    Do not overclaim certainty.

    line 47
  7. Distinctive:

    Do not invent facts that are not supported by repository evidence.

    line 48
  8. Distinctive:

    Do not use judgmental, normative, or speculative language that outruns the evidence.

    line 49
  9. Distinctive:

    If a next step is helpful, keep it to a discriminating read-only probe that would reduce uncertainty.

    line 51
  10. Distinctive:

    Start from the asked question, not a generic debugger template.

    line 57
  11. Distinctive:

    Keep the synthesis scoped to what the user needs to know.

    line 58
  12. Distinctive:

    Never present an inference as if it were direct evidence.

    line 70
  13. Distinctive:

    Prefer stronger evidence over weaker evidence:

    line 74
  14. Distinctive:

    Default to direct read-only analysis (Read, Grep, Glob, read-only Bash) when the answer is simple.

    line 87
  15. Distinctive:

    When parallelism helps, spawn Agent tool subagents for in-session parallel exploration.

    line 88
  16. Distinctive:

    Keep parallel lanes bounded: each lane should answer a concrete sub-question or inspect a specific subsystem.

    line 89
  17. Very specific:

    Use the team skill (skill: team) only when coordinated multi-agent orchestration is actually needed.

    line 90
  18. Distinctive:

    Default to outcome-first progress and completion reporting: state the question, evidence, inference boundaries, and stop condition before …

    line 99
  19. Distinctive:

    Treat newer user task updates as local overrides for the active workflow branch while preserving earlier non-conflicting constraints.

    line 100
  20. Very specific:

    If the user says continue, keep working from the current analysis state instead of restarting discovery.

    line 101
  21. Distinctive:

    Read for direct evidence first.

    line 107
  22. Distinctive:

    If needed, open bounded parallel exploration lanes (Agent tool).

    line 108

“Common” is measured: kept by at least 6 in 10 of the 32 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Ported from oh-my-codex analyze. OMX runtime conventions ($macro invocation, omx CLI, .omx/ state directory) are replaced with WorkBuddy idioms (Skill tool, Agent tool, task list, .workbuddy/memory).

Analyze — Read-Only Deep Analysis

Use this skill to answer the user's question through read-only repository analysis. The goal is to explain what the codebase most likely says about the question, not to drift into implementation, debugging theater, or generic fix planning.

Use analyze when

  • the user wants a grounded explanation, not code changes
  • the answer requires reading multiple files or tracing behavior across boundaries
  • there are several plausible explanations and they need to be ranked
  • confidence should reflect the strength of the available evidence
  • the user wants to understand architecture, behavior, causality, impact, or tradeoffs before changing anything

Examples:

  • why a workflow behaves a certain way
  • how a feature is wired across modules
  • what likely explains a failure, regression, or mismatch
  • what would be impacted by changing a dependency or contract
  • which interpretation of the current codebase is best supported

Do not use analyze when

  • the user explicitly wants code edits, a fix, or execution — use the appropriate implementation lane instead
  • the user wants a new product plan or acceptance criteria — use plan / invoke the ralplan skill (skill: ralplan)
  • the request is a simple one-file fact lookup — read the file and answer directly
  • the request is purely about running a parallel multi-agent team — use the team skill (skill: team)

Non-negotiable contract

Analyze is read-only by contract.

  • Do not edit files.
  • Do not turn the answer into an implementation plan.
  • Do not recommend fixes as the primary output.
  • Do not silently switch into execution work.
  • Do not overclaim certainty.
  • Do not invent facts that are not supported by repository evidence.
  • Do not use judgmental, normative, or speculative language that outruns the evidence.

If a next step is helpful, keep it to a discriminating read-only probe that would reduce uncertainty.

Question-aligned synthesis

Answer the user's actual question first.

  • Start from the asked question, not a generic debugger template.
  • Keep the synthesis scoped to what the user needs to know.
  • Scale the depth to the request: for simple or obvious questions, reduce intensity and answer directly after enough reading.
  • For broader questions, expand the search surface but keep the final answer tightly synthesized.

Evidence rules

Maintain an explicit evidence-vs-inference distinction. Every material claim must be labeled as one of:

  1. Evidence — directly supported by concrete repository artifacts
  2. Inference — a reasoned conclusion drawn from evidence
  3. Unknown — a question the current repository evidence does not resolve

Never present an inference as if it were direct evidence. Never present a guess as if it were an inference. Call out uncertainty explicitly when the codebase does not settle the question.

Acceptable evidence

Prefer stronger evidence over weaker evidence:

  1. direct code paths, contracts, tests, generated artifacts, configs, or docs with concrete file references
  2. multiple independent files pointing to the same conclusion
  3. localized behavioral inference from well-supported code structure
  4. weaker contextual clues that remain explicitly marked as tentative

Unsupported speculation is not evidence.

Parallel exploration policy

Parallel exploration is allowed when it improves quality, but it must stay runtime-safe.

  • Default to direct read-only analysis (Read, Grep, Glob, read-only Bash) when the answer is simple.
  • When parallelism helps, spawn Agent tool subagents for in-session parallel exploration; give each a concrete sub-question or subsystem to inspect.
  • Keep parallel lanes bounded: each lane should answer a concrete sub-question or inspect a specific subsystem.
  • Use the team skill (skill: team) only when coordinated multi-agent orchestration is actually needed.

A good default split for complex analysis is:

  • one lane for primary code path / contracts
  • one lane for config / orchestration / generated surfaces
  • one lane for tests / docs / secondary corroboration

Execution policy

  • Default to outcome-first progress and completion reporting: state the question, evidence, inference boundaries, and stop condition before adding process detail.
  • Treat newer user task updates as local overrides for the active workflow branch while preserving earlier non-conflicting constraints.
  • If the user says continue, keep working from the current analysis state instead of restarting discovery.

Working method

  1. Restate the question in one sentence.
  2. Identify the smallest set of files most likely to answer it.
  3. Read for direct evidence first.
  4. If needed, open bounded parallel exploration lanes (Agent tool).
  5. Compare competing explanations.
  6. Rank the explanations by support.
  7. Return a synthesis that clearly separates evidence from inference.

Output contract

Structure the answer so the user can see what is known, what is inferred, and how confident the synthesis is.

Question

[Restate the user's question briefly]

Ranked synthesis

RankExplanationConfidenceBasis
1...High / Medium / Lowstrongest supporting evidence
2...High / Medium / Lowwhy it trails
3...High / Medium / Lowwhy it remains possible

Evidence

  • path/to/file:line-line — what this artifact directly shows
  • path/to/file:line-line — corroborating evidence

Inference

  • What the evidence most strongly implies
  • Why weaker alternatives were down-ranked

Unknowns / limits

  • What the repository evidence does not establish
  • What would need to be checked next to reduce uncertainty

Quality bar

A good analyze response is:

  • read-only and question-aligned
  • ranked rather than flat
  • explicit about confidence
  • concrete about file references
  • careful about evidence vs inference
  • free of unsupported speculation
  • free of normative drift or judgmental filler
  • explicit about the evidence-vs-inference distinction
  • concise for simple cases, broader only when the question truly needs it

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.