/agent-foundry:unity-agentic-workflowfrom agent-foundry
Designs, teaches, and audits a provider-neutral agent workflow for Unity repositories using Claude Code and Codex. Manages task contracts, bug intake, defect tracking, and specialist Unity agent routing.
Ships in agent-foundry. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build one provider-neutral operating contract and expose it through thin Claude
Code and Codex entry points. This skill teaches and audits the workflow; create
tracked contracts through create-task, then route actual implementation
through implement-task, inspect running tasks through read-only task-status,
submit new bug feedback through task-bug, progress recorded defects through
task-cycle, close through task-done <ID>, and
persist end-of-day recovery through daily-handoff <ID...>. In this task-first
model the task contract is the implementable story; separate story files are
legacy-only.
Keep specialist Unity procedures in the official
Unity-Technologies/unity-agent-plugin, installed separately for both agents.
Route an exact domain match to /unity:<name> in Claude Code or
unity:<name> in Codex, while Agent Foundry owns task contracts, Unity CLI
transport/approval rules, ownership, verification, and sequential handoffs.
Do not copy the official specialist skills into Agent Foundry. If the official
plugin is missing, install it from its marketplace before invoking a specialist.
task-bug [<ID>] "<feedback>" is the user-facing bug intake. It can discover
the one owning active or closed task, then dispatches raw evidence to
task-cycle. The cycle remains the sole defect-ledger and linked-record writer:
it splits multi-symptom feedback, records stable linked D-xxx rows plus
defects/D-xxx.md evidence histories, deduplicates repeats, runs bounded
repair/verification, and reopens accepted behavior. Do not create a replacement
task or standalone QA bug for the same outcome.
The command is optional syntax, not an intake requirement. Plain
post-implementation feedback such as "still broken" or a new screenshot/log is
an implicit task-bug invocation. Route it there automatically; do not jump
directly to task-cycle, declare a remembered D-xxx recurrence, or announce
a root cause/fix before the cycle confirms canonical ledger/record evidence.
When natural-language bug feedback has no plausible active or closed task,
task-bug invokes create-task exactly once and returns that contract's
readiness and dispatch result. Ambiguous matches and supplied-but-missing IDs
stop without writing.
If the same unchanged intake is repeated before that ready task has any
implementation attempt, task-bug returns READY_TASK_EXISTS, preserves the
contract byte-for-byte, and returns its implement-task next command. It does
not redispatch create-task/task-cycle or record a false recurrence.
For exactly one retained task, an unambiguous affirmative in the same
conversation (continue, devam et, or go ahead) is execution
authorization. If the task is ready, invoke implement-task immediately. If
the same turn resolves its draft and makes it ready, cascade directly into
implement-task; never consume the affirmative on TASK UPDATED and wait for
another message. A still-unanswered product decision, multiple candidates, or
a new conversation does not use this shortcut. Implementation still enforces
all risk, ownership, transport, and approval gates.
If one exact live predecessor owns the authorized task's writable paths, the
affirmative remains valid. Route both IDs to agent-orchestration, mark
the successor WAITING_FOR_OWNER, wait for the stable handoff/lock-release
signal, and dispatch it automatically. Do not convert a schedulable ownership
collision into draft/persistent blocked state or ask for another affirmative.
A direct initial implement-task with attempt zero and an empty defect ledger
may finalize its own non-defect acceptance lifecycle after independent fresh
verification: it records READY_TO_CLOSE and returns task-done <ID>. It does
not invoke an empty task-cycle. Any populated ledger, CycleContext, reopened
task, or resumed repair remains task-cycle-owned.
Infer one operation from the request:
learn: explain the mental model and give a short practice path.audit: inspect current instructions, skills, commands, ownership, and proof.daily: choose the smallest safe execution lane for today's task.design: propose a provider-neutral workflow or command contract.bootstrap: create or update workflow files after one decision-ready plan is
approved.If no operation is explicit, use audit when a repository exists and learn
otherwise. Read only the references needed for the selected operation:
references/file-authority-map.md for Markdown placement and precedence.references/prompt-playbook.md for prompts and command examples.references/unity-operating-model.md for risk, ownership, and Unity gates.references/workflow-authoring.md when creating or synchronizing a workflow.AGENTS.md, CLAUDE.md, and nearest
path-scoped instructions.Assets/, Packages/manifest.json, and
ProjectSettings/ProjectVersion.txt; do not assume a generic engine layout..claude/rules, .claude/skills, .claude/agents, commands,
Codex skills/plugins, task templates, hooks, and CI/test entry points.Separate the layers clearly:
contract.md containing immutable authority plus a
delimited managed lifecycle block, one durable defect ledger, ownership
handoffs, and retained evidence.Keep shared semantics provider-neutral. Claude- or Codex-specific files should only adapt discovery, invocation, and UI metadata.
Planning defines durable intent before code:
create-task directly for each implementable outcome. Do not insert a
story layer; readiness is part of the task contract.Execution consumes ready task authority and may not redesign it silently.
create-task -> implement-task -> task-done on a fully
verified clean pass; if a defect is observed, task-bug -> task-cycle
internally/resume -> task-done. Use task-status only for read-only snapshots and
daily-handoff only for a recovery checkpoint.task-bug ->
candidate task/defect -> canonical task-cycle confirmation -> automatic
bounded repair/verification. The operator need not restate a command.task-bug -> create-task
internally -> ready/draft/action-required result. When the same turn carries
explicit execution authorization and yields one ready task, dispatch
implement-task immediately.implement-task.agent-orchestration <ID...>; it
resolves ready contracts, assigns separate branches/worktrees to disjoint
writers, queues a proven overlapping successor behind its active
predecessor, queues single-Editor work, runs disjoint tasks in parallel, and
keeps each implementer/verifier/bugfixer chain sequential.Domain skills layer under lifecycle skills rather than competing with them. In
a Unity-shaped target, create-task invokes unity-cli first, then
unity-game-dev read-only to plan topology, ownership, risk, and evidence.
implement-task and every Unity repair dispatched by task-cycle also require
unity-cli before unity-game-dev, Unity diagnosis, production/test
mutation, or verification, then report both the preflight result and
Domain workflow: unity-game-dev. task-bug remains only the read-only
resolver/router and selects no downstream domain workflow until task matching
finishes. Add another specialist only when the task requires it.
Parallelize research and independent tasks, not writers inside one task. One
scene, prefab, ScriptableObject, .inputactions, Addressables group, or project
setting has one active writer.
Never create per-task status.md for new work. Lifecycle commands update only
the managed block in contract.md; task-cycle may also append linked child
defect evidence records whose current status remains in the ledger. Legacy
status.md is read-only migration input. Tasks never auto-close; explicit
task-done closes them. New same-scope failure evidence may make task-bug's
downstream cycle reopen a closed task automatically.
Classify feedback relation-first: failure of accepted behavior, preserved
behavior, or a task-caused regression stays in the original task even when the
repair needs an authority decision. A separate player-facing outcome becomes a
new task. READY_TO_CLOSE requires every same-task defect to be fresh
VERIFIED, every other required channel to pass, and no unclassified feedback.
For bootstrap, first present a compact plan containing:
Do not write instruction, skill, command, hook, or plugin files until that plan is approved. After approval, make surgical changes, validate every surface, and show the changed-file/diff summary.
Lead with a verdict, then provide:
P0/P1/P2 remediation list.Do not claim a workflow is production-ready based only on prompt linting. Require at least one realistic forward test with path containment and Unity compilation or an explicit evidence gap.
What SKILL.md sets; muted values are Claude Code's defaults
opusxhighThree short reads, in order
npx claudepluginhub furkantokkan/agent-foundry --plugin agent-foundry99 skills in this plugin
/adaptive-skillsUse when a task may span multiple personal skills and Codex should choose the smallest relevant skill set across Unity, Unity performance, Clean OOP, Firebase backend, JavaScript tooling, game design/UX, tracked task lifecycle, Steam launch, code review, and web/SaaS work./adoptBrownfield onboarding — audits existing project artifacts for template format compliance (not just existence), classifies gaps by impact, and produces a numbered migration plan. Run this when joining an in-progress project or upgrading from an older template version. Distinct from /project-stage-detect (which checks what exists) — this checks whether what exists will actually work with the template's skills./agent-orchestrationCoordinate game, Unity, web, SaaS, and tooling work through one orchestration workflow across Claude and Codex. Resolve tracked task IDs, ownership conflicts, worktrees, sequential role handoffs, Editor queues, capacity, and verification. Use for orchestration or independent deliverables; keep one small task in the current agent./architecture-decisionCreates an Architecture Decision Record (ADR) documenting a significant technical decision, its context, alternatives considered, and consequences. Every major technical choice should have an ADR./architecture-reviewValidates completeness and consistency of the project architecture against all GDDs. Builds a traceability matrix mapping every GDD technical requirement to ADRs, identifies coverage gaps, detects cross-ADR conflicts, verifies engine compatibility consistency across all decisions, and produces a PASS/CONCERNS/FAIL verdict. The architecture equivalent of /design-review./art-bibleGuided, section-by-section Art Bible authoring. Creates the visual identity specification that gates all asset production. Run after /brainstorm is approved and before /map-systems or any GDD authoring begins.Other plugins' skills for the same job