mirror of
https://github.com/GuDaStudio/commands.git
synced 2026-03-22 19:18:52 +08:00
2.6 KiB
2.6 KiB
name: GudaSpec: Implementation
description: Execute approved OpenSpec changes via multi-model collaboration with Codex/Gemini.
category: GudaSpec
tags: [openspec, implementation, multi-model, codex, gemini]
Guardrails
- Never apply external model prototypes directly—all Codex/Gemini outputs serve as reference only and must be rewritten into readable, maintainable, production-grade code.
- Keep changes tightly scoped to the requested outcome; enforce side-effect review before applying any modification.
- Minimize documentation—avoid unnecessary comments; prefer self-explanatory code.
- Refer to
openspec/AGENTS.md(located inside theopenspec/directory—runls openspecoropenspec updateif you don't see it) for additional OpenSpec conventions or clarifications.
Steps Track these steps as TODOs and complete them one by one.
- Run
openspec viewto inspect current project status and reviewActive Changes; ask the user to confirm which proposal ID they want to implement and wait for explicit confirmation before proceeding. - Run
/openspec:apply <proposal_id>. - Work through tasks sequentially as defined in
tasks.md; but Don't complete all tasks intasks.mdat once. Just identify the smallest verifiable phase that can be quickly accomplished this time, and strictly control the context window for a single implementation. - Analyze each task in
tasks.mdand route to the appropriate model kernel:- Route A: Gemini Kernel — for frontend/UI/styling tasks (CSS, React, Vue, HTML, component design).
- Route B: Codex Kernel — for backend/logic/algorithm tasks (API, data processing, business logic, debugging).
- Mandatory constraint: When communicating with Codex/Gemini, the prompt must explicitly require returning a
Unified Diff Patchonly; external models are strictly forbidden from making any real file modifications.
- Upon receiving the diff patch from Codex/Gemini, never apply it directly; rewrite the prototype by removing redundancy, ensuring clear naming and simple structure, aligning with project style, and eliminating unnecessary comments.
- Before applying any change, perform a mandatory side-effect review: verify the change does not exceed
tasks.mdscope, does not affect unrelated modules, and does not introduce new dependencies or break existing interfaces; make targeted corrections if issues are found. - After completing the task, run multi-model review to verify.
- After corrections are completed, mark the task item as
- [x]intasks.md. - Once all tasks are confirmed complete, run
/openspec:archive.