SPARC methodology commands — initialize, track, advance, and report on Specification-Pseudocode-Architecture-Refinement-Completion workflows
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-ruflo-78480c582f6a ,按照其中的说明把「ruflo-sparc」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
$ARGUMENTS
Handle SPARC methodology commands based on the subcommand:
sparc init <feature>Initialize a new SPARC workflow for the given feature:
mcp__plugin_ruflo-core_ruflo__memory_store with namespace sparc-state, key current-phase-{slug}, value { "phase": 1, "phaseName": "Specification", "feature": "<feature>", "startedAt": "<ISO timestamp>", "gateAttempts": 0, "artifacts": [] }mcp__plugin_ruflo-core_ruflo__memory_store with namespace sparc-phases, key spec-{slug}, value { "status": "pending", "requirements": [], "acceptanceCriteria": [], "constraints": [], "edgeCases": [] }/sparc status to view progress or begin the specification phase with /sparc-spec <feature-description>."sparc statusShow current SPARC phase and gate check results:
mcp__plugin_ruflo-core_ruflo__memory_search with namespace sparc-state and query current-phase to list all active SPARC workflowsmcp__plugin_ruflo-core_ruflo__memory_search with namespace sparc-gates and query matching the feature slug to list gate check history[=====> ] Phase 3/5 — Architecturesparc advanceAttempt to pass the current gate and advance to the next phase:
sparc-state namespacesparc-phases namespacesparc-gates namespace with key gate-{phase}-{slug}-{timestamp}sparc-stategateAttempts in statesparc phase <phase-name>Jump to a specific phase (for re-entry or iteration):
specification, pseudocode, architecture, refinement, completion (or spec, pseudo, arch, refine, complete as aliases, or a number 1-5)sparc-state namespace/sparc advance from previous phases to ensure quality."sparc reportGenerate a full SPARC methodology report:
sparc-state, sparc-phases, and sparc-gates namespaces for the active feature# SPARC Report: {Feature}
## Phase Summary
| Phase | Status | Gate | Attempts | Duration |
|-------|--------|------|----------|----------|
| 1 - Specification | Complete | Passed | 1 | 2h |
| 2 - Pseudocode | Complete | Passed | 2 | 3h |
| 3 - Architecture | In Progress | — | 0 | 1h |
| 4 - Refinement | Pending | — | — | — |
| 5 - Completion | Pending | — | — | — |
## Specification
- Requirements: [list]
- Acceptance Criteria: [list]
- Constraints: [list]
## Pseudocode
- Algorithms: [summary]
- Data Structures: [summary]
## Architecture
- Bounded Contexts: [list]
- API Contracts: [summary]
## Gate History
[chronological list of gate attempts with pass/fail details]
## Traceability Matrix
| Acceptance Criterion | Test | Status |
|---------------------|------|--------|
| AC-1: ... | test_xxx | Pass |