Communitygithub.com

SamuelChien/mega-skills-collection

エージェント間の連携プロトコルを定義し、スプリント内でのマルチエージェント実行を調整します。「SPAWN REQUEST形式」「エージェント報告」「エージェント調整」「並列エージェント」「レポート形式」「エージェント通信」など、エージェントがスプリントシステム内でどのように連携するかを理解する必要がある場合に使用します。

mega-skills-collection とは?

Agent Patternsスキルは、Sprintプラグインにおけるマルチエージェントスプリント実行のための調整プロトコルを定義します。このスキルは、プロジェクトアーキテクトが実装エージェントやテストエージェントを起動する方法、エージェントが構造化レポートを介して結果を伝達する方法、並列エージェント間の競合を回避する方法を規定します。主にClaude CodeやCodexなどのAIエージェント環境で動作し、SPAWN REQUEST形式を使用してエージェントにスコープや仕様を割り当て、完了後に構造化されたエージェントレポートを収集することで、大規模なタスクを分割して効率的に実行します。このスキルは、バックエンドとフロントエンドのエージェントを並列実行する際に、共有インターフェース(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 Patternsは、Sprintプラグイン内でのマルチエージェントスプリント実行のための調整プロトコルを定義します。プロジェクトアーキテクトが実装エージェントやテストエージェントを起動する方法、エージェントが構造化レポートを介して結果を伝達する方法、並列エージェント間の競合を回避する方法を規定します。

前提条件

  • Sprintプラグインがインストールされ、設定されていること (/plugin install sprint)
  • Sprintディレクトリが .claude/sprint/[N]/ に初期化されていること
  • 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のエージェント名が間違っている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".

関連スキル