Skip to content

feat: add agentic team spawning skill router#2060

Open
webguru-hypha wants to merge 2 commits intomainfrom
cursor/agentic-team-spawning-skill-719f
Open

feat: add agentic team spawning skill router#2060
webguru-hypha wants to merge 2 commits intomainfrom
cursor/agentic-team-spawning-skill-719f

Conversation

@webguru-hypha
Copy link
Copy Markdown
Contributor

@webguru-hypha webguru-hypha commented Mar 27, 2026

Summary

  • add new skill .agents/skills/agentic-team-spawning/SKILL.md to orchestrate minimal expert-team spawning based on user prompt intent
  • add role routing reference map in .agents/skills/agentic-team-spawning/references/role-intent-map.md
  • add composition recipes in .agents/skills/agentic-team-spawning/references/team-composition-recipes.md
  • register local skill in skills-lock.json
  • apply CodeRabbit autofixes for metadata discoverability and wording clarity

Validation

  • pnpm run format:fix
  • wc -l .agents/skills/agentic-team-spawning/SKILL.md (confirmed < 200 lines)
  • reference file existence check for all references/* linked from SKILL.md
  • git status --short (clean)

CodeRabbit Autofix Notes

Resolved suggestions implemented:

  1. Improved frontmatter description in SKILL.md to include trigger conditions.
  2. Clarified precedence for hard concurrency cap (4) vs max_agents (min(max_agents, 4) + wave scheduling).
  3. Reworded disambiguation rules in role-intent-map.md to avoid repetitive sentence starters while preserving meaning.
Open in Web Open in Cursor 

Summary by CodeRabbit

  • Documentation
    • Added agentic team-spawning workflow docs for routing multi-domain requests, composing minimal expert teams, phased spawning, structured sub-agent outputs, result synthesis, and validation/triage guardrails.
    • Added role-intent mapping and team-composition recipes to guide role selection across features, data/API, UI/UX, security, i18n, testing, and ambiguous requests.
  • Chores
    • Registered the new agentic team-spawning capability for system use.

Co-authored-by: webguru-hypha <webguru-hypha@users.noreply.github.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 27, 2026

Walkthrough

Added an "agentic team spawning" skill and reference docs that define intent-to-role mapping, team-composition recipes, and a spawning/orchestration workflow with guardrails. Registered the new skill in the skills registry (skills-lock.json).

Changes

Cohort / File(s) Summary
Agentic Team Spawning Skill
​.agents/skills/agentic-team-spawning/SKILL.md
New skill documentation describing intent extraction, orchestration modes, spawn waves (max concurrency rules), required structured sub-agent outputs, synthesis/validation, and spawn guardrails.
Role Intent Mapping
​.agents/skills/agentic-team-spawning/references/role-intent-map.md
New reference mapping task signals to canonical role names, disambiguation rules, and conditional secondary roles for minimal expert sets.
Team Composition Recipes
​.agents/skills/agentic-team-spawning/references/team-composition-recipes.md
New recipe set of baseline role compositions per work category plus de-scoping and QA/security inclusion rules.
Skills Registry
skills-lock.json
Added skills.agentic-team-spawning entry (local workspace source, computedHash: "local-managed").

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant Orchestrator
  participant RoleMapper
  participant Spawner
  participant SubAgent
  participant Synthesizer
  participant MetaArb

  User->>Orchestrator: request (task, optional required_roles/exclude_roles/max_agents/focus)
  Orchestrator->>RoleMapper: extract intent signals & map to minimal roles
  RoleMapper-->>Orchestrator: chosen team + spawn plan
  Orchestrator->>Spawner: spawn wave (<=4 concurrent or max_agents)
  Spawner->>SubAgent: run sub-agent(s) (assumptions, changes, tests, risks, handoff)
  SubAgent-->>Spawner: structured outputs
  Spawner-->>Synthesizer: gather wave results
  Synthesizer->>Synthesizer: order deps, resolve contradictions
  alt unresolved conflicts
    Synthesizer->>MetaArb: escalate for arbitration
    MetaArb-->>Synthesizer: arbitration result
  end
  Synthesizer-->>Orchestrator: synthesized plan + validation summary
  Orchestrator-->>User: orchestrator response (understanding, team, spawn plan, execution, validation)
Loading

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested reviewers

  • DSanich
  • evgenibir
  • sergey3bv
🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The PR title follows conventional commits format but lacks a scope identifier as required by the guidelines. Add a scope to the title (e.g., 'feat(agents): add agentic team spawning skill router' or 'feat(skills): add agentic team spawning skill router').
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/agentic-team-spawning-skill-719f

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@webguru-hypha webguru-hypha marked this pull request as ready for review March 27, 2026 16:06
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.agents/skills/agentic-team-spawning/references/role-intent-map.md:
- Around line 26-28: Rewrite rules 3–5 to avoid repeating the "Add ..." starter:
change "Add QA..." to "Include QA when the task requests test automation,
acceptance evidence, or has broad blast radius," change "Add Security..." to
"Include Security for auth, data exposure, untrusted input, secrets, or
compliance-sensitive surfaces," and change "Add Requirements first..." to
"Prioritize Requirements when acceptance criteria are missing and coding would
be speculative," so the three list items read with varied, concise verbs for
easier scanning.

In @.agents/skills/agentic-team-spawning/SKILL.md:
- Around line 63-64: Clarify that the hard concurrency cap of 4 takes precedence
over the user-configurable max_agents: update the SKILL.md text near the "Spawn
at most 4 sub-agents concurrently" line and the `max_agents` description to
state that any `max_agents` value > 4 will be clamped to 4 and the remaining
agents will be executed in additional waves (or, alternatively, mention that
values > 4 are rejected if you prefer validation); reference `max_agents` and
the "Spawn at most 4 sub-agents concurrently" sentence so readers know the cap
is enforced and how overflow agents are handled.
- Line 3: Update the SKILL.md frontmatter `description` to include when this
skill should be invoked (trigger conditions) in addition to what it does: keep
the current summary ("Route a user request to the minimal expert team using
roles in .agents/roles, then spawn only the required sub-agents for execution")
and append a short trigger clause like "Use when a user's request requires
multiple specialized roles or when you need to compose a minimal, focused team
for execution" and optionally include examples (e.g., "invoked for multi-domain
tasks, complex workflows, or when minimizing active agents is required"); edit
the `description` field in .agents/skills/agentic-team-spawning/SKILL.md
accordingly so discoverability and auto-selection logic can match on both
purpose and invocation scenarios.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 293d8804-e92e-4e42-9bff-8cde420c12bb

📥 Commits

Reviewing files that changed from the base of the PR and between d21774f and 8808900.

📒 Files selected for processing (4)
  • .agents/skills/agentic-team-spawning/SKILL.md
  • .agents/skills/agentic-team-spawning/references/role-intent-map.md
  • .agents/skills/agentic-team-spawning/references/team-composition-recipes.md
  • skills-lock.json

Comment thread .agents/skills/agentic-team-spawning/references/role-intent-map.md Outdated
Comment thread .agents/skills/agentic-team-spawning/SKILL.md Outdated
Comment thread .agents/skills/agentic-team-spawning/SKILL.md Outdated
Co-authored-by: webguru-hypha <webguru-hypha@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.agents/skills/agentic-team-spawning/SKILL.md:
- Around line 120-122: The three guardrail bullets all start with "Never", which
trips static analysis for repetition; edit the lines in SKILL.md that read
"Never spawn 'all experts' by default.", "Never assign the same responsibility
to multiple agents.", and "Never proceed with high-ambiguity implementation
without requirement clarification or triage-first mode." to vary the sentence
starters (e.g., change one to "Do not spawn...", another to "Avoid assigning the
same responsibility...", or "Require clarification or triage-first mode before
proceeding with high-ambiguity implementations") so meaning stays identical but
wording is diversified for easier scanning.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 42541674-2f68-4d83-b36c-9541a3e1ed8d

📥 Commits

Reviewing files that changed from the base of the PR and between 8808900 and 9ed5996.

📒 Files selected for processing (2)
  • .agents/skills/agentic-team-spawning/SKILL.md
  • .agents/skills/agentic-team-spawning/references/role-intent-map.md

Comment on lines +120 to +122
- Never spawn "all experts" by default.
- Never assign the same responsibility to multiple agents.
- Never proceed with high-ambiguity implementation without requirement clarification or triage-first mode.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick | 🔵 Trivial

Optional: vary the guardrail sentence starters.

Three successive guardrails begin with "Never", which is flagged by static analysis. While the meaning is clear, consider rewording one for variety and easier scanning.

♻️ Optional rephrasing
 - Never spawn "all experts" by default.
 - Never assign the same responsibility to multiple agents.
-- Never proceed with high-ambiguity implementation without requirement clarification or triage-first mode.
+- Require requirement clarification or triage-first mode before proceeding with high-ambiguity implementation.
 - Prefer direct execution without sub-agents if the task is simple and low risk.
🧰 Tools
🪛 LanguageTool

[style] ~122-~122: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...me responsibility to multiple agents. - Never proceed with high-ambiguity implementat...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.agents/skills/agentic-team-spawning/SKILL.md around lines 120 - 122, The
three guardrail bullets all start with "Never", which trips static analysis for
repetition; edit the lines in SKILL.md that read "Never spawn 'all experts' by
default.", "Never assign the same responsibility to multiple agents.", and
"Never proceed with high-ambiguity implementation without requirement
clarification or triage-first mode." to vary the sentence starters (e.g., change
one to "Do not spawn...", another to "Avoid assigning the same
responsibility...", or "Require clarification or triage-first mode before
proceeding with high-ambiguity implementations") so meaning stays identical but
wording is diversified for easier scanning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants