@playcraft/cli 0.0.44 → 0.0.46
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 +17 -3
- 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/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/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/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,111 @@
|
|
|
1
|
+
# TA Tools Reference
|
|
2
|
+
|
|
3
|
+
> Read by Technical Artist before starting any pipeline work. Contains full command reference for all TA tools.
|
|
4
|
+
|
|
5
|
+
## AI Generation
|
|
6
|
+
|
|
7
|
+
| Command | Purpose | Key Params |
|
|
8
|
+
| ----------------------------------- | ----------------------------------- | ---------------------------------------------------------------------- |
|
|
9
|
+
| `playcraft tools generate-image` | Generate image with style reference | `--prompt`, `--output`, `--reference-image` (up to 8), `--image-model` |
|
|
10
|
+
| `playcraft tools list-image-models` | List available models | `--json` |
|
|
11
|
+
| `playcraft tools search-image` | Search reference images | `--query`, `--count`, `--json` |
|
|
12
|
+
| `playcraft tools research` | Research style/technical params | `--query`, `--focus visual\|code`, `--json` |
|
|
13
|
+
|
|
14
|
+
## 3D Model Pipeline
|
|
15
|
+
|
|
16
|
+
| Command | Purpose | Key Params |
|
|
17
|
+
| -------------------------------- | ----------------------------------------- | ------------------------------------------------------ |
|
|
18
|
+
| `playcraft tools generate-3d` | AI text-to-3D / image-to-3D (HunyuanTo3D) | `--prompt`, `--input`, `--output model.glb`, `--model` |
|
|
19
|
+
| `playcraft tools list-3d-models` | List available 3D generation configs | `--json` |
|
|
20
|
+
| `playcraft 3d list-models` | List bundled white model primitives | — |
|
|
21
|
+
| `playcraft 3d info <model>` | Show vertex/face/UV details | `--json` |
|
|
22
|
+
| `playcraft 3d apply-texture` | Apply image texture to white model | `--model`, `--texture`, `--output`, `--color` |
|
|
23
|
+
| `playcraft 3d convert` | Convert GLB ↔ GLTF | `--input`, `--output` |
|
|
24
|
+
| `playcraft 3d optimize` | Compress GLB (texture resize, dedup) | `--input`, `--output`, `--texture-size 512` |
|
|
25
|
+
|
|
26
|
+
## Sprite Sheet Pipeline
|
|
27
|
+
|
|
28
|
+
| Command | Purpose | Key Params |
|
|
29
|
+
| ------------------------------ | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
30
|
+
| `playcraft image sprite-split` | Split sprite sheet into frames | `--input`, `--output-dir`, `--auto-detect` OR `--rows --columns --frame-width --frame-height` |
|
|
31
|
+
| `playcraft image sprite-sheet` | Merge frames into sprite sheet | `--inputs`, `--output`, `--columns`, `--cell-width`, `--cell-height`, `--padding` |
|
|
32
|
+
| `playcraft image animate` | Generate animation sprite sheet | `--input`, `--preset spin\|bounce\|pulse\|shake\|float\|blink\|swing\|wobble\|flip`, `--frames 8`, `--output` |
|
|
33
|
+
| `playcraft image list-vfx` | List bundled VFX sprite presets | `--json` |
|
|
34
|
+
| `playcraft image use-vfx` | Copy VFX preset to project | `--preset explosion_small\|sparkle\|confetti\|starburst\|smoke\|glow\|impact_ring\|coin_collect`, `--output`, `--tint`, `--scale` |
|
|
35
|
+
|
|
36
|
+
## Concept Art Extraction (SAM3 Segmentation)
|
|
37
|
+
|
|
38
|
+
> **Use this BEFORE AI generation** — extracting from confirmed concept art is faster and more style-consistent.
|
|
39
|
+
|
|
40
|
+
| Command | Purpose | Key Params |
|
|
41
|
+
| ------------------------- | ------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------- |
|
|
42
|
+
| `playcraft image segment` | SAM3 semantic segmentation: text prompt → mask + RGBA cutout | `--input`, `--text "<description>"`, `--extract-rgba` (transparent cutout), `--output-dir`, `--prompts '[...]'` (batch) |
|
|
43
|
+
|
|
44
|
+
**Workflow**:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# Single element extraction
|
|
48
|
+
playcraft image segment \
|
|
49
|
+
--input assets/images/concept/option_a.jpg \
|
|
50
|
+
--text "playing card spade ace" \
|
|
51
|
+
--extract-rgba \
|
|
52
|
+
--output-dir ta-workspace/tmp/
|
|
53
|
+
|
|
54
|
+
# Batch extraction from same concept art
|
|
55
|
+
playcraft image segment \
|
|
56
|
+
--input assets/images/concept/option_a.jpg \
|
|
57
|
+
--prompts '[{"text":"score display"},{"text":"timer icon"},{"text":"combo banner"}]' \
|
|
58
|
+
--extract-rgba \
|
|
59
|
+
--output-dir ta-workspace/tmp/ui-seg/
|
|
60
|
+
|
|
61
|
+
# Then: resize extracted elements to assetSpec dimensions
|
|
62
|
+
playcraft image resize --input ta-workspace/tmp/card_extracted.png \
|
|
63
|
+
--output assets/images/tiles/card_spade_A.png \
|
|
64
|
+
--width 140 --height 196
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**Notes**:
|
|
68
|
+
|
|
69
|
+
- Cold start ≈ 15s; subsequent calls fast
|
|
70
|
+
- If extracted quality is insufficient → fall back to AI generation with the concept art as `--reference-image`
|
|
71
|
+
- `--extract-rgba` produces transparent PNG directly (no separate `remove-background` needed)
|
|
72
|
+
|
|
73
|
+
## Image Processing
|
|
74
|
+
|
|
75
|
+
| Category | Commands |
|
|
76
|
+
| ------------ | ---------------------------------------------------------- |
|
|
77
|
+
| Geometry | `resize` / `crop` / `rotate` / `flip` / `pad` / `trim` |
|
|
78
|
+
| Format | `convert` (png/jpg/webp/avif) |
|
|
79
|
+
| Filters | `grayscale` / `blur` / `tint` / `negate` / `pixelate` |
|
|
80
|
+
| Composite | `overlay` (layer images) |
|
|
81
|
+
| Background | `remove-background` (floodfill or --method ai) |
|
|
82
|
+
| Segmentation | `segment` (SAM3, text-prompt extraction from scene images) |
|
|
83
|
+
| Info | `info` (dimensions, format, size) |
|
|
84
|
+
|
|
85
|
+
## Smart Segmentation (SAM3)
|
|
86
|
+
|
|
87
|
+
| Command | Purpose | Key Params |
|
|
88
|
+
| ------------------------- | ----------------------------------------------------- | ---------------------------------------------------------------------------- |
|
|
89
|
+
| `playcraft image segment` | AI semantic segmentation (SAM3), produces mask + rgba | `--input`, `--text` OR `--boxes`, `--output-dir`, `--threshold`, `--no-rgba` |
|
|
90
|
+
|
|
91
|
+
> For full guide (text prompt / box mode / threshold tuning / mask compositing workflows), **invoke the `playcraft-masking` skill**.
|
|
92
|
+
|
|
93
|
+
## Batch Processing
|
|
94
|
+
|
|
95
|
+
| Command | Purpose | Key Params |
|
|
96
|
+
| -------------------------- | ------------------------------------------------------------- | --------------------------------------------------------------------------- |
|
|
97
|
+
| `playcraft image batch` | Declarative multi-step batch on a directory | `--input-dir`, `--output-dir`, `--steps`, `--parallel N`, `--skip-existing` |
|
|
98
|
+
| `playcraft image pipeline` | YAML/JSON config pipeline with optional sprite-sheet assembly | `--config <yaml/json>`, `--dry-run` |
|
|
99
|
+
|
|
100
|
+
> For decision tree (Node.js script vs batch vs pipeline), step syntax, and known limitations, **invoke the `playcraft-batch-pipeline` skill**.
|
|
101
|
+
|
|
102
|
+
## Audio Processing
|
|
103
|
+
|
|
104
|
+
| Command | Purpose |
|
|
105
|
+
| -------------------------- | ---------------------- |
|
|
106
|
+
| `playcraft audio compress` | Reduce file size |
|
|
107
|
+
| `playcraft audio trim` | Cut to target duration |
|
|
108
|
+
| `playcraft audio loop` | Make seamless loop |
|
|
109
|
+
| `playcraft audio fade` | Add fade in/out |
|
|
110
|
+
| `playcraft audio convert` | Change format |
|
|
111
|
+
| `playcraft audio info` | Check metadata |
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
> 本文件是 VFX/动画预设的完整目录与配方参考。选型决策见 `playcraft-vfx-animation` skill。
|
|
2
|
+
|
|
3
|
+
# VFX/动画预设完整目录与配方
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. VFX 预设完整详解(8 个)
|
|
8
|
+
|
|
9
|
+
| 预设名 | 帧数 | 列数 | 体积 | 适用游戏事件 | 典型颜色 |
|
|
10
|
+
| ----------------- | ---- | ---- | ----- | ------------------------------ | ----------------- |
|
|
11
|
+
| `explosion_small` | 8 | 4 | ~30KB | 消除、方块击破、碰撞 | 橙红黄渐变 |
|
|
12
|
+
| `sparkle` | 6 | 3 | ~15KB | 得分、道具收集、奖励获得 | 金黄/白色闪光 |
|
|
13
|
+
| `confetti` | 12 | 4 | ~25KB | 关卡完成、大胜利、解锁 | 多彩纸片 |
|
|
14
|
+
| `starburst` | 8 | 4 | ~20KB | 奖励显示、连击触发、特殊技能 | 金色放射 |
|
|
15
|
+
| `smoke` | 8 | 4 | ~20KB | 元素消失、角色冲刺、撞击后尘 | 白/灰烟雾 |
|
|
16
|
+
| `glow` | 6 | 3 | ~10KB | 元素高亮、被选中状态、增益效果 | 发光环(可 tint) |
|
|
17
|
+
| `impact_ring` | 6 | 3 | ~15KB | 物体落地、受击反馈、点击反馈 | 白色扩散环 |
|
|
18
|
+
| `coin_collect` | 8 | 4 | ~20KB | 金币拾取、货币奖励 | 金黄闪光 |
|
|
19
|
+
|
|
20
|
+
### explosion_small — 小型爆炸
|
|
21
|
+
|
|
22
|
+
- **动画感**:中心爆发 -> 碎片扩散 -> 消散,8 帧循环
|
|
23
|
+
- **最佳用途**:Match-3 消除时的元素爆炸效果;方块游戏砖块击破
|
|
24
|
+
- **Tint 建议**:橙红系(默认),蓝紫系适合冰系技能
|
|
25
|
+
- **Scale 建议**:1.0-1.5(不宜过大,否则遮挡游戏元素)
|
|
26
|
+
- **典型错误**:scale 设太大导致爆炸遮挡相邻元素;冰系场景忘记 tint 蓝色
|
|
27
|
+
|
|
28
|
+
### sparkle — 闪光迸发
|
|
29
|
+
|
|
30
|
+
- **动画感**:多点闪光粒子从中心向外迸发,6 帧,轻盈感强
|
|
31
|
+
- **最佳用途**:得分反馈;道具拾取;星星闪烁;金币落地
|
|
32
|
+
- **Tint 建议**:金黄(默认得分);白色(魔法);粉色(爱心类游戏)
|
|
33
|
+
- **Scale 建议**:0.8-1.2
|
|
34
|
+
- **典型错误**:与 coin_collect 混淆——sparkle 更通用,coin_collect 专为货币设计
|
|
35
|
+
|
|
36
|
+
### confetti — 彩色纸雨
|
|
37
|
+
|
|
38
|
+
- **动画感**:多色纸片从上方飘落,12 帧,庆祝感最强
|
|
39
|
+
- **最佳用途**:关卡完成;解锁成就;首次胜利
|
|
40
|
+
- **Tint 建议**:不建议 tint(彩色是其核心特征)
|
|
41
|
+
- **Scale 建议**:1.5-2.0(大范围覆盖效果更好)
|
|
42
|
+
- **典型错误**:对 confetti 使用 tint 导致失去多彩感;scale 太小失去庆祝氛围
|
|
43
|
+
|
|
44
|
+
### starburst — 星形放射
|
|
45
|
+
|
|
46
|
+
- **动画感**:多条射线从中心向四周放射,8 帧,视觉冲击强
|
|
47
|
+
- **最佳用途**:大奖励显示;连击触发;技能激活;关键道具出现
|
|
48
|
+
- **Tint 建议**:金色(奖励);蓝色(技能);紫色(稀有物品)
|
|
49
|
+
- **Scale 建议**:1.0-2.0
|
|
50
|
+
- **典型错误**:同时使用 starburst + explosion_small 导致视觉混乱
|
|
51
|
+
|
|
52
|
+
### smoke — 烟雾消散
|
|
53
|
+
|
|
54
|
+
- **动画感**:烟雾团从中心扩散渐渐透明,8 帧,柔和感
|
|
55
|
+
- **最佳用途**:元素消失动画;角色冲刺残影;爆炸后尘烟
|
|
56
|
+
- **Tint 建议**:白/浅灰(轻盈);黑/深灰(爆炸尘埃);浅蓝(冰系)
|
|
57
|
+
- **Scale 建议**:1.0-1.8
|
|
58
|
+
- **典型错误**:浅色背景上用白色 smoke 导致不可见
|
|
59
|
+
|
|
60
|
+
### glow — 光晕脉冲
|
|
61
|
+
|
|
62
|
+
- **动画感**:光环从小变大再消散,6 帧,循环感强(可用于持续状态)
|
|
63
|
+
- **最佳用途**:选中状态持续高亮;增益道具激活;关键元素引导注意力
|
|
64
|
+
- **Tint 建议**:与元素主色一致(如选中蓝色元素 -> 蓝色 glow)
|
|
65
|
+
- **Scale 建议**:1.0-1.5(需与元素大小匹配)
|
|
66
|
+
- **典型错误**:glow 颜色与元素颜色不匹配导致视觉割裂
|
|
67
|
+
|
|
68
|
+
### impact_ring — 撞击扩散环
|
|
69
|
+
|
|
70
|
+
- **动画感**:圆环从小快速向外扩散,6 帧,物理感强
|
|
71
|
+
- **最佳用途**:物体落地冲击;玩家点击反馈;受击瞬间
|
|
72
|
+
- **Tint 建议**:白色(轻);橙色(重击);红色(伤害)
|
|
73
|
+
- **Scale 建议**:1.0-2.0(落地冲击可用较大 scale)
|
|
74
|
+
- **典型错误**:用于持续性效果——impact_ring 是瞬时的,持续高亮应用 glow
|
|
75
|
+
|
|
76
|
+
### coin_collect — 金币拾取闪光
|
|
77
|
+
|
|
78
|
+
- **动画感**:金色闪光发散再消失,8 帧,专为金币/货币设计
|
|
79
|
+
- **最佳用途**:金币/宝石/星星拾取;积分获得
|
|
80
|
+
- **Tint 建议**:金黄(默认);青色(蓝宝石类);粉色(粉色主题游戏)
|
|
81
|
+
- **Scale 建议**:0.8-1.2(与金币元素大小匹配)
|
|
82
|
+
- **典型错误**:非货币场景误用 coin_collect——通用收集反馈应用 sparkle
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## 2. Animate 预设完整详解(8 种 + flip)
|
|
87
|
+
|
|
88
|
+
| 预设名 | 帧数默认 | 动画感 | 适用素材 |
|
|
89
|
+
| -------- | -------- | ----------------------------- | -------------------------- |
|
|
90
|
+
| `bounce` | 8 | 竖直正弦平移,上下弹跳 | 角色、可收集道具、悬浮物品 |
|
|
91
|
+
| `float` | 8 | 上下轻柔漂浮 + 轻微旋转 | 道具、宝箱、魔法效果 |
|
|
92
|
+
| `pulse` | 8 | 缩放振荡,放大缩小循环 | 按钮、高亮元素、增益图标 |
|
|
93
|
+
| `spin` | 8 | X 轴缩放振荡模拟 Y 轴旋转 | 金币、奖章、圆形道具 |
|
|
94
|
+
| `shake` | 8 | 随机小幅 XY 偏移 | 受击反馈、警告、注意力引导 |
|
|
95
|
+
| `blink` | 8 | 不透明度振荡,显隐循环 | 光标、提示符、倒计时警告 |
|
|
96
|
+
| `swing` | 8 | 绕顶部中心摆动(钟摆) | 悬挂物体、灯笼、吊饰 |
|
|
97
|
+
| `wobble` | 8 | 左右交替小幅旋转 | 果冻感物体、软体角色、气泡 |
|
|
98
|
+
| `flip` | — | 双面翻转(需正面+背面两张图) | 卡牌翻转、麻将牌、双面道具 |
|
|
99
|
+
|
|
100
|
+
### bounce — 弹跳
|
|
101
|
+
|
|
102
|
+
- **动画感**:元素沿 Y 轴做正弦曲线上下移动,最自然的"活着"感
|
|
103
|
+
- **最佳用途**:主角色等待动画;可收集道具提示玩家注意;悬浮的星星/金币
|
|
104
|
+
- **参数建议**:`--frames 8`(流畅);`--columns 4`
|
|
105
|
+
- **典型错误**:对需要"轻柔飘逸感"的魔法元素用 bounce——应该用 float
|
|
106
|
+
|
|
107
|
+
### float — 轻柔漂浮
|
|
108
|
+
|
|
109
|
+
- **动画感**:比 bounce 更轻柔,幅度更小,加入轻微旋转(约 +-3 度),有"飘在空中"的感觉
|
|
110
|
+
- **最佳用途**:魔法道具;宝箱;云朵;任何需要"神秘漂浮感"的元素
|
|
111
|
+
- **参数建议**:`--frames 8-12`;`--columns 4`
|
|
112
|
+
- **典型错误**:对需要明显运动感的可收集道具用 float——幅度太小玩家可能注意不到
|
|
113
|
+
|
|
114
|
+
### pulse — 缩放振荡
|
|
115
|
+
|
|
116
|
+
- **动画感**:元素周期性放大(约 120%)再缩回,引导视觉注意力最有效
|
|
117
|
+
- **最佳用途**:CTA 按钮引导点击;教程高亮元素;增益道具图标
|
|
118
|
+
- **参数建议**:`--frames 6`(快速)或 `--frames 12`(缓慢呼吸感)
|
|
119
|
+
- **典型错误**:对游戏主体元素用 pulse——持续缩放让玩家头晕,pulse 只用于 UI 引导
|
|
120
|
+
|
|
121
|
+
### spin — 旋转
|
|
122
|
+
|
|
123
|
+
- **动画感**:通过 X 轴缩放模拟 Y 轴旋转,类似金币翻转的平面动画
|
|
124
|
+
- **最佳用途**:金币、奖章、圆形徽章;任何圆形/对称元素
|
|
125
|
+
- **参数建议**:`--frames 8`;注意:此预设不是真 3D 旋转,而是 2D 压缩模拟
|
|
126
|
+
- **典型错误**:对非对称/非圆形元素用 spin——会暴露 2D 压缩的破绽
|
|
127
|
+
|
|
128
|
+
### shake — 颤抖
|
|
129
|
+
|
|
130
|
+
- **动画感**:随机小幅位移,制造紧张/警告感
|
|
131
|
+
- **最佳用途**:受击反馈;错误操作提示;血量危险警告;注意力强制引导
|
|
132
|
+
- **参数建议**:`--frames 8-12`(更多帧 = 抖动时间更长)
|
|
133
|
+
- **典型错误**:用 shake 做 idle 动画——持续颤抖让玩家焦虑,idle 应用 bounce/float
|
|
134
|
+
|
|
135
|
+
### blink — 闪烁
|
|
136
|
+
|
|
137
|
+
- **动画感**:元素交替显示/隐藏,最简单的"请注意我"动画
|
|
138
|
+
- **最佳用途**:教程光标;限时提示符;倒计时最后几秒;"还有一步"引导
|
|
139
|
+
- **参数建议**:`--frames 4-6`(闪烁频率适中)
|
|
140
|
+
- **典型错误**:blink 帧数太多(>8)导致闪烁太慢、失去紧迫感
|
|
141
|
+
|
|
142
|
+
### swing — 摆动
|
|
143
|
+
|
|
144
|
+
- **动画感**:以元素顶部中心为轴心,像钟摆一样左右摆动
|
|
145
|
+
- **最佳用途**:悬挂的灯笼、指示牌、吊饰;任何"挂着"的元素
|
|
146
|
+
- **参数建议**:`--frames 12-16`(较多帧让摆动更平滑)
|
|
147
|
+
- **典型错误**:对地面物体用 swing——违反物理直觉,地面物体应用 wobble
|
|
148
|
+
|
|
149
|
+
### wobble — 抖动(果冻感)
|
|
150
|
+
|
|
151
|
+
- **动画感**:左右交替轻微旋转(约 +-5-10 度),有弹性感
|
|
152
|
+
- **最佳用途**:果冻、泡泡、软体角色、气球;任何"软弹弹"的可爱元素
|
|
153
|
+
- **参数建议**:`--frames 8-12`;`--columns 4`
|
|
154
|
+
- **典型错误**:对刚性物体(金属、石头)用 wobble——弹性感与材质矛盾
|
|
155
|
+
|
|
156
|
+
### flip — 双面翻转
|
|
157
|
+
|
|
158
|
+
- **动画感**:正面 -> 过渡 -> 背面的完整翻转动画,需要两张图
|
|
159
|
+
- **最佳用途**:卡牌翻转;麻将牌正反面;双面道具;谜题揭示
|
|
160
|
+
- **特殊要求**:必须同时提供 `--input`(正面图)和 `--back`(背面图)
|
|
161
|
+
- **参数建议**:详见 `ta-3d-flip-recipe.md`
|
|
162
|
+
- **典型错误**:忘记提供 --back 参数;正反面尺寸不一致
|
|
163
|
+
|
|
164
|
+
**flip CLI 示例**:
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
playcraft image animate \
|
|
168
|
+
--input assets/images/cards/card_front.png \
|
|
169
|
+
--back assets/images/cards/card_back.png \
|
|
170
|
+
--preset flip \
|
|
171
|
+
--output assets/images/cards/card_flip.png
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## 3. 游戏类型组合配方
|
|
177
|
+
|
|
178
|
+
### Match-3 消除游戏套餐
|
|
179
|
+
|
|
180
|
+
| 元素 | 推荐 VFX | 推荐 animate | 备注 |
|
|
181
|
+
| ------------------ | ------------------------ | ------------ | ---------------- |
|
|
182
|
+
| 消除爆炸 | `explosion_small` | — | tint 按元素颜色 |
|
|
183
|
+
| 得分反馈 | `sparkle` | — | 每次消除后触发 |
|
|
184
|
+
| 关卡完成 | `confetti` + `starburst` | — | 双 VFX 叠加 |
|
|
185
|
+
| 可移动元素(等待) | — | `bounce` | 待操作的关键元素 |
|
|
186
|
+
| 特殊道具 | `glow` | `pulse` | 高亮 + 引导点击 |
|
|
187
|
+
| 连击 | `starburst` | — | 大 scale=1.5 |
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
# Match-3 标准消除特效
|
|
191
|
+
playcraft image use-vfx --preset explosion_small --tint "#FF6B35" --output assets/images/vfx/tile_break.png
|
|
192
|
+
playcraft image use-vfx --preset sparkle --output assets/images/vfx/score_sparkle.png
|
|
193
|
+
playcraft image animate --input assets/images/tiles/special_bomb.png --preset pulse --frames 8 --output assets/images/tiles/special_bomb_anim.png
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### 跑酷 / 平台跳跃套餐
|
|
197
|
+
|
|
198
|
+
| 元素 | 推荐 VFX | 推荐 animate | 备注 |
|
|
199
|
+
| -------------- | -------------------------- | ------------ | ------------- |
|
|
200
|
+
| 道具收集 | `coin_collect` / `sparkle` | — | 根据道具类型 |
|
|
201
|
+
| 冲刺残影 | `smoke` | — | tint 深灰或黑 |
|
|
202
|
+
| 落地冲击 | `impact_ring` | — | scale=1.5 |
|
|
203
|
+
| 跑动中角色等待 | — | `bounce` | 开始前的角色 |
|
|
204
|
+
| CTA 按钮 | — | `pulse` | 引导安装 |
|
|
205
|
+
| 金币 | — | `spin` | 圆形金币旋转 |
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
playcraft image use-vfx --preset smoke --tint "#666666" --output assets/images/vfx/dash_smoke.png
|
|
209
|
+
playcraft image use-vfx --preset impact_ring --scale 1.5 --output assets/images/vfx/land_impact.png
|
|
210
|
+
playcraft image animate --input assets/images/ui/coins.png --preset spin --frames 8 --output assets/images/ui/coins_spin.png
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### 卡牌 / 麻将套餐
|
|
214
|
+
|
|
215
|
+
| 元素 | 推荐 VFX | 推荐 animate | 备注 |
|
|
216
|
+
| ------------ | ------------------------ | ------------ | ----------------------- |
|
|
217
|
+
| 卡牌翻转 | — | `flip` | 见 ta-3d-flip-recipe.md |
|
|
218
|
+
| 胜利展示 | `confetti` + `starburst` | — | — |
|
|
219
|
+
| 选中卡牌 | `glow` | — | tint 与牌背色匹配 |
|
|
220
|
+
| 特殊牌效果 | `sparkle` | — | — |
|
|
221
|
+
| 等待中的牌组 | — | `wobble` | 轻柔抖动 |
|
|
222
|
+
|
|
223
|
+
```bash
|
|
224
|
+
playcraft image use-vfx --preset glow --tint "#FFD700" --output assets/images/vfx/card_select_glow.png
|
|
225
|
+
playcraft image animate --input assets/images/cards/hand_pile.png --preset wobble --frames 8 --output assets/images/cards/hand_pile_wobble.png
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
### 休闲益智 / 泡泡射击套餐
|
|
229
|
+
|
|
230
|
+
| 元素 | 推荐 VFX | 推荐 animate | 备注 |
|
|
231
|
+
| ---------- | ----------------------------- | ------------ | ------------ |
|
|
232
|
+
| 泡泡消除 | `explosion_small` + `sparkle` | — | 双 VFX |
|
|
233
|
+
| 浮动的泡泡 | — | `float` | 轻柔感 |
|
|
234
|
+
| 瞄准指示 | — | `blink` | 提示玩家操作 |
|
|
235
|
+
| 星星收集 | `coin_collect` | `spin` | — |
|
|
236
|
+
| 过关庆祝 | `confetti` | — | — |
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## 4. 自定义动画帧数决策指南
|
|
241
|
+
|
|
242
|
+
> 本节适用于不使用 animate 内置预设的场景——从独立帧手动合成精灵图(`playcraft image sprite-sheet`),或 AI 批量生成序列帧(`playcraft-sprite-generation` Skill)时。
|
|
243
|
+
|
|
244
|
+
### 4.1 各动画类型的帧数基准
|
|
245
|
+
|
|
246
|
+
| 动画类型 | 建议帧数 | 建议 FPS | 关键注意点 |
|
|
247
|
+
| ------------- | -------- | -------------- | -------------------------------------------------------- |
|
|
248
|
+
| Idle(待机) | 2-4 帧 | 6-8 FPS | 极简为主;2 帧(呼吸缩放)足以表达"活着" |
|
|
249
|
+
| Walk(行走) | 4-8 帧 | 8-12 FPS | 32x32 以下用 4 帧;64x64 以上用 6-8 帧 |
|
|
250
|
+
| Run(奔跑) | 6-8 帧 | 10-12 FPS | 用更高 FPS 而非更多帧;8 帧 @12FPS 比 16 帧 @6FPS 更流畅 |
|
|
251
|
+
| Jump(跳跃) | 3-5 帧 | 可变 | 上升 1 帧 + 顶点 1 帧 + 下降 1 帧已足够 |
|
|
252
|
+
| 攻击/打击 | 3-6 帧 | 可变(见 4.2) | 帧时长分配才是关键 |
|
|
253
|
+
| 消除/爆炸特效 | 4-8 帧 | 12-15 FPS | 多于 8 帧视觉改善边际递减 |
|
|
254
|
+
| UI 元素动画 | 2-4 帧 | — | 强烈建议用 CSS animation 替代(0KB 开销) |
|
|
255
|
+
| 卡牌/翻转 | 16 帧 | 24 FPS | 用 `playcraft-3d-flip-sprite` Skill |
|
|
256
|
+
|
|
257
|
+
**体积估算公式**:
|
|
258
|
+
|
|
259
|
+
```
|
|
260
|
+
精灵图体积 = 每帧宽 x 每帧高 x 帧数 x 4 bytes (RGBA) x 0.3 (PNG 压缩率)
|
|
261
|
+
示例:128x128 x 8帧 = 512KB 原始 -> ~50KB PNG
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
### 4.2 非均匀帧时长(比增加帧数更有效)
|
|
265
|
+
|
|
266
|
+
可玩广告 5MB 预算紧张,不要用增加帧数追求流畅感——用非均匀帧时长创造冲击力,效果更好且不增加体积。
|
|
267
|
+
|
|
268
|
+
```
|
|
269
|
+
攻击动画(5 帧)的帧时长分配示例:
|
|
270
|
+
帧 1(蓄力开始): 80ms <- 快速进入
|
|
271
|
+
帧 2(蓄力末): 80ms
|
|
272
|
+
帧 3(打击瞬间): 40ms <- 最短,创造冲击感
|
|
273
|
+
帧 4(打击后): 180ms <- hold 住打击帧,让玩家"看见"命中
|
|
274
|
+
帧 5(恢复): 120ms
|
|
275
|
+
|
|
276
|
+
共 5 帧 500ms,比均匀的 5 帧 @10FPS 感知效果强 3-5 倍
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
在代码层实现非均匀帧时长(Developer 负责,TA 需在 ta-log 中注明建议):
|
|
280
|
+
|
|
281
|
+
```javascript
|
|
282
|
+
// 告诉 Developer 的帧时长数组(写入 ta-log.md)
|
|
283
|
+
// const ATTACK_FRAME_DURATIONS = [80, 80, 40, 180, 120]; // ms per frame
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
### 4.3 何时用精灵图,何时改用其他方案
|
|
287
|
+
|
|
288
|
+
```
|
|
289
|
+
需要动画效果?
|
|
290
|
+
|
|
|
291
|
+
+-- 简单变换(位移/缩放/透明度/旋转)?
|
|
292
|
+
| -> CSS animation / CSS transition(Developer 实现,0KB 开销,GPU 合成)
|
|
293
|
+
|
|
|
294
|
+
+-- 矢量图标动画(CTA 脉冲/教程手势)?
|
|
295
|
+
| -> Lottie JSON(~30KB,矢量,跨分辨率)
|
|
296
|
+
|
|
|
297
|
+
+-- VFX 特效(爆炸/闪光/纸雨)?
|
|
298
|
+
| -> playcraft image use-vfx(内置预设,最快最省)
|
|
299
|
+
|
|
|
300
|
+
+-- 内置预设(bounce/spin/pulse 等)满足需求?
|
|
301
|
+
| -> playcraft image animate --preset <name>
|
|
302
|
+
|
|
|
303
|
+
+-- 3D 翻转(卡牌/麻将/双面道具)?
|
|
304
|
+
| -> playcraft-3d-flip-sprite Skill(16 帧软光栅渲染)
|
|
305
|
+
|
|
|
306
|
+
+-- 以上都不满足(复杂序列帧、角色行走/攻击)?
|
|
307
|
+
-> 精灵图(AI 批量生成帧 -> sprite-sheet 合并)
|
|
308
|
+
参考:playcraft-sprite-generation Skill
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## 5. VFX 体积预算参考
|
|
314
|
+
|
|
315
|
+
| 游戏复杂度 | 建议 VFX 总体积上限 | 配置策略 |
|
|
316
|
+
| ------------------ | ------------------- | ----------------------------- |
|
|
317
|
+
| 简单(1-2 种 VFX) | <= 60KB | `sparkle` + `coin_collect` |
|
|
318
|
+
| 中等(3-4 种) | <= 100KB | 加 `explosion_small` + `glow` |
|
|
319
|
+
| 丰富(5+ 种) | <= 150KB | 全套,注意总文件大小预算 |
|
|
320
|
+
|
|
321
|
+
> TA 在选择 VFX 组合时,需结合 layout-spec.md 中的总体积预算(通常 <= 2-3MB 给所有素材)。VFX 精灵图应优先使用小体积预设,大型 VFX(confetti 25KB)控制在 1-2 个。
|
|
322
|
+
|
|
323
|
+
### 5MB 预算中的动画体积分配建议
|
|
324
|
+
|
|
325
|
+
| 资产类别 | 建议体积上限 | 备注 |
|
|
326
|
+
| ------------------ | ------------ | --------------------------- |
|
|
327
|
+
| 核心游戏元素精灵图 | 1.5-2 MB | 包含所有 tile/角色/道具 |
|
|
328
|
+
| VFX 精灵图 | <= 150 KB | 用内置预设控制 |
|
|
329
|
+
| UI 动画(Lottie) | <= 100 KB | CTA 脉冲、教程手势 |
|
|
330
|
+
| 背景/场景图 | <= 500 KB | WebP 格式优先 |
|
|
331
|
+
| 音频 | <= 300 KB | BGM + 关键 SFX |
|
|
332
|
+
| 代码 + 框架 | <= 800 KB | 按引擎 playcraft build 优化 |
|
|
333
|
+
|
|
334
|
+
> Base64 编码注意:单 HTML 格式(IronSource / AppLovin / Snapchat)所有资源 Base64 内联后体积增加 ~33%。即 5MB 限制的单 HTML,实际可用原始资产 <= 3.75MB。Google Ads ZIP 格式无此限制,5MB 全部可用。
|
|
335
|
+
|
|
336
|
+
---
|
|
337
|
+
|
|
338
|
+
## 6. CLI 参数完整速查
|
|
339
|
+
|
|
340
|
+
### playcraft image use-vfx 完整参数
|
|
341
|
+
|
|
342
|
+
| 参数 | 类型 | 默认值 | 说明 |
|
|
343
|
+
| ---------- | ---------- | -------------------- | ------------------------ |
|
|
344
|
+
| `--preset` | string | 必填 | VFX 预设名 |
|
|
345
|
+
| `--output` | string | 必填 | 输出精灵表路径(.png) |
|
|
346
|
+
| `--tint` | hex string | 无(使用预设默认色) | 颜色叠加,格式 `#RRGGBB` |
|
|
347
|
+
| `--scale` | number | `1.0` | 整体缩放倍数(0.5-3.0) |
|
|
348
|
+
|
|
349
|
+
### playcraft image animate 完整参数
|
|
350
|
+
|
|
351
|
+
| 参数 | 类型 | 默认值 | 说明 |
|
|
352
|
+
| ---------------- | ------ | -------- | ----------------------------------- |
|
|
353
|
+
| `--input` | string | 必填 | 输入图片路径(素材原图) |
|
|
354
|
+
| `--output` | string | 必填 | 输出精灵表路径(.png) |
|
|
355
|
+
| `--preset` | string | `bounce` | 动画预设名 |
|
|
356
|
+
| `--frames` | number | `8` | 总帧数,范围 2-64 |
|
|
357
|
+
| `--columns` | number | `4` | 精灵表列数(行数 = frames/columns) |
|
|
358
|
+
| `--back` | string | 无 | flip 专用:背面图片路径 |
|
|
359
|
+
| `--list-presets` | flag | — | 打印所有预设说明后退出 |
|
|
360
|
+
|
|
361
|
+
### playcraft image list-vfx 参数
|
|
362
|
+
|
|
363
|
+
| 参数 | 说明 |
|
|
364
|
+
| -------- | ---------------------------------------------- |
|
|
365
|
+
| `--json` | 以 JSON 格式输出预设列表(含帧数、体积等字段) |
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Technical Artist Legacy Fallback
|
|
2
|
+
|
|
3
|
+
Use this reference only when `dispatchPacket` is null and `sliceState` is empty.
|
|
4
|
+
|
|
5
|
+
This preserves the older production asset path for existing projects. It is not part of slice-axis dispatch.
|
|
6
|
+
|
|
7
|
+
Legacy behavior:
|
|
8
|
+
|
|
9
|
+
- Read `npm run state:get -- --json` and follow the disclosed current action.
|
|
10
|
+
- Complete upstream intake before production asset work.
|
|
11
|
+
- Produce asset readiness, manifests, and compliance evidence requested by the legacy task.
|
|
12
|
+
- Route missing design, Artist, or Developer inputs instead of inventing them.
|
|
13
|
+
|
|
14
|
+
When `sliceState` exists, return to the main Technical Artist role contract.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: reviewer
|
|
3
|
+
description: 'Reviewer: audits build evidence packages and produces structured verdicts without production edits.'
|
|
4
|
+
tools:
|
|
5
|
+
- 'Read'
|
|
6
|
+
- 'Write'
|
|
7
|
+
- 'Grep'
|
|
8
|
+
- 'Glob'
|
|
9
|
+
- 'Skill'
|
|
10
|
+
- 'Bash(ls:*)'
|
|
11
|
+
- 'Bash(cat:*)'
|
|
12
|
+
- 'Bash(find:*)'
|
|
13
|
+
- 'Bash(du:*)'
|
|
14
|
+
- 'Bash(wc:*)'
|
|
15
|
+
- 'Bash(grep:*)'
|
|
16
|
+
- 'Bash(npm run state:get:*)'
|
|
17
|
+
- 'Bash(npm run slice:set:*)'
|
|
18
|
+
- 'Bash(playcraft image info:*)'
|
|
19
|
+
- 'Bash(playcraft audio info:*)'
|
|
20
|
+
- 'Bash(playwright-cli:*)'
|
|
21
|
+
- 'Bash(npx playwright-cli:*)'
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# Reviewer — Role Contract
|
|
25
|
+
|
|
26
|
+
## Role Essence
|
|
27
|
+
|
|
28
|
+
You audit build evidence packages and produce structured verdicts.
|
|
29
|
+
|
|
30
|
+
Your stable responsibility is independent convergence review: inspect `validate/build.json` and its referenced runtime, video, visual, and VLM (Vision Language Model, 视觉语言模型) evidence against the packet acceptance criteria, then route failures precisely.
|
|
31
|
+
|
|
32
|
+
`npm run build` is the validator entry. It may already run probe, autoplay, recording, and VLM validators. Reviewer does not rerun or choose validators by default; Reviewer checks whether the build evidence package is complete, trustworthy, and acceptance-mapped.
|
|
33
|
+
|
|
34
|
+
You are not a production participant. You do not implement fixes, generate assets, rewrite design, or decide process phase.
|
|
35
|
+
|
|
36
|
+
## Dispatch Contract
|
|
37
|
+
|
|
38
|
+
Start every run with:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npm run state:get -- --json dispatchPacket
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
If `dispatchPacket.role` is `reviewer`, execute only that packet:
|
|
45
|
+
|
|
46
|
+
- Obey `doWhat`, `flow`, `allowedFiles`, `forbiddenTasks`, and `acceptance`.
|
|
47
|
+
- Review only `validate/build.json` and the evidence references named by the packet/build artifact.
|
|
48
|
+
- Produce a structured verdict, not a broad narrative report.
|
|
49
|
+
- Treat screenshots, runtime logs, MP4 (MPEG-4 Part 14, 数字多媒体容器格式), and VLM verdicts as build evidence refs, not as separate Reviewer-owned validation work.
|
|
50
|
+
- Do not run `npm run build`, `record:mp4`, or `verify:vlm-video` unless the packet explicitly asks for a reproduction step.
|
|
51
|
+
- Do not choose a review type from process state.
|
|
52
|
+
|
|
53
|
+
On pass:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
npm run slice:set -- status=verified verification="verdict:pass;summary=<one line>"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
On fail:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
npm run slice:set -- status=failed route=<role> reason="<failKey>"
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
You may append a minimal report stub only when `allowedFiles` includes it. The slice state verdict is the authority.
|
|
66
|
+
|
|
67
|
+
## Inputs
|
|
68
|
+
|
|
69
|
+
Use only packet-scoped evidence:
|
|
70
|
+
|
|
71
|
+
- `dispatchPacket`
|
|
72
|
+
- `validate/build.json` as the primary evidence package
|
|
73
|
+
- MP4/video artifacts only when referenced by `validate/build.json` or the packet
|
|
74
|
+
- screenshots only when referenced by `validate/build.json` or the packet
|
|
75
|
+
- VLM verdict JSON only when referenced by `validate/build.json` or the packet
|
|
76
|
+
- `docs/DESIGN.md` or `docs/atom-tree.json` only when needed for conformance and allowed
|
|
77
|
+
- existing report file only when the packet includes it
|
|
78
|
+
|
|
79
|
+
## Outputs
|
|
80
|
+
|
|
81
|
+
Produce:
|
|
82
|
+
|
|
83
|
+
- structured pass/fail verdict
|
|
84
|
+
- evidence completeness finding for `validate/build.json`
|
|
85
|
+
- concise problem list with owner route
|
|
86
|
+
- optional minimal report stub if allowed
|
|
87
|
+
- `slice:set verified` or `slice:set failed route=... reason=...`
|
|
88
|
+
|
|
89
|
+
## STOP Contract
|
|
90
|
+
|
|
91
|
+
Before STOP:
|
|
92
|
+
|
|
93
|
+
- The active reviewer slice must be verified or failed with a route and reason.
|
|
94
|
+
- Every failed acceptance item must identify the responsible role.
|
|
95
|
+
- Verdict must cite concrete evidence, not taste or intuition.
|
|
96
|
+
- `validate/build.json` must be present, parseable, match the active slice, and include required evidence refs for its `evidenceTier`.
|
|
97
|
+
- No production files may be edited.
|
|
98
|
+
|
|
99
|
+
## Forbidden Ownership
|
|
100
|
+
|
|
101
|
+
You must not:
|
|
102
|
+
|
|
103
|
+
- modify game code
|
|
104
|
+
- generate or replace assets
|
|
105
|
+
- rewrite design intent
|
|
106
|
+
- accept missing evidence as pass
|
|
107
|
+
- rerun or invent validation outside the packet/build evidence path
|
|
108
|
+
- use old process mode tables to broaden scope
|
|
109
|
+
- set user acceptance state
|
|
110
|
+
- ask the user directly from a subagent
|
|
111
|
+
|
|
112
|
+
## Legacy Fallback
|
|
113
|
+
|
|
114
|
+
Only when `dispatchPacket` is null and `sliceState` is empty, follow [`refs/reviewer-legacy-fallback.md`](refs/reviewer-legacy-fallback.md).
|
|
115
|
+
|
|
116
|
+
Legacy fallback does not apply to slice-axis dispatch.
|