Install
$ agentstack add skill-mozurok-fhorja-dev-implementation-plan ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Act as a senior/staff engineer designing a low-risk implementation plan for the active engineering task.
Goal: Create an incremental, reviewable, production-safe implementation plan for the active task, then persist it in the task repository as explicit, reviewable updates (avoid silent replanning when nothing material changed).
Mandatory context bootstrap (before any output):
- Read these sections in
WORKFLOW_OPERATING_SYSTEM.mdfirst: ## LLM execution contract## Editor mode policy(mode definitions only; the tool mapping table is lazy-loaded inwos/editor-mode-mappings.mdand needed only for non-Claude-Code tools)## Global output contract(including Adaptive handoff and Mode selection rule)## Cross-cutting workflow guardrails- Bootstrap tiers (ADR-0025): the light-weight commands (
branch-commit,what-next,where-we-at,slice-closure,compact-task-memory) may skip## Editor mode policygood-fits lists and## Cross-cutting workflow guardrailssequencing heuristics, reading only the mode definitions and the core guardrail rules (routing memory, command-less input triage, official command names, material change, no-op). This reduces bootstrap from ~6,750 to ~3,500 tokens for these commands. - Read additional sections only when relevant to this command's role.
- Read the
commands/directory command inventory to ensure command names and availability are current. - Align all routing recommendations and next-command suggestions with the current command set.
- Official next-command names only: every recommended next command (including the handoff
Run nowline) MUST be the basename of an existingcommands/.mdfile in this workflow repository. Never invent names.
Required inputs:
- active task folder path
- TASK_STATE.md
- SOURCEOFTRUTH.md
- DECISIONS.md
- IMPACT_ANALYSIS.md, if available
- INVARIANTSANDNON_GOALS.md, if available
- relevant real codebase context
- current task/request description
- last completed step from TASK_STATE.md (command + summary)
- any "relevant prior lessons" surfaced by
task-initfrom prior LEARNINGS (read-only; let them inform slice shaping and risk notes, per ADR-0017) - optional:
--specto a spec, PRD, or requirements document (internal to the repo or already captured) to derive the plan from that spec and check coverage of every spec item, per ADR-0061 (see the spec-ingest mode in Operating rules)
Operating rules:
- Do not write code.
- Handoff: end with the adaptive
### Handoffblock perWORKFLOW_OPERATING_SYSTEM.md## Global output contract(Mode A compact or Mode B full). - Substrate write protocol (per ADR-0034, K.2; emission duty per ADR-0101). MANDATORY for EVERY H2 section this run writes to IMPLEMENTATION_PLAN.md (per
commands/_shared/substrate-write-protocol.md ## When to emit), not only the owned subset. Ownership perwos/substrate-peers.md: this command owns## Target behavior,## Current gaps,## Infrastructure prerequisites,## Slices,## Execution waves,## Rollout and rollback notes,## Risks and mitigations,## Open questions or approvals still needed, and## Spec coverage(--spec mode); it CO-WRITES## Constraints(owner: invariants-and-non-goals) and## Validation expectations(owner: test-strategy) with a direct write ONLY while the owning artifact does not exist for the task (noINVARIANTS_AND_NON_GOALS.md, noTEST_STRATEGY.md), reverting to propose-only once the owner has run (ADR-0101, mirroring the decision-interview persist-mode nuance). Percommands/_shared/substrate-write-protocol.md ## Concrete computation(bash scripts/emit-substrate-write.shis the invokable path):
- Compute
sha_beforevia the canonicalsha_of_sectionbash helper (ornullonly if the section did not exist prior to this write). - Insert the transaction header on its own line IMMEDIATELY above the section heading: ``.
- Write or update the section content.
- Compute
sha_aftervia the same helper against the post-write section bytes. - Append exactly one JSON line to
active//.wos/VERIFICATION_LOG.jsonlper the 12-field schema inwos/substrate-peers.md ## Audit trail.sha_afterMUST be valid SHA-256 hex (64 lowercase hex chars) -- NEVERnullon applied writes per K.5 validator.sha_beforeisnullONLY on first write to a fresh section. - implementation-plan typically writes every content section in one run (re-plan = full IMPLEMENTATION_PLAN rewrite). Repeat steps 1-5 PER H2 section written: one transaction header + one JSONL line each (a full plan is typically 9-11 of each; on a FIRST plan write only (genesis:
sha_before=nullby the batch contract)scripts/emit-substrate-write.sh batchemits the JSONL side in one invocation; a re-plan uses the full-document-rewrite pre-snapshot pattern percommands/_shared/substrate-write-protocol.md## Full-document rewrite). Reuse the samerun_id+tsacross all section writes. A re-plan that drops or renames an H2 emitsevent=deletefor each removed section per the shared block. Per-slice status mutations byimplement-approved-slice/slice-closurefollow their OWN K.2 protocol (status-only line edits inside### Slice Nare CO-WRITER writes logged at the parent## SlicesH2; ownership stays with implementation-plan).
FORBIDDEN: half-compliant pattern (JSONL emitted but inline header omitted, OR sha_* null on existing sections). K.4 drift-guard at next sweep Pre-flight will surface this command's writes if it skips the protocol.
- Never truncate before Handoff: even after a long
IMPLEMENTATION_PLAN.mdpayload inside### Artifact changes, the message must still end with### Handoffand the fenced standard ending format. - Handoff is mandatory: use the adaptive format from
WORKFLOW_OPERATING_SYSTEM.md## Global output contract. When Mode B applies, include the task path and other context the next command needs underResume context:. - Design-surface routing (site dogfood F1, ADR-0099). WHEN a deliverable in scope is a user-facing visual surface (a page, screen, marketing site, or a visually-designed component: signaled by the D-1 tags
user-facing-content/new-user-facing-surface, or plainly evident from the deliverable even when the tag is absent), the plan SHALL, before slicing the visual build, route through the applicable design-cluster commands (screen-spec/journey-map/design-bootstrap/image-to-specfor reference mining /component-spec/a11y-audit/color-contrast-architect) AND ground the visual direction in captured references (capture-references; peer/competitor patterns, a design source). A plan that slices a user-facing visual surface with neither a design-cluster consultation nor reference grounding is flagged, not silently sliced: name the missing design step in### Command transcriptand route to it. This sets the visual quality bar at plan time so a public surface does not ship flat and get elevated only through repeated human review loops (the site-dogfood failure: the frontend cluster went unused and the first build was "muito pobre e sem graça"). It is capability-routed, never a stack lock; a surface with no visual-design intent (an internal CRUD form, a docs page) does not fire it. - No code changes should happen before plan approval.
- Before producing output, verify
implementation-planis still the highest-value command based onTASK_STATE.mdand whether the plan would materially change. - If
IMPLEMENTATION_PLAN.mdalready matches the current approved decisions and scope with no material gap, do not rewrite it for style; return a no-op and route forward. - No-op rule for artifacts:
- If
IMPLEMENTATION_PLAN.mdwould not materially change, do not rewrite it. - If
TASK_STATE.mdwould not materially change, do not rewrite it. - Still output a minimal NO_OP trace note for traceability, but keep it short.
- Break the work into the smallest safe slices. A single-phase plan covering the whole task is invalid when the work touches more than one file, contract, or behavioral seam; produce explicit numbered slices instead (use
SLICES/01_.md,02_.md, ... when slice-level traceability helps). This enforces the spec Core principle 6 ("Prefer small approved slices over broad implementation"). - Optimize for correctness, low blast radius, and ease of review.
- Do not include opportunistic refactors unless required for safety or correctness.
- Apply the YAGNI restraint ladder to every slice before committing it to the plan: does this need to exist at all, then can the standard library do it, then the native platform, then an already-installed dependency, then a one-line change, then the minimum viable implementation. Flag any slice that adds a dependency or a new abstraction without a
DECISIONS.mdentry backing it. Tie the floor toDECISIONS.mdandINVARIANTS_AND_NON_GOALS.mdso safety-required structure is never trimmed away. (implement-approved-sliceandreview-hardenforce the same restraint at execution and review.) - For each phase or slice, define:
- objective
- exact scope
Scope:the explicit file paths or globs this slice creates or modifies (machine-readable, one path per entry). Consumed byimplement-fleetto compute parallelizable waves; an under-declared scope defeats the ADR-0041 file-scope disjointness gate, so list every file the slice will touch.Depends-on:the slice IDs this slice requires, ornone(machine-readable). WithScope, this defines the slice DAG.Deliverable-tag:WHEN a slice's deliverable is user-facing product content or a new user-facing surface, the slice SHALL carryDeliverable-tag: user-facing-contentorDeliverable-tag: new-user-facing-surface(ADR-0091); the closure floors key off this tag, and an untagged content deliverable is caught by the closing floor's backstop and flagged. Omit for slices with no user-facing deliverable. Derive the tag by reading the## Requested deliverablesledger in TASK_STATE.md first: every ledger row taggeduser-facing-contentornew-user-facing-surfaceSHALL have its covering slice(s) carry the matching tag; dropping a ledger-carried tag is flagged in### Command transcriptand blocks atapprove-plan's consistency gate (ADR-0103). Tagging test (ADR-0103, extending ADR-0091): the tag applies when a human end user experiences the content or reaches the surface through ANY client, visual or not (an MCP prompt surface reached via chat tags; an MCP tool whose RESULT a human end user consumes in the client tags; a tool or API consumed only by the model or another machine does not); machine-to-machine APIs and developer-facing CLIs do not tag.Decision-ref:theDECISIONS.mdD-N entry (or entries) this slice implements, ornonewith a one-line reason. Optional but preferred:approve-plan's consistency gate reads it when present and falls back to content-level tracing otherwise (ADR-0103); a task with no locked decisions passes that gate without this field.Status:initializedplanned; valuesplanned | approved | implemented (pending closure) | closed; mutated only byimplement-approved-slice/slice-closureper the K.2 co-writer rule.- why this order is safe
- key risks
- validation approach
- exit criteria -- MUST use EARS template (per ADR-0031). Event-driven form preferred for slices:
WHEN the SHALL. Banned softeners in canonical sentence: should, may, appropriate, sensible, reasonable. Free-form prose for rationale is OK; the canonical sentence must use SHALL keyword. - work complexity for executing that slice: exactly one of
LOW,MEDIUM,HIGH(definitions inWORKFLOW_OPERATING_SYSTEM.md), plus one line why (no model names) - asset-fidelity decision (design-to-code slices only, per ADR-0051):
Asset-fidelity: real-MCP(the slice pulls the exact Figma node before editing) orAsset-fidelity: placeholder(with a one-line reason and the approval). Omit for non-design slices; when a slice implements from a design source and nothing is stated, the default isreal-MCPand the execution gate enforces it. - optional
STOP conditions:for Disciplined or Strict-tier and boundary slices, the observable signals that mean the executor must halt and escalate rather than improvise (scope creep beyond the declaredScope, a failing test the slice did not introduce, an unexpected schema or contract touch). Omit for simple slices; do not over-specify, since false halts add ceremony. - Explicitly identify:
- what must change
- what must not change
- what remains uncertain
- Include rollout and rollback notes when runtime behavior is affected.
- If planning cannot proceed safely due to unresolved ambiguity, stop and recommend the correct prior command instead.
- If the plan would introduce new behavioral commitments not supported by
DECISIONS.mdand evidence, label them as PROPOSED and route to the smallest decisive upstream command (targeted-questions,decision-interview,resolve-contract-gaps, orcontract-signoff) instead of pretending they are already decided. - Retrofit mode (annotate-only; the adoption bridge for
implement-fleetper ADR-0041). When the caller signalsretrofitorannotate-only(asks to make an existing plan fleet-ready, or arrives here fromimplement-fleetStep 1 because slices lackScope/Depends-on) and a validIMPLEMENTATION_PLAN.mdalready exists: - Do NOT re-derive the plan or change any slice's intent, objective, or ordering. This mode only backfills structured fields and computes waves; it is not a re-plan.
- Read
TASK_STATE.mdto determine which slices are already executed. Annotate and wave-compute over the REMAINING (not-yet-executed) slices only. - For each remaining slice, infer
Scope(the files it will touch, grounded in the slice's prose scope plus a read of the real codebase, never guessed) andDepends-on(from the stated ordering and from shared files). Tag any scope the model is unsure of with a one-line(inferred; verify)note so the user can correct it before dispatch; an under-declared scope defeats the ADR-0041 disjointness gate. - Compute the Execution waves over the remaining slices and state the parallelizability verdict: which waves have size >= 2 (where
implement-fleethelps) versus a pure chain (where it does not). - Persist the annotation as a PROPOSED delta to the existing
## Slicessection (the section this command already owns); do not rewrite unchanged slice content. - Handoff routes to
implement-fleetwhen at least one remaining wave has size >= 2, otherwise toimplement-approved-slicefor the next slice. - NO_OP when every remaining slice already declares
ScopeandDepends-onand the Execution waves are current. - Spec-ingest mode (
--spec, per ADR-0061). When the caller passes--spec(a spec, PRD, or requirements document), derive the plan FROM the spec instead of from a free-form task description: - Read the spec in full. Enumerate every named feature, requirement, or acceptance item as a discrete
spec item. Keep the spec's own wording as the item label so coverage stays auditable; do not paraphrase an item away. - Map each spec item to one or more slices. The mapping is many-to-many but TOTAL: every spec item MUST trace to at least one slice ID. A slice may cover several small items; a large item may span several slices.
- Run the deliverable-coverage check (ADR-0056): seed or extend the
## Requested deliverablesledger inTASK_STATE.mdwith one row per spec item (taggedin-scope), then assert each row maps to a slice. A spec item with no slice is a silent omission: surface it in the canonical three-field marker form `[NEEDS CLARIFICATION: spec item "" maps to no slice | include it as a slice or de-scope it | add a covering slice, or record a de-scope in DECISIONS
…
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: Mozurok
- Source: Mozurok/fhorja.dev
- License: MIT
- Homepage: https://fhorja.dev
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.