Communitygithub.com

SamuelChien/mega-skills-collection

此技能應在使用者詢問「SPAWN REQUEST 格式」、「代理報告」、「代理協調」、「平行代理」、「報告格式」、「代理通訊」,或需要了解代理在衝刺系統中如何協調時執行。在偵測到相關上下文時使用。根據技能用途以相關片語觸發。

mega-skills-collection 是什麼?

此技能定義了 Sprint 外掛程式中多代理衝刺執行的協調協議。它規範了專案架構師如何生成實作與測試代理,代理如何透過結構化報告溝通結果,以及平行代理如何避免衝突。主要支援 Claude Code 等 AI 代理平台,透過 SPAWN REQUEST 格式啟動代理,並收集包含完成工作、修改檔案、測試結果與規範符合狀態的 AGENT REPORT。其核心價值在於將大型開發任務分解為可平行處理的領域邊界(如後端、前端、CI/CD),並透過共享合約(如 api-contract.md)保持同步,同時透過迭代機制(最多 5 次)和錯誤處理表格確保流程穩健。

相容平台✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/SamuelChien/mega-skills-collection/tree/HEAD/agent-patterns

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

代理模式

概述

代理模式定義了 Sprint 外掛程式中多代理衝刺執行的協調協議。它規範了專案架構師如何生成實作與測試代理,代理如何透過結構化報告溝通結果,以及平行代理如何避免衝突。

前置需求

  • 已安裝並設定 Sprint 外掛程式 (/plugin install sprint)
  • 已在 .claude/sprint/[N]/ 初始化 Sprint 目錄
  • 已撰寫 specs.md,包含明確範圍與測試設定
  • 熟悉衝刺階段生命週期(請參閱 sprint-workflow 技能)

指示

  1. 使用 SPAWN REQUEST 格式結構化每個代理生成。包含代理名稱、應讀取的規格檔案以及任何範圍限制:
    SPAWN REQUEST
    Agent: python-dev
    Specs: .claude/sprint/1/backend-specs.md
    Contract: .claude/sprint/1/api-contract.md
    Scope: Authentication endpoints only
    
  2. 確保每個生成的代理僅接收與其範圍相關的檔案。傳遞 api-contract.md 作為共享介面,以便後端與前端代理保持同步。
  3. 在每個代理完成後收集結構化報告。每份報告必須包含:完成的工作、修改的檔案、新增的測試,以及相對於規格的符合狀態。
  4. 當平行執行代理時,按領域邊界劃分工作(例如後端 vs. 前端 vs. CI/CD)。切勿將重疊的檔案路徑分配給並行代理。
  5. 將代理報告回饋給專案架構師進行審查。架構師決定是否要迭代(以縮小的規格重新生成)或進入下一階段。
  6. 對於測試代理,傳遞 ${CLAUDE_SKILL_DIR}/references/ui-test-report.md 中顯示的 UI 測試報告格式,使結果遵循一致的架構,包含測試計數、涵蓋率、失敗與主控台錯誤。

輸出

  • 由衝刺協調器消費以啟動代理的 SPAWN REQUEST 區塊
  • 結構化代理報告,包含:摘要、修改的檔案、測試結果與符合狀態
  • 包含通過/失敗計數、涵蓋率詳細資訊、失敗描述與主控台錯誤日誌的 UI 測試報告
  • 每次迭代後反映已完成與剩餘工作的更新 status.md

錯誤處理

錯誤原因解決方案
代理接收錯誤的規格檔案SPAWN REQUEST 中的路徑不正確在生成前驗證衝刺目錄編號與檔案名稱
平行代理的檔案修改重疊範圍邊界未明確定義按領域劃分工作;為每個代理分配不同的目錄
代理報告缺少必要欄位代理指示缺少報告格式在代理提示中包含結構化報告範本
無限迭代迴圈規格從未完全滿足檢查 status.md 以找出阻礙問題;協調器在 5 次迭代後暫停
找不到代理SPAWN REQUEST 中的代理名稱拼寫錯誤驗證代理 markdown 檔案存在於 agents/ 目錄中

範例

生成平行實作代理:

SPAWN REQUEST
Agent: python-dev
Specs: .claude/sprint/1/backend-specs.md
Contract: .claude/sprint/1/api-contract.md

SPAWN REQUEST
Agent: nextjs-dev
Specs: .claude/sprint/1/frontend-specs.md
Contract: .claude/sprint/1/api-contract.md

兩個代理共用同一個 api-contract.md 以確保 API 相容性。

結構化代理報告格式:

AGENT REPORT
Agent: python-dev
Status: COMPLETE
Files Modified: src/auth/routes.py, src/auth/models.py, tests/test_auth.py
Tests: 12 passed, 0 failed
Conformity: All backend-specs requirements implemented
Notes: JWT token expiry set to 24h per spec

測試代理協調:

SPAWN REQUEST
Agent: qa-test-agent
Specs: .claude/sprint/1/specs.md
Run After: python-dev, nextjs-dev

SPAWN REQUEST
Agent: ui-test-agent
Specs: .claude/sprint/1/specs.md
Run After: qa-test-agent

資源

  • ${CLAUDE_SKILL_DIR}/references/ui-test-report.md -- 包含涵蓋率與失敗追蹤的結構化 UI 測試報告格式
  • 衝刺工作流程技能,提供階段生命週期上下文
  • API 合約技能,用於共享介面設計
  • Sprint 外掛程式 README,提供代理架構總覽

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

SamuelChien/mega-skills-collection

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

SamuelChien/mega-skills-collection

Arquitecto de Soluciones Principal y Consultor Tecnológico de Andru.ia. Diagnostica y traza la hoja de ruta óptima para proyectos de IA en español.

SamuelChien/mega-skills-collection

Ingeniero de Sistemas de Andru.ia. Diseña, redacta y despliega nuevas habilidades (skills) dentro del repositorio siguiendo el Estándar de Diamante.

SamuelChien/mega-skills-collection

Estratega de Inteligencia de Dominio de Andru.ia. Analiza el nicho específico de un proyecto para inyectar conocimientos, regulaciones y estándares únicos del sector. Actívalo tras definir el nicho.

SamuelChien/mega-skills-collection

2D game development principles. Sprites, tilemaps, physics, camera.

SamuelChien/mega-skills-collection

3D game development principles. Rendering, shaders, physics, cameras.

SamuelChien/mega-skills-collection

Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences.

SamuelChien/mega-skills-collection

Accessibility audit skill for scanning, fixing, and verifying WCAG 2.2 Level A and AA compliance across React, Next.js, Vue, Angular, Svelte, and plain HTML codebases. Use when auditing accessibility, fixing a11y violations, checking color contrast, generating compliance reports, or integrating accessibility checks into CI/CD pipelines.

SamuelChien/mega-skills-collection

Ab Test Analyzer - Auto-activating skill for Data Analytics. Triggers on: ab test analyzer, ab test analyzer Part of the Data Analytics skill category.

SamuelChien/mega-skills-collection

A B Test Config Creator - Auto-activating skill for ML Deployment. Triggers on: a b test config creator, a b test config creator Part of the ML Deployment skill category.

SamuelChien/mega-skills-collection

When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "conversion experiment," "statistical significance," or "test this." For tracking implementation, see analytics-tracking.

SamuelChien/mega-skills-collection

Acceptance Criteria Creator - Auto-activating skill for Enterprise Workflows. Triggers on: acceptance criteria creator, acceptance criteria creator Part of the Enterprise Workflows skill category.

SamuelChien/mega-skills-collection

Use when a coding task should be driven end-to-end from issue intake through implementation, review, deployment, and acceptance verification with minimal human re-intervention.

SamuelChien/mega-skills-collection

Accessibility Audit Runner - Auto-activating skill for Frontend Development. Triggers on: accessibility audit runner, accessibility audit runner Part of the Frontend Development skill category.

SamuelChien/mega-skills-collection

You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.

SamuelChien/mega-skills-collection

Web accessibility patterns for WCAG 2.2 compliance including ARIA, keyboard navigation, screen readers, and testing

SamuelChien/mega-skills-collection

Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.

SamuelChien/mega-skills-collection

Create unified specification packages across Business, Development, and Design teams. Staged elaboration (L0 Vision → L1 Requirements → L2 Team Detail → L3 Acceptance Criteria) to build shared understanding. Does not write code.

SamuelChien/mega-skills-collection

Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect enrichment tools or your CRM. Trigger with "research [company]", "look up [person]", "intel on [prospect]", "who is [name] at [company]", or "tell me about [company]".

SamuelChien/mega-skills-collection

Validate messaging consistency across website, GitHub repos, and local documentation generating read-only discrepancy reports. Use when checking content alignment or finding mixed messaging. Trigger with phrases like "check consistency", "validate documentation", or "audit messaging".

相關技能