/engineering-skills:engineer-workflowfrom engineering-skills
Orchestrates a full engineering lifecycle from planning through review with persistent state in plan.md/executor.md. Routes between phases (planning, architecture, design, security, detail planning, implementation, verification, review) and enforces gates. Use for end-to-end project workflows rather than single-phase tasks.
Ships in engineering-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
ROLE: Development orchestrator. CORE FUNCTION: Run the full lifecycle — idea → plan → design → spec → code → verify → review — with context preserved across phases and no phase silently skipped.
This skill is a router and state machine. Each phase's rules live in its own skill; this file decides which phase runs, enforces the gates between them, and owns the shared state. It deliberately does not duplicate the component skills' contents.
┌──────────┐ ┌────────────┐ ┌────────┐ ┌──────────┐ ┌────────────────┐ ┌───────────┐ ┌────────┐ ┌────────┐
│ PLANNING │─▶│ ARCHITECT │─▶│ DESIGN │─▶│ SECURITY │─▶│ DETAIL PLANNING│─▶│ IMPLEMENT │─▶│ VERIFY │─▶│ REVIEW │
│ (F1…) │ │ gate │ │ gate │ │ gate │ │ (spec F<N>) │ │ (F<N>) │ │ (F<N>) │ │ (diff) │
└──────────┘ └────────────┘ └────────┘ └──────────┘ └────────────────┘ └───────────┘ └────────┘ └────────┘
│ │ │ │ │ │ │ │
▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼
plan.md plan.md plan.md plan.md executor.md source code executor.md findings
##Architecture ##Design ##Security
└────────────────────────── History/ (archived at plan creation) ───────────────────────────────────┘
Iteration is allowed from any phase back to any earlier one. Skipping forward is not.
| Phase | Triggers | Delegates to |
|---|---|---|
| Planning | plan, planner, analyze, a new idea | planner |
| Architecture gate | automatic (Section 3.1), or design, system design | system-design |
| Design gate | automatic (Section 3.2) | data-systems-design |
| Systems gate | automatic (Section 3.3), or systems, low level | systems-programming |
| Security gate | automatic (Section 3.4), or security design | security-engineering |
| Detail planning | detail F<N>, expand F<N>, breakdown F<N> | detail-planning |
| Implementation | implement F<N>, execute, build, continue | implement |
| Verification | verify F<N>, validate | verify |
| Review | /review-diff, /review-uncommitted, /review, /review-inscope, /review-data, /review-security | code-review |
Load the component skill and follow it. Do not re-derive its rules from memory.
| Artifact | Owner phase | Authority for |
|---|---|---|
plan.md | Planning | Roadmap, requirements, capacity estimates, architecture, design record, security record, phase status |
executor.md | Detail planning | Per-phase specs, verification reports |
History/[slug]-[timestamp].md | Planning | Immutable archive of the plan at creation, plus the execution log |
| Source code | Implementation | Actual behavior |
Rules:
plan.md is the roadmap authority; executor.md is the specification authority; the code
is the truth. When they disagree, that gap is the finding.plan.md.History/ copy is written once at plan creation and never rewritten; the execution
log table inside it is appended to.## Execution Log
| Timestamp | Phase | Action | Result |
|---|---|---|---|
| 2026-08-12T10:14Z | Planning | Plan created (F1–F4) | ✓ |
| 2026-08-12T10:40Z | Architecture | 7-step design + estimates + simplicity pass | ✓ Kafka removed, cache kept |
| 2026-08-12T11:02Z | Design | Design record + hazard scan | ✓ 2 hazards mitigated |
| 2026-08-12T11:20Z | Security | Threat model + vulnerability scan | ✓ 3 findings designed out, 1 accepted |
| 2026-08-12T11:40Z | Detail | F1 specified | ✓ |
| 2026-08-12T12:30Z | Implement | F1 implemented | ⚠ 1 deviation logged |
| 2026-08-12T12:55Z | Verify | F1 verified | ✗ 1 blocking discrepancy |
Between Planning and Detail Planning sit three gates. They ask different questions and are triggered independently:
A new public service triggers all three. Adding a retry to an existing call triggers only the second. Adding an authenticated endpoint triggers only the third.
The design gate and the security gate are not the same question. One assumes faults are random; the other assumes they are chosen. A queue consumer that is idempotent under duplicate delivery can still be a replay vulnerability, because idempotency answers "did this happen twice" and not "did the right party ask for it."
Applies when the work involves: a new service or system · a new datastore · a new component on the request path (cache, queue, CDN, load balancer, search index) · a re-architecture · a migration between stores · a change to how the system scales · a stated capacity or scale target.
If it applies: load system-design and run its seven-step method at the depth its
proportionality table prescribes. Produce the capacity estimates, the interface contract,
the data model with access patterns, the high-level design with both primary flows walked
end to end, the deep dives, the bottleneck/failure/operations table, and the trade-off
table with rejected alternatives. Then run the simplicity pass and remove what the
numbers do not justify. Write it into plan.md under ## Architecture.
The ordering rule: estimates before architecture. A component chosen before the numbers exist is a preference, not a decision — and this gate is the cheapest place in the pipeline to delete something nobody needs.
If it does not apply: record Architecture gate: not applicable — [reason].
Applies when the work touches any of: persistence · schema or migration · index · cache · queue or event stream · background or scheduled job · replication · partitioning/sharding · transaction or concurrency · retry · a write to more than one system · an external API with side effects · money, auth, or PII · any stated latency, availability, or consistency requirement.
If it applies: load data-systems-design, produce its Design Record, run the hazard
scan against the design, and write both into plan.md under ## Design. Detail planning
then carries those decisions into each phase spec, implementation enforces them as
invariants, and verification checks them. The gate is what makes the later phases
mechanical rather than improvised.
If it does not apply: record one line — Design gate: not applicable — [reason] — and
continue. Applying data-systems ceremony to a copy change is its own failure mode.
Applies when the work touches any of: a file read, write, copy, move, or delete · a directory walk or a document ingest · a durability or crash-safety requirement · a process that the code starts · a signal handler · a daemon or long-lived worker · a thread or shared memory · a pipe, a FIFO, or a socket · a build, link, or load failure.
If it applies: load systems-programming. Apply the five rules of the system call
boundary and the file management recipes. Run its failure catalog against the design and
record the S- IDs that apply.
This gate catches what the design gate cannot see. The design gate asks whether the design
stays correct across machines. This gate asks whether the code stays correct against one
kernel. A durable write that omits fsync on the directory passes every design review and
still loses the file.
If it does not apply: record one line — Systems gate: not applicable — [reason].
Applies when the work touches any of: authentication · authorization · session or token handling · a secret, key, or credential · cryptography of any kind · a new endpoint or externally reachable surface · untrusted input reaching an interpreter or memory operation · PII, PHI, or payment data · a new trust boundary or inter-service call · file upload or download · an outbound request to a caller-influenced destination · logging of sensitive fields · a dependency on an external identity provider.
If it applies: load security-engineering, produce its Security Record at the depth its
proportionality table prescribes, run the vulnerability scan against the design, and write
both into plan.md under ## Security. Name the adversary and the capability assumed before
naming a mechanism, and state the residual risk being accepted.
Detail planning then carries each named mechanism into the phase spec at a specific enforcement point, implementation builds it there, and verification checks that the mechanism exists where the record claimed. A security decision that is not carried into a phase spec does not get built — this is the most common way a threat model becomes decoration.
If it does not apply: record one line — Security gate: not applicable — [reason].
Demanding a threat model for a CSS change trains people to skip the gate when it matters.
system-design/references/01-design-method.md.plan.md with phases F1…Fn.History/.For a genuinely new system, most of the work lives in step 3, not step 2 — the phases follow from the architecture, not the other way around.
## Existing Plan Analysis: [Name]
### Viability: ✓ VIABLE | ⚠ NEEDS REVISION | ✗ NOT VIABLE
### Strengths
- [ ]
### Gaps
| Gap | Impact | Fix |
|---|---|---|
| No rollback for the migration in step 3 | An incident becomes unrecoverable without a restore | Split into expand/migrate/contract |
| Load never quantified | Cannot tell whether the design is adequate | Add load parameters and percentile SLOs |
| Kafka + 3 services for 40 writes/sec | Permanent operational cost with no number behind it | Run the simplicity pass; collapse to a table and a cron job |
### Proposed Phase Structure
| Phase | Current | Proposed | Why |
|---|---|---|---|
| Command | Action |
|---|---|
engineer-workflow: [idea] | Start the pipeline at Planning |
plan / planner | Create or update plan.md |
design / system design | Run the architecture gate explicitly |
estimate | Run only the capacity estimation step |
data design | Run the design gate explicitly |
security design | Run the security gate explicitly (threat model + vulnerability scan of the design) |
detail F<N> | Expand phase N into executor.md |
implement F<N> | Implement phase N |
verify F<N> | Verify phase N against its spec |
/review-diff etc. | Run a review mode |
/review-security | Adversarial review of code that exists (distinct from the gate, which reviews the design) |
continue | Advance to the next incomplete step |
back | Return to the previous phase |
status | Show phase status from plan.md |
history | Show the execution log |
Iteration is expected: re-plan when scope changes, re-spec a phase, re-implement after fixes, re-verify after changes. Every iteration is logged.
plan.md → report → STOP.run all phases,
don't stop), and even then verification runs after each phase.Stop and ask the user, rather than guessing, when:
| Skill | Role |
|---|---|
planner | Reconnaissance, requirements, estimation, phased plan.md |
system-design | Design method, capacity estimation, building blocks, database selection, simplicity laws |
data-systems-design | Design records, decision tables, hazard catalog |
systems-programming | System call rules, file management recipes, failure catalog |
security-engineering | Threat models, security records, vulnerability catalog |
detail-planning | Per-phase spec in executor.md |
implement | Code, with robustness invariants enforced |
verify | Conformance of code to spec, with evidence |
code-review | Diff, working tree, repository, scope, data-hazard, and security reviews |
Each also works standalone; this skill exists to run them as one coherent process with shared state.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub cool-coder174/engineering-skills --plugin engineering-skills18 skills in this plugin
/capacity-engineeringFinds the resource that reaches its limit first. Proves it with a load test that resembles real traffic. Plans for the load that was measured. Use this skill for capacity planning, a load test, a stress test, or a bottleneck hunt. Use it for a question about headroom, saturation, or throughput. Use it for utilization, queue depth, thread pool size, or connection pool contention. Use it for cache hit rate, precomputed content, garbage collector tuning, or session timeout. Use it for N+1 queries, table scans, or a launch traffic forecast. Use it for load balancing policy, subsetting, and server count. The content comes from Release It! (Nygard) and Site Reliability Engineering (Beyer and others)./code-reviewMulti-mode code review engine with six commands (/review-diff, /review-uncommitted, /review, /review-inscope, /review-data, /review-security) for branch diffs, uncommitted changes, full repository audits, scoped task reviews, data/distributed-systems hazard audits, and adversarial security review. Produces severity-ranked findings with concrete fixes, hazard and vulnerability scans, scope checks, and merge-readiness verdicts. Use when reviewing code, PRs, diffs, uncommitted changes, auditing a repo, or assessing security risk./data-systems-designDesign-decision engine for data-intensive and distributed systems, grounded in Designing Data-Intensive Applications (Kleppmann). Use when a task touches storage, schemas, migrations, replication, sharding, caching, transactions, queues, event streams, retries, background jobs, multi-service writes, or any non-functional requirement (latency, availability, throughput, durability, consistency). Provides decision tables, a named-hazard catalog, and deep-dive references per chapter./detail-planningExpands one phase of plan.md into a deterministic, file-referenced implementation spec in executor.md — including failure-mode analysis, idempotency and retry contracts, schema compatibility matrix, isolation levels, observability, and rollback. Use when the user says detail, detail planning, breakdown, or expand phase./engineering-consultantRead-only engineering consultant with two duties. It compares frameworks, libraries, databases, platforms, and tools, and states a recommendation the reader can act on and can challenge. It explains a technical concept to a person new to it. Use it to choose a framework, compare two tools, evaluate a vendor, onboard a new engineer, read unfamiliar code, or ask for a recommendation. Use it for "should we use X or Y", "what is the difference between X and Y", "explain X", and "how does X work". It reads the repository, the documentation, and the web. It never writes a file. It routes build work to the specialist skills./implementPhase-locked implementation engine that turns an executor.md specification into production code, enforcing non-negotiable robustness invariants — timeouts, jittered retries, idempotency keys, bounded queues and result sets, explicit isolation, monotonic clocks, fencing tokens, expand/migrate/contract migrations, and no dual writes. Use when the user says implement, execute, code this, or build.