team-mode

Coordinates multi-agent contract-gated execution for plan, work, and review workflows.

6|2|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/Jerrylalala/compound-engineering --skill team-mode-jerrylalala
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: team-mode
Source: https://github.com/Jerrylalala/compound-engineering/tree/main/plugins/compound-engineering/skills-custom/team-mode
Command: npx skills add https://github.com/Jerrylalala/compound-engineering --skill team-mode-jerrylalala

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Multi-agent coding sessions often produce conflicting writes, out-of-scope edits, and unverified changes. This Skill enforces contract boundaries, a single-writer principle, and independent verification so problems are intercepted before they happen. ## Core Features & Use Cases - Contract-Gated Execution: Generates a .team-contract.md file defining allowed files, forbidden surfaces, and required invariants that gate all subsequent work. - Real Agent Teams Verification: Spawns independent verifier and risk-guard teammates with separate context windows that validate each implementation unit via structured message protocols. - Deterministic Patch Gate: Applies whitelist rules during code review to auto-classify findings as safe or gated based on contract constraints, with zero extra token cost. - Use Case: When implementing a multi-file feature touching authentication code, activate [T+] mode so a risk-guard teammate intercepts high-risk paths and a verifier confirms every invariant after each unit. ## Quick Start Ask the AI to run the work command with the [T] flag so it creates an agent team with a verifier that checks each implementation unit against the team contract.

Frequently Asked Questions about team-mode

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enable multi-agent mode for code implementation tasks?▼

Append the [T] token to the work command to spawn a real agent team with a verifier teammate that has an independent context window. Use [T+] to additionally spawn a risk-guard teammate that intercepts high-risk paths like auth, payment, or migration before each unit starts.

What is a team contract file and how is it created?▼

A team contract is a .team-contract.md file with YAML frontmatter defining allowed_files, forbidden_surfaces, and required_invariants. It is generated automatically during the plan phase by extracting file lists from implementation units and acceptance criteria from the plan document.

What happens if agent teams are not supported on my platform?▼

The skill degrades gracefully to role simulation mode where the main agent sequentially performs verification itself. Contract boundaries and risk-guard keyword detection remain active, and a warning announces the fallback behavior.

Why does the single writer principle matter in multi-agent coding?▼

Only the executor role may modify shared code, preventing conflicts, overwrites, and inconsistent state that arise when multiple agents write concurrently. Verifier and risk-guard roles are strictly read-only and any violation triggers an immediate stop with user confirmation.

What happens when verification fails during team mode execution?▼

The lead receives a FAIL message with the reason and command output, then fixes the issue and requests re-verification. After two failed rounds, a blocked checkpoint asks the user to manually fix, skip verification with a PR annotation, or stop entirely.

Does team mode work without a team contract file?▼

Yes, but with degraded behavior. The work command warns and asks for confirmation to proceed without boundary checks, while the review command skips the patch gate entirely and logs a warning that the contract was not found.