@playcraft/cli 0.0.44 → 0.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atom-tree/build-skeleton.js +180 -0
- package/dist/atom-tree/fusion-hints.js +86 -0
- package/dist/atom-tree/selection.js +402 -0
- package/dist/commands/build-all.js +33 -5
- package/dist/commands/build.js +7 -1
- package/dist/commands/create.js +774 -50
- package/dist/commands/image.js +11 -0
- package/dist/commands/prad.js +61 -0
- package/dist/commands/remix.js +20 -0
- package/dist/commands/skills.js +961 -185
- package/dist/commands/tools-detect.js +56 -0
- package/dist/commands/tools-generation.js +21 -0
- package/dist/commands/tools-video-review.js +100 -0
- package/dist/commands/tools.js +4 -0
- package/dist/index.js +2 -0
- package/dist/prad/atom-ref.js +23 -0
- package/dist/prad/check.js +377 -0
- package/dist/prad/check.test.js +49 -0
- package/dist/prad/explain.js +109 -0
- package/dist/prad/load-spec.js +23 -0
- package/dist/prad/paths.js +83 -0
- package/dist/prad/skills-index.js +60 -0
- package/dist/remix/init-template.js +80 -0
- package/dist/scaffold/compose.js +211 -0
- package/engine-packs/phaser/game/adapters/phaser.ts +52 -0
- package/engine-packs/phaser/game/config/game-config.ts +46 -0
- package/engine-packs/phaser/game/contract/publish.ts +141 -0
- package/engine-packs/phaser/game/contract/types.ts +34 -0
- package/engine-packs/phaser/game/index.ts +81 -0
- package/engine-packs/phaser/game/runtime-contract.ts +28 -0
- package/engine-packs/phaser/manifest.json +1 -0
- package/engine-packs/phaser/package.deps.json +1 -0
- package/engine-packs/threejs/game/config/.gitkeep +0 -0
- package/engine-packs/threejs/game/config/game-config.ts +46 -0
- package/engine-packs/threejs/game/contract/publish.ts +141 -0
- package/engine-packs/threejs/game/contract/types.ts +34 -0
- package/engine-packs/threejs/game/gameplay/.gitkeep +0 -0
- package/engine-packs/threejs/game/index.ts +76 -0
- package/engine-packs/threejs/game/runtime-contract.ts +15 -0
- package/engine-packs/threejs/game/scenes/.gitkeep +0 -0
- package/engine-packs/threejs/manifest.json +1 -0
- package/engine-packs/threejs/package.deps.json +8 -0
- package/package.json +18 -4
- package/project-template/.claude/agents/artist.md +101 -0
- package/project-template/.claude/agents/developer.md +90 -93
- package/project-template/.claude/agents/game-designer.md +192 -0
- package/project-template/.claude/agents/refs/README.md +57 -51
- package/project-template/.claude/agents/refs/{designer-color-audio-recipes.md → artist-color-audio-recipes.md} +2 -2
- package/project-template/.claude/agents/refs/{designer-deliverable-spec.md → artist-deliverable-spec.md} +57 -57
- package/project-template/.claude/agents/refs/{designer-dimension-axis.md → artist-dimension-axis.md} +5 -5
- package/project-template/.claude/agents/refs/{designer-handoff-v2-checklist.md → artist-handoff-v2-checklist.md} +15 -15
- package/project-template/.claude/agents/refs/artist-legacy-fallback.md +14 -0
- package/project-template/.claude/agents/refs/{designer-master-composite-recipes.md → artist-master-composite-recipes.md} +3 -3
- package/project-template/.claude/agents/refs/artist-style-exploration-flow.md +55 -0
- package/project-template/.claude/agents/refs/developer-dev-handoff.md +83 -40
- package/project-template/.claude/agents/refs/developer-impl-cookbook.md +365 -67
- package/project-template/.claude/agents/refs/developer-legacy-fallback.md +15 -0
- package/project-template/.claude/agents/refs/developer-phase1-flow.md +131 -85
- package/project-template/.claude/agents/refs/framework-5-component-filter.md +252 -0
- package/project-template/.claude/agents/refs/framework-game-feel-juice.md +266 -0
- package/project-template/.claude/agents/refs/framework-mda.md +147 -0
- package/project-template/.claude/agents/refs/game-designer-gameplay-sufficiency.md +123 -0
- package/project-template/.claude/agents/refs/game-designer-legacy-fallback.md +15 -0
- package/project-template/.claude/agents/refs/game-designer-workflow-detail.md +69 -0
- package/project-template/.claude/agents/refs/implementation-plan-guide.md +316 -0
- package/project-template/.claude/agents/refs/reviewer-convergence-eval.md +247 -33
- package/project-template/.claude/agents/refs/reviewer-legacy-fallback.md +14 -0
- package/project-template/.claude/agents/refs/skill-selector-guide.md +465 -0
- package/project-template/.claude/agents/refs/skill-value-layers.md +145 -0
- package/project-template/.claude/agents/refs/storyboard-generation-guide.md +110 -0
- package/project-template/.claude/agents/refs/ta-atlas-deliverable-standard.md +4 -4
- package/project-template/.claude/agents/refs/ta-pipeline-cookbook.md +101 -104
- package/project-template/.claude/agents/refs/technical-artist-legacy-fallback.md +14 -0
- package/project-template/.claude/agents/reviewer.md +81 -95
- package/project-template/.claude/agents/technical-artist.md +71 -95
- package/project-template/.claude/hooks/README.md +83 -35
- package/project-template/.claude/hooks/asr-coverage-validate.mjs +19 -19
- package/project-template/.claude/hooks/block-developer-preflight.mjs +185 -0
- package/project-template/.claude/hooks/block-ring1-tasklist.mjs +95 -0
- package/project-template/.claude/hooks/gate-dispatcher.mjs +78 -0
- package/project-template/.claude/hooks/gate-runner.mjs +557 -0
- package/project-template/.claude/hooks/gate.mjs +170 -0
- package/project-template/.claude/hooks/snapshot-milestone.mjs +246 -0
- package/project-template/.claude/hooks/user-prompt.mjs +193 -0
- package/project-template/.claude/hooks/validate-atom-tree-selection.mjs +281 -0
- package/project-template/.claude/hooks/validate-workflow-stop.mjs +1535 -95
- package/project-template/.claude/settings.json +54 -9
- package/project-template/.claude/skills/brainstorming/SKILL.md +161 -0
- package/project-template/.claude/skills/brainstorming/scripts/frame-template.html +270 -0
- package/project-template/.claude/skills/brainstorming/scripts/helper.js +177 -0
- package/project-template/.claude/skills/brainstorming/scripts/server.cjs +354 -0
- package/project-template/.claude/skills/brainstorming/scripts/start-server.sh +148 -0
- package/project-template/.claude/skills/brainstorming/scripts/stop-server.sh +56 -0
- package/project-template/.claude/skills/brainstorming/scripts/wait-for-selection.sh +62 -0
- package/project-template/.claude/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
- package/project-template/.claude/skills/brainstorming/visual-companion.md +309 -0
- package/project-template/.claude/skills/playcraft-ad-psychology/SKILL.md +3 -3
- package/project-template/.claude/skills/playcraft-art-style-guide/SKILL.md +3 -3
- package/project-template/.claude/skills/playcraft-asset-state-sheet/SKILL.md +35 -25
- package/project-template/.claude/skills/playcraft-audio-generation/SKILL.md +15 -15
- package/project-template/.claude/skills/playcraft-build-optimizer/SKILL.md +5 -5
- package/project-template/.claude/skills/playcraft-image-generation/SKILL.md +5 -5
- package/project-template/.claude/skills/playcraft-image-generation/reference/compare-style.template.mjs +5 -5
- package/project-template/.claude/skills/playcraft-image-generation/reference/gen-batch-sprite.template.mjs +116 -27
- package/project-template/.claude/skills/playcraft-image-generation/reference/prompt-cookbook.md +1 -1
- package/project-template/.claude/skills/playcraft-image-processing/SKILL.md +219 -0
- package/project-template/.claude/skills/playcraft-playable-optimization/SKILL.md +161 -0
- package/project-template/.claude/skills/playcraft-research/SKILL.md +24 -21
- package/project-template/.claude/skills/playcraft-skill-recommender/SKILL.md +331 -0
- package/project-template/.claude/skills/playcraft-sprite-generation/SKILL.md +48 -48
- package/project-template/.claude/skills/playcraft-sprite-remix/SKILL.md +158 -0
- package/project-template/.claude/skills/playcraft-sprite-sheet/SKILL.md +100 -0
- package/project-template/.claude/skills/playcraft-storyboard/SKILL.md +4 -4
- package/project-template/.claude/skills/playcraft-style-qa/SKILL.md +45 -45
- package/project-template/.claude/skills/playcraft-text-rendering/SKILL.md +27 -27
- package/project-template/.claude/skills/session-analyzer/SKILL.md +386 -0
- package/project-template/.claude/skills/session-analyzer/scripts/execution-breakdown.mjs +182 -0
- package/project-template/.claude/skills/session-analyzer/scripts/find-turns.mjs +72 -0
- package/project-template/.claude/skills/session-analyzer/scripts/heavy-output.mjs +121 -0
- package/project-template/.claude/skills/session-analyzer/scripts/resolve-session.mjs +103 -0
- package/project-template/.claude/skills/session-analyzer/scripts/subagent-stats.mjs +127 -0
- package/project-template/.claude/skills/session-analyzer/scripts/subagent-tool-timeline.mjs +106 -0
- package/project-template/.claude/skills/session-analyzer/scripts/time-gaps.mjs +128 -0
- package/project-template/.claude/skills/session-analyzer/scripts/turn-timeline.mjs +67 -0
- package/project-template/.claude/snapshot.mjs +350 -0
- package/project-template/.codebuddy/settings.json +53 -0
- package/project-template/.cursor/hooks.json +1 -1
- package/project-template/.cursor/rules/playcraft-orchestrator.mdc +91 -86
- package/project-template/.cursor/rules/playcraft-subagent-boundary.mdc +16 -5
- package/project-template/CHANGELOG.md +105 -0
- package/project-template/CLAUDE.md +58 -254
- package/project-template/docs/DESIGN.md +65 -0
- package/project-template/docs/intent-clarifications.md +58 -0
- package/project-template/docs/pipeline-overview.md +69 -0
- package/project-template/docs/project-state.md +211 -0
- package/project-template/docs/team/agent-conduct.md +51 -105
- package/project-template/docs/team/agent-runtime-matrix.md +60 -74
- package/project-template/docs/team/atom-tree-format.md +169 -0
- package/project-template/docs/team/collaboration.md +319 -225
- package/project-template/docs/team/core-model.md +80 -46
- package/project-template/docs/team/game-designer-migration-todo.md +8 -0
- package/project-template/docs/team/harness-legacy-deprecation.md +23 -0
- package/project-template/docs/team/platform-capabilities.md +16 -13
- package/project-template/docs/team/workflow-changelog.md +95 -23
- package/project-template/docs/team/workflow-consistency-checklist.md +93 -45
- package/project-template/focus-lab/.gitkeep +0 -0
- package/project-template/game/.playcraft-scaffold-pending +0 -0
- package/project-template/game/index.ts +18 -0
- package/project-template/globals.d.ts +51 -0
- package/project-template/index.css +34 -0
- package/project-template/index.html +18 -0
- package/project-template/main.ts +9 -0
- package/project-template/package.json +79 -0
- package/project-template/skills/README.md +52 -0
- package/project-template/skills/_shared/agent-prep.md +136 -0
- package/project-template/skills/_shared/requirements.txt +1 -0
- package/project-template/skills/_shared/scripts/__pycache__/placeholder_audio_lib.cpython-311.pyc +0 -0
- package/project-template/skills/_shared/scripts/__pycache__/placeholder_lib.cpython-311.pyc +0 -0
- package/project-template/skills/_shared/scripts/build-evidence-gate.mjs +87 -0
- package/project-template/skills/_shared/scripts/context-budget.mjs +215 -0
- package/project-template/skills/_shared/scripts/create-playable.mjs +140 -0
- package/project-template/skills/_shared/scripts/dev-start.mjs +151 -0
- package/project-template/skills/_shared/scripts/disclosure-config.mjs +480 -0
- package/project-template/skills/_shared/scripts/ensure-project.mjs +532 -0
- package/project-template/skills/_shared/scripts/gen-placeholder-audio.py +345 -0
- package/project-template/skills/_shared/scripts/gen-placeholder.py +244 -0
- package/project-template/skills/_shared/scripts/harness-smoke.mjs +257 -0
- package/project-template/skills/_shared/scripts/lib/validator-artifacts.mjs +129 -0
- package/project-template/skills/_shared/scripts/placeholder-pack-sheet.mjs +67 -0
- package/project-template/skills/_shared/scripts/placeholder_audio_lib.py +142 -0
- package/project-template/skills/_shared/scripts/placeholder_lib.py +993 -0
- package/project-template/skills/_shared/scripts/render-project-state.mjs +278 -0
- package/project-template/skills/_shared/scripts/ring-config.mjs +252 -0
- package/project-template/skills/_shared/scripts/skills-check.mjs +176 -0
- package/project-template/skills/_shared/scripts/slice-set.mjs +77 -0
- package/project-template/skills/_shared/scripts/state-advance-ring.mjs +63 -0
- package/project-template/skills/_shared/scripts/state-get.mjs +215 -0
- package/project-template/skills/_shared/scripts/state-handoff.mjs +120 -0
- package/project-template/skills/_shared/scripts/state-set.mjs +113 -0
- package/project-template/skills/_shared/scripts/state-store.mjs +893 -0
- package/project-template/skills/_shared/scripts/sync-template-skills.mjs +112 -0
- package/project-template/skills/_shared/scripts/verify-asset-code-sync.mjs +265 -0
- package/project-template/skills/_shared/scripts/verify-atom-conformance.mjs +181 -0
- package/project-template/skills/_shared/scripts/verify-env.mjs +285 -0
- package/project-template/skills/_shared/scripts/verify-placeholders.mjs +161 -0
- package/project-template/skills/_shared/scripts/workflow-doctor.mjs +348 -0
- package/project-template/skills/playable-animate/SKILL.md +52 -0
- package/project-template/skills/playable-animate/agents/openai.yaml +4 -0
- package/project-template/skills/playable-animate/references/board-refresh.md +30 -0
- package/project-template/skills/playable-animate/references/diagnosis-checklist.md +25 -0
- package/project-template/skills/playable-animate/references/entrance-sequencing.md +33 -0
- package/project-template/skills/playable-animate/references/interaction-timing.md +23 -0
- package/project-template/skills/playable-art/SKILL.md +203 -0
- package/project-template/skills/playable-art/agents/openai.yaml +4 -0
- package/project-template/skills/playable-art/references/alpha-postprocess.md +46 -0
- package/project-template/skills/playable-art/references/cta-art-spec.md +59 -0
- package/project-template/skills/playable-art/references/layout-proportions.md +30 -0
- package/project-template/skills/playable-art/references/prompt-patterns.md +83 -0
- package/project-template/skills/playable-art/references/reference-comparison.md +30 -0
- package/project-template/skills/playable-art/references/sheet-import-v2.md +91 -0
- package/project-template/skills/playable-art/scripts/__pycache__/import-gpt-art-sheets-v2.cpython-311.pyc +0 -0
- package/project-template/skills/playable-art/scripts/__pycache__/import_gpt_art_pipeline.cpython-311.pyc +0 -0
- package/project-template/skills/playable-art/scripts/__pycache__/review-processed-assets.cpython-311.pyc +0 -0
- package/project-template/skills/playable-art/scripts/build-atlas.py +332 -0
- package/project-template/skills/playable-art/scripts/chroma-key.py +50 -0
- package/project-template/skills/playable-art/scripts/extract-alpha-split.py +65 -0
- package/project-template/skills/playable-art/scripts/extract-dual-bg-alpha.py +118 -0
- package/project-template/skills/playable-art/scripts/import-gpt-art-sheets-v2.py +403 -0
- package/project-template/skills/playable-art/scripts/import-gpt-art-sheets.py +280 -0
- package/project-template/skills/playable-art/scripts/import-gpt-tile-sheet.py +114 -0
- package/project-template/skills/playable-art/scripts/import_gpt_art_pipeline.py +321 -0
- package/project-template/skills/playable-art/scripts/import_gpt_art_sheets_v2_test.py +126 -0
- package/project-template/skills/playable-art/scripts/placeholder_common.py +98 -0
- package/project-template/skills/playable-art/scripts/remove-bg.py +91 -0
- package/project-template/skills/playable-art/scripts/review-processed-assets.py +468 -0
- package/project-template/skills/playable-art/scripts/review_processed_assets_test.py +116 -0
- package/project-template/skills/playable-art/scripts/verify-alpha-clean.py +105 -0
- package/project-template/skills/playable-debug/SKILL.md +116 -0
- package/project-template/skills/playable-debug/agents/openai.yaml +4 -0
- package/project-template/skills/playable-debug/references/debug-config.md +40 -0
- package/project-template/skills/playable-focus/SKILL.md +148 -0
- package/project-template/skills/playable-focus/scripts/bootstrap-playground.mjs +84 -0
- package/project-template/skills/playable-focus/scripts/extract-focus-frames.mjs +87 -0
- package/project-template/skills/playable-focus/scripts/generate-focus-reports.mjs +121 -0
- package/project-template/skills/playable-focus/scripts/playground.mjs +390 -0
- package/project-template/skills/playable-focus/templates/focus-lab/frame.html +39 -0
- package/project-template/skills/playable-focus/templates/focus-lab/harness/clean-stage.js +114 -0
- package/project-template/skills/playable-focus/templates/focus-lab/harness/frame-lab-scene.js +94 -0
- package/project-template/skills/playable-focus/templates/focus-lab/harness/particle-lab-scene.js +224 -0
- package/project-template/skills/playable-focus/templates/focus-lab/model.html +16 -0
- package/project-template/skills/playable-focus/templates/focus-lab/particle.html +38 -0
- package/project-template/skills/playable-focus/templates/focus-lab/shatter.html +47 -0
- package/project-template/skills/playable-focus/templates/playground/registry.template.json +55 -0
- package/project-template/skills/playable-focus/templates/playground/vfx-catalog.template.json +280 -0
- package/project-template/skills/playable-fx-decompose/SKILL.md +212 -0
- package/project-template/skills/playable-fx-decompose/examples.md +89 -0
- package/project-template/skills/playable-fx-decompose/reference.md +201 -0
- package/project-template/skills/playable-fx-decompose/requirements.txt +2 -0
- package/project-template/skills/playable-fx-decompose/scripts/build-blank-tile-crack.py +192 -0
- package/project-template/skills/playable-fx-decompose/scripts/fix-shard-debris-frames.py +60 -0
- package/project-template/skills/playable-fx-decompose/scripts/generate-shard-debris.py +276 -0
- package/project-template/skills/playable-fx-peak/SKILL.md +237 -0
- package/project-template/skills/playable-fx-peak/requirements.txt +2 -0
- package/project-template/skills/playable-fx-peak/scripts/fix-frame-edges.py +70 -0
- package/project-template/skills/playable-fx-peak/scripts/repack-frame-sequence.py +526 -0
- package/project-template/skills/playable-fx-peak/scripts/validate-frame-anchors.py +130 -0
- package/project-template/skills/playable-placeholder/SKILL.md +239 -0
- package/project-template/skills/playable-record/SKILL.md +166 -0
- package/project-template/skills/playable-record/scripts/lib/build-artifact.mjs +92 -0
- package/project-template/skills/playable-record/scripts/lib/dev-server.mjs +104 -0
- package/project-template/skills/playable-record/scripts/lib/record-audio-bridge.js +141 -0
- package/project-template/skills/playable-record/scripts/lib/slice-structure-verify.mjs +199 -0
- package/project-template/skills/playable-record/scripts/record-playable.mjs +583 -0
- package/project-template/skills/playable-record/scripts/verify-build.mjs +185 -0
- package/project-template/skills/playable-record/scripts/verify-contract.mjs +261 -0
- package/project-template/skills/playable-record/scripts/verify-firstwin.mjs +398 -0
- package/project-template/skills/playable-record/scripts/verify-fusion.mjs +320 -0
- package/project-template/skills/playable-record/scripts/verify-lifecycle.mjs +78 -0
- package/project-template/skills/playable-record/scripts/verify-slice-artist.mjs +53 -0
- package/project-template/skills/playable-record/scripts/verify-slice-ta.mjs +53 -0
- package/project-template/skills/playable-record/scripts/verify-slice.mjs +142 -0
- package/project-template/skills/playable-record/scripts/verify-visual-ring.mjs +250 -0
- package/project-template/skills/playable-record/scripts/verify-visual-ring1.mjs +190 -0
- package/project-template/skills/playable-record/scripts/verify-vlm-video.mjs +227 -0
- package/project-template/skills/playable-validate/SKILL.md +260 -0
- package/project-template/skills/playable-validate/references/checklist-detail.md +36 -0
- package/project-template/skills/playable-validate/references/single-html-bundle.md +76 -0
- package/project-template/skills/playable-validate/validation-rules.md +200 -0
- package/project-template/skills/playable-verify-ui/SKILL.md +295 -0
- package/project-template/skills/playable-verify-ui/examples/asset-manifest.example.json +36 -0
- package/project-template/skills/playable-verify-ui/examples/mahjong-match.profile.yaml +334 -0
- package/project-template/skills/playable-verify-ui/profiles/template.profile.yaml +84 -0
- package/project-template/skills/playable-verify-ui/reference.md +165 -0
- package/project-template/skills/playable-verify-ui/references/phaser-patterns.md +67 -0
- package/project-template/skills/playable-verify-ui/references/scaling-decision-tree.md +51 -0
- package/project-template/skills/playable-verify-ui/requirements.txt +7 -0
- package/project-template/skills/playable-verify-ui/schema/asset-manifest.schema.json +68 -0
- package/project-template/skills/playable-verify-ui/schema/playable-ui-profile.schema.json +171 -0
- package/project-template/skills/playable-verify-ui/scripts/__pycache__/asset_manifest.cpython-311.pyc +0 -0
- package/project-template/skills/playable-verify-ui/scripts/__pycache__/verify_slice_plan.cpython-311.pyc +0 -0
- package/project-template/skills/playable-verify-ui/scripts/__pycache__/verify_vision_evidence.cpython-311.pyc +0 -0
- package/project-template/skills/playable-verify-ui/scripts/asset_manifest.py +231 -0
- package/project-template/skills/playable-verify-ui/scripts/lib/__init__.py +1 -0
- package/project-template/skills/playable-verify-ui/scripts/lib/config_expr.js +218 -0
- package/project-template/skills/playable-verify-ui/scripts/lib/node_utils.js +51 -0
- package/project-template/skills/playable-verify-ui/scripts/lib/profile_loader.py +59 -0
- package/project-template/skills/playable-verify-ui/scripts/lib/report.py +106 -0
- package/project-template/skills/playable-verify-ui/scripts/lib/runtime_contract.js +116 -0
- package/project-template/skills/playable-verify-ui/scripts/measure_frame_content.py +77 -0
- package/project-template/skills/playable-verify-ui/scripts/run_all.py +265 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_asset_sizes.py +77 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_assets_present.py +62 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_atlas_budget.py +84 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_atlas_frames.py +79 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_bg_clean.py +365 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_doc_asset_sync.py +90 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_fetch_antipatterns.py +59 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_game_config_load.js +54 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_hardcoded_layout.js +64 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_layout_regions.js +110 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_profile_schema.py +37 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_ring1_visual.py +211 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_runtime_contract.js +58 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_script_load_order.js +73 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_slice_plan.py +238 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_slice_plan_test.py +125 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_text_overlap.py +333 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_tile_consistency.py +323 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_vision_evidence.py +894 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_vision_evidence_test.py +122 -0
- package/project-template/skills/playable-verify-ui/scripts/verify_visual.py +422 -0
- package/project-template/templates/{designer-log.template.md → artist-log.template.md} +26 -31
- package/project-template/templates/atom-tree.template.json +133 -0
- package/project-template/templates/design-brief.template.md +59 -162
- package/project-template/templates/design-lens-checklist.reference.md +14 -14
- package/project-template/templates/design-methodology.md +25 -25
- package/project-template/templates/design.template.md +50 -0
- package/project-template/templates/developer-log.template.md +187 -63
- package/project-template/templates/five-axis-framework.md +89 -44
- package/project-template/templates/gen-placeholder-audio.template.mjs +63 -0
- package/project-template/templates/gen-placeholders.template.mjs +81 -0
- package/project-template/templates/intent-clarifications.template.md +7 -7
- package/project-template/templates/layout-spec.template.md +32 -20
- package/project-template/templates/plan.template.md +80 -0
- package/project-template/templates/project-state.template.md +90 -191
- package/project-template/templates/review-report.template.md +208 -24
- package/project-template/templates/style-exploration.template.md +8 -8
- package/project-template/templates/ta-log.template.md +58 -35
- package/project-template/tsconfig.json +20 -0
- package/project-template/vite.config.ts +27 -0
- package/project-templates/phaser/.claude/agents/artist.md +101 -0
- package/project-templates/phaser/.claude/agents/developer.md +123 -0
- package/project-templates/phaser/.claude/agents/game-designer.md +192 -0
- package/project-templates/phaser/.claude/agents/refs/README.md +77 -0
- package/project-templates/phaser/.claude/agents/refs/artist-art-style-catalog.md +533 -0
- package/project-templates/phaser/.claude/agents/refs/artist-color-audio-recipes.md +153 -0
- package/project-templates/phaser/.claude/agents/refs/artist-deliverable-spec.md +230 -0
- package/project-templates/phaser/.claude/agents/refs/artist-dimension-axis.md +27 -0
- package/project-templates/phaser/.claude/agents/refs/artist-handoff-v2-checklist.md +76 -0
- package/project-templates/phaser/.claude/agents/refs/artist-legacy-fallback.md +14 -0
- package/project-templates/phaser/.claude/agents/refs/artist-master-composite-recipes.md +208 -0
- package/project-templates/phaser/.claude/agents/refs/artist-style-exploration-flow.md +55 -0
- package/project-templates/phaser/.claude/agents/refs/developer-dev-handoff.md +152 -0
- package/project-templates/phaser/.claude/agents/refs/developer-impl-cookbook.md +432 -0
- package/project-templates/phaser/.claude/agents/refs/developer-legacy-fallback.md +15 -0
- package/project-templates/phaser/.claude/agents/refs/developer-phase1-flow.md +404 -0
- package/project-templates/phaser/.claude/agents/refs/framework-5-component-filter.md +252 -0
- package/project-templates/phaser/.claude/agents/refs/framework-game-feel-juice.md +266 -0
- package/project-templates/phaser/.claude/agents/refs/framework-mda.md +147 -0
- package/project-templates/phaser/.claude/agents/refs/game-designer-gameplay-sufficiency.md +123 -0
- package/project-templates/phaser/.claude/agents/refs/game-designer-legacy-fallback.md +15 -0
- package/project-templates/phaser/.claude/agents/refs/game-designer-workflow-detail.md +69 -0
- package/project-templates/phaser/.claude/agents/refs/implementation-plan-guide.md +309 -0
- package/project-templates/phaser/.claude/agents/refs/reviewer-convergence-eval.md +350 -0
- package/project-templates/phaser/.claude/agents/refs/reviewer-legacy-fallback.md +14 -0
- package/project-templates/phaser/.claude/agents/refs/reviewer-six-dimension-eval.md +6 -0
- package/project-templates/phaser/.claude/agents/refs/skill-selector-guide.md +465 -0
- package/project-templates/phaser/.claude/agents/refs/skill-value-layers.md +145 -0
- package/project-templates/phaser/.claude/agents/refs/storyboard-generation-guide.md +110 -0
- package/project-templates/phaser/.claude/agents/refs/ta-3d-flip-recipe.md +88 -0
- package/project-templates/phaser/.claude/agents/refs/ta-atlas-deliverable-standard.md +67 -0
- package/project-templates/phaser/.claude/agents/refs/ta-batch-pipeline-recipes.md +120 -0
- package/project-templates/phaser/.claude/agents/refs/ta-image-generation-detail.md +300 -0
- package/project-templates/phaser/.claude/agents/refs/ta-image-ops-reference.md +495 -0
- package/project-templates/phaser/.claude/agents/refs/ta-pipeline-cookbook.md +1141 -0
- package/project-templates/phaser/.claude/agents/refs/ta-tools-reference.md +111 -0
- package/project-templates/phaser/.claude/agents/refs/ta-vfx-preset-catalog.md +365 -0
- package/project-templates/phaser/.claude/agents/refs/technical-artist-legacy-fallback.md +14 -0
- package/project-templates/phaser/.claude/agents/reviewer.md +116 -0
- package/project-templates/phaser/.claude/agents/technical-artist.md +100 -0
- package/project-templates/phaser/.claude/hooks/README.md +120 -0
- package/project-templates/phaser/.claude/hooks/asr-coverage-validate.mjs +381 -0
- package/project-templates/phaser/.claude/hooks/block-developer-preflight.mjs +185 -0
- package/project-templates/phaser/.claude/hooks/block-ring1-tasklist.mjs +95 -0
- package/project-templates/phaser/.claude/hooks/gate-dispatcher.mjs +78 -0
- package/project-templates/phaser/.claude/hooks/gate-runner.mjs +557 -0
- package/project-templates/phaser/.claude/hooks/gate.mjs +171 -0
- package/project-templates/phaser/.claude/hooks/snapshot-milestone.mjs +247 -0
- package/project-templates/phaser/.claude/hooks/user-prompt.mjs +194 -0
- package/project-templates/phaser/.claude/hooks/validate-atom-tree-selection.mjs +281 -0
- package/project-templates/phaser/.claude/hooks/validate-workflow-stop.mjs +1889 -0
- package/project-templates/phaser/.claude/settings.json +81 -0
- package/project-templates/phaser/.claude/skills/brainstorming/SKILL.md +161 -0
- package/project-templates/phaser/.claude/skills/brainstorming/scripts/frame-template.html +270 -0
- package/project-templates/phaser/.claude/skills/brainstorming/scripts/helper.js +177 -0
- package/project-templates/phaser/.claude/skills/brainstorming/scripts/server.cjs +354 -0
- package/project-templates/phaser/.claude/skills/brainstorming/scripts/start-server.sh +148 -0
- package/project-templates/phaser/.claude/skills/brainstorming/scripts/stop-server.sh +56 -0
- package/project-templates/phaser/.claude/skills/brainstorming/scripts/wait-for-selection.sh +62 -0
- package/project-templates/phaser/.claude/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
- package/project-templates/phaser/.claude/skills/brainstorming/visual-companion.md +309 -0
- package/project-templates/phaser/.claude/skills/playcraft-ad-psychology/SKILL.md +182 -0
- package/project-templates/phaser/.claude/skills/playcraft-art-style-guide/SKILL.md +123 -0
- package/project-templates/phaser/.claude/skills/playcraft-asset-state-sheet/SKILL.md +205 -0
- package/project-templates/phaser/.claude/skills/playcraft-audio-generation/SKILL.md +280 -0
- package/project-templates/phaser/.claude/skills/playcraft-batch-pipeline/SKILL.md +184 -0
- package/project-templates/phaser/.claude/skills/playcraft-build-optimizer/SKILL.md +306 -0
- package/project-templates/phaser/.claude/skills/playcraft-image-generation/SKILL.md +298 -0
- package/project-templates/phaser/.claude/skills/playcraft-image-generation/reference/build-sprite-sheet.template.mjs +123 -0
- package/project-templates/phaser/.claude/skills/playcraft-image-generation/reference/compare-style.template.mjs +254 -0
- package/project-templates/phaser/.claude/skills/playcraft-image-generation/reference/gen-batch-sprite.template.mjs +324 -0
- package/project-templates/phaser/.claude/skills/playcraft-image-generation/reference/gen-batch.template.mjs +97 -0
- package/project-templates/phaser/.claude/skills/playcraft-image-generation/reference/gen-edit-variants.template.mjs +118 -0
- package/project-templates/phaser/.claude/skills/playcraft-image-generation/reference/process-batch.template.mjs +137 -0
- package/project-templates/phaser/.claude/skills/playcraft-image-generation/reference/prompt-cookbook.md +397 -0
- package/project-templates/phaser/.claude/skills/playcraft-image-generation/reference/validate-sprite-sheet.template.mjs +296 -0
- package/project-templates/phaser/.claude/skills/playcraft-image-ops/SKILL.md +122 -0
- package/project-templates/phaser/.claude/skills/playcraft-image-processing/SKILL.md +219 -0
- package/project-templates/phaser/.claude/skills/playcraft-masking/SKILL.md +373 -0
- package/project-templates/phaser/.claude/skills/playcraft-playable-optimization/SKILL.md +161 -0
- package/project-templates/phaser/.claude/skills/playcraft-research/SKILL.md +215 -0
- package/project-templates/phaser/.claude/skills/playcraft-skill-recommender/SKILL.md +331 -0
- package/project-templates/phaser/.claude/skills/playcraft-sprite-generation/SKILL.md +423 -0
- package/project-templates/phaser/.claude/skills/playcraft-sprite-remix/SKILL.md +158 -0
- package/project-templates/phaser/.claude/skills/playcraft-sprite-sheet/SKILL.md +100 -0
- package/project-templates/phaser/.claude/skills/playcraft-storyboard/SKILL.md +167 -0
- package/project-templates/phaser/.claude/skills/playcraft-style-qa/SKILL.md +270 -0
- package/project-templates/phaser/.claude/skills/playcraft-text-rendering/SKILL.md +236 -0
- package/project-templates/phaser/.claude/skills/playcraft-vfx-animation/SKILL.md +130 -0
- package/project-templates/phaser/.claude/skills/playwright-cli/SKILL.md +390 -0
- package/project-templates/phaser/.claude/skills/playwright-cli/references/element-attributes.md +23 -0
- package/project-templates/phaser/.claude/skills/playwright-cli/references/playwright-tests.md +39 -0
- package/project-templates/phaser/.claude/skills/playwright-cli/references/request-mocking.md +87 -0
- package/project-templates/phaser/.claude/skills/playwright-cli/references/running-code.md +240 -0
- package/project-templates/phaser/.claude/skills/playwright-cli/references/session-management.md +226 -0
- package/project-templates/phaser/.claude/skills/playwright-cli/references/spec-driven-testing.md +308 -0
- package/project-templates/phaser/.claude/skills/playwright-cli/references/storage-state.md +275 -0
- package/project-templates/phaser/.claude/skills/playwright-cli/references/test-generation.md +134 -0
- package/project-templates/phaser/.claude/skills/playwright-cli/references/tracing.md +142 -0
- package/project-templates/phaser/.claude/skills/playwright-cli/references/video-recording.md +153 -0
- package/project-templates/phaser/.claude/skills/session-analyzer/SKILL.md +386 -0
- package/project-templates/phaser/.claude/skills/session-analyzer/scripts/execution-breakdown.mjs +182 -0
- package/project-templates/phaser/.claude/skills/session-analyzer/scripts/find-turns.mjs +72 -0
- package/project-templates/phaser/.claude/skills/session-analyzer/scripts/heavy-output.mjs +121 -0
- package/project-templates/phaser/.claude/skills/session-analyzer/scripts/resolve-session.mjs +103 -0
- package/project-templates/phaser/.claude/skills/session-analyzer/scripts/subagent-stats.mjs +127 -0
- package/project-templates/phaser/.claude/skills/session-analyzer/scripts/subagent-tool-timeline.mjs +106 -0
- package/project-templates/phaser/.claude/skills/session-analyzer/scripts/time-gaps.mjs +128 -0
- package/project-templates/phaser/.claude/skills/session-analyzer/scripts/turn-timeline.mjs +67 -0
- package/project-templates/phaser/.claude/snapshot.mjs +257 -0
- package/project-templates/phaser/.cursor/hooks.json +17 -0
- package/project-templates/phaser/.cursor/rules/playcraft-orchestrator.mdc +142 -0
- package/project-templates/phaser/.cursor/rules/playcraft-subagent-boundary.mdc +29 -0
- package/project-templates/phaser/.playcraft-engine +1 -0
- package/project-templates/phaser/CHANGELOG.md +105 -0
- package/project-templates/phaser/CLAUDE.md +84 -0
- package/project-templates/phaser/assets/audio/bgm/.gitkeep +0 -0
- package/project-templates/phaser/assets/audio/sfx/.gitkeep +0 -0
- package/project-templates/phaser/assets/bundles/.gitkeep +0 -0
- package/project-templates/phaser/assets/images/bg/.gitkeep +0 -0
- package/project-templates/phaser/assets/images/reference/.gitkeep +0 -0
- package/project-templates/phaser/assets/images/storyboard/.gitkeep +0 -0
- package/project-templates/phaser/assets/images/tiles/.gitkeep +0 -0
- package/project-templates/phaser/assets/images/ui/.gitkeep +0 -0
- package/project-templates/phaser/assets/images/vfx/.gitkeep +0 -0
- package/project-templates/phaser/assets/models/.gitkeep +0 -0
- package/project-templates/phaser/docs/DESIGN.md +65 -0
- package/project-templates/phaser/docs/intent-clarifications.md +58 -0
- package/project-templates/phaser/docs/pipeline-overview.md +69 -0
- package/project-templates/phaser/docs/project-state.md +211 -0
- package/project-templates/phaser/docs/scaffold-manifest.md +10 -0
- package/project-templates/phaser/docs/team/agent-conduct.md +67 -0
- package/project-templates/phaser/docs/team/agent-runtime-matrix.md +80 -0
- package/project-templates/phaser/docs/team/atom-tree-format.md +114 -0
- package/project-templates/phaser/docs/team/collaboration.md +391 -0
- package/project-templates/phaser/docs/team/core-model.md +85 -0
- package/project-templates/phaser/docs/team/game-designer-migration-todo.md +8 -0
- package/project-templates/phaser/docs/team/harness-legacy-deprecation.md +23 -0
- package/project-templates/phaser/docs/team/platform-capabilities.md +18 -0
- package/project-templates/phaser/docs/team/workflow-changelog.md +137 -0
- package/project-templates/phaser/docs/team/workflow-consistency-checklist.md +240 -0
- package/project-templates/phaser/focus-lab/.gitkeep +0 -0
- package/project-templates/phaser/game/adapters/phaser.ts +52 -0
- package/project-templates/phaser/game/config/.gitkeep +0 -0
- package/project-templates/phaser/game/config/game-config.ts +46 -0
- package/project-templates/phaser/game/contract/publish.ts +141 -0
- package/project-templates/phaser/game/contract/types.ts +34 -0
- package/project-templates/phaser/game/gameplay/.gitkeep +0 -0
- package/project-templates/phaser/game/index.ts +81 -0
- package/project-templates/phaser/game/runtime-contract.ts +28 -0
- package/project-templates/phaser/game/scenes/.gitkeep +0 -0
- package/project-templates/phaser/globals.d.ts +51 -0
- package/project-templates/phaser/index.css +34 -0
- package/project-templates/phaser/index.html +18 -0
- package/project-templates/phaser/main.ts +9 -0
- package/project-templates/phaser/package.json +79 -0
- package/project-templates/phaser/skills/README.md +52 -0
- package/project-templates/phaser/skills/_shared/agent-prep.md +136 -0
- package/project-templates/phaser/skills/_shared/requirements.txt +1 -0
- package/project-templates/phaser/skills/_shared/scripts/build-evidence-gate.mjs +87 -0
- package/project-templates/phaser/skills/_shared/scripts/context-budget.mjs +215 -0
- package/project-templates/phaser/skills/_shared/scripts/create-playable.mjs +140 -0
- package/project-templates/phaser/skills/_shared/scripts/dev-start.mjs +151 -0
- package/project-templates/phaser/skills/_shared/scripts/disclosure-config.mjs +480 -0
- package/project-templates/phaser/skills/_shared/scripts/ensure-project.mjs +532 -0
- package/project-templates/phaser/skills/_shared/scripts/gen-placeholder-audio.py +345 -0
- package/project-templates/phaser/skills/_shared/scripts/gen-placeholder.py +244 -0
- package/project-templates/phaser/skills/_shared/scripts/harness-smoke.mjs +257 -0
- package/project-templates/phaser/skills/_shared/scripts/lib/validator-artifacts.mjs +129 -0
- package/project-templates/phaser/skills/_shared/scripts/placeholder-pack-sheet.mjs +67 -0
- package/project-templates/phaser/skills/_shared/scripts/placeholder_audio_lib.py +142 -0
- package/project-templates/phaser/skills/_shared/scripts/placeholder_lib.py +993 -0
- package/project-templates/phaser/skills/_shared/scripts/render-project-state.mjs +278 -0
- package/project-templates/phaser/skills/_shared/scripts/ring-config.mjs +252 -0
- package/project-templates/phaser/skills/_shared/scripts/skills-check.mjs +176 -0
- package/project-templates/phaser/skills/_shared/scripts/slice-set.mjs +77 -0
- package/project-templates/phaser/skills/_shared/scripts/state-advance-ring.mjs +63 -0
- package/project-templates/phaser/skills/_shared/scripts/state-get.mjs +215 -0
- package/project-templates/phaser/skills/_shared/scripts/state-handoff.mjs +120 -0
- package/project-templates/phaser/skills/_shared/scripts/state-set.mjs +113 -0
- package/project-templates/phaser/skills/_shared/scripts/state-store.mjs +893 -0
- package/project-templates/phaser/skills/_shared/scripts/sync-template-skills.mjs +112 -0
- package/project-templates/phaser/skills/_shared/scripts/verify-asset-code-sync.mjs +265 -0
- package/project-templates/phaser/skills/_shared/scripts/verify-atom-conformance.mjs +181 -0
- package/project-templates/phaser/skills/_shared/scripts/verify-env.mjs +285 -0
- package/project-templates/phaser/skills/_shared/scripts/verify-placeholders.mjs +161 -0
- package/project-templates/phaser/skills/_shared/scripts/workflow-doctor.mjs +348 -0
- package/project-templates/phaser/skills/playable-animate/SKILL.md +52 -0
- package/project-templates/phaser/skills/playable-animate/agents/openai.yaml +4 -0
- package/project-templates/phaser/skills/playable-animate/references/board-refresh.md +30 -0
- package/project-templates/phaser/skills/playable-animate/references/diagnosis-checklist.md +25 -0
- package/project-templates/phaser/skills/playable-animate/references/entrance-sequencing.md +33 -0
- package/project-templates/phaser/skills/playable-animate/references/interaction-timing.md +23 -0
- package/project-templates/phaser/skills/playable-art/SKILL.md +203 -0
- package/project-templates/phaser/skills/playable-art/agents/openai.yaml +4 -0
- package/project-templates/phaser/skills/playable-art/references/alpha-postprocess.md +46 -0
- package/project-templates/phaser/skills/playable-art/references/cta-art-spec.md +59 -0
- package/project-templates/phaser/skills/playable-art/references/layout-proportions.md +30 -0
- package/project-templates/phaser/skills/playable-art/references/prompt-patterns.md +83 -0
- package/project-templates/phaser/skills/playable-art/references/reference-comparison.md +30 -0
- package/project-templates/phaser/skills/playable-art/references/sheet-import-v2.md +91 -0
- package/project-templates/phaser/skills/playable-art/scripts/build-atlas.py +332 -0
- package/project-templates/phaser/skills/playable-art/scripts/chroma-key.py +50 -0
- package/project-templates/phaser/skills/playable-art/scripts/extract-alpha-split.py +65 -0
- package/project-templates/phaser/skills/playable-art/scripts/extract-dual-bg-alpha.py +118 -0
- package/project-templates/phaser/skills/playable-art/scripts/import-gpt-art-sheets-v2.py +403 -0
- package/project-templates/phaser/skills/playable-art/scripts/import-gpt-art-sheets.py +280 -0
- package/project-templates/phaser/skills/playable-art/scripts/import-gpt-tile-sheet.py +114 -0
- package/project-templates/phaser/skills/playable-art/scripts/import_gpt_art_pipeline.py +321 -0
- package/project-templates/phaser/skills/playable-art/scripts/import_gpt_art_sheets_v2_test.py +126 -0
- package/project-templates/phaser/skills/playable-art/scripts/placeholder_common.py +98 -0
- package/project-templates/phaser/skills/playable-art/scripts/remove-bg.py +91 -0
- package/project-templates/phaser/skills/playable-art/scripts/review-processed-assets.py +468 -0
- package/project-templates/phaser/skills/playable-art/scripts/review_processed_assets_test.py +116 -0
- package/project-templates/phaser/skills/playable-art/scripts/verify-alpha-clean.py +105 -0
- package/project-templates/phaser/skills/playable-debug/SKILL.md +116 -0
- package/project-templates/phaser/skills/playable-debug/agents/openai.yaml +4 -0
- package/project-templates/phaser/skills/playable-debug/references/debug-config.md +40 -0
- package/project-templates/phaser/skills/playable-focus/SKILL.md +148 -0
- package/project-templates/phaser/skills/playable-focus/scripts/bootstrap-playground.mjs +84 -0
- package/project-templates/phaser/skills/playable-focus/scripts/extract-focus-frames.mjs +87 -0
- package/project-templates/phaser/skills/playable-focus/scripts/generate-focus-reports.mjs +121 -0
- package/project-templates/phaser/skills/playable-focus/scripts/playground.mjs +390 -0
- package/project-templates/phaser/skills/playable-focus/templates/focus-lab/frame.html +39 -0
- package/project-templates/phaser/skills/playable-focus/templates/focus-lab/harness/clean-stage.js +114 -0
- package/project-templates/phaser/skills/playable-focus/templates/focus-lab/harness/frame-lab-scene.js +94 -0
- package/project-templates/phaser/skills/playable-focus/templates/focus-lab/harness/particle-lab-scene.js +224 -0
- package/project-templates/phaser/skills/playable-focus/templates/focus-lab/model.html +16 -0
- package/project-templates/phaser/skills/playable-focus/templates/focus-lab/particle.html +38 -0
- package/project-templates/phaser/skills/playable-focus/templates/focus-lab/shatter.html +47 -0
- package/project-templates/phaser/skills/playable-fx-decompose/SKILL.md +212 -0
- package/project-templates/phaser/skills/playable-fx-decompose/examples.md +89 -0
- package/project-templates/phaser/skills/playable-fx-decompose/reference.md +201 -0
- package/project-templates/phaser/skills/playable-fx-decompose/requirements.txt +2 -0
- package/project-templates/phaser/skills/playable-fx-decompose/scripts/build-blank-tile-crack.py +192 -0
- package/project-templates/phaser/skills/playable-fx-decompose/scripts/fix-shard-debris-frames.py +60 -0
- package/project-templates/phaser/skills/playable-fx-decompose/scripts/generate-shard-debris.py +276 -0
- package/project-templates/phaser/skills/playable-fx-peak/SKILL.md +237 -0
- package/project-templates/phaser/skills/playable-fx-peak/requirements.txt +2 -0
- package/project-templates/phaser/skills/playable-fx-peak/scripts/fix-frame-edges.py +70 -0
- package/project-templates/phaser/skills/playable-fx-peak/scripts/repack-frame-sequence.py +526 -0
- package/project-templates/phaser/skills/playable-fx-peak/scripts/validate-frame-anchors.py +130 -0
- package/project-templates/phaser/skills/playable-placeholder/SKILL.md +239 -0
- package/project-templates/phaser/skills/playable-record/SKILL.md +166 -0
- package/project-templates/phaser/skills/playable-record/scripts/lib/build-artifact.mjs +92 -0
- package/project-templates/phaser/skills/playable-record/scripts/lib/dev-server.mjs +104 -0
- package/project-templates/phaser/skills/playable-record/scripts/lib/record-audio-bridge.js +141 -0
- package/project-templates/phaser/skills/playable-record/scripts/lib/slice-structure-verify.mjs +199 -0
- package/project-templates/phaser/skills/playable-record/scripts/record-playable.mjs +583 -0
- package/project-templates/phaser/skills/playable-record/scripts/verify-build.mjs +185 -0
- package/project-templates/phaser/skills/playable-record/scripts/verify-contract.mjs +261 -0
- package/project-templates/phaser/skills/playable-record/scripts/verify-firstwin.mjs +398 -0
- package/project-templates/phaser/skills/playable-record/scripts/verify-fusion.mjs +320 -0
- package/project-templates/phaser/skills/playable-record/scripts/verify-lifecycle.mjs +78 -0
- package/project-templates/phaser/skills/playable-record/scripts/verify-slice-artist.mjs +53 -0
- package/project-templates/phaser/skills/playable-record/scripts/verify-slice-ta.mjs +53 -0
- package/project-templates/phaser/skills/playable-record/scripts/verify-slice.mjs +142 -0
- package/project-templates/phaser/skills/playable-record/scripts/verify-visual-ring.mjs +250 -0
- package/project-templates/phaser/skills/playable-record/scripts/verify-visual-ring1.mjs +190 -0
- package/project-templates/phaser/skills/playable-record/scripts/verify-vlm-video.mjs +227 -0
- package/project-templates/phaser/skills/playable-validate/SKILL.md +260 -0
- package/project-templates/phaser/skills/playable-validate/references/checklist-detail.md +36 -0
- package/project-templates/phaser/skills/playable-validate/references/single-html-bundle.md +76 -0
- package/project-templates/phaser/skills/playable-validate/validation-rules.md +200 -0
- package/project-templates/phaser/skills/playable-verify-ui/SKILL.md +295 -0
- package/project-templates/phaser/skills/playable-verify-ui/examples/asset-manifest.example.json +36 -0
- package/project-templates/phaser/skills/playable-verify-ui/examples/mahjong-match.profile.yaml +334 -0
- package/project-templates/phaser/skills/playable-verify-ui/profiles/template.profile.yaml +84 -0
- package/project-templates/phaser/skills/playable-verify-ui/reference.md +165 -0
- package/project-templates/phaser/skills/playable-verify-ui/references/phaser-patterns.md +67 -0
- package/project-templates/phaser/skills/playable-verify-ui/references/scaling-decision-tree.md +51 -0
- package/project-templates/phaser/skills/playable-verify-ui/requirements.txt +7 -0
- package/project-templates/phaser/skills/playable-verify-ui/schema/asset-manifest.schema.json +68 -0
- package/project-templates/phaser/skills/playable-verify-ui/schema/playable-ui-profile.schema.json +171 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/asset_manifest.py +231 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/lib/__init__.py +1 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/lib/config_expr.js +218 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/lib/node_utils.js +51 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/lib/profile_loader.py +59 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/lib/report.py +106 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/lib/runtime_contract.js +116 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/measure_frame_content.py +77 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/run_all.py +265 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_asset_sizes.py +77 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_assets_present.py +62 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_atlas_budget.py +84 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_atlas_frames.py +79 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_bg_clean.py +365 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_doc_asset_sync.py +90 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_fetch_antipatterns.py +59 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_game_config_load.js +54 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_hardcoded_layout.js +64 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_layout_regions.js +110 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_profile_schema.py +37 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_ring1_visual.py +211 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_runtime_contract.js +58 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_script_load_order.js +73 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_slice_plan.py +238 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_slice_plan_test.py +125 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_text_overlap.py +333 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_tile_consistency.py +323 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_vision_evidence.py +894 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_vision_evidence_test.py +122 -0
- package/project-templates/phaser/skills/playable-verify-ui/scripts/verify_visual.py +422 -0
- package/project-templates/phaser/ta-workspace/scripts/.gitkeep +0 -0
- package/project-templates/phaser/templates/artist-log.template.md +182 -0
- package/project-templates/phaser/templates/atom-tree.template.json +133 -0
- package/project-templates/phaser/templates/design-brief.template.md +92 -0
- package/project-templates/phaser/templates/design-lens-checklist.reference.md +117 -0
- package/project-templates/phaser/templates/design-methodology.md +99 -0
- package/project-templates/phaser/templates/design.template.md +50 -0
- package/project-templates/phaser/templates/developer-log.template.md +258 -0
- package/project-templates/phaser/templates/five-axis-framework.md +194 -0
- package/project-templates/phaser/templates/gen-placeholder-audio.template.mjs +63 -0
- package/project-templates/phaser/templates/gen-placeholders.template.mjs +81 -0
- package/project-templates/phaser/templates/intent-clarifications.template.md +58 -0
- package/project-templates/phaser/templates/layout-spec.template.md +198 -0
- package/project-templates/phaser/templates/plan.template.md +80 -0
- package/project-templates/phaser/templates/project-state.template.md +136 -0
- package/project-templates/phaser/templates/review-report.template.md +275 -0
- package/project-templates/phaser/templates/style-exploration.template.md +93 -0
- package/project-templates/phaser/templates/ta-log.template.md +394 -0
- package/project-templates/phaser/tsconfig.json +20 -0
- package/project-templates/phaser/vite.config.ts +27 -0
- package/project-templates/threejs/.claude/agents/artist.md +101 -0
- package/project-templates/threejs/.claude/agents/developer.md +123 -0
- package/project-templates/threejs/.claude/agents/game-designer.md +192 -0
- package/project-templates/threejs/.claude/agents/refs/README.md +77 -0
- package/project-templates/threejs/.claude/agents/refs/artist-art-style-catalog.md +533 -0
- package/project-templates/threejs/.claude/agents/refs/artist-color-audio-recipes.md +153 -0
- package/project-templates/threejs/.claude/agents/refs/artist-deliverable-spec.md +230 -0
- package/project-templates/threejs/.claude/agents/refs/artist-dimension-axis.md +27 -0
- package/project-templates/threejs/.claude/agents/refs/artist-handoff-v2-checklist.md +76 -0
- package/project-templates/threejs/.claude/agents/refs/artist-legacy-fallback.md +14 -0
- package/project-templates/threejs/.claude/agents/refs/artist-master-composite-recipes.md +208 -0
- package/project-templates/threejs/.claude/agents/refs/artist-style-exploration-flow.md +55 -0
- package/project-templates/threejs/.claude/agents/refs/developer-dev-handoff.md +152 -0
- package/project-templates/threejs/.claude/agents/refs/developer-impl-cookbook.md +432 -0
- package/project-templates/threejs/.claude/agents/refs/developer-legacy-fallback.md +15 -0
- package/project-templates/threejs/.claude/agents/refs/developer-phase1-flow.md +404 -0
- package/project-templates/threejs/.claude/agents/refs/framework-5-component-filter.md +252 -0
- package/project-templates/threejs/.claude/agents/refs/framework-game-feel-juice.md +266 -0
- package/project-templates/threejs/.claude/agents/refs/framework-mda.md +147 -0
- package/project-templates/threejs/.claude/agents/refs/game-designer-gameplay-sufficiency.md +123 -0
- package/project-templates/threejs/.claude/agents/refs/game-designer-legacy-fallback.md +15 -0
- package/project-templates/threejs/.claude/agents/refs/game-designer-workflow-detail.md +69 -0
- package/project-templates/threejs/.claude/agents/refs/implementation-plan-guide.md +309 -0
- package/project-templates/threejs/.claude/agents/refs/reviewer-convergence-eval.md +350 -0
- package/project-templates/threejs/.claude/agents/refs/reviewer-legacy-fallback.md +14 -0
- package/project-templates/threejs/.claude/agents/refs/reviewer-six-dimension-eval.md +6 -0
- package/project-templates/threejs/.claude/agents/refs/skill-selector-guide.md +465 -0
- package/project-templates/threejs/.claude/agents/refs/skill-value-layers.md +145 -0
- package/project-templates/threejs/.claude/agents/refs/storyboard-generation-guide.md +110 -0
- package/project-templates/threejs/.claude/agents/refs/ta-3d-flip-recipe.md +88 -0
- package/project-templates/threejs/.claude/agents/refs/ta-atlas-deliverable-standard.md +67 -0
- package/project-templates/threejs/.claude/agents/refs/ta-batch-pipeline-recipes.md +120 -0
- package/project-templates/threejs/.claude/agents/refs/ta-image-generation-detail.md +300 -0
- package/project-templates/threejs/.claude/agents/refs/ta-image-ops-reference.md +495 -0
- package/project-templates/threejs/.claude/agents/refs/ta-pipeline-cookbook.md +1141 -0
- package/project-templates/threejs/.claude/agents/refs/ta-tools-reference.md +111 -0
- package/project-templates/threejs/.claude/agents/refs/ta-vfx-preset-catalog.md +365 -0
- package/project-templates/threejs/.claude/agents/refs/technical-artist-legacy-fallback.md +14 -0
- package/project-templates/threejs/.claude/agents/reviewer.md +116 -0
- package/project-templates/threejs/.claude/agents/technical-artist.md +100 -0
- package/project-templates/threejs/.claude/hooks/README.md +120 -0
- package/project-templates/threejs/.claude/hooks/asr-coverage-validate.mjs +381 -0
- package/project-templates/threejs/.claude/hooks/block-developer-preflight.mjs +185 -0
- package/project-templates/threejs/.claude/hooks/block-ring1-tasklist.mjs +95 -0
- package/project-templates/threejs/.claude/hooks/gate-dispatcher.mjs +78 -0
- package/project-templates/threejs/.claude/hooks/gate-runner.mjs +557 -0
- package/project-templates/threejs/.claude/hooks/gate.mjs +171 -0
- package/project-templates/threejs/.claude/hooks/snapshot-milestone.mjs +247 -0
- package/project-templates/threejs/.claude/hooks/user-prompt.mjs +194 -0
- package/project-templates/threejs/.claude/hooks/validate-atom-tree-selection.mjs +281 -0
- package/project-templates/threejs/.claude/hooks/validate-workflow-stop.mjs +1889 -0
- package/project-templates/threejs/.claude/settings.json +81 -0
- package/project-templates/threejs/.claude/skills/brainstorming/SKILL.md +161 -0
- package/project-templates/threejs/.claude/skills/brainstorming/scripts/frame-template.html +270 -0
- package/project-templates/threejs/.claude/skills/brainstorming/scripts/helper.js +177 -0
- package/project-templates/threejs/.claude/skills/brainstorming/scripts/server.cjs +354 -0
- package/project-templates/threejs/.claude/skills/brainstorming/scripts/start-server.sh +148 -0
- package/project-templates/threejs/.claude/skills/brainstorming/scripts/stop-server.sh +56 -0
- package/project-templates/threejs/.claude/skills/brainstorming/scripts/wait-for-selection.sh +62 -0
- package/project-templates/threejs/.claude/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
- package/project-templates/threejs/.claude/skills/brainstorming/visual-companion.md +309 -0
- package/project-templates/threejs/.claude/skills/playcraft-ad-psychology/SKILL.md +182 -0
- package/project-templates/threejs/.claude/skills/playcraft-art-style-guide/SKILL.md +123 -0
- package/project-templates/threejs/.claude/skills/playcraft-asset-state-sheet/SKILL.md +205 -0
- package/project-templates/threejs/.claude/skills/playcraft-audio-generation/SKILL.md +280 -0
- package/project-templates/threejs/.claude/skills/playcraft-batch-pipeline/SKILL.md +184 -0
- package/project-templates/threejs/.claude/skills/playcraft-build-optimizer/SKILL.md +306 -0
- package/project-templates/threejs/.claude/skills/playcraft-image-generation/SKILL.md +298 -0
- package/project-templates/threejs/.claude/skills/playcraft-image-generation/reference/build-sprite-sheet.template.mjs +123 -0
- package/project-templates/threejs/.claude/skills/playcraft-image-generation/reference/compare-style.template.mjs +254 -0
- package/project-templates/threejs/.claude/skills/playcraft-image-generation/reference/gen-batch-sprite.template.mjs +324 -0
- package/project-templates/threejs/.claude/skills/playcraft-image-generation/reference/gen-batch.template.mjs +97 -0
- package/project-templates/threejs/.claude/skills/playcraft-image-generation/reference/gen-edit-variants.template.mjs +118 -0
- package/project-templates/threejs/.claude/skills/playcraft-image-generation/reference/process-batch.template.mjs +137 -0
- package/project-templates/threejs/.claude/skills/playcraft-image-generation/reference/prompt-cookbook.md +397 -0
- package/project-templates/threejs/.claude/skills/playcraft-image-generation/reference/validate-sprite-sheet.template.mjs +296 -0
- package/project-templates/threejs/.claude/skills/playcraft-image-ops/SKILL.md +122 -0
- package/project-templates/threejs/.claude/skills/playcraft-image-processing/SKILL.md +219 -0
- package/project-templates/threejs/.claude/skills/playcraft-masking/SKILL.md +373 -0
- package/project-templates/threejs/.claude/skills/playcraft-playable-optimization/SKILL.md +161 -0
- package/project-templates/threejs/.claude/skills/playcraft-research/SKILL.md +215 -0
- package/project-templates/threejs/.claude/skills/playcraft-skill-recommender/SKILL.md +331 -0
- package/project-templates/threejs/.claude/skills/playcraft-sprite-generation/SKILL.md +423 -0
- package/project-templates/threejs/.claude/skills/playcraft-sprite-remix/SKILL.md +158 -0
- package/project-templates/threejs/.claude/skills/playcraft-sprite-sheet/SKILL.md +100 -0
- package/project-templates/threejs/.claude/skills/playcraft-storyboard/SKILL.md +167 -0
- package/project-templates/threejs/.claude/skills/playcraft-style-qa/SKILL.md +270 -0
- package/project-templates/threejs/.claude/skills/playcraft-text-rendering/SKILL.md +236 -0
- package/project-templates/threejs/.claude/skills/playcraft-vfx-animation/SKILL.md +130 -0
- package/project-templates/threejs/.claude/skills/playwright-cli/SKILL.md +390 -0
- package/project-templates/threejs/.claude/skills/playwright-cli/references/element-attributes.md +23 -0
- package/project-templates/threejs/.claude/skills/playwright-cli/references/playwright-tests.md +39 -0
- package/project-templates/threejs/.claude/skills/playwright-cli/references/request-mocking.md +87 -0
- package/project-templates/threejs/.claude/skills/playwright-cli/references/running-code.md +240 -0
- package/project-templates/threejs/.claude/skills/playwright-cli/references/session-management.md +226 -0
- package/project-templates/threejs/.claude/skills/playwright-cli/references/spec-driven-testing.md +308 -0
- package/project-templates/threejs/.claude/skills/playwright-cli/references/storage-state.md +275 -0
- package/project-templates/threejs/.claude/skills/playwright-cli/references/test-generation.md +134 -0
- package/project-templates/threejs/.claude/skills/playwright-cli/references/tracing.md +142 -0
- package/project-templates/threejs/.claude/skills/playwright-cli/references/video-recording.md +153 -0
- package/project-templates/threejs/.claude/skills/session-analyzer/SKILL.md +386 -0
- package/project-templates/threejs/.claude/skills/session-analyzer/scripts/execution-breakdown.mjs +182 -0
- package/project-templates/threejs/.claude/skills/session-analyzer/scripts/find-turns.mjs +72 -0
- package/project-templates/threejs/.claude/skills/session-analyzer/scripts/heavy-output.mjs +121 -0
- package/project-templates/threejs/.claude/skills/session-analyzer/scripts/resolve-session.mjs +103 -0
- package/project-templates/threejs/.claude/skills/session-analyzer/scripts/subagent-stats.mjs +127 -0
- package/project-templates/threejs/.claude/skills/session-analyzer/scripts/subagent-tool-timeline.mjs +106 -0
- package/project-templates/threejs/.claude/skills/session-analyzer/scripts/time-gaps.mjs +128 -0
- package/project-templates/threejs/.claude/skills/session-analyzer/scripts/turn-timeline.mjs +67 -0
- package/project-templates/threejs/.claude/snapshot.mjs +257 -0
- package/project-templates/threejs/.cursor/hooks.json +17 -0
- package/project-templates/threejs/.cursor/rules/playcraft-orchestrator.mdc +142 -0
- package/project-templates/threejs/.cursor/rules/playcraft-subagent-boundary.mdc +29 -0
- package/project-templates/threejs/.playcraft-engine +1 -0
- package/project-templates/threejs/CHANGELOG.md +105 -0
- package/project-templates/threejs/CLAUDE.md +84 -0
- package/project-templates/threejs/assets/audio/bgm/.gitkeep +0 -0
- package/project-templates/threejs/assets/audio/sfx/.gitkeep +0 -0
- package/project-templates/threejs/assets/bundles/.gitkeep +0 -0
- package/project-templates/threejs/assets/images/bg/.gitkeep +0 -0
- package/project-templates/threejs/assets/images/reference/.gitkeep +0 -0
- package/project-templates/threejs/assets/images/storyboard/.gitkeep +0 -0
- package/project-templates/threejs/assets/images/tiles/.gitkeep +0 -0
- package/project-templates/threejs/assets/images/ui/.gitkeep +0 -0
- package/project-templates/threejs/assets/images/vfx/.gitkeep +0 -0
- package/project-templates/threejs/assets/models/.gitkeep +0 -0
- package/project-templates/threejs/docs/DESIGN.md +65 -0
- package/project-templates/threejs/docs/intent-clarifications.md +58 -0
- package/project-templates/threejs/docs/pipeline-overview.md +69 -0
- package/project-templates/threejs/docs/project-state.md +211 -0
- package/project-templates/threejs/docs/scaffold-manifest.md +10 -0
- package/project-templates/threejs/docs/team/agent-conduct.md +67 -0
- package/project-templates/threejs/docs/team/agent-runtime-matrix.md +80 -0
- package/project-templates/threejs/docs/team/atom-tree-format.md +114 -0
- package/project-templates/threejs/docs/team/collaboration.md +391 -0
- package/project-templates/threejs/docs/team/core-model.md +85 -0
- package/project-templates/threejs/docs/team/game-designer-migration-todo.md +8 -0
- package/project-templates/threejs/docs/team/harness-legacy-deprecation.md +23 -0
- package/project-templates/threejs/docs/team/platform-capabilities.md +18 -0
- package/project-templates/threejs/docs/team/workflow-changelog.md +137 -0
- package/project-templates/threejs/docs/team/workflow-consistency-checklist.md +240 -0
- package/project-templates/threejs/focus-lab/.gitkeep +0 -0
- package/project-templates/threejs/game/config/.gitkeep +0 -0
- package/project-templates/threejs/game/config/game-config.ts +46 -0
- package/project-templates/threejs/game/contract/publish.ts +141 -0
- package/project-templates/threejs/game/contract/types.ts +34 -0
- package/project-templates/threejs/game/gameplay/.gitkeep +0 -0
- package/project-templates/threejs/game/index.ts +76 -0
- package/project-templates/threejs/game/runtime-contract.ts +15 -0
- package/project-templates/threejs/game/scenes/.gitkeep +0 -0
- package/project-templates/threejs/globals.d.ts +51 -0
- package/project-templates/threejs/index.css +34 -0
- package/project-templates/threejs/index.html +18 -0
- package/project-templates/threejs/main.ts +9 -0
- package/project-templates/threejs/package.json +79 -0
- package/project-templates/threejs/skills/README.md +52 -0
- package/project-templates/threejs/skills/_shared/agent-prep.md +136 -0
- package/project-templates/threejs/skills/_shared/requirements.txt +1 -0
- package/project-templates/threejs/skills/_shared/scripts/build-evidence-gate.mjs +87 -0
- package/project-templates/threejs/skills/_shared/scripts/context-budget.mjs +215 -0
- package/project-templates/threejs/skills/_shared/scripts/create-playable.mjs +140 -0
- package/project-templates/threejs/skills/_shared/scripts/dev-start.mjs +151 -0
- package/project-templates/threejs/skills/_shared/scripts/disclosure-config.mjs +480 -0
- package/project-templates/threejs/skills/_shared/scripts/ensure-project.mjs +532 -0
- package/project-templates/threejs/skills/_shared/scripts/gen-placeholder-audio.py +345 -0
- package/project-templates/threejs/skills/_shared/scripts/gen-placeholder.py +244 -0
- package/project-templates/threejs/skills/_shared/scripts/harness-smoke.mjs +257 -0
- package/project-templates/threejs/skills/_shared/scripts/lib/validator-artifacts.mjs +129 -0
- package/project-templates/threejs/skills/_shared/scripts/placeholder-pack-sheet.mjs +67 -0
- package/project-templates/threejs/skills/_shared/scripts/placeholder_audio_lib.py +142 -0
- package/project-templates/threejs/skills/_shared/scripts/placeholder_lib.py +993 -0
- package/project-templates/threejs/skills/_shared/scripts/render-project-state.mjs +278 -0
- package/project-templates/threejs/skills/_shared/scripts/ring-config.mjs +252 -0
- package/project-templates/threejs/skills/_shared/scripts/skills-check.mjs +176 -0
- package/project-templates/threejs/skills/_shared/scripts/slice-set.mjs +77 -0
- package/project-templates/threejs/skills/_shared/scripts/state-advance-ring.mjs +63 -0
- package/project-templates/threejs/skills/_shared/scripts/state-get.mjs +215 -0
- package/project-templates/threejs/skills/_shared/scripts/state-handoff.mjs +120 -0
- package/project-templates/threejs/skills/_shared/scripts/state-set.mjs +113 -0
- package/project-templates/threejs/skills/_shared/scripts/state-store.mjs +893 -0
- package/project-templates/threejs/skills/_shared/scripts/sync-template-skills.mjs +112 -0
- package/project-templates/threejs/skills/_shared/scripts/verify-asset-code-sync.mjs +265 -0
- package/project-templates/threejs/skills/_shared/scripts/verify-atom-conformance.mjs +181 -0
- package/project-templates/threejs/skills/_shared/scripts/verify-env.mjs +285 -0
- package/project-templates/threejs/skills/_shared/scripts/verify-placeholders.mjs +161 -0
- package/project-templates/threejs/skills/_shared/scripts/workflow-doctor.mjs +348 -0
- package/project-templates/threejs/skills/playable-animate/SKILL.md +52 -0
- package/project-templates/threejs/skills/playable-animate/agents/openai.yaml +4 -0
- package/project-templates/threejs/skills/playable-animate/references/board-refresh.md +30 -0
- package/project-templates/threejs/skills/playable-animate/references/diagnosis-checklist.md +25 -0
- package/project-templates/threejs/skills/playable-animate/references/entrance-sequencing.md +33 -0
- package/project-templates/threejs/skills/playable-animate/references/interaction-timing.md +23 -0
- package/project-templates/threejs/skills/playable-art/SKILL.md +203 -0
- package/project-templates/threejs/skills/playable-art/agents/openai.yaml +4 -0
- package/project-templates/threejs/skills/playable-art/references/alpha-postprocess.md +46 -0
- package/project-templates/threejs/skills/playable-art/references/cta-art-spec.md +59 -0
- package/project-templates/threejs/skills/playable-art/references/layout-proportions.md +30 -0
- package/project-templates/threejs/skills/playable-art/references/prompt-patterns.md +83 -0
- package/project-templates/threejs/skills/playable-art/references/reference-comparison.md +30 -0
- package/project-templates/threejs/skills/playable-art/references/sheet-import-v2.md +91 -0
- package/project-templates/threejs/skills/playable-art/scripts/build-atlas.py +332 -0
- package/project-templates/threejs/skills/playable-art/scripts/chroma-key.py +50 -0
- package/project-templates/threejs/skills/playable-art/scripts/extract-alpha-split.py +65 -0
- package/project-templates/threejs/skills/playable-art/scripts/extract-dual-bg-alpha.py +118 -0
- package/project-templates/threejs/skills/playable-art/scripts/import-gpt-art-sheets-v2.py +403 -0
- package/project-templates/threejs/skills/playable-art/scripts/import-gpt-art-sheets.py +280 -0
- package/project-templates/threejs/skills/playable-art/scripts/import-gpt-tile-sheet.py +114 -0
- package/project-templates/threejs/skills/playable-art/scripts/import_gpt_art_pipeline.py +321 -0
- package/project-templates/threejs/skills/playable-art/scripts/import_gpt_art_sheets_v2_test.py +126 -0
- package/project-templates/threejs/skills/playable-art/scripts/placeholder_common.py +98 -0
- package/project-templates/threejs/skills/playable-art/scripts/remove-bg.py +91 -0
- package/project-templates/threejs/skills/playable-art/scripts/review-processed-assets.py +468 -0
- package/project-templates/threejs/skills/playable-art/scripts/review_processed_assets_test.py +116 -0
- package/project-templates/threejs/skills/playable-art/scripts/verify-alpha-clean.py +105 -0
- package/project-templates/threejs/skills/playable-debug/SKILL.md +116 -0
- package/project-templates/threejs/skills/playable-debug/agents/openai.yaml +4 -0
- package/project-templates/threejs/skills/playable-debug/references/debug-config.md +40 -0
- package/project-templates/threejs/skills/playable-focus/SKILL.md +148 -0
- package/project-templates/threejs/skills/playable-focus/scripts/bootstrap-playground.mjs +84 -0
- package/project-templates/threejs/skills/playable-focus/scripts/extract-focus-frames.mjs +87 -0
- package/project-templates/threejs/skills/playable-focus/scripts/generate-focus-reports.mjs +121 -0
- package/project-templates/threejs/skills/playable-focus/scripts/playground.mjs +390 -0
- package/project-templates/threejs/skills/playable-focus/templates/focus-lab/frame.html +39 -0
- package/project-templates/threejs/skills/playable-focus/templates/focus-lab/harness/clean-stage.js +114 -0
- package/project-templates/threejs/skills/playable-focus/templates/focus-lab/harness/frame-lab-scene.js +94 -0
- package/project-templates/threejs/skills/playable-focus/templates/focus-lab/harness/particle-lab-scene.js +224 -0
- package/project-templates/threejs/skills/playable-focus/templates/focus-lab/model.html +16 -0
- package/project-templates/threejs/skills/playable-focus/templates/focus-lab/particle.html +38 -0
- package/project-templates/threejs/skills/playable-focus/templates/focus-lab/shatter.html +47 -0
- package/project-templates/threejs/skills/playable-fx-decompose/SKILL.md +212 -0
- package/project-templates/threejs/skills/playable-fx-decompose/examples.md +89 -0
- package/project-templates/threejs/skills/playable-fx-decompose/reference.md +201 -0
- package/project-templates/threejs/skills/playable-fx-decompose/requirements.txt +2 -0
- package/project-templates/threejs/skills/playable-fx-decompose/scripts/build-blank-tile-crack.py +192 -0
- package/project-templates/threejs/skills/playable-fx-decompose/scripts/fix-shard-debris-frames.py +60 -0
- package/project-templates/threejs/skills/playable-fx-decompose/scripts/generate-shard-debris.py +276 -0
- package/project-templates/threejs/skills/playable-fx-peak/SKILL.md +237 -0
- package/project-templates/threejs/skills/playable-fx-peak/requirements.txt +2 -0
- package/project-templates/threejs/skills/playable-fx-peak/scripts/fix-frame-edges.py +70 -0
- package/project-templates/threejs/skills/playable-fx-peak/scripts/repack-frame-sequence.py +526 -0
- package/project-templates/threejs/skills/playable-fx-peak/scripts/validate-frame-anchors.py +130 -0
- package/project-templates/threejs/skills/playable-placeholder/SKILL.md +239 -0
- package/project-templates/threejs/skills/playable-record/SKILL.md +166 -0
- package/project-templates/threejs/skills/playable-record/scripts/lib/build-artifact.mjs +92 -0
- package/project-templates/threejs/skills/playable-record/scripts/lib/dev-server.mjs +104 -0
- package/project-templates/threejs/skills/playable-record/scripts/lib/record-audio-bridge.js +141 -0
- package/project-templates/threejs/skills/playable-record/scripts/lib/slice-structure-verify.mjs +199 -0
- package/project-templates/threejs/skills/playable-record/scripts/record-playable.mjs +583 -0
- package/project-templates/threejs/skills/playable-record/scripts/verify-build.mjs +185 -0
- package/project-templates/threejs/skills/playable-record/scripts/verify-contract.mjs +261 -0
- package/project-templates/threejs/skills/playable-record/scripts/verify-firstwin.mjs +398 -0
- package/project-templates/threejs/skills/playable-record/scripts/verify-fusion.mjs +320 -0
- package/project-templates/threejs/skills/playable-record/scripts/verify-lifecycle.mjs +78 -0
- package/project-templates/threejs/skills/playable-record/scripts/verify-slice-artist.mjs +53 -0
- package/project-templates/threejs/skills/playable-record/scripts/verify-slice-ta.mjs +53 -0
- package/project-templates/threejs/skills/playable-record/scripts/verify-slice.mjs +142 -0
- package/project-templates/threejs/skills/playable-record/scripts/verify-visual-ring.mjs +250 -0
- package/project-templates/threejs/skills/playable-record/scripts/verify-visual-ring1.mjs +190 -0
- package/project-templates/threejs/skills/playable-record/scripts/verify-vlm-video.mjs +227 -0
- package/project-templates/threejs/skills/playable-validate/SKILL.md +260 -0
- package/project-templates/threejs/skills/playable-validate/references/checklist-detail.md +36 -0
- package/project-templates/threejs/skills/playable-validate/references/single-html-bundle.md +76 -0
- package/project-templates/threejs/skills/playable-validate/validation-rules.md +200 -0
- package/project-templates/threejs/skills/playable-verify-ui/SKILL.md +295 -0
- package/project-templates/threejs/skills/playable-verify-ui/examples/asset-manifest.example.json +36 -0
- package/project-templates/threejs/skills/playable-verify-ui/examples/mahjong-match.profile.yaml +334 -0
- package/project-templates/threejs/skills/playable-verify-ui/profiles/template.profile.yaml +84 -0
- package/project-templates/threejs/skills/playable-verify-ui/reference.md +165 -0
- package/project-templates/threejs/skills/playable-verify-ui/references/phaser-patterns.md +67 -0
- package/project-templates/threejs/skills/playable-verify-ui/references/scaling-decision-tree.md +51 -0
- package/project-templates/threejs/skills/playable-verify-ui/requirements.txt +7 -0
- package/project-templates/threejs/skills/playable-verify-ui/schema/asset-manifest.schema.json +68 -0
- package/project-templates/threejs/skills/playable-verify-ui/schema/playable-ui-profile.schema.json +171 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/asset_manifest.py +231 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/lib/__init__.py +1 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/lib/config_expr.js +218 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/lib/node_utils.js +51 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/lib/profile_loader.py +59 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/lib/report.py +106 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/lib/runtime_contract.js +116 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/measure_frame_content.py +77 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/run_all.py +265 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_asset_sizes.py +77 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_assets_present.py +62 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_atlas_budget.py +84 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_atlas_frames.py +79 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_bg_clean.py +365 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_doc_asset_sync.py +90 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_fetch_antipatterns.py +59 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_game_config_load.js +54 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_hardcoded_layout.js +64 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_layout_regions.js +110 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_profile_schema.py +37 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_ring1_visual.py +211 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_runtime_contract.js +58 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_script_load_order.js +73 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_slice_plan.py +238 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_slice_plan_test.py +125 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_text_overlap.py +333 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_tile_consistency.py +323 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_vision_evidence.py +894 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_vision_evidence_test.py +122 -0
- package/project-templates/threejs/skills/playable-verify-ui/scripts/verify_visual.py +422 -0
- package/project-templates/threejs/ta-workspace/scripts/.gitkeep +0 -0
- package/project-templates/threejs/templates/artist-log.template.md +182 -0
- package/project-templates/threejs/templates/atom-tree.template.json +133 -0
- package/project-templates/threejs/templates/design-brief.template.md +92 -0
- package/project-templates/threejs/templates/design-lens-checklist.reference.md +117 -0
- package/project-templates/threejs/templates/design-methodology.md +99 -0
- package/project-templates/threejs/templates/design.template.md +50 -0
- package/project-templates/threejs/templates/developer-log.template.md +258 -0
- package/project-templates/threejs/templates/five-axis-framework.md +194 -0
- package/project-templates/threejs/templates/gen-placeholder-audio.template.mjs +63 -0
- package/project-templates/threejs/templates/gen-placeholders.template.mjs +81 -0
- package/project-templates/threejs/templates/intent-clarifications.template.md +58 -0
- package/project-templates/threejs/templates/layout-spec.template.md +198 -0
- package/project-templates/threejs/templates/plan.template.md +80 -0
- package/project-templates/threejs/templates/project-state.template.md +136 -0
- package/project-templates/threejs/templates/review-report.template.md +275 -0
- package/project-templates/threejs/templates/style-exploration.template.md +93 -0
- package/project-templates/threejs/templates/ta-log.template.md +394 -0
- package/project-templates/threejs/tsconfig.json +20 -0
- package/project-templates/threejs/vite.config.ts +27 -0
- package/dist/atom-plan/validate-atom-plan.js +0 -298
- package/project-template/.claude/agents/designer.md +0 -124
- package/project-template/.claude/agents/pm.md +0 -166
- package/project-template/.claude/agents/refs/designer-style-exploration-flow.md +0 -67
- package/project-template/.claude/agents/refs/pm-workflow-detail.md +0 -567
- package/project-template/.claude/hooks/validate-atom-plan.mjs +0 -224
- package/project-template/.claude/skills/playcraft-workflow/SKILL.md +0 -485
- package/project-template/docs/team/atom-plan-format.md +0 -173
- package/project-template/templates/atom-plan.template.json +0 -44
- package/project-template/templates/atom-plan.template.md +0 -108
- /package/dist/{atom-plan → asr}/validate-asr-coverage.js +0 -0
- /package/{project-template → engine-packs/phaser}/game/config/.gitkeep +0 -0
- /package/{project-template → engine-packs/phaser}/game/gameplay/.gitkeep +0 -0
- /package/{project-template → engine-packs/phaser}/game/scenes/.gitkeep +0 -0
- /package/project-template/.claude/agents/refs/{designer-art-style-catalog.md → artist-art-style-catalog.md} +0 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Start (or stop) the persistent preview dev server and record the real devUrl.
|
|
4
|
+
*
|
|
5
|
+
* This removes the LLM from port handling entirely (docs/harness/experiment-lessons.md §9.2):
|
|
6
|
+
* Vite runs with strictPort:false, so when 3000 is taken it auto-increments; this
|
|
7
|
+
* script parses Vite's actual `Local:` URL from the log, appends `?debug=1`, and
|
|
8
|
+
* writes it back to project-state via the same layer `state:set` uses. The agent
|
|
9
|
+
* never reads or records a port by hand.
|
|
10
|
+
*
|
|
11
|
+
* Usage:
|
|
12
|
+
* npm run dev:start # start server, capture real URL, write devUrl
|
|
13
|
+
* npm run dev:stop # stop the server started by dev:start
|
|
14
|
+
* node skills/_shared/scripts/dev-start.mjs --root=. [--stop] [--timeout=30000]
|
|
15
|
+
*
|
|
16
|
+
* Exit 0 = server up + devUrl written (or stopped); 1 = failed to detect URL.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import { openSync, closeSync, existsSync, readFileSync, writeFileSync, rmSync } from 'node:fs';
|
|
20
|
+
import { spawn } from 'node:child_process';
|
|
21
|
+
import { join, resolve } from 'node:path';
|
|
22
|
+
import { applyHandoffUpdates, resolveProjectStatePath } from './state-handoff.mjs';
|
|
23
|
+
import { parseLocalUrl, waitForHttp } from '../../playable-record/scripts/lib/dev-server.mjs';
|
|
24
|
+
|
|
25
|
+
const PID_FILE = '.playcraft-dev.pid';
|
|
26
|
+
const LOG_FILE = '.playcraft-dev.log';
|
|
27
|
+
const PREFERRED_URL = 'http://127.0.0.1:3000/';
|
|
28
|
+
|
|
29
|
+
function parseArgs(argv) {
|
|
30
|
+
const opts = { root: process.cwd(), stop: false, timeout: 30000 };
|
|
31
|
+
for (const arg of argv) {
|
|
32
|
+
if (arg === '--stop') opts.stop = true;
|
|
33
|
+
else if (arg.startsWith('--root=')) {
|
|
34
|
+
const v = arg.slice('--root='.length);
|
|
35
|
+
opts.root = v.startsWith('/') ? v : resolve(process.cwd(), v);
|
|
36
|
+
} else if (arg.startsWith('--timeout=')) opts.timeout = Number(arg.slice('--timeout='.length));
|
|
37
|
+
}
|
|
38
|
+
return opts;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** Append the `?debug=1` flag that gates the on-screen one-click clear button. */
|
|
42
|
+
function withDebugFlag(url) {
|
|
43
|
+
return /[?&]debug=1\b/.test(url) ? url : `${url}${url.includes('?') ? '&' : '?'}debug=1`;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function readPid(root) {
|
|
47
|
+
const pidPath = join(root, PID_FILE);
|
|
48
|
+
if (!existsSync(pidPath)) return null;
|
|
49
|
+
const pid = Number(readFileSync(pidPath, 'utf8').trim());
|
|
50
|
+
return Number.isInteger(pid) && pid > 0 ? pid : null;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function isAlive(pid) {
|
|
54
|
+
try {
|
|
55
|
+
process.kill(pid, 0);
|
|
56
|
+
return true;
|
|
57
|
+
} catch {
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function stopServer(root) {
|
|
63
|
+
const pid = readPid(root);
|
|
64
|
+
const pidPath = join(root, PID_FILE);
|
|
65
|
+
if (pid && isAlive(pid)) {
|
|
66
|
+
// Detached child is its own process-group leader; kill the whole group.
|
|
67
|
+
try {
|
|
68
|
+
process.kill(-pid, 'SIGTERM');
|
|
69
|
+
} catch {
|
|
70
|
+
try {
|
|
71
|
+
process.kill(pid, 'SIGTERM');
|
|
72
|
+
} catch {
|
|
73
|
+
/* already gone */
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
console.log(`[dev:stop] stopped dev server (pid ${pid})`);
|
|
77
|
+
} else {
|
|
78
|
+
console.log('[dev:stop] no running dev server recorded');
|
|
79
|
+
}
|
|
80
|
+
if (existsSync(pidPath)) rmSync(pidPath);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** Poll the dev-server log file for Vite's `Local:` URL. */
|
|
84
|
+
async function detectUrlFromLog(logPath, timeoutMs) {
|
|
85
|
+
const start = Date.now();
|
|
86
|
+
while (Date.now() - start < timeoutMs) {
|
|
87
|
+
if (existsSync(logPath)) {
|
|
88
|
+
const url = parseLocalUrl(readFileSync(logPath, 'utf8'));
|
|
89
|
+
if (url) return url;
|
|
90
|
+
}
|
|
91
|
+
await new Promise((r) => setTimeout(r, 250));
|
|
92
|
+
}
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
async function startServer(root, timeoutMs) {
|
|
97
|
+
const existingPid = readPid(root);
|
|
98
|
+
if (existingPid && isAlive(existingPid)) {
|
|
99
|
+
const logPath = join(root, LOG_FILE);
|
|
100
|
+
const url = (existsSync(logPath) && parseLocalUrl(readFileSync(logPath, 'utf8'))) || PREFERRED_URL;
|
|
101
|
+
return finalize(root, url, existingPid, true);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
const logPath = join(root, LOG_FILE);
|
|
105
|
+
const logFd = openSync(logPath, 'w');
|
|
106
|
+
const child = spawn('npm', ['run', 'dev', '--', '--host', '127.0.0.1'], {
|
|
107
|
+
cwd: root,
|
|
108
|
+
detached: true,
|
|
109
|
+
stdio: ['ignore', logFd, logFd],
|
|
110
|
+
});
|
|
111
|
+
closeSync(logFd);
|
|
112
|
+
child.unref();
|
|
113
|
+
writeFileSync(join(root, PID_FILE), String(child.pid));
|
|
114
|
+
|
|
115
|
+
const detected = await detectUrlFromLog(logPath, timeoutMs);
|
|
116
|
+
const url = detected || PREFERRED_URL;
|
|
117
|
+
try {
|
|
118
|
+
await waitForHttp(url, 10000);
|
|
119
|
+
} catch {
|
|
120
|
+
if (!detected) {
|
|
121
|
+
console.error(
|
|
122
|
+
`[dev:start] could not detect dev URL within ${timeoutMs}ms and ${PREFERRED_URL} is not reachable — check ${LOG_FILE}`,
|
|
123
|
+
);
|
|
124
|
+
return { ok: false };
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return finalize(root, url, child.pid, false);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function finalize(root, baseUrl, pid, reused) {
|
|
131
|
+
const devUrl = withDebugFlag(baseUrl);
|
|
132
|
+
applyHandoffUpdates(resolveProjectStatePath(root), { devUrl });
|
|
133
|
+
console.log(`[dev:start] ${reused ? 'reusing' : 'started'} dev server (pid ${pid})`);
|
|
134
|
+
console.log(`[dev:start] devUrl recorded: ${devUrl}`);
|
|
135
|
+
return { ok: true, devUrl, pid };
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
async function main() {
|
|
139
|
+
const opts = parseArgs(process.argv.slice(2));
|
|
140
|
+
if (opts.stop) {
|
|
141
|
+
stopServer(opts.root);
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
const result = await startServer(opts.root, opts.timeout);
|
|
145
|
+
process.exit(result.ok ? 0 : 1);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
main().catch((err) => {
|
|
149
|
+
console.error(`[dev:start] error: ${err.message}`);
|
|
150
|
+
process.exit(1);
|
|
151
|
+
});
|
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Current-action disclosure rules for growth-rings-v1.
|
|
4
|
+
*
|
|
5
|
+
* The L0 project entry should not explain every future ring. It asks state:get
|
|
6
|
+
* for the current action surface, and this file is the machine-readable source
|
|
7
|
+
* for that surface.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
const COMMON_REQUIRED = ['CLAUDE.md'];
|
|
11
|
+
|
|
12
|
+
export const FUTURE_RING_FILES = [
|
|
13
|
+
'docs/design-brief.md',
|
|
14
|
+
'docs/layout-spec.md',
|
|
15
|
+
'docs/implementation-plan.md',
|
|
16
|
+
'docs/style-exploration.md',
|
|
17
|
+
'logs/artist-log.md',
|
|
18
|
+
'logs/ta-log.md',
|
|
19
|
+
'logs/review-report.md',
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
const DISCLOSURE_BY_RING_LOOP = {
|
|
23
|
+
'1:clarify': {
|
|
24
|
+
currentAction:
|
|
25
|
+
'Orchestrator: invoke @game-designer for Ring 1 clarify — design-brief discovery + DESIGN seed + playcraft skills match compact refs + minimal developer slice queue (not layout/style/CTA/full plan).',
|
|
26
|
+
requiredFiles: [...COMMON_REQUIRED, 'docs/DESIGN.md'],
|
|
27
|
+
deferredFiles: FUTURE_RING_FILES.filter((f) => f !== 'docs/design-brief.md'),
|
|
28
|
+
nextRole: 'game-designer',
|
|
29
|
+
artifactRefs: ['docs/DESIGN.md', 'docs/design-brief.md', 'docs/atom-tree.json', 'sliceState'],
|
|
30
|
+
requiredContextFields: ['ring.goal', 'lastRole.summary', 'sharedDecisions.coreAction', 'sharedDecisions.semanticPlaceholders'],
|
|
31
|
+
allowedTasks: [
|
|
32
|
+
'Invoke @game-designer for ring 1 clarify',
|
|
33
|
+
'Game Designer: design-brief discovery + DESIGN seed + playcraft skills match + sliceState queue',
|
|
34
|
+
'Game Designer: run playcraft skills match and write meta.skillsMatch + compact selectedAtoms',
|
|
35
|
+
'Record fromScratchReason when core mechanic is novel',
|
|
36
|
+
'Define first-level win strategy and semantic placeholders (Game Designer subagent)',
|
|
37
|
+
],
|
|
38
|
+
forbiddenTasks: [
|
|
39
|
+
'Do not write docs/DESIGN.md as orchestrator',
|
|
40
|
+
'Do not implement game/ as orchestrator during clarify',
|
|
41
|
+
'Do not require layout-spec or full implementation-plan in Ring 1',
|
|
42
|
+
'Do not build a full atom graph in Ring 1 clarify — compact skillsMatch refs only',
|
|
43
|
+
'Do not design CTA polish or production assets in Ring 1',
|
|
44
|
+
'Do not claim skillRefs implement core mechanic without skills read',
|
|
45
|
+
'Do not run standalone record:mp4 as a Ring 1 blocker',
|
|
46
|
+
'Do not run verify:ui as Ring 1 blockers',
|
|
47
|
+
],
|
|
48
|
+
nextCommands: [
|
|
49
|
+
'Invoke @game-designer — ring 1 clarify (skills match + design-brief + DESIGN seed + slice queue)',
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
'1:select': {
|
|
53
|
+
currentAction: 'Orchestrator: after Game Designer STOP, spawn a temporary ref-flow atom-selection subagent for compact Ring 1 atom-tree selection.',
|
|
54
|
+
requiredFiles: [...COMMON_REQUIRED, 'docs/DESIGN.md'],
|
|
55
|
+
deferredFiles: FUTURE_RING_FILES,
|
|
56
|
+
nextRole: 'temporary-ref-flow',
|
|
57
|
+
artifactRefs: ['docs/DESIGN.md', 'docs/atom-tree.json'],
|
|
58
|
+
requiredContextFields: ['lastRole.summary', 'lastRole.decisions', 'sharedDecisions.coreAction', 'sharedDecisions.semanticPlaceholders'],
|
|
59
|
+
allowedTasks: [
|
|
60
|
+
'Spawn temporary ref-flow atom-selection subagent for ring 1 atom-tree selection',
|
|
61
|
+
'Pass DESIGN.md gameplay keywords and constraints to the temporary selector',
|
|
62
|
+
],
|
|
63
|
+
forbiddenTasks: [
|
|
64
|
+
'Do not select atoms inline as orchestrator',
|
|
65
|
+
'Do not run init-template before atom-selection STOP',
|
|
66
|
+
'Do not implement gameplay logic as orchestrator',
|
|
67
|
+
],
|
|
68
|
+
nextCommands: [
|
|
69
|
+
'Spawn temporary ref-flow atom-selection subagent — ring 1 atom-tree selection (engine + compact gameplay trunk)',
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
'1:scaffold': {
|
|
73
|
+
currentAction: 'Orchestrator: after temporary atom-selection STOP, run engine scaffold before @developer build.',
|
|
74
|
+
requiredFiles: [...COMMON_REQUIRED, 'docs/DESIGN.md', 'docs/atom-tree.json'],
|
|
75
|
+
deferredFiles: FUTURE_RING_FILES,
|
|
76
|
+
nextRole: 'orchestrator',
|
|
77
|
+
artifactRefs: ['docs/DESIGN.md', 'docs/atom-tree.json', 'docs/scaffold-manifest.md'],
|
|
78
|
+
requiredContextFields: ['lastRole.summary', 'lastRole.decisions', 'sharedDecisions.engine', 'sharedDecisions.coreAction'],
|
|
79
|
+
allowedTasks: [
|
|
80
|
+
'Validate atom-tree selection',
|
|
81
|
+
'Apply engine template from atom-tree',
|
|
82
|
+
],
|
|
83
|
+
forbiddenTasks: [
|
|
84
|
+
'Do not invoke @developer before init-template + verify:contract pass',
|
|
85
|
+
'Do not select atoms inline as orchestrator',
|
|
86
|
+
'Do not implement gameplay logic as orchestrator',
|
|
87
|
+
],
|
|
88
|
+
nextCommands: [
|
|
89
|
+
'playcraft skills validate-atom-tree-selection',
|
|
90
|
+
'# auto-link: saving docs/atom-tree.json links selected atoms into .claude/skills/ (validate-atom-tree-selection hook) — no manual "skills link" needed',
|
|
91
|
+
'playcraft remix init-template --from-atom-tree',
|
|
92
|
+
'npm install',
|
|
93
|
+
'npm run verify:contract',
|
|
94
|
+
'Invoke @developer for ring 1 build loop',
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
'1:build': {
|
|
98
|
+
currentAction: 'Orchestrator: invoke @developer for Ring 1 build. Developer: implement playable spine to first-level win.',
|
|
99
|
+
requiredFiles: [...COMMON_REQUIRED, 'docs/DESIGN.md', 'docs/atom-tree.json', 'docs/scaffold-manifest.md', 'game/'],
|
|
100
|
+
deferredFiles: FUTURE_RING_FILES.filter((file) => file !== 'logs/review-report.md'),
|
|
101
|
+
nextRole: 'developer',
|
|
102
|
+
artifactRefs: ['docs/DESIGN.md', 'docs/atom-tree.json', 'logs/developer-log.md', 'game/'],
|
|
103
|
+
requiredContextFields: ['lastRole.summary', 'lastRole.decisions', 'nextRole.mustKnow', 'sharedDecisions.engine', 'sharedDecisions.coreAction', 'sharedDecisions.semanticPlaceholders'],
|
|
104
|
+
allowedTasks: [
|
|
105
|
+
'Invoke @developer for ring 1 build',
|
|
106
|
+
'Apply engine scaffold if needed (orchestrator only, before developer)',
|
|
107
|
+
'Implement core gameplay loop (Developer subagent)',
|
|
108
|
+
'Wire window.__playable runtime contract (Developer subagent)',
|
|
109
|
+
'Make autoPlay follow player-reachable actions (Developer subagent)',
|
|
110
|
+
'Record devUrl when ready (Developer subagent)',
|
|
111
|
+
],
|
|
112
|
+
forbiddenTasks: [
|
|
113
|
+
'Do not implement game/ as orchestrator when @developer should own build',
|
|
114
|
+
'Do not polish HUD',
|
|
115
|
+
'Do not implement CTA fallback as a Ring 1 blocker',
|
|
116
|
+
'Do not run full MP4 as a Ring 1 blocker',
|
|
117
|
+
'Do not produce production assets',
|
|
118
|
+
],
|
|
119
|
+
nextCommands: [
|
|
120
|
+
'Invoke @developer — ring 1 build (placeholder art + core loop)',
|
|
121
|
+
'npm run placeholder:gen',
|
|
122
|
+
'npm run verify:contract',
|
|
123
|
+
'npm run verify:lifecycle',
|
|
124
|
+
'npm run verify:firstwin',
|
|
125
|
+
'npm run verify:placeholders',
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
'1:verify': {
|
|
129
|
+
currentAction: 'Run Ring 1 objective gate and route failures before user Ring Gate.',
|
|
130
|
+
requiredFiles: [...COMMON_REQUIRED, 'docs/DESIGN.md', 'logs/developer-log.md', 'game/'],
|
|
131
|
+
deferredFiles: FUTURE_RING_FILES,
|
|
132
|
+
nextRole: 'orchestrator',
|
|
133
|
+
artifactRefs: ['docs/DESIGN.md', 'logs/developer-log.md', 'game/'],
|
|
134
|
+
requiredContextFields: ['lastRole.summary', 'lastRole.validation', 'lastRole.blockers', 'sharedDecisions.coreAction'],
|
|
135
|
+
allowedTasks: [
|
|
136
|
+
'Run Ring 1 script verifiers',
|
|
137
|
+
'Route verifier failures to Developer',
|
|
138
|
+
'Ask user only after ring:gate canAskUser=yes',
|
|
139
|
+
],
|
|
140
|
+
forbiddenTasks: ['Do not invoke Reviewer for Ring 1 verify', 'Do not ask user before ring:gate passes'],
|
|
141
|
+
nextCommands: [
|
|
142
|
+
'npm run verify:contract',
|
|
143
|
+
'npm run verify:lifecycle',
|
|
144
|
+
'npm run verify:firstwin',
|
|
145
|
+
'npm run verify:placeholders',
|
|
146
|
+
'npm run ring:gate -- --iteration 1',
|
|
147
|
+
],
|
|
148
|
+
},
|
|
149
|
+
'2:clarify': {
|
|
150
|
+
currentAction:
|
|
151
|
+
'Orchestrator: invoke @game-designer for Ring 2 clarify — append design-brief periphery discovery + refresh compact skills match + deepen slice queue with 2–4 skill-informed developer periphery slices (optional layout intent; not full plan or production asset mapping).',
|
|
152
|
+
requiredFiles: [...COMMON_REQUIRED, 'docs/DESIGN.md', 'docs/design-brief.md', 'docs/atom-tree.json'],
|
|
153
|
+
deferredFiles: [
|
|
154
|
+
'docs/style-exploration.md',
|
|
155
|
+
'logs/artist-log.md',
|
|
156
|
+
'logs/ta-log.md',
|
|
157
|
+
'logs/review-report.md',
|
|
158
|
+
],
|
|
159
|
+
nextRole: 'game-designer',
|
|
160
|
+
artifactRefs: [
|
|
161
|
+
'docs/DESIGN.md',
|
|
162
|
+
'docs/design-brief.md',
|
|
163
|
+
'docs/atom-tree.json',
|
|
164
|
+
'sliceState',
|
|
165
|
+
'docs/implementation-plan.md',
|
|
166
|
+
'docs/layout-spec.md',
|
|
167
|
+
],
|
|
168
|
+
requiredContextFields: [
|
|
169
|
+
'ring.goal',
|
|
170
|
+
'archivedRings.1',
|
|
171
|
+
'sharedDecisions.coreAction',
|
|
172
|
+
'sharedDecisions.semanticPlaceholders',
|
|
173
|
+
],
|
|
174
|
+
allowedTasks: [
|
|
175
|
+
'Append design-brief with Ring 2 periphery discovery',
|
|
176
|
+
'Refresh meta.skillsMatch when periphery intent shifts',
|
|
177
|
+
'Deepen sliceState with 2–4 developer periphery slices (skillRefs/skillUse or fromScratchReason each)',
|
|
178
|
+
'Optional: minimal layout-spec layout intent (zones/screen only)',
|
|
179
|
+
'Optional: update implementation-plan as slice explain view',
|
|
180
|
+
'Update atom-tree.meta.activatedSlices[] to match new sliceIds',
|
|
181
|
+
],
|
|
182
|
+
forbiddenTasks: [
|
|
183
|
+
'Do not invoke Artist or TA in Ring 2 clarify',
|
|
184
|
+
'Do not lock production assetMapping or full atlas tables in layout-spec',
|
|
185
|
+
'Do not create style-exploration or Hook/CTA production specs',
|
|
186
|
+
'Do not replace sliceState with a full feature backlog',
|
|
187
|
+
'Do not require complete atom graph expansion in one clarify pass',
|
|
188
|
+
],
|
|
189
|
+
nextCommands: [
|
|
190
|
+
'Invoke @game-designer — ring 2 clarify (skills match refresh + slice queue deepening + optional layout intent)',
|
|
191
|
+
],
|
|
192
|
+
},
|
|
193
|
+
'2:build': {
|
|
194
|
+
currentAction: 'Build Ring 2 periphery and full playthrough skeleton.',
|
|
195
|
+
requiredFiles: [...COMMON_REQUIRED, 'docs/DESIGN.md', 'docs/layout-spec.md', 'docs/atom-tree.json', 'docs/implementation-plan.md', 'logs/developer-log.md', 'game/'],
|
|
196
|
+
deferredFiles: ['docs/style-exploration.md', 'logs/artist-log.md', 'logs/ta-log.md'],
|
|
197
|
+
nextRole: 'developer',
|
|
198
|
+
artifactRefs: ['docs/DESIGN.md', 'docs/layout-spec.md', 'docs/implementation-plan.md', 'logs/developer-log.md', 'game/'],
|
|
199
|
+
requiredContextFields: ['lastRole.summary', 'lastRole.decisions', 'nextRole.mustKnow', 'sharedDecisions.coreAction'],
|
|
200
|
+
allowedTasks: ['Implement HUD and flow skeleton', 'Bind placeholder assets', 'Prepare full playthrough'],
|
|
201
|
+
forbiddenTasks: ['Do not lock final art style', 'Do not create production asset set'],
|
|
202
|
+
nextCommands: [
|
|
203
|
+
'Invoke @developer — ring 2 build (HUD + flow skeleton, placeholder art)',
|
|
204
|
+
'npm run placeholder:gen',
|
|
205
|
+
'npm run verify:ui',
|
|
206
|
+
'npm run verify:visual-ring2',
|
|
207
|
+
'npm run verify:placeholders',
|
|
208
|
+
],
|
|
209
|
+
},
|
|
210
|
+
'2:verify': {
|
|
211
|
+
currentAction: 'Run Ring 2 Reviewer checks and objective gate.',
|
|
212
|
+
requiredFiles: [...COMMON_REQUIRED, 'docs/DESIGN.md', 'docs/layout-spec.md', 'docs/implementation-plan.md', 'logs/review-report.md', 'game/'],
|
|
213
|
+
deferredFiles: ['docs/style-exploration.md', 'logs/artist-log.md', 'logs/ta-log.md'],
|
|
214
|
+
nextRole: 'reviewer',
|
|
215
|
+
artifactRefs: ['docs/DESIGN.md', 'logs/developer-log.md', 'logs/review-report.md', 'game/'],
|
|
216
|
+
requiredContextFields: ['lastRole.summary', 'lastRole.validation', 'lastRole.blockers', 'sharedDecisions.coreAction'],
|
|
217
|
+
allowedTasks: ['Run gameplay_conformance', 'Run load_check', 'Run Ring 2 gate'],
|
|
218
|
+
forbiddenTasks: ['Do not run style lock or production asset checks'],
|
|
219
|
+
nextCommands: [
|
|
220
|
+
'Invoke @reviewer gameplay_conformance — fill logs/review-report.md § Ring DoD Fields gameplayConformance',
|
|
221
|
+
'Invoke @reviewer load_check — confirm page load + no console errors',
|
|
222
|
+
'npm run verify:ui',
|
|
223
|
+
'npm run verify:visual-ring2',
|
|
224
|
+
'npm run verify:placeholders',
|
|
225
|
+
'npm run ring:gate -- --iteration 2',
|
|
226
|
+
],
|
|
227
|
+
},
|
|
228
|
+
'3:clarify': {
|
|
229
|
+
currentAction: 'Clarify playable-ad hook, CTA, and style direction.',
|
|
230
|
+
requiredFiles: [...COMMON_REQUIRED, 'docs/DESIGN.md', 'docs/layout-spec.md', 'docs/style-exploration.md'],
|
|
231
|
+
deferredFiles: ['logs/ta-log.md'],
|
|
232
|
+
nextRole: 'game-designer',
|
|
233
|
+
artifactRefs: ['docs/DESIGN.md', 'docs/style-exploration.md'],
|
|
234
|
+
requiredContextFields: ['ring.goal', 'archivedRings.2', 'sharedDecisions.coreAction', 'sharedDecisions.assetContractRefs'],
|
|
235
|
+
allowedTasks: ['Define hook and CTA intent', 'Prepare style direction', 'Select MC option'],
|
|
236
|
+
forbiddenTasks: ['Do not produce final asset set', 'Do not lock assetMapping as final'],
|
|
237
|
+
nextCommands: [
|
|
238
|
+
'Invoke @game-designer — ring 3 clarify (hook/CTA intent + style direction in docs/style-exploration.md)',
|
|
239
|
+
],
|
|
240
|
+
},
|
|
241
|
+
'3:build': {
|
|
242
|
+
currentAction: 'Build Ring 3 hook/CTA and style-direction handoff.',
|
|
243
|
+
requiredFiles: [...COMMON_REQUIRED, 'docs/layout-spec.md', 'docs/style-exploration.md', 'logs/artist-log.md', 'logs/developer-log.md', 'game/'],
|
|
244
|
+
deferredFiles: ['logs/ta-log.md'],
|
|
245
|
+
nextRole: 'artist',
|
|
246
|
+
artifactRefs: ['docs/style-exploration.md', 'logs/artist-log.md', 'logs/developer-log.md', 'game/'],
|
|
247
|
+
requiredContextFields: ['lastRole.summary', 'nextRole.mustKnow', 'sharedDecisions.assetContractRefs'],
|
|
248
|
+
allowedTasks: ['Integrate hook and CTA', 'Create ASR handoff evidence', 'Run playable_validate preparation'],
|
|
249
|
+
forbiddenTasks: ['Do not mass-produce assets', 'Do not run Ring 4 ui_diff'],
|
|
250
|
+
nextCommands: [
|
|
251
|
+
'Invoke @artist — ring 3 ASR + style direction (logs/artist-log.md, no production-grade PNGs)',
|
|
252
|
+
'Invoke @developer — ring 3 integrate hook/CTA',
|
|
253
|
+
'npm run verify:ui',
|
|
254
|
+
'npm run verify:visual-ring3',
|
|
255
|
+
'npm run verify:placeholders',
|
|
256
|
+
],
|
|
257
|
+
},
|
|
258
|
+
'3:verify': {
|
|
259
|
+
currentAction: 'Verify hook/CTA and run Ring 3 gate.',
|
|
260
|
+
requiredFiles: [...COMMON_REQUIRED, 'docs/layout-spec.md', 'docs/style-exploration.md', 'logs/artist-log.md', 'logs/review-report.md', 'game/'],
|
|
261
|
+
deferredFiles: ['logs/ta-log.md'],
|
|
262
|
+
nextRole: 'reviewer',
|
|
263
|
+
artifactRefs: ['docs/style-exploration.md', 'logs/artist-log.md', 'logs/review-report.md', 'game/'],
|
|
264
|
+
requiredContextFields: ['lastRole.summary', 'lastRole.validation', 'lastRole.blockers', 'sharedDecisions.assetContractRefs'],
|
|
265
|
+
allowedTasks: ['Run playable_validate', 'Run Ring 3 gate'],
|
|
266
|
+
forbiddenTasks: ['Do not lock production asset budget yet'],
|
|
267
|
+
nextCommands: [
|
|
268
|
+
'Invoke @reviewer gameplay_conformance — fill § Ring DoD Fields gameplayConformance',
|
|
269
|
+
'Invoke @reviewer load_check — confirm page load + no console errors',
|
|
270
|
+
'Invoke @reviewer playable_validate — fill § Ring DoD Fields hookCta',
|
|
271
|
+
'npm run verify:ui',
|
|
272
|
+
'npm run verify:visual-ring3',
|
|
273
|
+
'npm run verify:placeholders',
|
|
274
|
+
'npm run ring:gate -- --iteration 3',
|
|
275
|
+
],
|
|
276
|
+
},
|
|
277
|
+
'4:clarify': {
|
|
278
|
+
currentAction: 'Prepare production freeze and assetMapping lock criteria.',
|
|
279
|
+
requiredFiles: [...COMMON_REQUIRED, 'docs/layout-spec.md', 'docs/style-exploration.md', 'logs/artist-log.md'],
|
|
280
|
+
deferredFiles: [],
|
|
281
|
+
nextRole: 'artist',
|
|
282
|
+
artifactRefs: ['docs/layout-spec.md', 'docs/style-exploration.md', 'logs/artist-log.md'],
|
|
283
|
+
requiredContextFields: ['ring.goal', 'archivedRings.3', 'sharedDecisions.assetContractRefs', 'openQuestions'],
|
|
284
|
+
allowedTasks: ['Prepare production asset contract', 'Confirm freeze criteria'],
|
|
285
|
+
forbiddenTasks: [],
|
|
286
|
+
nextCommands: [
|
|
287
|
+
'Invoke @artist — ring 4 clarify (production asset contract + assetMapping freeze criteria)',
|
|
288
|
+
],
|
|
289
|
+
},
|
|
290
|
+
'4:build': {
|
|
291
|
+
currentAction: 'Produce and integrate production assets (Artist Wave 1 → TA Wave 2 → Developer integration).',
|
|
292
|
+
requiredFiles: [...COMMON_REQUIRED, 'docs/layout-spec.md', 'docs/style-exploration.md', 'logs/artist-log.md', 'logs/ta-log.md', 'logs/developer-log.md', 'game/'],
|
|
293
|
+
deferredFiles: [],
|
|
294
|
+
nextRole: 'artist',
|
|
295
|
+
artifactRefs: ['docs/layout-spec.md', 'logs/artist-log.md', 'logs/ta-log.md', 'logs/developer-log.md', 'assets/'],
|
|
296
|
+
requiredContextFields: ['lastRole.summary', 'lastRole.validation', 'lastRole.blockers', 'sharedDecisions.assetContractRefs', 'productionPipeline.waves'],
|
|
297
|
+
allowedTasks: ['Run Artist Wave 1', 'Run Technical Artist Wave 2', 'Integrate production assets'],
|
|
298
|
+
forbiddenTasks: ['Do not change core gameplay semantics without routeTo'],
|
|
299
|
+
nextCommands: [
|
|
300
|
+
'Invoke @artist — Ring 4 Wave 1 (audio + digit strip, logs/artist-log.md)',
|
|
301
|
+
'Invoke @technical-artist — Ring 4 Wave 2 (bulk production, logs/ta-log.md; only after Artist Wave 1)',
|
|
302
|
+
'npm run mark:slices',
|
|
303
|
+
'npm run import:gpt-art',
|
|
304
|
+
'npm run build-atlas',
|
|
305
|
+
'npm run review:assets',
|
|
306
|
+
'npm run verify:asset-review',
|
|
307
|
+
'npm run verify:ui:assets',
|
|
308
|
+
'Invoke @developer — Ring 4 production integration (wire TILE_KEYS/loaders/bg; npm run verify:asset-code-sync)',
|
|
309
|
+
'npm run verify:asset-code-sync',
|
|
310
|
+
'npm run verify:atom-conformance',
|
|
311
|
+
],
|
|
312
|
+
evidencePaths: ['assets/reference/marked/', 'validate/art-review/', 'validate/vision/'],
|
|
313
|
+
},
|
|
314
|
+
'4:verify': {
|
|
315
|
+
currentAction: 'Run production visual and asset gates before final Ring Gate.',
|
|
316
|
+
requiredFiles: [...COMMON_REQUIRED, 'docs/layout-spec.md', 'docs/style-exploration.md', 'logs/artist-log.md', 'logs/ta-log.md', 'logs/review-report.md', 'game/'],
|
|
317
|
+
deferredFiles: [],
|
|
318
|
+
nextRole: 'reviewer',
|
|
319
|
+
artifactRefs: ['docs/layout-spec.md', 'logs/artist-log.md', 'logs/ta-log.md', 'logs/review-report.md', 'game/', 'validate/'],
|
|
320
|
+
requiredContextFields: ['lastRole.summary', 'lastRole.validation', 'lastRole.blockers', 'sharedDecisions.assetContractRefs'],
|
|
321
|
+
allowedTasks: ['Run ui_diff', 'Run verify:visual', 'Run asset budget checks', 'Run final ring gate'],
|
|
322
|
+
forbiddenTasks: ['Do not ask user before all production gates pass'],
|
|
323
|
+
nextCommands: [
|
|
324
|
+
'Invoke @reviewer gameplay_conformance — fill § Ring DoD Fields gameplayConformance',
|
|
325
|
+
'Invoke @reviewer playable_validate — fill § Ring DoD Fields hookCta',
|
|
326
|
+
'npm run verify:vision',
|
|
327
|
+
'Invoke @reviewer ui_diff — Read each screenshot + Structured Visual Rubric → fill § Ring DoD Fields uiDiff',
|
|
328
|
+
'npm run verify:visual',
|
|
329
|
+
'npm run verify:bg-clean',
|
|
330
|
+
'npm run verify:tile-consistency',
|
|
331
|
+
'npm run verify:text-overlap',
|
|
332
|
+
'npm run verify:asset-review',
|
|
333
|
+
'npm run verify:ui:assets',
|
|
334
|
+
'npm run verify:asset-code-sync',
|
|
335
|
+
'npm run verify:atom-conformance',
|
|
336
|
+
'npm run ring:gate -- --iteration 4',
|
|
337
|
+
],
|
|
338
|
+
evidencePaths: ['assets/reference/marked/', 'validate/art-review/', 'validate/vision/'],
|
|
339
|
+
},
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
function normalizeLoop(loop) {
|
|
343
|
+
const value = String(loop || '').trim().toLowerCase();
|
|
344
|
+
return ['clarify', 'build', 'verify'].includes(value) ? value : 'clarify';
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
function normalizeIteration(iteration) {
|
|
348
|
+
const n = Number.parseInt(String(iteration ?? '1'), 10);
|
|
349
|
+
return Number.isFinite(n) && n >= 1 && n <= 4 ? n : 1;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
function resolveDisclosureKey({ iteration = 1, loop = 'clarify', handoff = {} } = {}) {
|
|
353
|
+
const ring = normalizeIteration(iteration);
|
|
354
|
+
const normalizedLoop = normalizeLoop(loop);
|
|
355
|
+
if (
|
|
356
|
+
ring === 1
|
|
357
|
+
&& normalizedLoop === 'clarify'
|
|
358
|
+
&& String(handoff.last_completed_by || '').toLowerCase() === 'game-designer'
|
|
359
|
+
&& String(handoff.subagent_stop || '').toLowerCase() === 'true'
|
|
360
|
+
) {
|
|
361
|
+
return '1:select';
|
|
362
|
+
}
|
|
363
|
+
if (
|
|
364
|
+
ring === 1
|
|
365
|
+
&& normalizedLoop === 'clarify'
|
|
366
|
+
&& ['skill-selector', 'ref-flow'].includes(String(handoff.last_completed_by || '').toLowerCase())
|
|
367
|
+
&& String(handoff.subagent_stop || '').toLowerCase() === 'true'
|
|
368
|
+
) {
|
|
369
|
+
return '1:scaffold';
|
|
370
|
+
}
|
|
371
|
+
return `${ring}:${normalizedLoop}`;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export function disclosureForState({ iteration = 1, loop = 'clarify', handoff = {} } = {}) {
|
|
375
|
+
const ring = normalizeIteration(iteration);
|
|
376
|
+
const normalizedLoop = normalizeLoop(loop);
|
|
377
|
+
const key = resolveDisclosureKey({ iteration, loop, handoff });
|
|
378
|
+
const disclosure = DISCLOSURE_BY_RING_LOOP[key] || DISCLOSURE_BY_RING_LOOP[`${ring}:${normalizedLoop}`] || DISCLOSURE_BY_RING_LOOP['1:clarify'];
|
|
379
|
+
return {
|
|
380
|
+
dispatchMode: false,
|
|
381
|
+
ring,
|
|
382
|
+
loop: normalizedLoop,
|
|
383
|
+
currentAction: disclosure.currentAction,
|
|
384
|
+
currentRingRequiredFiles: disclosure.requiredFiles,
|
|
385
|
+
deferredFiles: disclosure.deferredFiles || [],
|
|
386
|
+
allowedTasks: disclosure.allowedTasks || [],
|
|
387
|
+
forbiddenTasks: disclosure.forbiddenTasks || [],
|
|
388
|
+
nextCommands: disclosure.nextCommands || [],
|
|
389
|
+
nextRole: disclosure.nextRole || null,
|
|
390
|
+
artifactRefs: disclosure.artifactRefs || [],
|
|
391
|
+
requiredContextFields: disclosure.requiredContextFields || [],
|
|
392
|
+
evidencePaths: disclosure.evidencePaths || [],
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* slice-axis-v1 (Knife 6): orchestrator disclosure when an active slice is dispatched.
|
|
398
|
+
* Ring is budget/boundary only — wording must not re-introduce ring-loop as dispatch axis.
|
|
399
|
+
*/
|
|
400
|
+
export function disclosureForSlice(dispatchPacket, { iteration = 1 } = {}) {
|
|
401
|
+
const ring = normalizeIteration(iteration);
|
|
402
|
+
const role = String(dispatchPacket.role || 'developer');
|
|
403
|
+
const sliceId = String(dispatchPacket.sliceId || 'active');
|
|
404
|
+
const doWhat = String(dispatchPacket.doWhat || '').trim() || '(see dispatchPacket.doWhat)';
|
|
405
|
+
const flow = String(dispatchPacket.flow || 'implement').trim();
|
|
406
|
+
const verifier = String(dispatchPacket.verifier || 'verify:slice').trim();
|
|
407
|
+
const status = String(dispatchPacket.status || 'pending').trim();
|
|
408
|
+
const allowedFiles = Array.isArray(dispatchPacket.allowedFiles) ? dispatchPacket.allowedFiles : [];
|
|
409
|
+
const packetForbidden = Array.isArray(dispatchPacket.forbiddenTasks) ? dispatchPacket.forbiddenTasks : [];
|
|
410
|
+
|
|
411
|
+
const currentAction =
|
|
412
|
+
`Orchestrator: invoke @${role} for slice "${sliceId}" — ${doWhat} (flow: ${flow}). ` +
|
|
413
|
+
`Ring ${ring} is outer budget/boundary only; do not tell the subagent "Ring ${ring} ${flow}" or ask it to self-identify Ring/Gate/Loop.`;
|
|
414
|
+
|
|
415
|
+
const nextCommands = [];
|
|
416
|
+
if (status === 'failed' && dispatchPacket.routeTo?.role) {
|
|
417
|
+
nextCommands.push(
|
|
418
|
+
`Re-dispatch slice "${sliceId}" to @${dispatchPacket.routeTo.role} (${dispatchPacket.routeTo.reason || 'routed failure'})`,
|
|
419
|
+
);
|
|
420
|
+
} else if (status === 'verified') {
|
|
421
|
+
nextCommands.push(`Slice "${sliceId}" verified — orchestrator: promote queue or dispatch next pending slice`);
|
|
422
|
+
} else {
|
|
423
|
+
nextCommands.push(`Invoke @${role} — slice ${sliceId}: ${doWhat}`);
|
|
424
|
+
nextCommands.push(`Subagent: npm run ${verifier} then npm run slice:set -- status=verified|failed …`);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
return {
|
|
428
|
+
dispatchMode: true,
|
|
429
|
+
ring,
|
|
430
|
+
loop: flow,
|
|
431
|
+
currentAction,
|
|
432
|
+
currentRingRequiredFiles: [...COMMON_REQUIRED, ...allowedFiles],
|
|
433
|
+
deferredFiles: FUTURE_RING_FILES.filter((f) => !allowedFiles.includes(f)),
|
|
434
|
+
allowedTasks: [
|
|
435
|
+
`Invoke @${role} with dispatchPacket only (sliceId=${sliceId}, flow=${flow})`,
|
|
436
|
+
`Let subagent run ${verifier} and update slice via slice:set`,
|
|
437
|
+
],
|
|
438
|
+
forbiddenTasks: [
|
|
439
|
+
'Do not dispatch by ring loop name (e.g. "Ring 1 build", "Ring 2 verify")',
|
|
440
|
+
'Do not tell subagent to self-identify Ring / Gate / Loop',
|
|
441
|
+
'Do not substitute handoff documents for dispatchPacket scope',
|
|
442
|
+
...packetForbidden,
|
|
443
|
+
],
|
|
444
|
+
nextCommands,
|
|
445
|
+
nextRole: role,
|
|
446
|
+
artifactRefs: allowedFiles.length ? allowedFiles : ['dispatchPacket'],
|
|
447
|
+
requiredContextFields: [
|
|
448
|
+
'dispatchPacket.sliceId',
|
|
449
|
+
'dispatchPacket.role',
|
|
450
|
+
'dispatchPacket.doWhat',
|
|
451
|
+
'dispatchPacket.flow',
|
|
452
|
+
'dispatchPacket.verifier',
|
|
453
|
+
],
|
|
454
|
+
evidencePaths: [],
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/** Unified entry: active dispatchPacket wins; otherwise legacy ring:loop disclosure. */
|
|
459
|
+
export function disclosureForProjectState({ iteration = 1, loop = 'clarify', handoff = {}, dispatchPacket = null } = {}) {
|
|
460
|
+
if (dispatchPacket) {
|
|
461
|
+
return disclosureForSlice(dispatchPacket, { iteration });
|
|
462
|
+
}
|
|
463
|
+
return disclosureForState({ iteration, loop, handoff });
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/** Machine-readable orchestrator next step when a slice is active. */
|
|
467
|
+
export function recommendedActionForDispatch(dispatchPacket) {
|
|
468
|
+
if (!dispatchPacket) return null;
|
|
469
|
+
const { sliceId, role, doWhat, status, routeTo, verifier } = dispatchPacket;
|
|
470
|
+
if (status === 'failed' && routeTo?.role) {
|
|
471
|
+
return `Re-dispatch slice "${sliceId}" to @${routeTo.role} (${routeTo.reason || 'routed failure'})`;
|
|
472
|
+
}
|
|
473
|
+
if (status === 'verified') {
|
|
474
|
+
return `Slice "${sliceId}" verified — orchestrator: promote queue or dispatch next pending slice`;
|
|
475
|
+
}
|
|
476
|
+
if (status === 'in_progress') {
|
|
477
|
+
return `Await @${role} completing slice "${sliceId}" (${verifier || 'verify:slice'} + slice:set)`;
|
|
478
|
+
}
|
|
479
|
+
return `Invoke @${role} — slice ${sliceId}: ${doWhat || '(see dispatchPacket)'}`;
|
|
480
|
+
}
|