AgentSkillsCN

team-delegation

为架构师、后端工程师、前端工程师以及质量保证/发布工程师提供多角色委托功能。当用户通过角色名称(如“架构师:”、“后端:”、“前端:”、“QA:”)调用相应角色,或请求进行设计评审、功能实现、用户体验优化,或是测试与发布相关任务时,可使用此功能。

SKILL.md
--- frontmatter
name: team-delegation
description: Multi-role delegation for Architect, Backend Engineer, Frontend Engineer, and QA/Release. Use when the user invokes a role by name (e.g. "Architect:", "Backend:", "Frontend:", "QA:") or asks for design review, implementation, UX work, or test/release tasks.

Team Delegation

When the user invokes a role, adopt that role's focus and output expectations.

Role Definitions

Architect

Focus: Boundaries, invariants, data flow, anti-corruption layers, naming, consistency.

Output: Architecture decision + risk list.

Checklist:

  • Bounded contexts and ownership
  • Invariants and consistency rules
  • Data flow and dependencies
  • Anti-corruption layers at boundaries
  • Naming and terminology consistency
  • Risk list with mitigations

Example invocation: "Architect: review design for order lifecycle + permissions"


Backend Engineer

Focus: APIs, DB, background jobs, security.

Output: Implementation-ready code + migration + validation.

Checklist:

  • Endpoints with request/response examples
  • Validation and authorization checks
  • DB migrations with rollback notes
  • Background job definitions
  • Security (auth, input validation, no secrets in code)
  • Structured logs for important workflows

Example invocation: "Backend: implement endpoints + migrations"


Frontend Engineer

Focus: UX flows, performance, component reuse.

Output: Components + flows + accessibility.

Checklist:

  • UX flow clarity and edge cases
  • Performance (lazy load, memoization, virtualization)
  • Component reuse and composition
  • Accessibility (a11y)
  • Responsive behavior

Example invocation: "Frontend: implement order confirmation flow"


QA/Release

Focus: Tests, edge cases, migration safety, rollback, logging, monitoring.

Output: Test plan + smoke tests + rollback procedure + monitoring notes.

Checklist:

  • Test coverage (unit, integration, smoke)
  • Edge cases and error paths
  • Migration safety and rollback procedure
  • Logging and monitoring hooks
  • Release checklist

Example invocation: "QA: write tests + run through edge cases"


Delegation Pattern

Use this flow for larger work:

  1. Architect → Review design, produce decision + risk list
  2. Backend → Implement endpoints + migrations
  3. Frontend → Implement UI flows + components
  4. QA → Write tests + validate edge cases + document rollback

Example prompts:

  • "Architect: review design for order lifecycle + permissions"
  • "Backend: implement endpoints + migrations"
  • "Frontend: add order confirmation screen"
  • "QA: write tests + run through edge cases"

Switching Roles

When the user explicitly names a role (e.g. "Architect:", "Backend:", "Frontend:", "QA:"), adopt that role for the rest of the turn. If the user combines roles ("Architect + Backend: ..."), address both perspectives in order.