ship-execute
Skill1 starsChanged 7 months agoMITView on GitHub
Execute a plan via fresh subagents with mandatory TDD and two-stage review (spec compliance then code quality) after every task. The core execution engine of Bayes Ship.
In this repository43 other files it gives its agents.
- accessibilitySkill
- agent-evalSkill
- agentic-engineeringSkill
- ai-regression-testingSkill
- api-designSkill
- atomic-planningSkill
- backend-patternsSkill
- coding-standards-eccSkill
- context-engineeringSkill
- frontend-patternsSkill
- git-worktreesSkill
- langchain-dependenciesSkill
- langchain-fundamentalsSkill
- langchain-middlewareSkill
- langchain-ragSkill
- langgraph-fundamentalsSkill
- langgraph-persistenceSkill
- minimalist-skillSkill
- output-skillSkill
- redesign-skillSkill
- security-scanSkill
- ship-architectSkill
- ship-autoSkill
- ship-bugfixSkill
- ship-deploySkill
- ship-discoverSkill
- ship-finish-branchSkill
- ship-newSkill
- ship-planSkill
- ship-researchSkill
- ship-resumeSkill
- ship-reviewSkill
- ship-settingsSkill
- ship-specSkill
- ship-statusSkill
- ship-testSkill
- ship-worktreeSkill
- soft-skillSkill
- systematic-debuggingSkill
- taste-skillSkill
- test-driven-developmentSkill
- two-stage-reviewSkill
- verification-before-completionSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 8 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Read the plan file ONCE upfront.
- Very specific: line 30
Write the failing test from <test-first> (RED)
- Very specific: line 32
Write minimal implementation from <action> (GREEN)
- Distinctive: line 57
If spec compliance FAILS: re-dispatch the implementer with specific feedback.
- Distinctive: line 61
Only runs AFTER spec compliance passes.
- Distinctive: line 77
After both reviews pass:
- Very specific: line 79
Update progress.json (increment completed_tasks)
- Distinctive: line 84
If multiple tasks in the current wave are independent, dispatch them in parallel.
- Distinctive: line 88
After all tasks in the plan are done:
- Very specific: line 89
Run typecheck on the full project
- Distinctive: line 90
Run the full test suite
- Distinctive: line 98
Every subagent gets a clean context window.
- Very specific: line 99
Use the model specified in the task's model attribute when model_routing is auto.
≈ “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.
Files
Execute — Subagent-driven implementation with two-stage review
Pre-condition
A plan must exist in .claude/state/plans/phase-<n>/plan.md. If not, tell the user to run /bayes-ship:ship-plan first.
Process
Step 1: Load plan
Read the plan file ONCE upfront. Extract all task details so subagents never need to re-read the file.
Step 2: For each task in the plan
2a. Dispatch Implementer subagent (fresh context per task):
Provide the subagent with ONLY:
- The task XML (extracted from the plan)
- The relevant SKILL.md files referenced in
<skill> - ARCHITECTURE.md for context
- The test-driven-development skill
- Nothing else. Never inherit session history.
The Implementer follows TDD:
- Write the failing test from
<test-first>(RED) - Watch it fail
- Write minimal implementation from
<action>(GREEN) - Watch tests pass
- Refactor if needed
- Report status signal:
DONE— ready for reviewDONE_WITH_CONCERNS— complete but flagging issuesNEEDS_CONTEXT— blocked on a question (escalate to user)BLOCKED— cannot proceed (escalate immediately)
On NEEDS_CONTEXT: check ARCHITECTURE.md and RESEARCH.md for the answer. If found, provide it and let the implementer continue. If not found, ask the user.
On BLOCKED: stop and alert the user immediately.
2b. Spec Compliance Review (fresh subagent):
Dispatch a spec-compliance-reviewer subagent with:
- The original task XML from the plan
- The git diff of the implementer's changes
- The PRD acceptance criteria for this story
The reviewer is SKEPTICAL. It does NOT trust the implementer's self-report. It reads actual code and checks:
- Does the implementation match the spec exactly?
- Are there missing requirements?
- Is there over-building (more than the spec requires)? YAGNI violations?
If spec compliance FAILS: re-dispatch the implementer with specific feedback. Do NOT proceed to code quality review.
2c. Code Quality Review (fresh subagent):
Only runs AFTER spec compliance passes. Wrong order wastes effort.
Dispatch a code-quality-reviewer subagent with:
- The git SHAs from the implementer's commits
- The coding-standards skill content (if installed)
- The security skill content (if applicable to this task)
Reviews for: code style, patterns, bugs, security issues, test quality, naming, complexity.
Reports issues by severity:
- Critical — blocks progress. Re-dispatch implementer.
- Warning — should fix. Fix in current cycle.
- Note — optional. Log for later.
2d. Commit and progress
After both reviews pass:
- Atomic git commit with conventional commit message
- Update
progress.json(increment completed_tasks) - Move to next task
Step 3: Wave parallelism
If multiple tasks in the current wave are independent, dispatch them in parallel. Wait for all tasks in a wave to complete before starting the next wave.
Step 4: Phase complete
After all tasks in the plan are done:
- Run
typecheckon the full project - Run the full test suite
- Report summary: tasks completed, commits, review pass/fail rates
- Output: "Phase N complete. Run
/bayes-ship:ship-plan <next>for the next phase, or/bayes-ship:ship-testfor full QA."
Rules
- Two-stage review is MANDATORY. Never skip it. Never combine the two stages.
- TDD is the default. If
tdd_modeisstrict, delete any code written before tests. - Every subagent gets a clean context window. No accumulated session garbage.
- Use the model specified in the task's
modelattribute whenmodel_routingisauto.
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.

