Chuyển đến nội dung
Skillpedia
Lập trình chung102k · #839

sparc-methodology

Skill này làm gì

Skill này hướng dẫn AI qua phương pháp SPARC: specification (đặc tả), pseudocode, architecture (kiến trúc), refinement (tinh chỉnh) và completion (hoàn tất). Skill dành cho lập trình viên muốn một cách từng bước rõ ràng để xây dựng phần mềm.

Khi nào nên dùng

  • ✓Khi bạn muốn một tính năng mới được lên kế hoạch từng bước trước khi viết bất kỳ code nào.
  • ✓Khi bạn cần chia một dự án lớn thành các giai đoạn rõ ràng với test đi trước.
  • ✓Khi bạn muốn nhiều trợ lý AI cùng làm các phần khác nhau của một dự án.

Liên kết skill

https://github.com/ruvnet/RuView/blob/main/.claude/skills/sparc-methodology/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/ruvnet/RuView/blob/main/.claude/skills/sparc-methodology/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Dùng phương pháp SPARC để lên kế hoạch và xây dựng một hệ thống đặt chỗ đơn giản, bắt đầu từ các yêu cầu.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI đi qua năm giai đoạn, bắt đầu từ yêu cầu, rồi pseudocode, thiết kế, code đã tinh chỉnh và kiểm tra cuối cùng. Nó dùng test và đánh giá trong suốt quá trình để giữ chất lượng cao.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

SPARC Methodology - Comprehensive Development Framework

Overview

SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) is a systematic development methodology integrated with Claude Flow's multi-agent orchestration capabilities. It provides 17 specialized modes for comprehensive software development, from initial research through deployment and monitoring.

Table of Contents

  1. Core Philosophy
  2. Development Phases
  3. Available Modes
  4. Activation Methods
  5. Orchestration Patterns
  6. TDD Workflows
  7. Best Practices
  8. Integration Examples
  9. Common Workflows

Core Philosophy

SPARC methodology emphasizes:

  • Systematic Approach: Structured phases from specification to completion
  • Test-Driven Development: Tests written before implementation
  • Parallel Execution: Concurrent agent coordination for 2.8-4.4x speed improvements
  • Memory Integration: Persistent knowledge sharing across agents and sessions
  • Quality First: Comprehensive reviews, testing, and validation
  • Modular Design: Clean separation of concerns with clear interfaces

Key Principles

  1. Specification Before Code: Define requirements and constraints clearly
  2. Design Before Implementation: Plan architecture and components
  3. Tests Before Features: Write failing tests, then make them pass
  4. Review Everything: Code quality, security, and performance checks
  5. Document Continuously: Maintain current documentation throughout

Development Phases

Phase 1: Specification

Goal: Define requirements, constraints, and success criteria

  • Requirements analysis
  • User story mapping
  • Constraint identification
  • Success metrics definition
  • Pseudocode planning

Key Modes: researcher, analyzer, memory-manager

Phase 2: Architecture

Goal: Design system structure and component interfaces

  • System architecture design
  • Component interface definition
  • Database schema planning
  • API contract specification
  • Infrastructure planning

Key Modes: architect, designer, orchestrator

Phase 3: Refinement (TDD Implementation)

Goal: Implement features with test-first approach

  • Write failing tests
  • Implement minimum viable code
  • Make tests pass
  • Refactor for quality
  • Iterate until complete

Key Modes: tdd, coder, tester

Phase 4: Review

Goal: Ensure code quality, security, and performance

  • Code quality assessment
  • Security vulnerability scanning
  • Performance profiling
  • Best practices validation
  • Documentation review

Key Modes: reviewer, optimizer, debugger

Phase 5: Completion

Goal: Integration, deployment, and monitoring

  • System integration
  • Deployment automation
  • Monitoring setup
  • Documentation finalization
  • Knowledge capture

Key Modes: workflow-manager, documenter, memory-manager


Available Modes

Core Orchestration Modes

orchestrator

Multi-agent task orchestration with TodoWrite/Task/Memory coordination.

Capabilities:

  • Task decomposition into manageable units
  • Agent coordination and resource allocation
  • Progress tracking and result synthesis
  • Adaptive strategy selection
  • Cross-agent communication

Usage:

mcp__claude-flow__sparc_mode {
  mode: "orchestrator",
  task_description: "coordinate feature development",
  options: { parallel: true, monitor: true }
}

swarm-coordinator

Specialized swarm management for complex multi-agent workflows.

Capabilities:

  • Topology optimization (mesh, hierarchical, ring, star)
  • Agent lifecycle management
  • Dynamic scaling based on workload
  • Fault tolerance and recovery
  • Performance monitoring

workflow-manager

Process automation and workflow orchestration.

Capabilities:

  • Workflow definition and execution
  • Event-driven triggers
  • Sequential and parallel pipelines
  • State management
  • Error handling and retry logic

batch-executor

Parallel task execution for high-throughput operations.

Capabilities:

  • Concurrent file operations
  • Batch processing optimization
  • Resource pooling
  • Load balancing
  • Progress aggregation

Development Modes

coder

Autonomous code generation with batch file operations.

Capabilities:

  • Feature implementation
  • Code refa
Câu hỏi thường gặp

Các chữ cái trong SPARC có nghĩa là gì?

Specification (đặc tả), Pseudocode, Architecture (kiến trúc), Refinement (tinh chỉnh) và Completion (hoàn tất).

Nó có bao nhiêu chế độ?

Skill mô tả 17 chế độ chuyên biệt cho các giai đoạn phát triển khác nhau.

Nó có cần nhiều agent AI không?

Skill được xây dựng quanh việc điều phối nhiều agent, nên nhiều trợ lý là một phần trong thiết kế của nó.

Chi tiết

Mô tả gốc của tác giả

SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) comprehensive development methodology with multi-agent orchestration

repo: ruvnet/RuView

Độ phổ biến

Sao GitHub
102k
Vị trí xếp hạng
#839
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự