Communitygithub.com

SamuelChien/mega-skills-collection

执行此技能用于当用户询问关于“SPAWN REQUEST 格式”、“代理报告”、“代理协调”、“并行代理”、“报告格式”、“代理通信”或需要了解代理如何在冲刺系统中协调时。在检测到相关上下文时使用。根据技能目的触发相关短语。

mega-skills-collection 是什么?

此技能定义了多代理冲刺执行中的协调协议,即“Agent Patterns”。它管理主架构师如何生成实现和测试代理,代理如何通过结构化报告进行通信,以及并行代理如何避免冲突。技能支持任何使用 Sprint 插件的平台(如 Claude Code),并依赖于初始化的 sprint 目录和清晰的规范文件。核心机制包括“SPAWN REQUEST”格式(指定代理名称、规范文件和范围约束)、结构化代理报告(包含工作完成情况、文件修改、测试结果和符合性状态),以及通过域边界划分进行并行代理协调。它还提供了错误处理表以解决路径错误、重叠修改和缺失报告字段等问题,并通过示例展示了并行实现代理和测试代理协调的实际用例。通过确保结构化的代理通信和范围管理,该技能显著提高了多代理工作流的一致性和可扩展性。

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

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

代理模式 (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/ 目录中存在代理 markdown 文件

示例

生成并行实现代理:

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 测试报告格式,包含覆盖率和失败跟踪
  • Sprint 工作流技能,用于阶段生命周期上下文
  • 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".

相关技能