بنقرة واحدة
he-plan
Produces a PLANS.md-compliant executable plan from a spec. Use after intake.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Produces a PLANS.md-compliant executable plan from a spec. Use after intake.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | he-plan |
| description | Produces a PLANS.md-compliant executable plan from a spec. Use after intake. |
| argument-hint | [slug or docs/specs/<slug>-spec.md] |
Convert a spec into a self-contained, novice-guiding execution plan.
he-spec (and optionally he-research/he-spike) when the initiative is ready for planningdocs/PLANS.md is law — follow it literally.he-plan after final user approval and before transition.called_from matches this skill (bash scripts/runbooks/select-runbooks.sh --skill he-plan), but never waive/override anything codified here.plan_mode for prose depth.docs/specs/<slug>-spec.md. If invoked with an external document (file path, pasted content) instead of a docs/specs/<slug>-spec.md reference:
a. Read the external document and extract: purpose, requirements, constraints, tech decisions, open questions.
b. If the external doc is rich enough to plan from (has clear requirements + success criteria), proceed directly — don't force the user through he-spec first.
c. If the external doc has significant gaps, offer two paths: (a) run he-spec to normalize it first, or (b) fill gaps inline via Phase 0.5 questions and proceed.
d. Either way, the plan references the original external doc in its Context and Orientation section alongside any normalized spec.docs/spikes/<slug>-spike.md (if a spike was run — fold findings directly into the plan).bash scripts/runbooks/select-runbooks.sh --skill he-plan and read any returned runbooks. Apply their additions throughout — they must not waive or override gates codified here.When no spec exists or the spec is thin, ask focused questions ONE AT A TIME until approach is clear or user says "proceed." If questioning reveals significant ambiguity, recommend returning to he-spec.
Stop and confirm with the user before proceeding. Present and confirm ONE AT A TIME — not as a single wall of text.
Verify codebase matches spec assumptions. If divergence found (spec references nonexistent module, API works differently), stop and surface: "The spec assumes X, but the codebase actually Y. How should we handle this?"
Present and confirm each item ONE AT A TIME:
For each item, state your recommendation and ask if user agrees. Escape hatch: "proceed" or "looks good" accepts current state and skips remaining items.
If running autonomously with no interactive tool available, log the proposed approach in Decision Log with an Awaiting confirmation note and pause.
Ask: "How much detail do you want in the plan?"
docs/DOMAIN_DOCS.md for domain docs relevant to this initiative.Decision Log.docs/PLANS.md in full before writing.## Progress (required).docs/PLANS.md:
Purpose / Big Picture, Progress, Surprises & Discoveries, Decision Log, Outcomes & Retrospective, Context and Orientation, Milestones, Plan of Work, Concrete Steps, Validation and Acceptance, Idempotence and Recovery, Artifacts and Notes, Interfaces and Dependencies, Pull Request, Review Findings, Verify/Release Decision, Revision NotesProgress, Surprises & Discoveries, Decision Log, Outcomes & Retrospective, and Revision Notes as work evolves.Progress checkbox entry must include a timestamp and a stable progress ID (P1, P2, ...).Plan of Work, Concrete Steps, and Validation and Acceptance.Idempotence and Recovery.Artifacts and Notes as work progresses.After drafting the plan, run an interactive review loop before tuning depth:
git add docs/plans/active/<slug>-plan.md && git commit -m "docs(plan): <slug> draft"he-plan again (full review pass)docs(plan): <slug> revision — <what changed>), show diff (git diff HEAD~1 -- docs/plans/active/<slug>-plan.md).Combine plan_mode (structural completeness from spec) with user's detail_level choice (prose depth from Phase 1c):
plan_mode controls structure: trivial = abbreviated plan, lightweight = fewer milestones, execution = full depth. All modes include every required section.detail_level controls prose: minimal = terse, more = standard, a_lot = exhaustive context and step-by-step guidance.For example, execution + minimal = full milestone structure but concise prose. lightweight + a_lot = fewer milestones but deeply explained.
he-plan Domain Doc PopulationAfter final user approval and before transition:
he-plan, fix docs, and re-run checks before transition.docs/PLANS.md is the instruction contract.docs/PLANS.md while running he-plan.Use templates/plan-template.md.
docs/plans/active/<slug>-plan.mddocs/plans/active/<slug>-plan.mdProgress contains timestamped checklist entries with stable progress IDsDecision Log, Surprises & Discoveries, Outcomes & Retrospective, and Revision Notes are initializedhe-planhe-spec or he-research for clarification rather than guessing.he-plan after approval.| Anti-Pattern | Better Approach |
|---|---|
Planning without reading docs/PLANS.md | Always read PLANS.md in full before drafting |
| Vague milestones ("implement the feature") | Observable outcomes with proof commands |
Checklists outside ## Progress | Narrative prose for non-progress sections |
| Implementation-light plan that a novice can't follow | Concrete file paths, commands, expected outputs |
| Skipping domain doc check | Identify needs early, then populate domain docs at the end-of-he-plan gate |
After the review loop, present the plan with explicit next actions. Use AskUserQuestion (or equivalent) to offer:
he-implement (Recommended)he-plan again (full review pass for gaps, risks, and edge cases)If the user chooses option 1, complete Phase 4.5 domain-doc population before transition.
Do not transition out of he-plan without explicit user approval of the final plan. If the user requests changes, revise and re-present until approved.
If running autonomously with no interactive tool available, log the plan as Awaiting user approval in Decision Log and pause. Do not proceed to implementation.
Bootstraps a repository for the harness-engineered workflow by creating AGENTS.md, docs/specs, docs/spikes, docs/plans, docs/generated, and baseline tracking files aligned to the PLANS.md contract.
Opens/updates GitHub PRs, checks CI, responds to feedback, and merges after GO using gh CLI with explicit consent gates.
Captures paired browser bug evidence videos using agent-browser (`failure` before fix and `resolution` after fix), stores raw captures in `tmp/artifacts`, and supports minimal manual promotion for durable review evidence. Use for browser/UI bug fixes and release evidence.
Converts fuzzy requests into a concrete initiative spec in docs/specs using a single slug and measurable success criteria. Use at the start of non-trivial work.
Converts post-release outcomes into durable docs and mechanical guardrails, clears generated scratchpads, and archives the initiative plan for reuse.
Runs agent-first review fanout across correctness, architecture, security, data, and simplicity, then enforces priority gates before release verification.