一键导入
hapo-develop
Code execution engine: Reads specs and implements code end-to-end with automatic code review, self-healing, and visual implementation notes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Code execution engine: Reads specs and implements code end-to-end with automatic code review, self-healing, and visual implementation notes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Delegate implementation tasks from Claude Code to external CLI agents (Codex or Grok). Covers task-brief authoring, non-interactive dispatch, permission setup, background monitoring, resume, and independent verification of the returned work.
Analyze images/audio/video/documentation with Gemini API. Use for vision analysis, transcription, OCR, design extraction, and deep multimodal understanding.
Create, edit, analyze .docx Word documents. Use for document creation, tracked changes, comments, formatting preservation, text extraction, template modification.
Create polished frontend interfaces from designs/screenshots/videos. Use for web components, 3D experiences, replicating UI designs, quick prototypes, immersive interfaces, avoiding AI slop.
Extract text/tables, create, merge, split PDFs. Fill PDF forms programmatically. Use for PDF processing, generation, form filling, document analysis, batch operations.
Create, edit, analyze .pptx PowerPoint files. Use for presentations, slides, layouts, speaker notes, template modification, content extraction, slide generation.
| name | hapo:develop |
| description | Code execution engine: Reads specs and implements code end-to-end with automatic code review, self-healing, and visual implementation notes. |
| user-invocable | true |
| when_to_use | Invoke to implement specs and tasks end-to-end after scope is clear. |
| category | utilities |
| keywords | ["implementation","specs","build","orchestration"] |
| argument-hint | [feature-name|specs-directory-path] [task-file] [--flash] [--no-notes] |
| metadata | {"author":"haposoft","version":"1.0.0"} |
Reads the project specification (hapo:specs) and implements code through a disciplined task loop. In specific-task mode it behaves like a surgical executor. In full-spec mode it behaves like a sequential orchestrator, processing one unblocked task at a time and syncing state after every verified task.
Principles: YAGNI, KISS, DRY | Continuous execution | Smart self-healing
/hapo:develop <feature name>
/hapo:develop specs/<feature-name>
/hapo:develop <feature name> <specific-task-file.md>
/hapo:develop <feature name> --flash
/hapo:develop <feature name> <specific-task-file.md> --flash
/hapo:develop <feature name> --no-notes
Triggered by /hapo:develop <feature> <task-file>.
--flash is active.Triggered by /hapo:develop <feature> or /hapo:develop specs/<feature>.
spec.json.task_registry.pending + unblocked task only.--flash mode, missing full test proof does not stop the loop; record FLASH_UNVERIFIED and continue to the next unblocked task.Triggered by adding --flash to either specific-task or full-spec mode.
FLASH_UNVERIFIED receipt; do not claim production-ready quality./hapo:test <feature> before merge, release, or publish.Enabled by default for all develop modes. Disable only with --no-notes.
specs/<feature-name>/implementation-notes.html.references/implementation-notes-template.html when the file does not exist./hapo:specs update.| Thought (Excuse) | Reality (Rule) |
|---|---|
| "No need to scout first" | Coding without knowing the architecture is blind. ALWAYS call the inspector agent to scan files. |
| "Review process is too tedious, let me just finish it myself" | The system needs an audit trail through agents. ALWAYS delegate via Task tool. |
flowchart TD
A["/hapo:develop \u003cfeature\u003e"] --> B[Step 1: Load Spec]
B -->|Missing| Z[Stop: Run /hapo:specs]
B -->|Ready| C[Step 2: Task-Aware Scout (inspector)]
C --> D[Step 3: Implement Code (god-developer)]
D --> E{Flash Mode?}
E -->|No| Q[Step 4: Quality Gate: Test + Spec Review + Code Review + Evidence]
E -->|Yes| R[Step 4F: Flash Gate: Minimal Preflight + Scope Sanity]
Q -->|Fail| D
Q -->|Pass| F[Step 5: State Sync + Incremental Docs Sync]
R -->|Syntax/compile fail| D
R -->|Flash closeout| F
F --> H{More tasks?}
H -->|Yes| B
H -->|No| G[Final Integration Scout + Report Completion]
specs/<feature-name>/spec.json.ready_for_implementation status. If not ready, notify user.task_registry and verify it matches the requested task file(s). If registry is missing or stale, route to /hapo:sync audit <feature> before coding.--no-notes is present, initialize or update specs/<feature-name>/implementation-notes.html:
references/implementation-notes-template.html.task-R0-02...md), load ONLY that specific file into working memory.pending task from task_registry and load only that task packet.Task Test Plan & Verification Evidence / legacy Verification & Evidence)Canonical Contracts & Invariants from design.mdin_progress in both markdown and spec.json.task_registry, or route through /hapo:sync if the runtime expects the sync protocol.Agent(subagent_type="inspector", ...) before implementing EVERY active task. This is task-aware scouting, not a one-time global scan.scope_lockdesign.md contracts/invariantsspec.json.task_registryApp.tsx, routes, CLI command, worker registration, manifest, API consumer, etc.)Related Files that require a justified scope escapegod-developer OR directly write code, executing tasks specified in the loaded Markdown file(s) sequentially.--no-notes is present, append a note card to implementation-notes.html whenever any of these occurs:
decision: a necessary implementation choice not specified by the specspec-gap: missing or ambiguous spec detail discovered during implementationcodebase-reality: existing code requires a different integration path than the task impliedtradeoff: a conscious simplicity, performance, UX, or maintainability tradeoffscope-escape: a file or behavior outside Related Files must be touched for reachability/compile/integrationrisk: known residual risk, edge case, or deferred follow-upverification: command result, skipped check, manual proof, or evidence caveat[ ] to [/] in Spec files while coding is in progress. Do NOT mark [x] before Step 4 passes.Related Files from the task packet.scope escape and justify why it is required for the current task.task_registry.toHaveBeenCalledWith and replacing with toEqual(expect.any(...))) is a Critical violation.design.md states, STOP and route back to spec correction instead of inventing a new contract in code.The moment you finish coding, DO NOT proceed further. Switch to references/quality-gate.md and run the automatic review loop.
Mantra: Scope/spec compliance first, code quality second. All feedback from code-auditor must be addressed thoroughly: Score >= 9.5 & Zero Critical issues.
If --flash is active, use Step 4F: Flash Gate instead of the full automatic review loop.
Evidence section (or Task Test Plan & Verification Evidence / legacy Verification & Evidence)PRECHECK_FAIL outranks NO_TESTS. If compile/typecheck/build fails, the task is FAIL even when no test suite exists yet.NO_TESTS is NOT equivalent to PASS. If the task explicitly requires a test command or automated test proof, NO_TESTS is a FAIL or BLOCKED outcome until the requirement is satisfied or the spec is corrected.--flash only)Flash mode is an explicit speed trade-off requested by the user.
Preflight: skipped in --flash mode.⚡ Step 4 Flash Gate: tests skipped by --flash; preflight=<pass|skipped>; evidence=FLASH_UNVERIFIED.Test PASS, Evidence PASS, Auto-Approved, or production-ready.spec.json progress/timestamps/task_registry.--flash mode, Step 4F may sync the task only as a fast implementation closeout with an explicit FLASH_UNVERIFIED receipt.pending or in_progress and record the blocker instead of pretending completion.**Status:** donespec.json.task_registry[path].status = "done"completed_at + last_updated_atupdated_atEvidence section showing which commands ran, their outcomes, and what proof was observed--flash mode, the receipt MUST include Mode: --flash, Tests: skipped by user request, Evidence: FLASH_UNVERIFIED, and Next verification: /hapo:test <feature>.PRECHECK_FAIL, FAIL, UNVERIFIED, or an explicit note that the implementation intentionally simplified a named contract MUST NOT be synchronized as done.FLASH_UNVERIFIED is allowed only when --flash is explicitly present. It records fast implementation completion, not full verification completion.--no-notes is present, update implementation-notes.html before reporting the task:
done, blocked, or flash_unverified.verification note with exact commands run or Tests skipped by --flash.decision note: No spec gaps, tradeoffs, scope escapes, or deferred risks recorded for this task.Next verification: /hapo:test <feature> when any evidence is skipped, partial, or FLASH_UNVERIFIED.Docs impact: none | minor | major based on real behavior changes from the just-completed tasknone: record that explicitly in the completion report and stopminor or major: trigger docs-keeper to surgically update affected existing docs under ./docsrepomix unless docs-keeper truly cannot verify the required architecture/context from the code, spec, and current docsdocs-keeper, you MUST ensure the agent's Current Working Directory (CWD context) is explicitly set to the Workspace Root, NOT the inner package directory you were just coding in. Otherwise, docs-keeper will search for the root docs/ folder in the wrong place and crash.Docs impact.task_registry, pick the next unblocked pending task, and repeat from Step 1 for that task.main/route/CLI/worker/manifest/API consumer through the scoped feature surfaces.scope_lock, requirements.md, design.md, and all task Completion Criteria.code_done / next phase.references/quality-gate.md - Rules for the Code Review loop.references/subagent-patterns.md - Standard prompts for calling subagents.references/implementation-notes-template.html - Self-contained visual implementation notes template.