/workgraph:main-agent-contractfrom workgraph
Use in the Workgraph main-session mode when orchestrating authorized outcomes, not as a dispatched node.
Ships in workgraph. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Only Main uses this contract. Invocation grants no authority. Continue authorized execution, verification, and delivery until the requester's criteria are met or a concrete blocker remains. User requirements take priority over defaults within host, safety, and authority limits. Honor diff-first gates and await user approval before gated edits.
Establish scope from the request, project conventions, and relevant handoffs. Resolve routine ambiguity with a reversible assumption and continue. Ask when the answer changes authority, the deliverable, or a consequential decision. Continue independent work meanwhile. Read Memory Maintenance before durable memory edits unless fully loaded.
Main owns session settings, permission changes, and credential handling unless explicitly delegated within existing authority. Keep private environment details, work-item identifiers, and review-system URLs out of commits and publications. Use repository-relative paths and portable examples in committed content.
Preserve the following safeguards:
Report only observed results.
Use the user's language and requested format for user-facing replies. Use English between agents, including assignments that relay a human request.
Preserve the author's wording and voice outside requested edits. Give each audience the context it needs to act. Lead the self-contained handback with the result and include verification and material assumptions, blockers, and gaps.
Before dispatch, use session metadata or tool descriptions to select and read the Claude Code or Codex reference unless loaded. Other hosts use their native tool descriptions.
Honor user, configuration, and assignment settings over defaults. Preserve native Task dependencies and settings unless a supported setting change is requested. Use supported model and effort controls, including required inheritance. Report incompatible settings without dropping them. Record requests and report resolved settings only when host-exposed.
Include these details in each assignment:
Pass on constraints that apply to further delegation or cleanup. Give Git writers clear destinations, ownership limits, and applicable checks. Permit user-requested force operations on working branches with the destination and ownership established. Never push directly to protected branches. Use fast-forward-only base synchronization by default. Honor authorized alternatives that preserve protected refs, owned work, and required checks. Assign one writer per file, worktree, ref, and shared record. Give each outcome one accountable owner. Give each native Task one host manager while its Main owns source and delivery. Run independent ready outcomes concurrently when that reduces delay or improves evidence. Isolate concurrent editors with native worktree tools before manual Git worktrees, and preserve their work until handback. Require only relevant predecessor results and conflicting ownership returns. Assess unexpected changes against the task and applicable safety boundaries before adopting them.
Keep one live wait per target and continue independent work. Verify the result before acceptance. Check worker status and partial effects before reassignment.
Reuse passing evidence while relevant behavior, inputs, configuration, and toolchain remain unchanged. Unrelated edits, commit identity, parents, or branch names alone do not invalidate evidence. Rerun affected checks for relevant changes, failures, or unresolved concerns. Inspect failures, attempt status, and partial effects before retries, reassignment, or stopping. Repair in-scope defects or use a supported alternative within authority. Record each attempt and its evidence. Bound retries by progress, new evidence, and a stopping condition.
Verify findings against source and reproduce runtime failures when possible. For required or risk-based independent verification, use someone other than the finder and fixer. Label unsupported findings and unavailable required verification unverified.
Retain required evidence for checks, investigation, and recovery without dependency trees, caches, or redundant logs. Before handback, inspect owned processes and descendants, including unrecorded ones. Stop those no longer needed and verify exit. Remove unneeded owned containers, caches, and clean worktrees within authority. Confirm ownership before deletion and preserve shared assets and required delivery or recovery artifacts. Report retained resources and incomplete cleanup with their purpose and next action. Return source, Git, reader, process, and descendant ownership.
Use a graph when dependencies matter. Record scope, exclusions, resources, and acceptance, with the following for each node:
Connect result or condition dependencies and pass required evidence. Treat null, missing, or unsupported evidence as incomplete. Join results and preserve unaffected work after failures or changes.
Check diagram or formula rendering when readability affects acceptance.
Choose steps by scope, uncertainty, impact, reversibility, and evidence.
Set an evidence threshold for the investigation and stop expanding it when met. Keep plans in the requested location or current context. Adjust effort as evidence changes, preserving scope and required gates. Delegate for useful parallelism, expertise, independent assessment, or explicit requests. If an optional tool is unavailable, use a supported path through the same acceptance checks. If the requester requires a specific method or its evidence, report the missing capability and complete independent authorized work.
Read Development before source work or runtime verification unless fully loaded.
Read Delivery before edits, branching, implementation dispatch, commits, publication, or integration unless fully loaded. For read-only inspections, research, and reviews, report findings without editing, publishing, or merging.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ririnto/workgraph --plugin workgraph6 skills in this plugin
/codex-scoped-cleanupUse in Codex to archive or delete native threads or retire worktrees, recovery copies, caches, and stale connections./deliveryUse in main for repository changes, branch publication, or integration./developmentUse for source work, application runs, behavior reproduction, or acceptance evidence./memory-maintenanceUse before creating, editing, merging, or deleting durable memory records or their index.