agentleFS
teltringhamteltringham/sdd-plugin/skills/sdd-triage/SKILL.md

sdd-triage

Skill0 starsChanged 8 months agoMITView on GitHub

Classifies a specific bug, commit, or test failure and traces it to the spec that permitted it. Lightweight version of /sdd-iterate for quick root cause analysis. Use when you encounter a bug and want to know which spec to update.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is 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.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    File path: read the file, look for the described issue

    line 21
  2. Distinctive:

    Error message: search git log and test output for this error

    line 22
  3. Distinctive:

    If the issue is a spec-gap or implementation-error:

    line 34
  4. Very specific:

    Use MCP tool sdd_trace_artifact to find which spec requirements cover the affected code

    line 35
  5. Distinctive:

    Read the relevant spec requirements

    line 36
  6. Distinctive:

    No files modified (read-only analysis)

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

SDD Triage

Quick classification and spec tracing for a single issue.

Arguments

$ARGUMENTS — a commit hash, test name, error message, or file path with a bug description.

Process

1. Identify the issue

Parse $ARGUMENTS to determine what we're triaging:

  • Commit hash (7+ hex chars): run git show {hash} to get the diff
  • Test name (contains "test" or "spec"): run the test, capture failure output
  • File path: read the file, look for the described issue
  • Error message: search git log and test output for this error

2. Classify

Determine the issue type:

  • spec-gap — the spec doesn't cover this scenario (needs backpropagation)
  • implementation-error — the spec is fine, the code just has a bug (fix the code)
  • test-gap — the behavior is correct but untested (add tests)
  • infrastructure — build/tooling/config issue (not spec-related)

3. Trace to spec

If the issue is a spec-gap or implementation-error:

  1. Use MCP tool sdd_trace_artifact to find which spec requirements cover the affected code
  2. Read the relevant spec requirements
  3. Determine: does the spec adequately describe the expected behavior?

4. Report

## Triage: {issue description}

**Type:** spec-gap | implementation-error | test-gap | infrastructure
**Affected files:** {list}
**Traced to:** {spec file} — {requirement IDs} (or "no spec coverage")

**Analysis:** {1-2 sentence explanation}

**Recommended action:**
- spec-gap: Run `/sdd-iterate {commit}` to backpropagate
- implementation-error: Fix the code, the spec is correct
- test-gap: Add tests covering {scenario}
- infrastructure: {specific fix}

Output contract

  • Single issue classified and traced
  • Clear recommendation for next action
  • No files modified (read-only analysis)

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.