evidence-first-engineering-sop
Skill1 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.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/evidence-first-engineering-sop.mdcCursor rule
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
- Distinctive: line 10
Treat every technical conclusion as a claim that needs evidence.
- Distinctive: line 12
Default to this sequence:
- Distinctive: line 19
Check backend logs, frontend Console, browser Network, deployment logs, Nginx or proxy errors, test output, and recent diffs as relevant.
- Distinctive: line 20
Do not explain a root cause when the evidence is incomplete.
- Distinctive: line 24
Only investigate third-party services after internal causes are reasonably excluded.
- Distinctive: line 27
Verify response shape, required fields, field meanings, UI rendering, and upstream/downstream consistency.
- Distinctive: line 31
Keep each task scoped to one clear problem or feature.
- Distinctive: line 32
After a fix, rerun an already-successful workflow to catch regressions.
- Distinctive: line 36
Avoid saying only "done" or "deployed."
- Distinctive: line 39
If the user raises the same direction three times, re-open that hypothesis and check it against logs and data.
- Distinctive: line 42
Add or update regression tests when changing behavior.
- Distinctive: line 43
Run the smallest reliable validation set before release.
- Distinctive: line 53
Keep risk features off by default.
- Distinctive: line 54
Treat public feeds, marketplaces, brand pages, real-name verification, high-risk industries, external domain binding, payments, and deep …
- Distinctive: line 60
Start with mock SMS, real-name verification, payments, content review, WeChat sharing, and external APIs until the core flow is proven.
- Distinctive: line 71
Check recent diffs and local code paths.
- Distinctive: line 78
Prefer existing project patterns.
- Distinctive: line 84
Run targeted tests or commands.
- Distinctive: line 85
Verify returned data structure and UI behavior.
- Distinctive: line 86
Run at least one known-good path for regression.
- Distinctive: line 100
Check the live page or endpoint.
- Distinctive: line 102
Verify critical data fields and user-visible flow.
- Distinctive: line 103
Update regression coverage or checklist.
≈ “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.
Files
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
- 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.
- 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.
- A
200response 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.
- 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.
- 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."
- Respect repeated user intuition.
- If the user raises the same direction three times, re-open that hypothesis and check it against logs and data.
- Automate validation.
- Add or update regression tests when changing behavior.
- Run the smallest reliable validation set before release.
- Archive requirement changes.
- Record new ideas, modules, restrictions, or risk decisions before implementation.
- Include source, purpose, risk, MVP status, and deferred status when applicable.
- 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.
- 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.
- 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.
- 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.
- 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:
- Reproduce or inspect the reported behavior.
- Gather relevant logs and evidence.
- Check recent diffs and local code paths.
- State the smallest credible root cause with evidence.
- Identify the files and behavior affected.
During the fix:
- Keep edits focused.
- Prefer existing project patterns.
- Inspect the diff before validation or deployment.
- Avoid unrelated refactors.
After the fix:
- Run targeted tests or commands.
- Verify returned data structure and UI behavior.
- Run at least one known-good path for regression.
- Record the result and unresolved risk.
Deployment Workflow
Before deploy:
- Confirm the exact version or diff being deployed.
- Provide validation commands and expected outputs.
- Name the page, endpoint, or workflow to verify.
- Define what to do if validation fails.
After deploy:
- Check the live page or endpoint.
- Inspect logs for new errors.
- Verify critical data fields and user-visible flow.
- Update regression coverage or checklist.
- 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.
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
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.

