agentleFS
zoe-code-universezoe-code-universe/evidence-first-engineering-sop/SKILL.md

evidence-first-engineering-sop

Skill0 starsChanged 6 months agoMITView on GitHub

Evidence-first engineering workflow for debugging, fixing, deploying, and verifying software changes. Use when Codex handles technical issues, code changes, deployment tasks, regression checks, production incidents, or GitHub project work, especially when the user expects logs before conclusions, one-task-at-a-time execution, diff review, acceptance criteria, automated validation, and archive notes.

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈23

    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:

    Treat every technical conclusion as a claim that needs evidence.

    line 10
  2. Distinctive:

    Default to this sequence:

    line 12
  3. Distinctive:

    Check backend logs, frontend Console, browser Network, deployment logs, Nginx or proxy errors, test output, and recent diffs as relevant.

    line 19
  4. Distinctive:

    Do not explain a root cause when the evidence is incomplete.

    line 20
  5. Distinctive:

    Only investigate third-party services after internal causes are reasonably excluded.

    line 24
  6. Distinctive:

    Verify response shape, required fields, field meanings, UI rendering, and upstream/downstream consistency.

    line 27
  7. Distinctive:

    Keep each task scoped to one clear problem or feature.

    line 31
  8. Distinctive:

    After a fix, rerun an already-successful workflow to catch regressions.

    line 32
  9. Distinctive:

    Avoid saying only "done" or "deployed."

    line 36
  10. Distinctive:

    If the user raises the same direction three times, re-open that hypothesis and check it against logs and data.

    line 39
  11. Distinctive:

    Add or update regression tests when changing behavior.

    line 42
  12. Distinctive:

    Run the smallest reliable validation set before release.

    line 43
  13. Distinctive:

    Keep risk features off by default.

    line 53
  14. Distinctive:

    Treat public feeds, marketplaces, brand pages, real-name verification, high-risk industries, external domain binding, payments, and deep …

    line 54
  15. Distinctive:

    Start with mock SMS, real-name verification, payments, content review, WeChat sharing, and external APIs until the core flow is proven.

    line 60
  16. Distinctive:

    Check recent diffs and local code paths.

    line 71
  17. Distinctive:

    Prefer existing project patterns.

    line 78
  18. Distinctive:

    Run targeted tests or commands.

    line 84
  19. Distinctive:

    Verify returned data structure and UI behavior.

    line 85
  20. Distinctive:

    Run at least one known-good path for regression.

    line 86
  21. Distinctive:

    Check the live page or endpoint.

    line 100
  22. Distinctive:

    Verify critical data fields and user-visible flow.

    line 102
  23. Distinctive:

    Update regression coverage or checklist.

    line 103

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

Evidence-First Engineering SOP

Operating Principle

Treat every technical conclusion as a claim that needs evidence. Prefer logs, console output, network traces, returned data, diffs, and regression results over guesses.

Default to this sequence:

Discover issue -> collect logs -> locate root cause -> show evidence -> plan fix -> inspect diff -> deploy or run -> zero-cost regression -> archive result

Non-Negotiables

  1. Collect evidence before diagnosis.
    • Check backend logs, frontend Console, browser Network, deployment logs, Nginx or proxy errors, test output, and recent diffs as relevant.
    • Do not explain a root cause when the evidence is incomplete.
  2. Inspect own changes before blaming external services.
    • Review recent local edits, commits, environment changes, config changes, and dependency changes first.
    • Only investigate third-party services after internal causes are reasonably excluded.
  3. A 200 response is not enough.
    • Verify response shape, required fields, field meanings, UI rendering, and upstream/downstream consistency.
    • Confirm the user-visible workflow works, not merely that the server responds.
  4. Work one issue at a time.
    • Keep each task scoped to one clear problem or feature.
    • After a fix, rerun an already-successful workflow to catch regressions.
  5. Deployment instructions require acceptance criteria.
    • Include verification commands, expected output, page or API to check, and rollback or stop-loss guidance.
    • Avoid saying only "done" or "deployed."
  6. Respect repeated user intuition.
    • If the user raises the same direction three times, re-open that hypothesis and check it against logs and data.
  7. Automate validation.
    • Add or update regression tests when changing behavior.
    • Run the smallest reliable validation set before release.
  8. Archive requirement changes.
    • Record new ideas, modules, restrictions, or risk decisions before implementation.
    • Include source, purpose, risk, MVP status, and deferred status when applicable.
  9. Define exit criteria for every feature.
    • Replace vague tasks such as "make login" with concrete completion rules.
    • Example: authentication is complete when login, logout, error states, refresh persistence, and required audit fields are verified.
  10. Keep risk features off by default.
    • Treat public feeds, marketplaces, brand pages, real-name verification, high-risk industries, external domain binding, payments, and deep social sharing as gated features until reviewed.
  11. Make user data traceable.
    • For generated content, uploads, phone numbers, submissions, publish status, edits, and takedowns, preserve who/when/what audit context where the system supports it.
  12. Mock before integrating real services.
    • Start with mock SMS, real-name verification, payments, content review, WeChat sharing, and external APIs until the core flow is proven.
  13. End long work with a daily note.
    • Record what changed, what was verified, what remains, the first next action, and current risks.

Debugging Workflow

Before changing code:

  1. Reproduce or inspect the reported behavior.
  2. Gather relevant logs and evidence.
  3. Check recent diffs and local code paths.
  4. State the smallest credible root cause with evidence.
  5. Identify the files and behavior affected.

During the fix:

  1. Keep edits focused.
  2. Prefer existing project patterns.
  3. Inspect the diff before validation or deployment.
  4. Avoid unrelated refactors.

After the fix:

  1. Run targeted tests or commands.
  2. Verify returned data structure and UI behavior.
  3. Run at least one known-good path for regression.
  4. Record the result and unresolved risk.

Deployment Workflow

Before deploy:

  1. Confirm the exact version or diff being deployed.
  2. Provide validation commands and expected outputs.
  3. Name the page, endpoint, or workflow to verify.
  4. Define what to do if validation fails.

After deploy:

  1. Check the live page or endpoint.
  2. Inspect logs for new errors.
  3. Verify critical data fields and user-visible flow.
  4. Update regression coverage or checklist.
  5. Archive the deployment note.

Product Project Defaults

For product projects, apply this SOP automatically to:

  • authentication and logout
  • onboarding or module selection
  • form and questionnaire flows
  • generated previews
  • sharing links and QR codes
  • manual review or approval flows
  • public contact display
  • publish, unpublish, and takedown behavior

Early-stage integrations should remain mocked unless the user explicitly asks to connect a real provider and the acceptance criteria are clear.

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.