exec-self-testing
Skill4 starsChanged 4 days agoMITView on GitHub
Self-testing requirements to embed into Codex execution prompts — test-first workflow, what to test, and the never-finish-red rule.
In this repository76 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accounting-bookkeepingSkill
- agent-context-persistenceSkill
- asoSkill
- brainstorm-argumentationSkill
- brainstorm-debateSkill
- brainstorm-lensesSkill
- causal-inferenceSkill
- context-disciplineSkill
- creative-briefSkill
- customer-support-opsSkill
- data-quality-checksSkill
- design-fundamentalsSkill
- ecommerce-operationsSkill
- event-taxonomySkill
- exec-coding-standardsSkill
- exec-cppSkill
- exec-csharpSkill
- exec-deliverableSkill
- exec-github-actionsSkill
- exec-goSkill
- exec-jvmSkill
- exec-phpSkill
- exec-pythonSkill
- exec-rubySkill
- exec-rustSkill
- exec-swiftSkill
- exec-typescriptSkill
- executor-fallbackSkill
- exec-visualizationSkill
- fast-pathSkill
- final-reviewSkill
- financial-auditSkill
- hr-recruitingSkill
- influencer-strategySkill
- interview-ask-backSkill
- interview-elicitationSkill
- jev-assistSkill
- json-data-wranglingSkill
- legal-contract-basicsSkill
- localization-copySkill
- manufacturing-ops-planningSkill
- marketing-attributionSkill
- media-planningSkill
- okr-planningSkill
- pack-game-analyticsSkill
- parallel-executionSkill
- performance-marketingSkill
- personal-financeSkill
- plan-architectureSkill
- plan-backlogSkill
- plan-research-firstSkill
- preflightSkill
- profile-contentSkill
- profile-designSkill
- profile-pilotSkill
- profile-planSkill
- real-estate-analysisSkill
- review-conformanceSkill
- review-dualSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
NOT re-run the full suite per task.
≈ “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.
Files
Self-Testing (embed into Codex prompts)
A senior developer proves their own work. Include this block in every codex_execute prompt:
Testing requirements (mandatory):
- Every new behavior gets a test in the same task: happy path + at least one failure/edge case
(empty input, boundary value, error propagation).
- Write the test alongside or before the implementation; use the project's existing test
framework, file layout, and naming style.
- Tests assert behavior (inputs → outputs, state changes), not implementation details.
- Use Arrange-Act-Assert structure with descriptive names ("returns empty list when no match").
- Targeted tests only: run the test file or pattern for the current task using the project's
targeted command (for example, `npx vitest run tests/<file>.test.ts`), plus the build/typecheck
once before finishing. Do NOT run the full test suite — the orchestrator's `verifyCommand` is the
single authoritative acceptance run for this task, and the full suite runs once per merged
parallel wave and once in the whole-feature review.
- While iterating: re-run only that targeted command; never run the full suite mid-task.
- Environment failure: if a test command fails with a sandbox or environment error (EMFILE, EPERM,
out-of-memory, or file-watcher limits), STOP and report the verbatim error in the final summary;
do NOT re-run the full suite hoping it passes.
- Long test commands: name every test command expected to take more than two minutes in the final
summary and explain why it was needed.
- NEVER finish with failing tests or a broken build. If a pre-existing test fails for reasons
outside this task, stop and report it instead of "fixing" the test to pass.
- Fix the implementation, not the test — unless the test itself is provably wrong, and say so.Claude's verification duty
Trust but verify: pass the task's acceptance command as verifyCommand so the server runs it after
the Codex run settles and returns verification (exitCode, passed, outputTail) and the
payload's accepted verdict — those fields are evidence, Codex's "tests pass" is not. Claude does
NOT re-run the full suite per task; it reads accepted/verification, runs the full suite once
per merged parallel wave and once in the whole-feature review, and checks the tool result's commands
list for what Codex actually ran.
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.

