agentleFS
varunk130varunk130/ai-workflow-playbooks/skills/incremental-verification/SKILL.md

incremental-verification

Skill2 starsChanged 6 months agoMITView on GitHub

Continuously verify work at every step rather than waiting until the end to test.

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈21

    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:

    After every meaningful change, run a verification:

    line 14
  2. Distinctive:

    Before writing new code, confirm the current state is clean:

    line 34
  3. Distinctive:

    Run the full test suite - all green?

    line 35
  4. Distinctive:

    Run the build command - compiles without errors?

    line 36
  5. Distinctive:

    Run the linter - no new violations?

    line 37
  6. Distinctive:

    If any of these fail before you've made changes, flag it immediately.

    line 39
  7. Distinctive:

    Write assertions liberally during development:

    line 42
  8. Distinctive:

    After fetching data: assert it has the expected shape

    line 43
  9. Distinctive:

    After transforming data: assert the output matches expectations

    line 44
  10. Distinctive:

    After calling an external service: assert the response status is successful

    line 45
  11. Distinctive:

    After state transitions: assert the new state is valid

    line 46
  12. Distinctive:

    After every change, verify nothing broke:

    line 51
  13. Distinctive:

    If a test fails that you didn't expect, stop.

    line 65
  14. Distinctive:

    When a task (not just a single change) is complete:

    line 68
  15. Distinctive:

    Run the complete test suite

    line 69
  16. Distinctive:

    Verify the acceptance criteria from the task definition

    line 70
  17. Distinctive:

    Check for console errors, warnings, or deprecation notices

    line 71
  18. Distinctive:

    If the task has UI, visually verify the result

    line 73
  19. Distinctive:

    Never stack unverified changes: - Verify change A before starting change B

    line 77
  20. Distinctive:

    Test failures are stop signals: - Don't proceed past a red test.

    line 78
  21. Distinctive:

    Commit verified work frequently: - Every green state is a checkpoint worth saving

    line 81

≈ “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

Incremental Verification

What This Skill Enables

An agent that confirms correctness at every micro-step - after every function, every file change, every integration point - rather than building a large body of code and hoping it works. Without this skill, agents produce code that looks plausible but fails at runtime, and bugs compound silently until the system is too broken to debug efficiently.

Core Competencies

1. The Verify-As-You-Go Loop

After every meaningful change, run a verification:

Write code → Verify → Commit → Next change
     ↑                            |
     └────────────────────────────┘

Verification methods by change type:

ChangeVerification
New functionRun its unit test
Modified functionRun existing tests + new test for the change
New API endpointSend a test request, check response shape and status
UI componentRender it, check the DOM/accessibility tree
Configuration changeRestart the service, verify it loads without errors
Database migrationRun the migration, verify the schema matches expectations

2. Build Verification

Before writing new code, confirm the current state is clean:

  • Run the full test suite - all green? Proceed
  • Run the build command - compiles without errors? Proceed
  • Run the linter - no new violations? Proceed

If any of these fail before you've made changes, flag it immediately. Do not write code on top of a broken foundation.

3. Assertion Density

Write assertions liberally during development:

  • After fetching data: assert it has the expected shape
  • After transforming data: assert the output matches expectations
  • After calling an external service: assert the response status is successful
  • After state transitions: assert the new state is valid

These can be formal tests or temporary debug assertions that get removed later - the point is catching errors at the moment they occur, not ten steps later.

4. Regression Detection

After every change, verify nothing broke:

CHANGED: src/auth/validate.ts

VERIFICATION STEPS:
1. Run unit tests for auth module → ✅ 12/12 pass
2. Run integration tests touching auth → ✅ 5/5 pass
3. Run full test suite → ✅ 147/147 pass
4. No new linter warnings → ✅

RESULT: Change verified. Committing.

If a test fails that you didn't expect, stop. Don't fix it silently. Understand why the change affected that test.

5. End-of-Task Verification

When a task (not just a single change) is complete:

  1. Run the complete test suite
  2. Verify the acceptance criteria from the task definition
  3. Check for console errors, warnings, or deprecation notices
  4. Review your own diff - does anything look unintended?
  5. If the task has UI, visually verify the result

Behavioral Rules

  1. Never stack unverified changes - Verify change A before starting change B
  2. Test failures are stop signals - Don't proceed past a red test; fix it first
  3. The build must always be green - A broken build is the highest-priority fix
  4. Unexpected passes are suspicious - A test that passes when you expected it to fail needs investigation
  5. Commit verified work frequently - Every green state is a checkpoint worth saving

Failure Modes

FailureSymptomCorrection
Writing 500 lines then testingCascade of errors with unclear root causeVerify after every function or small logical change
Ignoring test failuresBroken tests accumulate; suite becomes unreliableFix every failure immediately or investigate why
Only testing happy pathCode works for valid input, crashes on edge casesTest error conditions and boundary values at each step
Skipping build verificationRuntime errors that the compiler would have caughtRun build after every file modification
Not checking your own diffAccidental debug code, TODO comments, or unrelated changes shipReview your diff before marking any task complete

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.