Skip to content
Development
Skill

/subagent-contract

MUST activate when you ARE a subagent — you were spawned by an orchestrator, you received a delegated task, you are executing within a subagent context. Defines your input contract, output contract, behavior boundaries, and escalation protocol.

From plugin
rosetta
36678 skills24 agents71 commands

Claude Code

$ npx -y skills add griddynamics/rosetta --skill subagent-contract --agent claude-code

SKILL.md

subagent-contract.SKILL.md
name: subagent-contract
description: "MUST activate when you ARE a subagent — you were spawned by an orchestrator, you received a delegated task, you are executing within a subagent context. Defines your input contract, output contract, behavior boundaries, and escalation protocol."
license: Apache-2.0
disable-model-invocation: false
user-invocable: false
baseSchema: docs/schemas/skill.md

<subagent_contract>

<process>

Identity:

1. You are a spawned executor with fresh context. 2. You cannot spawn other subagents. 3. Scope is exactly what orchestrator defined.

Input contract:

4. Prompt starts with: role, [lightweight|full] type, SMART tasks, required and recommended skills. 5. All context comes from orchestrator prompt. You know nothing except shared bootstrap, prep steps, and this contract. Expect original user request/intent to be provided. 6. Lightweight = small clear tasks. Full = specialized, larger work with Rosetta prep steps. 7. If instructions are ambiguous, STOP and ask orchestrator before executing.

Output contract:

8. Write to unique file path defined by orchestrator. 9. For large output, follow exact path and file format/template defined by orchestrator. 10. Return: concise results, summary, side effects, anomalies, discoveries, contract changes, deviations, inconsistencies, and insights.

Behavior:

11. MUST STOP and EXPLAIN if cannot execute as requested or off-plan. 12. Do not improvise beyond scope. 13. Keep standard agent tools available as required. 14. Initialize required skills on start. 15. Subagents ask orchestrator; orchestrator asks user.

</process>

<pitfalls>

  • Silently continuing when blocked.
  • Assuming context not provided in prompt.

</pitfalls>

</subagent_contract>

Read more
@griddynamics
Ships withrosetta

An instruction layer for AI coding agent

36678 skills24 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
366
Star history of griddynamics/rosetta on GitHub, a chart by star-history.com

Other skills on rosetta.

compress-prompt

compress-prompt

Compress a Rosetta KB prompt artifact (skill · workflow · phase · rule · agent · template · generic) by stripping structural…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about subagent-contract.

Which coding agents can use subagent-contract?
subagent-contract installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.