{"data":{"slug":"github-donchitos-claude-code-game-studios-claude-skills-team-polish-865d766b571c","title":"Team Polish for Feature Optimization","summary":"Orchestrate a cross-functional team to optimize and harden a specific feature or area, with phases for assessment, optimization, and testing. The process includes profiling, memory analysis, visual and audio polish, and testing.","url":"https:\/\/skillshunter.net\/skills\/github-donchitos-claude-code-game-studios-claude-skills-team-polish-865d766b571c","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-donchitos-claude-code-game-studios-claude-skills-team-polish-865d766b571c","markdown_url":"https:\/\/skillshunter.net\/skills\/github-donchitos-claude-code-game-studios-claude-skills-team-polish-865d766b571c.md","download_url":"https:\/\/skillshunter.net\/skills\/github-donchitos-claude-code-game-studios-claude-skills-team-polish-865d766b571c\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before starting, ensure the feature or area to be polished is specified. The pipeline will resolve configuration settings such as team size and automation mode. In `individual` mode, only the performance-analyst and technical-artist are active, and the optimization list is passed to `\/dev-story` for implementation.","instructions":"---\nname: team-polish\ndescription: \"Orchestrate the polish team \u2014 performance-analyst, technical-artist, sound-designer, qa-tester \u2014 to optimize and harden a feature or area.\"\nargument-hint: \"[feature or area to polish] [--review full|lean|solo]\"\nuser-invocable: true\nallowed-tools: Read, Glob, Grep, Write, Edit, Agent, AskUserQuestion, TaskCreate, TaskGet, TaskList, TaskUpdate, Bash(bash \"*\/.claude\/skills\/team-polish\/..\/..\/hooks\/yaml-helper.sh\" resolve_config *)\nmodel: sonnet\n---\n# Team Polish\n\nIf no argument is provided, output usage guidance and exit without spawning any agents:\n> Usage: `\/team-polish [feature or area to polish] [--review full|lean|solo]` \u2014 specify the feature or area to polish (e.g., `combat`, `main menu`, `inventory system`, `level-1`). Do not use `AskUserQuestion` here; output the guidance directly.\n\nWhen this skill is invoked with an argument, orchestrate the polish team through a structured pipeline.\n\n**Decision Points:** At each phase transition, use `AskUserQuestion` to present\nthe user with the subagent's proposals as selectable options. Write the agent's\nfull analysis in conversation, then capture the decision with concise labels.\nIn `collaborative` mode, the user must approve before moving to the next phase.\nIn `guided` mode the pipeline advances automatically unless a phase is BLOCKED;\nin `autonomous` mode it runs end to end, recording each phase outcome via\n`log_decision`. Decisions in `automation_always_ask` categories\n(`is_always_ask_category` helper) always prompt regardless of mode. See\n`.claude\/docs\/automation-modes.md`.\n\n## Phase 0: Resolve Config\n\n!`bash \"${CLAUDE_SKILL_DIR}\/..\/..\/hooks\/yaml-helper.sh\" resolve_config --keys review_mode,automation,team.size,workflow`\n\nResolved above \u2014 use as-is; `--review` overrides `review_mode`. No block \u2192\ndefaults in `.claude\/docs\/config-resolution.md`.\n\n`review_mode` sets director-gate depth, and this pipeline has no director gate:\nno phase below spawns CD-, TD-, PR- or AD-PHASE-GATE, at any `review_mode`. Its\nphase gates are the pipeline's own decision points (defined under `team.size`\nbelow), and the agents that work at them are team members, not director gates.\n\n`automation` drives the Decision Points note above. See the Decision Points note above and\n`.claude\/docs\/automation-modes.md` for how each mode changes pipeline behavior.\n\n**`team.size`**: which agents are active (orthogonal to review_mode gate-depth and workflow docs).\n- **`individual`** (default): `performance-analyst` + `technical-artist`. Other agents consulted via these two, not spawned separately. No programmer is active, so the optimisation list's programmer items are not implemented in this run \u2014 the report names the list as handed to `\/dev-story` (Phase 2).\n- **`small`**: + `sound-designer` + `qa-tester` + `engine-programmer`, and `tools-programmer` when Phase 1 traces a cause to a content authoring tool (the full pipeline as documented).\n- **`studio`**: the `small` set, `engine-programmer` included, + an adversarial review pass: Phase 5's qa-tester is told \"your job is not to confirm this holds \u2014 find how it breaks\", and the report says the pass ran. This pipeline has no engine specialist to widen; engine-level work stays with `engine-programmer`.\nA non-core agent needed at `individual` routes through the nearest active core agent with an informational note. **\"Phase gate\" means any phase that ends in an `AskUserQuestion` decision point this pipeline itself lists** \u2014 a transition under Decision Points above, or a **Gate** step written into the pipeline below \u2014 **whatever the `automation` mode.** `guided` and `autonomous` change how a gate is passed (it auto-advances, or is recorded with `log_decision`), not whether it is one, so bounded-exception condition (3) below holds at it in every mode. An agent restricted to \"phase gates only\" is spawned at those points and no others. This active-set scoping applies throughout the pipeline below: any phase that names an agent outside the active set routes through the nearest core agent rather than spawning it.\n\n**Announce the active set before Phase 1 \u2014 never let the collapse be silent.**\nBefore spawning anything, state in one line which agents this run will actually\nspawn, and which the pipeline below names but will **not** spawn at the resolved\n`team.size`. For example:\n\n> `Active set (team.size: <resolved>): <the agents listed for that size above>.`\n> `Not spawned this run: <every other agent this pipeline names> \u2014 consulted`\n> `through <nearest active core agent>. Raise team.size (or modes.rigor) to widen.`\n\nFill it from the `team.size` list directly above and the agents this file's own\npipeline names \u2014 not from an example. Both sets differ per orchestrator.\n\nThe pipeline below reads as a multi-agent fan-out and at the shipped default it\nis one or two agents \u2014 `team-release` names ten and runs one, `team-narrative`\nnames six across five phases and runs `writer` alone. **The collapse is correct**:\n`team.size` is rigor-fronted and the narrow default is the token lever.\nWithout saying so, a reader cannot\ndistinguish a correctly-collapsed run from a broken pipeline, and the per-agent\n\"routes through the nearest core agent with an informational note\" rule above\nfires at routing time and never states the shape of the run as a whole.\n\nThis is the same rule as the skipped-check reporting elsewhere in this file: **a constraint that is enforced but never surfaced is\nindistinguishable, to the person reading the output, from one that was never\nenforced.**\n\n## Team Composition\n- **performance-analyst** \u2014 Profiling, memory analysis, frame budget, and the optimisation list \u2014 it writes no game code\n- **engine-programmer** \u2014 Implements the optimisation list's engine-level items: rendering pipeline, memory, resource loading, hot paths (invoke when performance-analyst identifies low-level root causes)\n- **technical-artist** \u2014 VFX polish, shader optimization, visual quality\n- **sound-designer** \u2014 Audio polish, mixing, ambient layers, feedback sounds\n- **tools-programmer** \u2014 Content pipeline tool verification, editor tool stability, automation fixes (Phase 2, when Phase 1 traces a cause to a content authoring tool)\n- **qa-tester** \u2014 Edge case testing, regression testing, soak testing\n\n## How to Delegate\n\nUse the `Agent` tool to spawn each team member as a subagent:\n- `subagent_type: performance-analyst` \u2014 Profiling, memory analysis, the optimisation list\n- `subagent_type: engine-programmer` \u2014 Engine-level fixes from the optimisation list: rendering, memory, resource loading\n- `subagent_type: technical-artist` \u2014 VFX polish, shader optimization, visual quality\n- `subagent_type: sound-designer` \u2014 Audio polish, mixing, ambient layers\n- `subagent_type: tools-programmer` \u2014 Content pipeline and editor tool fixes from the optimisation list\n- `subagent_type: qa-tester` \u2014 Edge case testing, regression testing, soak testing\n\n**Brief each agent \u2014 do not dump context.** Read the shared inputs **once** and pass a distilled brief inline: the lines each agent actually needs, never a file path for a document you have already read (an agent handed a path re-reads the whole file). Pass a path only for a document you have not read and only that agent needs.\n\n**End every agent prompt with a return contract:** \"Write your full output to `[path]` \u2014 that named path is your write authorisation under the bounded exception below, so write it without a separate approval prompt. Return **only** (1) the path written, (2) a \u22645-bullet summary of decisions, (3) any BLOCKED\/CONCERNS items, one line each. Do not restate the documents you read.\" Without it, an agent returns everything it read back into this session. **Implementation files are the exception:** an agent writing code or assets first returns the files it will create or change, and its return contract names them only after you have asked once for the set and the user said yes (File Write Protocol) \u2014 that answer, not the bounded exception, authorises those writes.\n\n**Substitute a real path for `[path]` \u2014 this skill's destination is\n`production\/polish\/`.** Name it per agent, one file each:\n\n| Agent | Writes to |\n|---|---|\n| performance-analyst | `production\/polish\/[area]-report-[date].md` |\n| technical-artist | `production\/polish\/[area]-render-notes-[date].md` |\n| engine-programmer | `production\/polish\/[area]-engine-fixes-[date].md` |\n| tools-programmer | `production\/polish\/[area]-tool-fixes-[date].md` |\n| sound-designer | `production\/polish\/[area]-audio-notes-[date].md` |\n| qa-tester | `production\/polish\/[area]-verification-[date].md` |\n\n> **Why `production\/` and not `docs\/`.** These are date-stamped measurements of\n> one run, the same shape as `production\/qa\/smoke-[date].md` \u2014 not durable\n> specifications like `docs\/architecture\/`. Keeping them beside the other\n> point-in-time process artifacts is what makes a later comparison possible.\n>\n> The `[path]` contract above has a precondition: the path is one *you* named, so\n> a concrete destination must be stated here or every run invents one. Unlike\n> `\/team-qa` and `\/team-narrative`, whose destinations are fixed by their\n> consumers, this location has no reader in the repo and was chosen deliberately.\n> **Nothing reads `production\/polish\/` yet** \u2014 say so when reporting, so the user\n> knows the report is a record rather than an input to a later gate.\n\n> **Why this does not violate the Collaboration Protocol.** `CLAUDE.md` requires an agent to ask \"May I write this to [filepath]?\" before Write\/Edit. A subagent spawned here writes **without** asking, and that is a deliberate, bounded exception rather than an oversight \u2014 the same call already made for `consistency-check` appending to `active.md`. The exception holds only when all three are true: (1) the path is one **you** named in the prompt, so the user approved the destination when they approved the phase; (2) it is a new artifact under `production\/`, `docs\/` or `tests\/`, never an edit to existing source or config; (3) the phase that produced it is itself gated by an `AskUserQuestion` before the pipeline advances. Outside those three, the agent must ask. **Do not \"fix\" this by asking per subagent** \u2014 a prompt per agent per phase makes an orchestrator unusable, which is why the exception exists.\n\nLaunch independent agents in parallel where the pipeline allows it (e.g., Phases 3 and 4 can run simultaneously).\n\n## Pipeline\n\n### Phase 1: Assessment\nDelegate to **performance-analyst**:\n- Profile the target feature\/area using `\/perf-profile`\n- Identify performance bottlenecks and frame budget violations\n- Measure memory usage and check for leaks\n- Benchmark against target hardware specs\n- Output: performance report with the prioritized **optimisation list** \u2014 for each item, the change, its expected gain against the budget, and its owner (technical-artist for rendering-side changes, engine-programmer for engine systems and hot paths, tools-programmer for a content authoring tool, otherwise the programmer who owns the system)\n\n### Phase 2: Optimization\nperformance-analyst writes no game code (\"recommend and assign\", its agent file),\nso Phase 2 implements its Phase 1 list through the owners in the active set:\n- **engine-programmer** \u2014 spawned only when Phase 1 identified engine-level root causes (rendering pipeline, resource loading, memory allocator, hot paths in core loops): implement those items, fix allocation pressure, verify gameplay behavior is unchanged. Output: engine-level fixes with before\/after metrics and profiler validation\n- **tools-programmer** \u2014 only when Phase 1 traced a cause to a content authoring tool: fix the tool. Output: tool fixes with before\/after metrics\n- **technical-artist** \u2014 rendering-side items (draw calls, overdraw, particles, shaders, LOD) join its Phase 3 brief\n\nEvery implementing agent in Phases 2\u20134 first returns the files it will create or\nchange, and you ask once for the whole Phase 2\u20134 set before any is edited (File\nWrite Protocol).\n\n**An item whose owner is not in the active set is not implemented in this run.**\nAt `team.size: individual` that is every programmer item, since no programmer is\nactive; at any size it includes an item owned by a programmer this pipeline does\nnot name (e.g. gameplay-programmer for a gameplay-script hot spot). The report\nlists those items with their owners under\n\"Optimisation list handed to `\/dev-story`: `production\/polish\/[area]-report-[date].md`\".\nA metric they target that is over budget stays a known problem at Phase 6.\n\n### Phase 3: Visual Polish (parallel with Phase 2)\nDelegate to **technical-artist**:\n- Review VFX for quality and consistency with art bible\n- Optimize particle systems and shader effects\n- Add screen shake, camera effects, and visual juice where appropriate\n- Ensure effects degrade gracefully on lower settings\n- Output: polished visual effects\n\n### Phase 4: Audio Polish (parallel with Phase 2)\nDelegate to **sound-designer**:\n- Review audio events for completeness (are any actions missing sound feedback?)\n- Check audio mix levels \u2014 nothing too loud or too quiet relative to the mix\n- Add ambient audio layers for atmosphere\n- Verify audio plays correctly with spatial positioning\n- Output: audio polish list and mixing notes\n\n### Phase 5: Hardening\nDelegate to **qa-tester**:\n- Test all edge cases: boundary conditions, rapid inputs, unusual sequences\n- Soak test: run the feature for extended periods checking for degradation\n- Stress test: maximum entities, worst-case scenarios\n- Regression test: verify polish changes haven't broken existing functionality \u2014 each Phase 2\u20134 change by name, engine-level fixes included\n- Test on minimum spec hardware (if available)\n- Output: test results with any remaining issues\n\n### Phase 6: Sign-off\n- Collect results from all team members\n- Compare performance metrics against budgets\n- Report: READY FOR RELEASE \/ NOT ASSESSED \/ NEEDS MORE WORK\n- List every remaining issue with its severity (S1\u2013S4), the measured gap where there is one (e.g. \"9 ms against a 6 ms budget \u2014 3 ms over\"), and a recommendation; a regression also names the broken behavior and the polish change that caused it\n\n**NOT ASSESSED ranks above READY FOR RELEASE and below NEEDS MORE WORK.** A known\nproblem \u2014 a metric over budget, an unresolved regression \u2014 makes it NEEDS MORE\nWORK whatever else went unchecked. Otherwise, if any part of the scope could not\nbe checked, the result is NOT ASSESSED, never READY FOR RELEASE, and the report\nnames each gap:\n- A metric with no committed budget. `performance.target_framerate`,\n  `performance.frame_budget_ms`, `performance.draw_call_limit` and\n  `performance.memory_ceiling_mb` have no default, and `\/perf-profile` reports an\n  unset one as NOT ASSESSED \u2014 nothing was compared, so no budget was met.\n- A phase that did not run: BLOCKED, skipped, or its agent outside the active set.\n  At `team.size: individual`, sound-designer's audio polish and qa-tester's\n  hardening are only consulted through the active agents, not run, and Phase 2's\n  programmer items are handed to `\/dev-story` rather than implemented.\n\n## Error Recovery Protocol\n\n**First, verify the artifact.** If the return contract named a path, check the\npath exists before treating the phase as done \u2014 **a named artifact that is not\non disk is a failed phase, however fluent the response reads.** An agent can\nburn a full phase and return a plausible preamble having written nothing, which\nis neither BLOCKED nor an error nor \"cannot complete\", so the trigger below\nnever fires. Resume it naming the unmet contract; the context is\nusually still there.\n\nIf any spawned agent returns BLOCKED, errors, or cannot complete: **surface it\nimmediately, don't proceed past a dependency it blocks, and always produce a\npartial report.** A skipped agent's section stays a named gap \u2014 never fill it with content of your own. Full procedure: `.claude\/docs\/error-recovery-protocol.md`.\n\nCommon blockers:\n- Input file missing (story not found, GDD absent) \u2192 redirect to the skill that creates it\n- ADR status is Proposed \u2192 do not implement; once it is decided, accept it with `\/architecture-decision accept ADR-NNNN`\n- Scope too large \u2192 split into two stories via `\/create-stories`\n- Conflicting instructions between ADR and story \u2192 surface the conflict, do not guess\n\n## File Write Protocol\n\nAll file writes (performance reports, test results, evidence docs) are delegated to\nsub-agents spawned via `Agent`. Those writes follow the **bounded exception**\ndocumented above under \"Why this does not violate the Collaboration Protocol\" \u2014\nthe path is one you named, the artifact is new under `production\/`, `docs\/` or\n`tests\/`, and the phase is gated by an `AskUserQuestion`. A sub-agent does **not**\nprompt per write inside those bounds; outside them it must ask. The optimization\nand polish changes of Phases 2\u20134 edit existing code, shaders, audio or assets, so\nthey are outside those bounds: each implementing agent returns the files it will\ncreate or change, you ask once for the whole Phase 2\u20134 set (\"May I have [agents]\nchange these [N] files?\"), and each edits only after a yes \u2014 one ask for the set,\nnot one per phase. This orchestrator does not write files directly.\n\n## Output\n\nA summary report covering: performance before\/after metrics, visual polish changes, audio polish changes, test results, any optimisation list handed to `\/dev-story`, and release readiness assessment.\n\n## Next Steps\n\n- If READY FOR RELEASE: run `\/release-checklist` for the final pre-release validation.\n- If NEEDS MORE WORK: schedule remaining issues in `\/sprint-plan update` (at `workflow: minimal`, which has no sprints, add them to the brief's build order) and re-run `\/team-polish` after fixes.\n- If NOT ASSESSED: supply what was missing \u2014 commit the unset `performance.*` budgets in `project.yaml` (`\/project-settings`), or run the phases that did not run (raise `team.size`) \u2014 then re-run `\/team-polish`. Do not treat the area as release-ready.\n- If the report handed an optimisation list to `\/dev-story`: implement those items there, then re-run `\/team-polish` to measure the gain.\n- Run `\/gate-check` for a formal phase gate verdict before handing off to release.\n","use_cases":["Optimize the performance of a game feature like combat or inventory system","Harden a specific area like the main menu or level-1 design","Improve visual quality and audio polish for a feature"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/Donchitos\/Claude-Code-Game-Studios\/blob\/abc0de79d6ceb0b5d7aa693945849b3937afbe6a\/.claude\/skills\/team-polish\/SKILL.md","source_commit":"abc0de79d6ceb0b5d7aa693945849b3937afbe6a","license":null,"version":null,"listing_approved_at":"2026-11-18","created_at":"2026-11-17T20:29:09.000000Z","updated_at":"2026-11-18T18:54:36.000000Z","seo_title":"Team Polish for Feature Optimization","seo_description":"Optimize and harden a feature or area with a cross-functional team. Use \/team-polish to orchestrate performance analysis, code fixes, and testing.","seo_keywords":["feature optimization","team polish","performance analysis","code fixes","visual polish","audio optimization"]}}