跳到正文
Skillpedia
通用编程81k · #1538

sparc-methodology

它能做什么

这项技能引导智能体遵循一套结构化的开发方法,共五个阶段:规格说明、伪代码、架构、细化和完成。适合构建复杂功能、并希望先规划后编码的人。

适用场景

  • ✓当你正在构建一个包含多个部分的新功能的时候。
  • ✓当需求不明确,需要先弄清楚的时候。
  • ✓当你计划的改动会影响整体系统设计的时候。

技能链接

https://github.com/ruvnet/ruflo/blob/main/.agents/skills/sparc-methodology/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ruvnet/ruflo/blob/main/.agents/skills/sparc-methodology/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请用 SPARC 方法规划我们的新账单功能,从规格说明开始。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会依次完成每个阶段,先编写需求,再编写伪代码、设计,然后是细化后的实现,并记录每个步骤。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Sparc Methodology Skill

Purpose

SPARC development workflow: Specification, Pseudocode, Architecture, Refinement, Completion. A structured approach for complex implementations that ensures thorough planning before coding.

When to Trigger

  • new feature implementation
  • complex implementations
  • architectural changes
  • system redesign
  • integration work
  • unclear requirements

When to Skip

  • simple bug fixes
  • documentation updates
  • configuration changes
  • well-defined small tasks
  • routine maintenance

Commands

Specification Phase

Define requirements, acceptance criteria, and constraints

npx @claude-flow/cli hooks route --task "specification: [requirements]"

Example:

npx @claude-flow/cli hooks route --task "specification: user authentication with OAuth2, MFA, and session management"

Pseudocode Phase

Write high-level pseudocode for the implementation

npx @claude-flow/cli hooks route --task "pseudocode: [feature]"

Example:

npx @claude-flow/cli hooks route --task "pseudocode: OAuth2 login flow with token refresh"

Architecture Phase

Design system structure, interfaces, and dependencies

npx @claude-flow/cli hooks route --task "architecture: [design]"

Example:

npx @claude-flow/cli hooks route --task "architecture: auth module with service layer, repository, and API endpoints"

Refinement Phase

Iterate on the design based on feedback

npx @claude-flow/cli hooks route --task "refinement: [feedback]"

Example:

npx @claude-flow/cli hooks route --task "refinement: add rate limiting and brute force protection"

Completion Phase

Finalize implementation with tests and documentation

npx @claude-flow/cli hooks route --task "completion: [final checks]"

Example:

npx @claude-flow/cli hooks route --task "completion: verify all tests pass, update API docs, security review"

SPARC Coordinator

Spawn SPARC coordinator agent

npx @claude-flow/cli agent spawn --type sparc-coord --name sparc-lead

Scripts

Script Path Description
sparc-init .agents/scripts/sparc-init.sh Initialize SPARC workflow for a new feature
sparc-review .agents/scripts/sparc-review.sh Run SPARC phase review checklist

References

Document Path Description
SPARC Overview docs/sparc.md Complete SPARC methodology guide
Phase Templates docs/sparc-templates.md Templates for each SPARC phase

Best Practices

  1. Check memory for existing patterns before starting
  2. Use hierarchical topology for coordination
  3. Store successful patterns after completion
  4. Document any new learnings
常见问题

SPARC 代表什么?

它代表规格说明(Specification)、伪代码(Pseudocode)、架构(Architecture)、细化(Refinement)和完成(Completion)。

什么时候应该跳过它?

这项技能说明,对于简单的错误修复、文档更新和小型配置改动,应跳过它。

它需要特殊工具吗?

这项技能使用 claude-flow 命令来分派每个阶段,所以这些工具需要可以使用。

详情

作者的原始描述

SPARC development workflow: Specification, Pseudocode, Architecture, Refinement, Completion. A structured approach for complex implementations that ensures thorough planning before coding. Use when: new feature implementation, complex implementations, architectural changes, system redesign, integration work, unclear requirements. Skip when: simple bug fixes, documentation updates, configuration changes, well-defined small tasks, routine maintenance.

repo: ruvnet/ruflo

热度

GitHub 星标
81k
排名
#1538
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能