agentleFS
aicodekingaicodeking/deepseek-stack/skills/ds-verify-loop/SKILL.md

ds-verify-loop

Skill80 starsChanged 15 days agoMITView on GitHub

Run edit, real check, read the actual error, fix the root cause, rerun, until the check passes or the cap is hit. Use when you change code that has tests, a type checker, a build, or a runnable app, or before you claim any fix works. Invoke as /ds-verify-loop.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run it once before the edit if you can, so you know the baseline (already failing, already passing, or broken for another reason).

    line 13
  2. Distinctive:

    Run the exact command. Read the full error output, including the first error, the file and line, and the stack frame in your code.

    line 15
  3. Distinctive:

    When the narrow check passes, run the wider one once (the full test suite, the build, or a lint) to catch breakage elsewhere.

    line 19
  4. Distinctive:

    Never weaken, skip, delete or loosen a test, assertion, type or lint rule to make the check pass.

    line 30
  5. Distinctive:

    Never mock away the thing under test.

    line 31
  6. Distinctive:

    Run the real command every time.

    line 32
  7. Distinctive:

    If no check exists, write the smallest one that fails without your change, then use the loop.

    line 34

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

ds-verify-loop

Prove a change works by running the real check and fixing what it reports, not what you expect it to report.

Steps

  1. Pick the check before you edit: the narrowest real command that proves the change, such as one test file, a typecheck, a build, or a run of the app with one request. Write the command down.
  2. Run it once before the edit if you can, so you know the baseline (already failing, already passing, or broken for another reason).
  3. Make the smallest edit that should satisfy the check.
  4. Run the exact command. Read the full error output, including the first error, the file and line, and the stack frame in your code. Do not skim to the last line.
  5. State the root cause in one sentence, based on the output. If you cannot, add one print or log line, or read the failing code, and rerun. Do not guess.
  6. Fix the cause, not the symptom. Do not add a special case for the one input that the test uses.
  7. Rerun the same command. Count this as one iteration.
  8. When the narrow check passes, run the wider one once (the full test suite, the build, or a lint) to catch breakage elsewhere.
  9. Paste the final passing output (the command and its last lines) in your reply or in PROGRESS.md.

Stop when

  • The check passes and you have pasted the output. A claim without output does not count.
  • You reach 5 iterations without passing. Stop editing, report the last error, and switch to ds-unstick.
  • The same error appears twice after two different fixes. Switch to ds-unstick now. Do not wait for iteration 5.

Rules

  • Never weaken, skip, delete or loosen a test, assertion, type or lint rule to make the check pass. If the test is wrong, say why and ask first.
  • Never mock away the thing under test.
  • Run the real command every time. Do not reason about what it would print.
  • Change one thing per iteration so that you know what fixed it.
  • If no check exists, write the smallest one that fails without your change, then use the loop.

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.