agentleFS
zeroasteriskzeroasterisk/skills/engineering-discipline/SKILL.md

engineering-discipline

Skill1 starsChanged 3 months agoApache-2.0View on GitHub

Full engineering lifecycle — define what done means, debug systematically, verify through real surfaces before claiming completion.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 10

    Distinctive

    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:

    Write a VAL-* assertion for each capability before writing code.

    line 16
  2. Distinctive:

    Never guess at fixes. Find the root cause first.

    line 30
  3. Distinctive:

    Read the complete error message and stack trace.

    line 33
  4. Distinctive:

    If the prediction was wrong: form a NEW hypothesis.

    line 49
  5. Distinctive:

    No completion claims without fresh verification evidence: Run it, read the output, then claim the result.

    line 61
  6. Distinctive:

    Every completion needs BOTH lanes:

    line 64
  7. Distinctive:

    If either lane fails, the task is not complete.

    line 69
  8. Distinctive:

    If real-surface verification is impossible (no creds, no running env, prod-only behavior):

    line 85
  9. Distinctive:

    If an assertion fails — or can't be run — report it as FAILED or BLOCKED with specifics.

    line 96
  10. Distinctive:

    When you think any of these, STOP — you're about to skip a step:

    line 102

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

Engineering Discipline

The full engineering lifecycle in one process: define → build → debug → verify. Follow this for every non-trivial task.

Distilled from obra/superpowers (Apache 2.0) and Intelligent-Internet/zenith (Apache 2.0).


1. Before You Build — Define What Done Means

Write a VAL- assertion* for each capability before writing code. If you can't specify what evidence proves it works, you don't know what "done" means.

VAL-001: <capability name>
  Surface:  <where to test it — API, browser, CLI>
  Needs:    <prerequisites — running server, test data, auth token>
  Behavior: <what should happen — specific, observable, falsifiable>
  Evidence: <what constitutes proof — request/response, screenshot, test output>

A good assertion is falsifiable (it can fail), observable (no source code reading), and specific (names the surface, inputs, and expected output). One assertion per user-observable capability. A typical feature needs 3–7. Every capability needs at least one failure-path assertion.

2. When It Breaks — Debug Systematically

Never guess at fixes. Find the root cause first.

Phase 0: Reproduce

Read the complete error message and stack trace. Create a minimal, reliable reproduction — one command if possible. If you cannot reproduce, you cannot verify any fix. Stop and get repro info first.

Phase 1: Trace Boundaries

Log what data enters and exits each component boundary:

Client → Gateway → Service → Data layer
         ↑ input    ↑ transformed   ↑ stored

The first point where data diverges from expectation is where the bug lives.

Phase 2: Compare

What's different between a working case and the broken case? Check: input, environment, and what changed since it last worked (git log, deploy history, config).

Phase 3: Hypothesize with Prediction

Form ONE hypothesis. Before testing, write down what you predict you'll observe if correct, and what you'd observe if wrong. THEN run the test. If you didn't predict the outcome before observing it, you're rationalizing, not testing.

If the prediction was wrong: form a NEW hypothesis. Do NOT layer fixes on top of a wrong diagnosis. Change ONE variable at a time.

Phase 4: Fix the Root Cause

Fix the cause, not the symptom. Then verify through the real surface (see section 3).

Escalation Rules

  • 3+ failed fix attempts → question the architecture, not the code
  • Works locally but not in CI/prod → environment difference (versions, config, deps)
  • Works sometimes → race condition; add timestamps to boundary logs

3. Before You Claim Done — Verify Through Real Surfaces

No completion claims without fresh verification evidence. Run it, read the output, then claim the result.

Two-Lane Validation

Every completion needs BOTH lanes:

  1. Scrutiny lane — compiles, tests pass, linter clean, no new warnings
  2. Real-surface lane — exercise the feature through its actual interface

If either lane fails, the task is not complete.

Minimum Evidence by Surface

SurfaceMinimum Evidence
HTTP APIRequest + response with status code and relevant body
Web UIBrowser verification of golden path + one edge case
CLI toolCommand + actual output (not expected output)
DatabaseQuery showing the data is correct
Deployed serviceHealth check + one real operation

Freshness Rule

Evidence is fresh only if collected AFTER the last code change. Any edit — including "trivial" ones — invalidates prior evidence. Re-verify.

When Verification Is Impossible

If real-surface verification is impossible (no creds, no running env, prod-only behavior):

"Implemented, UNVERIFIED. Blocked by: [specific reason]. To verify: [exact commands/steps for a human]."

An honest "unverified" beats a false "done." Never convert "I couldn't test it" into "it works."

Evidence Format

Paste raw output, not summaries. "Tests passed" without counts is a claim, not evidence.

Honest Failure

If an assertion fails — or can't be run — report it as FAILED or BLOCKED with specifics. A documented failure is more valuable than a fabricated pass.


Anti-Rationalization Table

When you think any of these, STOP — you're about to skip a step:

ThoughtReality
"I'm confident this works"Confidence is not evidence. Run the verification.
"The tests cover this"Existing tests weren't written for this change. Check the real surface.
"It's a simple change"Simple changes break things. Verify.
"I'll verify later"Later never comes. Verify now.
"The CI will catch it"CI catches syntax failures, not feature correctness. Run the real-surface check.
"Let me just try this fix"That's guessing, not debugging. Trace the data first.
"I think I know what's wrong"Thinking is not tracing. Verify with evidence.
"I'll add some error handling"Adding error handling without knowing the root cause converts a loud bug into a silent one.
"I don't have access to the environment"Then it's "unverified," not "complete." Say so explicitly.
"The user can test it themselves"Delegating verification is not performing it. Provide exact steps AND mark unverified.
"I verified against the mock"Mocks verify your assumptions, not the surface. State the limitation.
"This is too simple for assertions"Simple capabilities are the easiest to assert. No excuse.

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.