agentleFS
JQ-WCodingJQ-WCoding/devkit/skills/analyze/SKILL.md

analyze

Skill1 starsChanged 11 days agoMITView on GitHub

Before changing code, turn a requirement, issue or bug (any source) into an analysis doc and get approval; on request, cross-checks intent sources against current state with separate analysts. Use for "analyze this issue", "where do I fix this", "find the bug cause", "check impact", "cross-check this rules draft".

73 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use constitution, revise and 10 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.
  • ArvorCoSkill

    constitution

    Create or update the project constitution - personalized governance and coding principles. Use when starting a project or updating project standards. Triggers on: create constitution, update principles, set project rules.

    Also in 4 projects that use this

  • Renozoic-FoundrySkill

    revise

    Revise an existing spec based on feedback or correction

    Also in 3 projects that use this

  • ibahgatSkill

    ralplan

    Create a strict, quality-first execution plan with explicit gates and rollback-ready sequencing.

    Also in 3 projects that use this

  • ArvorCoSkill

    specify

    Create feature specification from natural language description. Use when starting a new feature or creating a spec. Triggers on: create spec, specify feature, new feature spec.

    Also in 5 projects that use this

  • 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 6 projects that use this

  • woosikkimSkill

    cancel

    Clear any stale OMC-Slim state

    Also in 3 projects that use this

  • +1 more from ArvorCo

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 62 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read any source with the tools connected to this session.

    line 20
  2. Distinctive:

    Write to a tracker (comments, status changes) only on request.

    line 22
  3. Very specific:

    Follow entry points (screen, API, batch, message consumer) → processing → storage (table, file, external) as file:line.

    line 34
  4. Very specific:

    Read risk-checklist.md. Pick only items whose signal appears and write the question and answer (evidence or needs confirmation).

    line 45
  5. Distinctive:

    If there is a DB change, decide where the change SQL and rollback SQL go (a human runs them).

    line 53

“Common” is measured: kept by at least 6 in 10 of the 62 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

Analyze

Decide what to change, why and how far before touching code. This skill does not edit files (it writes only the analysis doc). Anything the input cannot settle is not filled in by guesswork; mark it needs confirmation and ask at the 🛑 gate.

ReferenceWhen
analysis-template.mdAnalysis doc format
risk-checklist.mdStep 4
design-principles.mdStep 4, unless only prose docs or images change
cross-check.mdCross-check mode, glossary format, rules-change gate

0. Read the input

Read any source with the tools connected to this session; if none can read it, ask the user to paste it. Issues: gh issue view <n> --comments / glab issue view <n> --comments (comments carry scope changes). A local note: also look for linked notes and attachments in the same folder.

  • Write to a tracker (comments, status changes) only on request.
  • Task ID: argument → issue key (ABC-123, #45) → date plus short name (2026-11-04-refund-partial).
  • Work folder: the local work-folder rule in docs/rules/ if any, else <repo>/.devkit/work/. If Git would track it (git check-ignore -q fails), add .devkit/ to .git/info/exclude and say so.

1. Break down the requirement

Split the requirement into numbered items and keep the source wording apart from your interpretation. For vague wording ("as appropriate", "like before", "etc."), write the interpretation and list it under needs confirmation. Set the type: feature | change | bug | investigation.

2. Trace the current code

  • Skim the repo rules (CLAUDE.md, docs/rules/) first to align terms and structure; read docs/rules/glossary.md in full if it exists.
  • Cross-check mode (the user asks for it; offer it once when the input is a docs/rules draft or touches a glossary term): follow cross-check.md instead of tracing here first. Only its proceed items get a plan; the rest go to the 🛑 gate.
  • Follow entry points (screen, API, batch, message consumer) → processing → storage (table, file, external) as file:line. With several entry points or more than 10 files to scan, hand them to devkit:code-reader in parallel, one per entry point. Smaller than that, read directly.
  • With dynamic calls (string paths, reflection, config routing), do not conclude "unused" from a text search alone.
  • Bug: define the minimal reproduction steps and confirm the cause with evidence (code, logs, data). If not confirmed, write the hypothesis and how to check it. Add a repro row to "Executable premises": a run that fails on pre-change code. If two earlier fixes resting on the same premise failed, write that premise down and check it directly before planning a third. Look for the same cause elsewhere. If production data must be queried, use read-only queries only, after confirming the target DB.

3. Differences and impact

  • Per requirement item: current / after / where to change. Items with no change are marked as untouched.
  • Impact: screens, APIs, batches, DB, external integrations, permissions, config, docs. Record other features that use the same tables, APIs or shared components as the keep-as-is list; for a change, items a run can observe also get keep rows in "Executable premises".

4. Risk check

Read risk-checklist.md. Pick only items whose signal appears and write the question and answer (evidence or needs confirmation). Do not list items that do not apply.

Then design principles, skipped when the change touches only prose docs or images: read design-principles.md, judge the language and code shape of the changed files, skip principles the layer doc declined, and recommend at most 3 whose signal appears in this change. They are recommendations, not requirement items: develop and the verifier do not judge against them. No signal, no section.

5. Implementation plan

  • Order: schema and data migration → data access (queries, mappers, repositories) → domain and services → API → UI → config and docs. Follow the repo rules if they set an order.
  • Per step: files to change, one-line description, how to verify. Write the existing implementation to follow (a recent commit or file of the same kind) as Precedent:.
  • If there is a DB change, decide where the change SQL and rollback SQL go (a human runs them).
  • Verification plan: automated checks (run through devkit:check-runner), screen and API checks, test data, regression check of the keep-as-is list.

🛑 Approval

Save the analysis doc and show a summary (number of requirements, places that change, cautions from the risk check, whether there is a DB change, expected scope).

Stop for approval only when a human must decide: needs confirmation items that a read or run cannot settle, cross-check questions, a DB change, a change to shared modules or components, a delete, an undecided recommended design principle, or the user asked only for the analysis. A recommended undecided design principle gets one question on adopting it for that layer. Ask those with AskUserQuestion (with options and a recommendation) and record the answers with the date in the doc's "Decision log", the user's wording apart from your reading. Otherwise log no gate: <reason> there and go on.

Either way, copy the doc to analysis.approved.md next to it (again after any later approved amendment); the verifier judges against that copy. Then move on to devkit:develop, unless the user only wanted the analysis.

Report

Analysis doc path, number of requirement items, remaining needs confirmation, number of implementation steps. For a bug, state clearly whether the cause is confirmed ("confirmed" / "Hypothesis: …").

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.