Configures Claude Code hooks and Codex hooks.json/notify. Use when adding PreToolUse guards, Stop hooks, managed hooks, format-on-save, preflight, audits, or worktree/budget hooks.
日本語の概要は準備中です。原文の説明を表示しています。
Chooses subagent, team, workflow, or debate and launches it on Claude Code or Codex. Use when delegating, running agent review boards, or installing shared agents.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Default entry point for agent work in this repo.
Use this skill as the main entry point for agent work on Claude Code or Codex:
~/.claude/agents/ or ~/.codex/agents/.claude/agents/ or .codex/agents/agents/ and workflows from workflows/ at its root (namespaced plugin-name:agent-name), and a .claude-plugin/plugin.json dropped into a skill folder loads it as <name>@skills-dir so the skill itself can bundle agents/, hooks, and MCP servers. scripts/deploy-preset.sh is the bulk/legacy route for the installed member pairsFor parallel execution plans, wave dispatch, and conflict resolution, escalate to ../agents-swarm-orchestration/SKILL.md. For skill packaging and SKILL.md frontmatter, use ../agents-skills/SKILL.md.
Gate before invoking any foundation below: Each foundation has a
When to Apply/When to Skipsection. If your task matches a skip-condition, route to the foundation it names instead — don't pull in primitives the task doesn't need.
| Decision | Default |
|---|---|
| Need one universal entry point for agents, teams, and debates | Use this skill first |
| Need help choosing the correct agent or team for a scenario | Use this skill to classify the task before launching anything |
| Need a clean first prompt to start a team or debate | Use this skill to draft the launch prompt with context, ownership, synthesis rules, and cleanup expectations |
| Built an app/product but do not know how to penetrate the market or get serious users | Run expert-board in growth mode with the market-penetration workflow contract |
| One bounded task with a clear output | Use a built-in or custom subagent |
| Existing long-lived Claude sessions need a direct handoff | Use cross-session messaging. Use Agent Teams only when teammates need a shared task list and self-claiming; Codex remains parent-led unless the active surface exposes peer messaging |
| Need specialists to argue before choosing a direction | Prefer a debate-enabled team with explicit triggers; skip debate when disagreement is unlikely |
| Need parallel edits on separate files | Use isolation: worktree for Claude subagents; Agent Team teammates share the lead checkout. With agent teams enabled, pass isolation on the Agent call itself (frontmatter alone is ignored) to launch a worktree-isolated subagent instead of a teammate. On Codex, assign owned files explicitly |
| Several independent tasks to hand off and check back on later | Third surface: background sessions (agent view, /bg, claude --bg); each isolates itself in a git worktree before editing. Mechanics: references/runtime-surfaces.md §"Background sessions and routines" |
| Runtime surfaces, field matrix, or built-in subagent list | references/runtime-surfaces.md + ../agents-swarm-orchestration/references/platform-patterns.md |
| Long-running, hosted agent where the operator is not at a terminal (inbox triage, scheduled research, document processing) | Try Claude Code routines (/schedule) before building a harness. Scope tools as if no approval prompt exists, prune connectors to the ones the routine needs, and make the saved prompt treat the fire payload as untrusted data. Mechanics and the Claude Managed Agents escalation: references/runtime-surfaces.md §"Background sessions and routines" |
| Agent-file fields | The catalog sets name, description, tools/disallowedTools, maxTurns, model, effort, skills, and (implementer-class only) permissionMode / isolation. Worth adopting: color (distinguishes concurrent rows), experimental.cacheTtl, and opt-in memory (it adds Read, Write and Edit to the agent's tools, not scoped to the memory directory). mcpServers, hooks, background, and initialPrompt stay deliberately unset. Check field support for the running version in references/agent-tools.md; template: agents/templates/member-claude.md.template |
| Need the caller to use a subagent's result before continuing | Foreground vs background differs by session mode (interactive, fork mode, -p, Agent SDK) and has changed between releases, so never rely on a default. Before a step that consumes the result, determine whether this session backgrounds subagents (docs for the running version plus the runtime smoke test); if it does, force the foreground where a lever exists or wait explicitly for the completion notification. The same definition can resolve to a different tool set in the background. Levers: references/agent-tools.md §"background"; blocking forked skills: references/skill-subagent-patterns.md |
| Repeatable fan-out, deterministic loops, or verify stages | Claude: use the saved Workflows in agents/workflows/, synced to ~/.claude/workflows/. Runtime controls, caps, and the agent() option surface: references/workflow-runtime.md. Codex: run the run-workflow skill, which executes the generated <id>.codex-plan.json with spawn/wait/follow-up from the parent session; every workflow except the validate-library command has one. A plan is an adapter, not a native saved workflow. Both resolve the same manifest and named-member roster |
| About to edit a saved workflow | A library workflow in agents/workflows/ is generated: its .js header says to edit the manifest or the runtime template in scripts/, then regenerate with scripts/generate_workflows.py (expert-board.js comes from scripts/generate_expert_board.py) (--check finds stale output). Never hand-edit the .js or the .codex-plan.json. For a script you write yourself, run the bundled /workflow-authoring skill first. Keep export const meta the first statement and a plain object literal with name and description, or /<name> drops out of / autocomplete; a script containing import() fails before the run starts. Read the current concurrency, per-call item, and per-run agent limits in references/workflow-runtime.md §"Runtime caps" before sizing |
Skill ↔ subagent delegation (skills: preload, context: fork) | references/skill-subagent-patterns.md |
| Team/member/debate scenarios, prompts, and installation | references/team-selection-guide.md, references/team-scenarios.md, references/team-prompt-patterns.md |
| Refresh only existing installer-owned members after policy/template changes | Preview with scripts/deploy-all-teams.sh --refresh-installed-managed --platform both --user --dry-run; real writes additionally require --confirm-bulk-deploy. Missing, modified, unowned, or unsafe files are never adopted or overwritten |
| Visual team diagrams (Mermaid flowchart per team, auto-generated from manifests) | references/team-diagrams.md — regenerate with python3 scripts/generate-team-diagrams.py |
| Validate a new niche or greenfield opportunity | See references/team-selection-guide.md §"Niche Validation" for repo-specific team mapping |
| Debate, topology, decision masks, context, cost, and governance details | references/navigation-index.md |
Long-tail scenario rows (coverage map, lifecycle, smoke tests, system diagrams) are indexed in references/team-coverage.md; the member/team inventory lives in references/team-member-matrix.md.
team.yaml, debate overlay, workflow contract, family metadata.With CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1, any subagent Claude names launches as a teammate, so a team can form during ordinary named-member delegation nobody framed as team work: set the variable to 0 in user settings.json to keep named members as subagents (it is re-read on each spawn, so no restart is needed; higher-precedence project/local/managed settings can still re-enable it).
Never call team.yaml a native runtime manifest. Installing a recipe installs native member definitions and stores launcher metadata; the runtime does not discover the YAML itself.
SKILL.md files, skill packaging, or skill frontmatter → ../agents-skills/SKILL.md~/.claude/agents/, .claude/agents/, ~/.codex/agents/, .codex/agents/.fresh, forked, or runtime-defined; never infer transcript, skill, memory, or permission inheritance from the word “subagent.”Model-generation behavior traps and the MAST failure taxonomy live in references/traps-and-antipatterns.md and references/mast-failure-taxonomy.md.
The load-bearing failure modes (trusting tool output as instructions, accepting "done" without evidence, context rot well before the window is full, MCP token bloat in the parent, stale agent files after runtime upgrade, approval fatigue, duplicating sibling-skill patterns) live in references/traps-and-antipatterns.md. Consult it before launching a worker or team, and when reviewing an existing agent.
Re-audit agent files after runtime upgrades; recursion, background execution, field support, and model defaults are not portable invariants. Use references/runtime-surfaces.md, references/agent-tools.md, and references/model-governance-and-maintenance.md.
Use this skill first.
agents-subagents to select the correct global agent, repo-local agent, shared member, shared team, or debate mode.agents-subagents to prepare the initial launch prompt and context contract.Simple rule:
agents-subagents = what to runagents-swarm-orchestration = how to run many workers safelyWhen the user gives a scenario, this skill should help choose the smallest correct mode.
Use this routing ladder in order; stop at the first sufficient surface:
Explore, Plan, general-purpose on Claude Code; default, worker, explorer on Codex) when a generic research, planning, or implementation worker fits./config before choosing. The surface can be plan-gated or disabled by the organization, a new workflow needs an explicit opt-in, and claude -p / Agent SDK launches need a Workflow or Workflow(<name>) allow rule because no approval prompt is ever shown. Details and the /workflow-authoring rules: references/workflow-runtime.md.Greenfield niche discovery ("should I build X in niche Y") reaches step 5 as expert-board in founder-blindspot mode; fill the required context and demand the scorecard output listed in references/team-selection-guide.md so members return canonical startup artifacts instead of narrative lenses.
If multiple teams could fit, prefer the one whose output contract matches the user request most directly.
Runtime detail lives in references so the skill stays lean:
.toml format, field mapping, cross-platform rules, session-scoped --agents, whole-session --agent <name>, plugin precedence, Claude Agent SDK, OpenAI Agents SDK.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS), Codex multi-agent model examples, OpenAI Agents SDK manager/handoff.The main difference between Claude and Codex is orchestration, not role design:
AGENTS.md/skill policy; do not require the user to type a spawn command when policy already requests delegation.Platform-specific settings are runtime-scoped, not portable defaults. The authoritative field matrix lives in ../agents-swarm-orchestration/references/platform-patterns.md — refresh there first.
This skill owns the first launch prompt. Use the 8-field contract in references/initial-prompt-contract.md, keep each child budget below the parent's remaining budget, and make the brief executable without the parent transcript. For retrieval workers, pass the objective, judge each return, and stop after a bounded number of follow-ups (retrieval follow-ups). Reusable prompts and scenarios live in references/team-prompt-patterns.md and references/team-scenarios.md.
Canonical members live in agents/; agents/teams/*/team.yaml composes them as repository metadata, not runtime configuration. Install persistent members when their native model, tools, or skill bindings matter. Workflows dispatch those named members first and use embedded role briefs only when the active runtime reports that named-agent selection is unavailable. Full rules: references/members-and-teams.md and references/team-lifecycle.md.
Codex installs materialize managed TOMLs with model tier, [[skills.config]], and rewritten links at every scope. Delegation still requires the user or applicable AGENTS.md/skill policy. Verify named-agent support on the active Codex surface before depending on it.
For engineering packs, prefer shared artifacts over repeated cold reads. Every subagent starts with a self-contained brief, not the parent's transcript — this is a current operating rule.
Full pattern (fresh-context principle, preferred inputs from dev-context-* skills, default handoff order, discovery rule): references/context-first-protocol.md.
Working rules not already captured by the routing ladder:
--include-candidatesFor debates specifically, existing domain agents are usually better participants than generic wrappers because they already carry the right role identity and skill context.
Claude Code agent files are markdown with YAML frontmatter. Codex agents are .toml with similar fields under different names.
Field reference and selection rules live in references/agent-tools.md (tool allow-lists, permissionMode, maxTurns, mcpServers, memory, background, isolation, Codex sandbox_mode mapping, and the full anti-pattern list).
Two owners, split by question so they cannot contradict each other. ../agents-swarm-orchestration/references/platform-patterns.md owns field shapes: which fields exist, their accepted values, skills/hooks/initialPrompt/color, plugin-agent restrictions, and the CLAUDE_CODE_SUBAGENT_MODEL resolution order. references/cost-control.md owns effort and cost: which levers to pull and how to look up the per-model default. Where platform-patterns quotes an effort default, cost-control wins.
Safe defaults:
tools allow-list over broad inheritance; use either tools or disallowedTools for general scoping, not both. When both are set, disallowedTools is applied first and tools resolves against the remaining pool, so a tool named in both is removed. One sanctioned exception: leaf roles add disallowedTools: [Agent] alongside their allow-list, per §Traps — spawn denial is a policy statement, not tool scoping, and must not depend on the allowlist's inheritance behavior.maxTurns low for reviewer and research agents.memory as opt-in. It adds Read, Write and Edit to the agent's tools; do not set it on a read-only agent unless deny rules limit Write and Edit.mcpServers to the one worker that needs it. A stdio server turns its launch config into an OS command by design (CVE-2026-30623 was one 2026 instance): never wire a worker to a stdio server whose launch config derives from model or tool output; sandbox the host.isolation: worktree for parallel or risky subagent edits on Claude Code. Agent Team teammates do not receive worktree isolation and share the lead checkout, even when spawned from a definition that declares isolation. When agent teams are enabled, passing isolation on the Agent call itself (or forking) launches a subagent rather than a teammate, so the worktree applies (sub-agents docs, checked 2026-09-27).HEAD. Commit (and push if needed) the parent state or set the base to HEAD, then confirm each worker's base SHA equals the parent HEAD; otherwise workers silently miss unpushed work. Details: references/agent-tools.md §"isolation".Skills and subagents can reference each other in two directions:
skills: in agent frontmatter, so the role always starts with the same domain context.context: fork + agent: <type>, so the skill body becomes the task prompt and the subagent runs in isolation.Full selection guide, constraints, and examples: references/skill-subagent-patterns.md.
By default, a Claude Code subagent starts with a blank context. With agent view enabled, /subtask creates a background subagent from the current context; /fork instead copies the whole session into a separate background session (see the agent-view and sub-agents docs, checked 2026-10-10; the entry points are version-gated, so check the current docs). Anthropic documents prompt-cache reuse for forked context but does not promise a fixed cost multiplier.
Default to blank context. Fork only when you can name the understanding the parent has built that the subagent needs and cannot cheaply recompute. Reviewers and verifiers should always start blank. Forking can leak parent secrets; audit allowed tools before forking.
Full operating rules and the built-in Explore/Plan flow: references/subagent-context-forking.md. Known model-pin issue for forked skills: references/skill-subagent-patterns.md. Session-lifecycle implications: ../ai-coding-agents-state/references/context-forking.md. Command-runtime implications: ../ai-coding-agents-runtime-core/references/command-dispatch-forking-and-remote-safety.md.
Split by context boundaries, not role labels. If two tasks share deep context, keep them in the same agent. Decomposing by planner/developer/tester creates context loss at every handoff. One exception: a subagent runs to completion and cannot pause mid-run for the user to approve a plan, so when the user must sign off before implementation, either plan in the main thread or have the subagent return the plan and stop; write the approved plan to a file and pass that file to the implementer and the reviewer. Full framing and architecture decision guide: references/subagents-vs-teams-architecture.md.
Apply two results as a pre-team gate:
Both preprints are not peer-reviewed; scope is text-only and self-organizing teams respectively. Full analysis and "when NOT to use multi-agent" rules: references/subagents-vs-teams-architecture.md.
Use [What it does]. Use when [concrete triggers, artifacts, or task shapes]. Produces [output]; does not [boundary]. Write Use proactively when only for roles the runtime should self-trigger without a routing decision (reviewers, verifiers). Routed catalog members are dispatched by a lead or workflow, so the plain form is the convention there. Name the responsibility and boundary; avoid generic helper descriptions. Detailed patterns and trigger evaluation: references/agent-patterns.md.
Before launch, confirm one responsibility, concrete triggers, minimal tools/MCP, bounded turns, explicit output, owned files, an explicit context-start mode, and runtime-appropriate isolation. Use references/agent-patterns.md and references/initial-prompt-contract.md for the full checklist.
Start from agents/templates/ and references/agent-patterns.md.
Use references/harness-patterns.md for orchestrator-worker, evaluator-optimizer, planner-generator-evaluator, manager/handoff, reflection, debate, and blueprint selection. Multi-wave voting and hierarchical swarms belong to agents-swarm-orchestration. Cap retries and escalate capability at the cap.
Full categorized list of references, templates, members, teams, scripts, and sources: references/navigation-index.md.
Most-used entry points:
Other references (load the one whose decision is open):
SKILL.md conventionsFull categorized map: references/navigation-index.md.
Use a foundation only when its returned artifact resolves a specific orchestration decision; skip theory expansion for routine independent delegation.
When prior decisions or pitfalls are relevant, consult learnings.consolidated.md if present; use learnings.md only for needed history or as the available fallback. Otherwise skip both.
After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Configures Claude Code hooks and Codex hooks.json/notify. Use when adding PreToolUse guards, Stop hooks, managed hooks, format-on-save, preflight, audits, or worktree/budget hooks.
日本語の概要は準備中です。原文の説明を表示しています。
Configures and hardens Claude Code and Codex MCP servers. Use when connecting databases, APIs, SaaS, building servers, or serving a clearance-filtered knowledge base.
日本語の概要は準備中です。原文の説明を表示しています。
Owns instruction files: AGENTS.md, CLAUDE.md, personal and repo rules. Use when writing, pruning, auditing them, sharing rules across Claude and Codex, or fixing ignored rules.
日本語の概要は準備中です。原文の説明を表示しています。
Creates and audits agent skills: SKILL.md, references, scripts, runtime metadata. Use when writing, validating, or security-reviewing a skill, or fixing truncated skill listings.
日本語の概要は準備中です。原文の説明を表示しています。
Adds per-skill learnings loops for dated patterns, mistakes, and domain facts. Use when wiring skill memory, consolidation, or drift audits.
日本語の概要は準備中です。原文の説明を表示しています。
Designs and runs agent hives and multi-agent waves. Use when setting hive roles, code gates, dependency-graph fan-out, or verifier, vote and loop-until-dry passes.
日本語の概要は準備中です。原文の説明を表示しています。