agentleFS
kaiohenricunhakaiohenricunha/dotbabel/skills/ground-first/SKILL.md

ground-first

Skill0 starsChanged 2 months agoMITView on GitHub

Produce a code-grounded analysis before any edit is proposed. Triggers on: "analyze", "understand behavior", "how does this work".

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    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:

    Locate the relevant code: Use these tools, in this order:

    line 32
  2. Very specific:

    STOP: Do not call Edit, Write, or any other mutation tool.

    line 65
  3. Very specific:

    Every claim must cite a file:line or file:line–line reference from a file you actually read in this session.

    line 69
  4. Distinctive:

    If you cannot find a file that supports a claim, list the claim under "What I do not yet know" instead of asserting it.

    line 70
  5. Distinctive:

    Do not propose edits. Do not run tests.

    line 71
  6. Distinctive:

    Keep the analysis under ~30 lines.

    line 72
  7. Distinctive:

    If the subject turns out to be trivial (e.g., a typo fix), say so and hand control back — don't pad.

    line 73

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Produce a code-grounded analysis of a subject before any edits are proposed.

Trigger: when the user asks for a fix, change, or investigation on non-trivial code and has not yet confirmed you understand current behavior. Also triggered directly via /ground-first.

Arguments: $ARGUMENTS — a description of what to analyze (e.g. "auth token refresh race condition", "why ingest job retries forever", "issue #140").

Steps

  1. Parse the subject from $ARGUMENTS. If empty or vague, infer from recent conversation. If still unclear, ask the user what they want analyzed.
  2. Locate the relevant code. Use these tools, in this order:
    • Glob to find candidate files by name pattern
    • Grep to find candidate files by symbol/string
    • Read every candidate file that survives the first two steps. Read the actual file — do not infer from its name.
  3. Produce the analysis in this format:

    ## Subject
    
    <one-line restatement of the subject>
    
    ## Current behavior
    
    - <claim>. `path/to/file.go:42`
    - <claim>. `path/to/other.ts:120–140`
    
    ## Relevant entry points
    
    - `path/to/handler.go:15` — `HandleIngest()`
    - `path/to/config.yaml:8` — `retries: 3`
    
    ## What I do not yet know
    
    - <specific unknown, e.g. "whether the retry limit is overridden at runtime">
    - <specific unknown>
    
    ## Proposed next steps (not yet actioned)
    
    1. <step>
    2. <step>
  4. STOP. Do not call Edit, Write, or any other mutation tool. Wait for the user to confirm the analysis matches reality or to correct it.

Rules

  • Every claim must cite a file:line or file:line–line reference from a file you actually read in this session.
  • If you cannot find a file that supports a claim, list the claim under "What I do not yet know" instead of asserting it.
  • Do not propose edits. Do not run tests. Do not make changes. This command is read-only by design.
  • Keep the analysis under ~30 lines. Cite more, narrate less.
  • If the subject turns out to be trivial (e.g., a typo fix), say so and hand control back — don't pad.

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.