@playcraft/cli 0.0.43 → 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 +13 -7
- package/dist/commands/create.js +774 -50
- package/dist/commands/image.js +11 -0
- package/dist/commands/prad.js +3 -3
- 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/check.test.js +23 -1
- package/dist/prad/skills-index.js +1 -1
- 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/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/index.ts +76 -0
- package/engine-packs/threejs/game/runtime-contract.ts +15 -0
- package/engine-packs/threejs/manifest.json +1 -0
- package/engine-packs/threejs/package.deps.json +8 -0
- package/package.json +18 -4
- package/project-template/.claude/agents/artist.md +101 -0
- package/project-template/.claude/agents/developer.md +90 -93
- package/project-template/.claude/agents/game-designer.md +192 -0
- package/project-template/.claude/agents/refs/README.md +57 -51
- package/project-template/.claude/agents/refs/{designer-color-audio-recipes.md → artist-color-audio-recipes.md} +2 -2
- package/project-template/.claude/agents/refs/{designer-deliverable-spec.md → artist-deliverable-spec.md} +57 -57
- package/project-template/.claude/agents/refs/{designer-dimension-axis.md → artist-dimension-axis.md} +5 -5
- package/project-template/.claude/agents/refs/{designer-handoff-v2-checklist.md → artist-handoff-v2-checklist.md} +15 -15
- package/project-template/.claude/agents/refs/artist-legacy-fallback.md +14 -0
- package/project-template/.claude/agents/refs/{designer-master-composite-recipes.md → artist-master-composite-recipes.md} +3 -3
- package/project-template/.claude/agents/refs/artist-style-exploration-flow.md +55 -0
- package/project-template/.claude/agents/refs/developer-dev-handoff.md +83 -40
- package/project-template/.claude/agents/refs/developer-impl-cookbook.md +365 -67
- package/project-template/.claude/agents/refs/developer-legacy-fallback.md +15 -0
- package/project-template/.claude/agents/refs/developer-phase1-flow.md +131 -85
- package/project-template/.claude/agents/refs/framework-5-component-filter.md +252 -0
- package/project-template/.claude/agents/refs/framework-game-feel-juice.md +266 -0
- package/project-template/.claude/agents/refs/framework-mda.md +147 -0
- package/project-template/.claude/agents/refs/game-designer-gameplay-sufficiency.md +123 -0
- package/project-template/.claude/agents/refs/game-designer-legacy-fallback.md +15 -0
- package/project-template/.claude/agents/refs/game-designer-workflow-detail.md +69 -0
- package/project-template/.claude/agents/refs/implementation-plan-guide.md +316 -0
- package/project-template/.claude/agents/refs/reviewer-convergence-eval.md +247 -33
- package/project-template/.claude/agents/refs/reviewer-legacy-fallback.md +14 -0
- package/project-template/.claude/agents/refs/skill-selector-guide.md +465 -0
- package/project-template/.claude/agents/refs/skill-value-layers.md +145 -0
- package/project-template/.claude/agents/refs/storyboard-generation-guide.md +110 -0
- package/project-template/.claude/agents/refs/ta-atlas-deliverable-standard.md +4 -4
- package/project-template/.claude/agents/refs/ta-pipeline-cookbook.md +101 -104
- package/project-template/.claude/agents/refs/technical-artist-legacy-fallback.md +14 -0
- package/project-template/.claude/agents/reviewer.md +81 -95
- package/project-template/.claude/agents/technical-artist.md +71 -95
- package/project-template/.claude/hooks/README.md +83 -35
- package/project-template/.claude/hooks/asr-coverage-validate.mjs +19 -19
- package/project-template/.claude/hooks/block-developer-preflight.mjs +185 -0
- package/project-template/.claude/hooks/block-ring1-tasklist.mjs +95 -0
- package/project-template/.claude/hooks/gate-dispatcher.mjs +78 -0
- package/project-template/.claude/hooks/gate-runner.mjs +557 -0
- package/project-template/.claude/hooks/gate.mjs +170 -0
- package/project-template/.claude/hooks/snapshot-milestone.mjs +246 -0
- package/project-template/.claude/hooks/user-prompt.mjs +193 -0
- package/project-template/.claude/hooks/validate-atom-tree-selection.mjs +281 -0
- package/project-template/.claude/hooks/validate-workflow-stop.mjs +1535 -95
- package/project-template/.claude/settings.json +54 -9
- package/project-template/.claude/skills/brainstorming/SKILL.md +161 -0
- package/project-template/.claude/skills/brainstorming/scripts/frame-template.html +270 -0
- package/project-template/.claude/skills/brainstorming/scripts/helper.js +177 -0
- package/project-template/.claude/skills/brainstorming/scripts/server.cjs +354 -0
- package/project-template/.claude/skills/brainstorming/scripts/start-server.sh +148 -0
- package/project-template/.claude/skills/brainstorming/scripts/stop-server.sh +56 -0
- package/project-template/.claude/skills/brainstorming/scripts/wait-for-selection.sh +62 -0
- package/project-template/.claude/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
- package/project-template/.claude/skills/brainstorming/visual-companion.md +309 -0
- package/project-template/.claude/skills/playcraft-ad-psychology/SKILL.md +3 -3
- package/project-template/.claude/skills/playcraft-art-style-guide/SKILL.md +3 -3
- package/project-template/.claude/skills/playcraft-asset-state-sheet/SKILL.md +35 -25
- package/project-template/.claude/skills/playcraft-audio-generation/SKILL.md +15 -15
- package/project-template/.claude/skills/playcraft-build-optimizer/SKILL.md +5 -5
- package/project-template/.claude/skills/playcraft-image-generation/SKILL.md +5 -5
- package/project-template/.claude/skills/playcraft-image-generation/reference/compare-style.template.mjs +5 -5
- package/project-template/.claude/skills/playcraft-image-generation/reference/gen-batch-sprite.template.mjs +116 -27
- package/project-template/.claude/skills/playcraft-image-generation/reference/prompt-cookbook.md +1 -1
- package/project-template/.claude/skills/playcraft-image-processing/SKILL.md +219 -0
- package/project-template/.claude/skills/playcraft-playable-optimization/SKILL.md +161 -0
- package/project-template/.claude/skills/playcraft-research/SKILL.md +24 -21
- package/project-template/.claude/skills/playcraft-skill-recommender/SKILL.md +331 -0
- package/project-template/.claude/skills/playcraft-sprite-generation/SKILL.md +48 -48
- package/project-template/.claude/skills/playcraft-sprite-remix/SKILL.md +158 -0
- package/project-template/.claude/skills/playcraft-sprite-sheet/SKILL.md +100 -0
- package/project-template/.claude/skills/playcraft-storyboard/SKILL.md +4 -4
- package/project-template/.claude/skills/playcraft-style-qa/SKILL.md +45 -45
- package/project-template/.claude/skills/playcraft-text-rendering/SKILL.md +27 -27
- package/project-template/.claude/skills/session-analyzer/SKILL.md +386 -0
- package/project-template/.claude/skills/session-analyzer/scripts/execution-breakdown.mjs +182 -0
- package/project-template/.claude/skills/session-analyzer/scripts/find-turns.mjs +72 -0
- package/project-template/.claude/skills/session-analyzer/scripts/heavy-output.mjs +121 -0
- package/project-template/.claude/skills/session-analyzer/scripts/resolve-session.mjs +103 -0
- package/project-template/.claude/skills/session-analyzer/scripts/subagent-stats.mjs +127 -0
- package/project-template/.claude/skills/session-analyzer/scripts/subagent-tool-timeline.mjs +106 -0
- package/project-template/.claude/skills/session-analyzer/scripts/time-gaps.mjs +128 -0
- package/project-template/.claude/skills/session-analyzer/scripts/turn-timeline.mjs +67 -0
- package/project-template/.claude/snapshot.mjs +350 -0
- package/project-template/.codebuddy/settings.json +53 -0
- package/project-template/.cursor/hooks.json +1 -1
- package/project-template/.cursor/rules/playcraft-orchestrator.mdc +91 -86
- package/project-template/.cursor/rules/playcraft-subagent-boundary.mdc +16 -5
- package/project-template/CHANGELOG.md +105 -0
- package/project-template/CLAUDE.md +58 -254
- package/project-template/docs/DESIGN.md +65 -0
- package/project-template/docs/intent-clarifications.md +58 -0
- package/project-template/docs/pipeline-overview.md +69 -0
- package/project-template/docs/project-state.md +211 -0
- package/project-template/docs/team/agent-conduct.md +51 -105
- package/project-template/docs/team/agent-runtime-matrix.md +60 -74
- package/project-template/docs/team/atom-tree-format.md +169 -0
- package/project-template/docs/team/collaboration.md +319 -225
- package/project-template/docs/team/core-model.md +80 -46
- package/project-template/docs/team/game-designer-migration-todo.md +8 -0
- package/project-template/docs/team/harness-legacy-deprecation.md +23 -0
- package/project-template/docs/team/platform-capabilities.md +16 -13
- package/project-template/docs/team/workflow-changelog.md +95 -23
- package/project-template/docs/team/workflow-consistency-checklist.md +93 -45
- package/project-template/focus-lab/.gitkeep +0 -0
- package/project-template/game/.playcraft-scaffold-pending +0 -0
- package/project-template/game/index.ts +18 -0
- package/project-template/globals.d.ts +51 -0
- package/project-template/index.css +34 -0
- package/project-template/index.html +18 -0
- package/project-template/main.ts +9 -0
- package/project-template/package.json +79 -0
- package/project-template/skills/README.md +52 -0
- package/project-template/skills/_shared/agent-prep.md +136 -0
- package/project-template/skills/_shared/requirements.txt +1 -0
- package/project-template/skills/_shared/scripts/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/dist/playable/base-builder.js +0 -265
- package/dist/playable/builder.js +0 -1462
- package/dist/playable/converter.js +0 -150
- package/dist/playable/index.js +0 -3
- package/dist/playable/platforms/base.js +0 -12
- package/dist/playable/platforms/facebook.js +0 -37
- package/dist/playable/platforms/index.js +0 -24
- package/dist/playable/platforms/snapchat.js +0 -59
- package/dist/playable/playable-builder.js +0 -521
- package/dist/playable/types.js +0 -1
- package/dist/playable/vite/config-builder.js +0 -136
- package/dist/playable/vite/platform-configs.js +0 -102
- package/dist/playable/vite/plugin-model-compression.js +0 -63
- package/dist/playable/vite/plugin-platform.js +0 -65
- package/dist/playable/vite/plugin-playcanvas.js +0 -454
- package/dist/playable/vite-builder.js +0 -125
- 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/settings.local.json +0 -4
- 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/logs → engine-packs/threejs/game/config}/.gitkeep +0 -0
- /package/{project-template/ta-workspace/logs → engine-packs/threejs/game/gameplay}/.gitkeep +0 -0
- /package/{project-template/ta-workspace/tmp → engine-packs/threejs/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,404 @@
|
|
|
1
|
+
# Developer Flow — `loop: build`
|
|
2
|
+
|
|
3
|
+
> **触发条件**:`npm run state:get -- --json` 披露 `iteration` 1..4 + `loop: build`。只读取其中披露的 `currentRingRequiredFiles`。
|
|
4
|
+
> 本文件由**单一 `developer` 角色**执行。
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 目标
|
|
9
|
+
|
|
10
|
+
按照当前 Ring 披露的任务面实现游戏:Ring 1 只完成最小可验证 playable spine、`HOOK` 启动、`window.__playable` 生命周期和首关可胜;它可以是一个动作链路,不应扩张成完整游戏雏形。Ring 2+ 才根据 `state:get` 披露的计划、布局和视觉材料扩展体验。目标始终是达到真实的 `devStatus: ready` + `devUrl`。
|
|
11
|
+
|
|
12
|
+
**核心原则**:
|
|
13
|
+
|
|
14
|
+
1. **先 read / load,再写代码**。
|
|
15
|
+
2. **有现成代码也必须先读**——已有实现、scaffold 文件、半成品代码都属于当前项目现实,不能当成不存在。
|
|
16
|
+
3. **Feature 不是背景信息,而是验收 checklist**——实现结束前必须逐项 review。
|
|
17
|
+
4. **流程不是填表,而是少返工策略**——Skill 读取、scaffold 采用、placeholder 物化和最小闭环装配,都是为了先建立可靠的工程判断,避免后面重写、绕开或猜测。
|
|
18
|
+
|
|
19
|
+
**资产策略(build 环)**:**能用占位图就用占位图** — 目标是玩法可玩、程序正常执行,不考虑视觉表现力。
|
|
20
|
+
|
|
21
|
+
严格按三档执行 — **(1)** plan/ref-flow 已 link 的 Skill 资产直接用;**(2)** 合约路径需要静态图片的 → `npm run placeholder:gen`;已 load 的 MP3 路径 → `npm run placeholder:gen-audio`;**(3)** 占位文件不可行的(动态数字、计时文本、纯事件钩子)→ 最小化代码绘制,并在 `developer-log` 记录原因。先读 **`skills/playable-placeholder/SKILL.md`**。详见 [`developer-impl-cookbook.md` § Asset Placeholder Strategy](./developer-impl-cookbook.md#asset-placeholder-strategy-phase-1)。
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## 入场状态认知(先读这里)
|
|
26
|
+
|
|
27
|
+
在开始任何工作之前,先建立对当前项目状态的正确认知:
|
|
28
|
+
|
|
29
|
+
**你进来时项目已经是这个状态:**
|
|
30
|
+
|
|
31
|
+
- 当 `state:get` 披露 `docs/atom-tree.json` 时,`meta.selectedAtoms` 对应 skill 文件可能已在 `.claude/skills/<skillRef>/` 下;如果缺失,按当前 Ring 命令补齐,不要提前读取未披露材料。
|
|
32
|
+
- `game/` 目录下可能已有 scaffold 文件或半成品代码,这些是当前项目现实的一部分,不是草稿
|
|
33
|
+
- 你的工作起点是**读懂当前项目现实**,而不是从零开始铺代码
|
|
34
|
+
|
|
35
|
+
**scaffold 的正确定位:**
|
|
36
|
+
|
|
37
|
+
- scaffold 的产出是一个**可运行的项目骨架**,目标是在这个骨架上按 feature 适配,而不是把 scaffold 文件当成草稿重写
|
|
38
|
+
- scaffold 必须由已披露的 `docs/atom-tree.json` 的 `meta.engineDecision.adapter` 选择;不要把 Ring 1 快路径理解为固定 Phaser 模板。不同 engine root(Phaser / Three.js)有不同初始化逻辑,但都必须暴露同一个 `window.__playable` 运行时契约。
|
|
39
|
+
- **Ring 1 scaffold 前置链(legacy:仅在 `state:get` 披露且无 active slice 时执行,不静默覆盖)**:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# First inspect the disclosed action surface.
|
|
43
|
+
npm run state:get -- --json
|
|
44
|
+
# Must already be produced by the temporary ref-flow atom-selection subagent:
|
|
45
|
+
# docs/atom-tree.json
|
|
46
|
+
playcraft remix init-template --from-atom-tree
|
|
47
|
+
npm install
|
|
48
|
+
npm run verify:contract
|
|
49
|
+
npm run verify:lifecycle
|
|
50
|
+
npm run verify:firstwin
|
|
51
|
+
npm run verify:placeholders
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
- scaffold 文件是已经落地到项目里的 **Skill implementation asset**:先判断它承载了哪个 Skill decision,再决定如何适配;不要把它当成可以随手覆盖的生成初稿
|
|
55
|
+
- scaffold 是一个**选择性动作**,只在读完 skill ref 和当前项目代码之后,判断确实需要骨架支撑时才执行
|
|
56
|
+
- **先读 skill ref,再决定是否 scaffold**;不是先 scaffold 再理解工程
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Step 0:上游摄入(必须)
|
|
61
|
+
|
|
62
|
+
在任何 `game/` 编辑之前,读取这些文档,并填写 **`logs/developer-log.md` § Upstream Intake**。
|
|
63
|
+
|
|
64
|
+
| 文档 / 命令 | 读取条件 | 需要从中获取的内容 |
|
|
65
|
+
| ------------------------------------- | -------------- | ---------------------------------------------------------------------------- |
|
|
66
|
+
| `npm run state:get -- --json` | 每次必读 | 当前 action、允许/禁止任务、当前必读文件、当前 verifiers、下一步命令 |
|
|
67
|
+
| `npm run state:get -- --json` | 每次必读 | 当前 `iteration` / `loop`、handoff、`devStatus`、`devBlockers`、当前停在哪里 |
|
|
68
|
+
| `docs/DESIGN.md` | Ring 1+ 披露时 | Ring 1 玩法唯一来源:核心循环 / 规则 / 首关必赢策略 / `HOOK` 入口 |
|
|
69
|
+
| `docs/atom-tree.json` | build 披露时 | 已选 `meta.selectedAtoms` skill refs;engine decision |
|
|
70
|
+
| `docs/scaffold-manifest.md`(如存在) | build 披露时 | scaffold 已复制的文件 → skill atom 来源映射 |
|
|
71
|
+
| `docs/implementation-plan.md` | Ring 2+ 披露时 | Feature 列表 + 依赖图 + 首关策略 + Skill Support |
|
|
72
|
+
| `docs/layout-spec.md` | Ring 2+ 披露时 | Zones、elementIds、assetMapping 路径、Atlas 分组 |
|
|
73
|
+
| `docs/style-exploration.md` | Ring 3+ 披露时 | MC 面板 — UI(User Interface,用户界面)布局 + 视觉风格参考 |
|
|
74
|
+
|
|
75
|
+
> **Ring 1 禁止**读取 design-brief / layout-spec / implementation-plan — Ring 1 不产出这些,玩法以 DESIGN.md 为唯一来源,强读会膨胀上下文且无必要。
|
|
76
|
+
|
|
77
|
+
> **要求**:不要只打勾,要在 `developer-log` 写一句“读到了什么、它会怎样影响实现”。
|
|
78
|
+
|
|
79
|
+
## Step 2.4:场景模块拆分(Ring 1 硬约束)
|
|
80
|
+
|
|
81
|
+
> **目标**:避免单文件 500+ 行导致 Write 截断重试与上下文膨胀(test4 曾用 `cat >>` 追加 6 次,浪费 6 轮往返)。
|
|
82
|
+
|
|
83
|
+
- 按职责拆分 `game/`:`gameplay/`(纯逻辑)、`scenes/`(Phaser 场景壳)、`config/`(关卡/布局常量)
|
|
84
|
+
- 单文件 **必须 ≤ 350 行**;超过则**必须**拆为子模块(board 渲染 / 输入 / HUD / endcard 分离)— 不可把整场景写进一个 `GameScene.ts`
|
|
85
|
+
- 优先 **小步 Write / Edit** 分模块写入;**禁止** `cat >` / `cat >>` heredoc 拼接大文件
|
|
86
|
+
- 若 Write 工具报 `InputValidationError`,拆文件而非改用 Bash heredoc
|
|
87
|
+
|
|
88
|
+
## Step 1:Disclosure Quick-Check + Feature Checklist 建立
|
|
89
|
+
|
|
90
|
+
在写代码前,先做两个动作。
|
|
91
|
+
|
|
92
|
+
### 1) Disclosure Quick-Check
|
|
93
|
+
|
|
94
|
+
确认:
|
|
95
|
+
|
|
96
|
+
- `state:get` 的 `currentAction` 与 JSON 状态中的当前 `iteration` / `loop` 一致
|
|
97
|
+
- 本轮只读取 `currentRingRequiredFiles`;`deferredFiles` 只能作为未披露材料记录,不能变成当前实现输入
|
|
98
|
+
- Ring 1 的缺口只围绕核心玩法、`HOOK`、`autoPlay()`、`ENDCARD`、首关可胜判断
|
|
99
|
+
- Ring 2+ 才检查 `layout-spec.md` / `implementation-plan.md` 是否能映射到当前项目结构
|
|
100
|
+
|
|
101
|
+
如果发现缺口:
|
|
102
|
+
|
|
103
|
+
- 记录到 `developer-log`,并用 `npm run state:set -- devBlockers=...` 写入 blocker
|
|
104
|
+
- 路由给正确上游(Game Designer / Artist / TA)
|
|
105
|
+
- **不要**靠臆测直接盲写替代逻辑
|
|
106
|
+
|
|
107
|
+
### 2) Feature Checklist 建立
|
|
108
|
+
|
|
109
|
+
把当前 Ring 披露的交付项转成真正的 checklist,写入 `logs/developer-log.md`:
|
|
110
|
+
|
|
111
|
+
- feature 名称
|
|
112
|
+
- 来源(plan / design / layout / Skill)
|
|
113
|
+
- 依赖项
|
|
114
|
+
- 关联代码入口
|
|
115
|
+
- 完成标准
|
|
116
|
+
- 本地验证方式
|
|
117
|
+
|
|
118
|
+
Ring 1 checklist 至少包括:
|
|
119
|
+
|
|
120
|
+
- `currentPhase` 初始为 `HOOK`
|
|
121
|
+
- 核心玩法 loop 可执行
|
|
122
|
+
- `autoPlay()` 通过玩家可用动作推进到 `ENDCARD`
|
|
123
|
+
- 首关必赢策略已落地
|
|
124
|
+
- `verify:contract` / `verify:lifecycle` / `verify:firstwin` / `verify:placeholders` 可通过
|
|
125
|
+
|
|
126
|
+
Ring 2+ 才把 `docs/implementation-plan.md` 中本轮需要交付的 feature 和 `§ 8 Delivery Checklist` 并入 checklist。
|
|
127
|
+
|
|
128
|
+
> **要求**:后续 ready 判断基于这个 checklist,而不是"感觉差不多做完了"。
|
|
129
|
+
|
|
130
|
+
## Step 2:上下文组装和项目整备(必须)
|
|
131
|
+
|
|
132
|
+
在任何实质性实现之前,先完成 **project context + linked atom skill context + selective scaffold decision + placeholder materialization + Skill-to-Prototype Assembly**,并把结果写进 `logs/developer-log.md` § `Skill Preflight`、§ `Read / Load Log` 与 § `Skill-to-Prototype Assembly (Project Assembly Checkpoint)`。
|
|
133
|
+
|
|
134
|
+
**本阶段目标**:把 selected Skills 转成当前项目里的最小可运行玩法骨架。它不是额外流程记录,而是为了避免三类返工:误读 Skill ref 后重写对象模型、把 scaffold 文件当草稿覆盖、feature 写到后期才发现核心状态流不通。
|
|
135
|
+
|
|
136
|
+
**完成前不要开始写 feature 逻辑。** 如果你觉得这一步浪费时间,通常说明你还没有从 Skill 中抽出可运行的最小闭环;此时直接写 feature 更容易返工。
|
|
137
|
+
|
|
138
|
+
> **前提**:只在 `state:get` 披露 `docs/atom-tree.json` 后读取 selected atom refs。Developer 的职责是读取这些 linked atom refs,并判断是否需要 scaffold。
|
|
139
|
+
|
|
140
|
+
### 2.1 先读当前项目现实
|
|
141
|
+
|
|
142
|
+
读取并记录:
|
|
143
|
+
|
|
144
|
+
- 入口文件
|
|
145
|
+
- 当前 scene / state / config / gameplay 相关文件
|
|
146
|
+
- 任何将被改动的已有文件
|
|
147
|
+
- 任何已经 scaffold 到项目里的相关代码
|
|
148
|
+
- 当前磁盘上的 linked assets
|
|
149
|
+
- atlas / frame / contract path 绑定方式
|
|
150
|
+
|
|
151
|
+
**要求**:不能因为已有文件存在,就把它当作黑盒直接覆盖;也不能因为 scaffold 代码已经在项目里,就跳过来源理解。
|
|
152
|
+
|
|
153
|
+
### 2.2 Load linked atom skill refs
|
|
154
|
+
|
|
155
|
+
基于当前 Ring checklist 读取相关 linked atom skill。Ring 1 以 `docs/DESIGN.md` 和 `docs/atom-tree.json` 为输入;Ring 2+ 才加入 `docs/implementation-plan.md` 与更深 reading guide。这里的目标不是把 `ref/` 当文件桶全量扫一遍,而是先理解 Skill package 的意图、对象模型和可继承判断,再选择真正相关的 recipe / `ref/` / source。
|
|
156
|
+
|
|
157
|
+
1. 优先读项目本地 `.claude/skills/<skillRef>/SKILL.md`
|
|
158
|
+
2. 再按 `SKILL.md`、`docs/atom-tree.md` 的 `readFirst` / `devReadOrder` 读取相关 `ref/` 或 source code
|
|
159
|
+
3. 若本地 link 缺失,才使用 `playcraft skills read <skillRef>` fallback
|
|
160
|
+
4. 对每个 relevant atom 在 `developer-log.md` 记录:
|
|
161
|
+
- `skillRef`
|
|
162
|
+
- 关联 Feature
|
|
163
|
+
- 已读入口(SKILL.md / ref / source / CLI fallback)
|
|
164
|
+
- 本轮采用方式:`read-only` / `scaffold-candidate` / `skip-with-reason`
|
|
165
|
+
|
|
166
|
+
**偏航识别**:如果你正在反复使用类似 `glob ref/**/*` 的方式找信息,通常说明你把 Skill refs 当成了散装文件目录。先回到 `.claude/skills/<skillRef>/SKILL.md` 和 atom-tree reading guide,确认 Skill root、对象模型、关键 ref,再读取具体文件。
|
|
167
|
+
|
|
168
|
+
**要求**:selected atom skill 是实现参考,不是可选灵感;即使代码已经复制进工程,也必须回读对应 Skill 的 recipe / `ref/` / source。
|
|
169
|
+
|
|
170
|
+
### 2.3 Selective scaffold decision
|
|
171
|
+
|
|
172
|
+
只有在读完项目代码和 linked atom refs 后,才判断是否需要 scaffold。
|
|
173
|
+
|
|
174
|
+
**第一步:检查 `docs/scaffold-manifest.md` 是否存在。**
|
|
175
|
+
|
|
176
|
+
- **存在**:说明本项目已经跑过 scaffold。必须先读 `docs/scaffold-manifest.md`,了解已有骨架的文件列表和 atom 来源,再判断是否需要补充 scaffold(通常不需要再跑)。不能因为"想重新生成"就重复执行。
|
|
177
|
+
- **不存在**:说明还没有骨架,按下方判断条件决定是否首次执行 scaffold。
|
|
178
|
+
|
|
179
|
+
**必须在 `logs/developer-log.md` § Skill Preflight 中明确记录决策**:每个 relevant atom 标注 `scaffold-candidate` 或 `skip-with-reason`,并在该 section 末尾写一句总结性决策说明(如 "本轮 scaffold: none, because ..." 或 "本轮 scaffold: atomX, atomY, because ...")。**没有决策记录,不能进入 Step 3 实现。**
|
|
180
|
+
|
|
181
|
+
**scaffold 之后的目标状态**:你会得到一个可运行的项目骨架。你的工作是在这个骨架上按 feature checklist 逐项适配,而不是把 scaffold 文件当成草稿重写。scaffold 文件和你自己写的代码地位相同,都必须先读懂再改。
|
|
182
|
+
|
|
183
|
+
**替换前先判断文件身份**:如果你准备从零重写某个 scaffold / existing file,先写清它承载的 Skill decision 是什么,以及项目约束是否真的推翻了这个 decision。多数情况下应该适配 scaffold 边界,而不是绕开它重写同类模块。
|
|
184
|
+
|
|
185
|
+
允许 scaffold 的典型情况:
|
|
186
|
+
|
|
187
|
+
- 当前项目缺少共享入口代码或运行时骨架
|
|
188
|
+
- 某个 Feature 明确需要 Skill 的 L3/L4 代码结构
|
|
189
|
+
- 手写会明显增加集成风险,而 scaffold 后可以更快适配现有工程
|
|
190
|
+
|
|
191
|
+
不应 scaffold 的情况:
|
|
192
|
+
|
|
193
|
+
- 只是想
|
|
194
|
+
- 只是想“看看会生成什么”
|
|
195
|
+
- 某个 atom 只提供设计思路 / 参数参考 / 视觉参考
|
|
196
|
+
- 当前 Feature 只需要读取 ref 后自行实现
|
|
197
|
+
- 一次性把所有 shortlisted atoms 都铺进项目,导致后续理解成本失控
|
|
198
|
+
|
|
199
|
+
执行格式(**两种 scaffold,勿混用**):
|
|
200
|
+
|
|
201
|
+
```bash
|
|
202
|
+
# 引擎 scaffold — ring 1 build 前由 orchestrator 执行(一次性 game/ 骨架)
|
|
203
|
+
playcraft remix init-template --from-atom-tree
|
|
204
|
+
|
|
205
|
+
# atom scaffold — build 环内按需复制 Skill 实现代码
|
|
206
|
+
playcraft skills scaffold \
|
|
207
|
+
--engine <engine> # from meta.engineDecision.adapter
|
|
208
|
+
--atoms "<atom1>,<atom2>,<atom3>" # 只填本轮确认需要 scaffold 的 selectedAtomRef
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### 2.4 Post-scaffold focused readback
|
|
212
|
+
|
|
213
|
+
如果执行了 scaffold:
|
|
214
|
+
|
|
215
|
+
- **必须读取 `docs/scaffold-manifest.md`**
|
|
216
|
+
- 只聚焦读取本轮 scaffold 相关的 landed files
|
|
217
|
+
- 回读对应 Skill 的 `SKILL.md` / `ref/` / source,确认 copied code 的来源与适配边界
|
|
218
|
+
- 对实际会绑定到 Feature 的 contract assets 做必要的 `playcraft image info` / `playcraft audio info`
|
|
219
|
+
|
|
220
|
+
**判断原则**:
|
|
221
|
+
|
|
222
|
+
- **scaffold 不替代读 Skill ref**
|
|
223
|
+
- **先读 ref,再决定 scaffold;不是先 scaffold 再理解工程**
|
|
224
|
+
- **静态资源检查按 contract path / Feature 绑定驱动,不按磁盘库存全量扫**
|
|
225
|
+
- **read / load / scaffold decision 是实现输入,不是可选附加项**
|
|
226
|
+
|
|
227
|
+
### 2.5 Skill-to-Prototype Assembly (Project Assembly Checkpoint)
|
|
228
|
+
|
|
229
|
+
在进入 Step 3 之前,必须完成一次 **Skill-to-Prototype Assembly**。目标不是产出最终美术,也不是补一段流程记录,而是把本轮采用的 Skill decision 转成当前项目里的最小可运行玩法骨架,让后续 feature 实现有稳定的对象模型、资源路径和状态流。
|
|
230
|
+
|
|
231
|
+
这里的**最小闭环**必须由本轮采用的 Skill / ref 定义,而不是默认套用完整广告体验流程。某些 Skill 的最小闭环可能只有“生成局面 → 玩家操作 → 状态反馈 → 结算一次核心规则”;它不一定包含 Hook、Tutorial、EndCard 或 CTA。
|
|
232
|
+
|
|
233
|
+
先回答三个工程问题:
|
|
234
|
+
|
|
235
|
+
1. **What skill decisions am I inheriting?**
|
|
236
|
+
- 例如对象模型、规则归属、状态流、交互边界、资源组织方式。
|
|
237
|
+
2. **What project-specific changes are required?**
|
|
238
|
+
- 例如当前玩法尺寸、素材 contract path、首关要求、UI 状态、平台运行时约束。
|
|
239
|
+
3. **What is the smallest playable spine before feature expansion?**
|
|
240
|
+
- 例如加载局面、渲染核心对象、执行一次玩家操作、通过规则层反馈结果、完成一次结算。
|
|
241
|
+
|
|
242
|
+
必须完成:
|
|
243
|
+
|
|
244
|
+
1. **Scaffold adoption map**
|
|
245
|
+
- 如果存在 `docs/scaffold-manifest.md`,列出本轮会基于哪些 landed files 继续适配。
|
|
246
|
+
- 如果某个 scaffold 文件与 Feature 相关但不采用,必须记录 `ignore-with-reason`;不能绕开它重新手写同类模块。
|
|
247
|
+
- 对每个将改动或替换的 scaffold 文件,先说明它承载的 Skill decision,以及项目适配点。
|
|
248
|
+
2. **Placeholder materialization**(先读 **`skills/playable-placeholder/SKILL.md`**,按 skill 5 步流程)
|
|
249
|
+
- Ring 1 只列出核心玩法所需的占位资源;Ring 2+ 再基于 `layout-spec.md` `assetMapping`、Feature 所需 UI / VFX(Visual Effects,视觉特效)列出全部视觉 + 音频合约路径。
|
|
250
|
+
- 已有文件:`playcraft image info` / `playcraft audio info` 验证。
|
|
251
|
+
- 缺失**静态图片**:`cp templates/gen-placeholders.template.mjs` → 填 `PLACEHOLDERS` → `node ta-workspace/scripts/gen-placeholders.mjs`。
|
|
252
|
+
- 缺失且 Preloader **已 load** 的 **MP3**:`cp templates/gen-placeholder-audio.template.mjs` → 填 `PLACEHOLDER_AUDIO` → `node ta-workspace/scripts/gen-placeholder-audio.mjs`。
|
|
253
|
+
- 不能用占位文件的(动态数字、纯事件钩子):Tier 3 + developer-log 一行原因。
|
|
254
|
+
- 代码只引用本地 contract path;禁止 `Graphics` 色块代替 Tier 2 图片路径。
|
|
255
|
+
3. **Minimal prototype wiring baseline**
|
|
256
|
+
- 建立 Feature → Skill/ref → scaffold/source file → asset contract path 的映射。
|
|
257
|
+
- 明确 Skill / ref 定义的最小闭环步骤,并确认每一步都有本地资源路径、代码入口和状态流转设计。
|
|
258
|
+
- Ring 1 必须具备 `HOOK` → player-reachable gameplay actions → `ENDCARD` 的轻量生命周期。Tutorial、CTA(Call to Action,行动召唤)fallback、完整广告节奏属于后续披露项;不要在 Ring 1 把它们当 blocker。
|
|
259
|
+
- 若某个必要资源没有 spec 尺寸或 contract path,记录 blocker 并 route upstream,不要用随意路径继续实现。
|
|
260
|
+
|
|
261
|
+
**进入 Step 3 的条件**:`logs/developer-log.md` § `Skill-to-Prototype Assembly (Project Assembly Checkpoint)` 已记录继承的 Skill decisions、项目适配点、最小 playable spine、scaffold 采用、placeholder 生成结果、资源验证结果、Feature 映射、Skill/ref 最小闭环定义和剩余 blocker。否则不能开始 feature 逻辑实现。
|
|
262
|
+
|
|
263
|
+
## Step 3:Per-Feature 确认与执行(不是盲拆 batch)
|
|
264
|
+
|
|
265
|
+
基于 Feature Checklist 按依赖顺序逐个 feature 推进。可以按功能域分组,但每次落代码前都必须先完成该 feature 的确认,不要为了拆 batch 而拆 batch,也不要把实现建立在“之后再补读”的假设上。
|
|
266
|
+
|
|
267
|
+
**核心纪律:每个 `game/` 代码变更都必须可追溯到当前正在执行的 Feature Checklist 项。** 如果你发现自己在写代码但说不上来是哪个 feature 需要的,停下来:先确认是不是漏读了已有实现、漏了上游约束、漏了 Skill/ref,还是 checklist 不够细。
|
|
268
|
+
|
|
269
|
+
每个 feature 必须按以下顺序执行:
|
|
270
|
+
|
|
271
|
+
1. **Feature intake**
|
|
272
|
+
- 对应当前 Ring checklist 哪一项
|
|
273
|
+
- 对应 Skill / ref 中的哪个玩法规则、交互模式或代码模式
|
|
274
|
+
- 是否受当前披露文件约束;Ring 1 只看 `DESIGN.md` / `atom-tree.json`,Ring 2+ 才看 `layout-spec.md` / `implementation-plan.md`
|
|
275
|
+
2. **Implementation target confirmation**
|
|
276
|
+
- 会改哪些现有文件、scaffold 文件或新增哪些必要文件
|
|
277
|
+
- 这些文件是否都已经读过
|
|
278
|
+
- 是否有可复用的 Skill/ref/source 代码路径,不能绕开已有可用结构重新手写同类模块
|
|
279
|
+
3. **Execution**
|
|
280
|
+
- 基于现有架构、scaffold 和 Skill/ref 模式落代码
|
|
281
|
+
- 只实现当前 feature 所需范围,不顺手重写无关模块
|
|
282
|
+
4. **Feature-local validation**
|
|
283
|
+
- 至少检查该 feature 的主要交互、状态变更、资源绑定和失败边界是否成立
|
|
284
|
+
- 如果该 feature 是最小闭环的一部分,要确认它在 Skill/ref 闭环中的输入和输出是否接上
|
|
285
|
+
5. **Checklist update**
|
|
286
|
+
- 更新为 `done / partial / blocked`
|
|
287
|
+
- 记录验证结果、假设和风险
|
|
288
|
+
- 如果未完成,明确是 spec-gap、资源缺口、已有代码理解问题,还是实现阻塞
|
|
289
|
+
|
|
290
|
+
### 实现时的工作方式
|
|
291
|
+
|
|
292
|
+
- 优先改对当前 feature 真正相关的代码,不要盲目重写整个模块
|
|
293
|
+
- 如果已有实现与你的目标冲突,先判断是边界没兼容、理解偏差、还是更深层结构问题
|
|
294
|
+
- 不要用“多加一个 if / else”掩盖没看懂的结构问题
|
|
295
|
+
- 如果问题来自更深层系统边界,记录根因,不要只修表面
|
|
296
|
+
|
|
297
|
+
## Step 4:Feature Checklist Review(验收必须项)
|
|
298
|
+
|
|
299
|
+
实现完成后,必须做一次**以 feature 为中心**的 review,而不是只做泛泛的 dev smoke check。
|
|
300
|
+
|
|
301
|
+
对 checklist 中每一项逐条确认:
|
|
302
|
+
|
|
303
|
+
- [ ] 该 feature 的代码是否真的落地
|
|
304
|
+
- [ ] 相关已有代码是否被正确理解和复用,而不是被绕开盲写
|
|
305
|
+
- [ ] 相关 Skill / ref 是否真正被读过并起到作用
|
|
306
|
+
- [ ] feature 的完成标准是否满足
|
|
307
|
+
- [ ] feature 的边界条件是否至少被检查过核心路径
|
|
308
|
+
- [ ] 若未完成,是否明确标记为 `partial` 或 `blocked`
|
|
309
|
+
|
|
310
|
+
### Review 输出要求
|
|
311
|
+
|
|
312
|
+
在 `logs/developer-log.md` 中写清:
|
|
313
|
+
|
|
314
|
+
- 每个 feature 的状态:`done / partial / blocked`
|
|
315
|
+
- 对应验证结果
|
|
316
|
+
- 未完成原因
|
|
317
|
+
- 是否还存在需要上游处理的问题
|
|
318
|
+
|
|
319
|
+
> **没有完成 checklist review,就不能进入 ready 判断。**
|
|
320
|
+
|
|
321
|
+
## Step 5:Dev 自检与 Ready 判断
|
|
322
|
+
|
|
323
|
+
在 checklist review 完成后,运行:
|
|
324
|
+
|
|
325
|
+
```bash
|
|
326
|
+
npm run typecheck
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
Ring 1 build STOP 前还必须运行 objective self-gate(**脚本自带 dev server,禁止为跑 verify 而手动 `npm run dev`**):
|
|
330
|
+
|
|
331
|
+
```bash
|
|
332
|
+
npm run verify:contract
|
|
333
|
+
npm run verify:lifecycle
|
|
334
|
+
npm run verify:firstwin
|
|
335
|
+
npm run verify:placeholders
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
将 `verify:contract` / `verify:lifecycle` / `verify:firstwin` / `verify:placeholders` 的 pass/OK 结果写入 `developer-log` § Dev self-check。
|
|
339
|
+
|
|
340
|
+
build 收尾:启动**一个**常驻 dev server 用于 Ring Gate 试玩,记录真实 URL 到 `devUrl`,**Ring Gate 前不要 pkill**:
|
|
341
|
+
|
|
342
|
+
```bash
|
|
343
|
+
npm run dev
|
|
344
|
+
# 从终端输出读取 Local: http://127.0.0.1:PORT/ → 通过状态层写入 devUrl
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
至少验证:
|
|
348
|
+
|
|
349
|
+
- [ ] Ring 1 主要状态可达(HOOK → Gameplay actions → ENDCARD)
|
|
350
|
+
- [ ] 核心玩法循环正常(操作 + 响应 + 状态变更)
|
|
351
|
+
- [ ] 首关保障玩家成功
|
|
352
|
+
- [ ] 胜负条件正确触发
|
|
353
|
+
- [ ] Ring 3+ 才检查 CTA 触发(mraid / FbPlayableAd / ExitApi / `window.open` 回退)
|
|
354
|
+
- [ ] 无 Error-level console 错误
|
|
355
|
+
- [ ] `devUrl` 已记录到 `developer-log` 和 `npm run state:get -- --json`
|
|
356
|
+
|
|
357
|
+
### Ready 判断规则
|
|
358
|
+
|
|
359
|
+
只有同时满足以下条件,才能设置 `devStatus: ready`:
|
|
360
|
+
|
|
361
|
+
- Feature Checklist 没有未解释的空项
|
|
362
|
+
- 所有 `blocked` 项都已经显式进入 `devBlockers` 或 routed upstream
|
|
363
|
+
- 本地运行结果与日志描述一致
|
|
364
|
+
- 当前项目现实下已经达到可交 Reviewer 的状态
|
|
365
|
+
|
|
366
|
+
否则:
|
|
367
|
+
|
|
368
|
+
- 可继续实现 → 继续回到 Step 3
|
|
369
|
+
- 存在上游阻塞 → 设置 `devStatus: blocked_upstream`
|
|
370
|
+
- 存在开发内阻塞但未就绪 → 保持非 ready 状态并明确记录
|
|
371
|
+
|
|
372
|
+
## Step 6:STOP
|
|
373
|
+
|
|
374
|
+
- 若 ready:设置 `devStatus: ready` + `devUrl`
|
|
375
|
+
- 更新 handoff:ring 1 → `next_orchestrator_action: "npm run ring:gate -- --iteration 1"`;ring 2+ → `next_orchestrator_action: "Invoke @reviewer gameplay_conformance"`
|
|
376
|
+
- 确认 `developer-log` 已能说明当前状态:上游摄入、Skill Preflight 证据、Read / Load 事实、Feature Checklist / Review 结果、Dev self-check,以及任何需要解释的 blocker
|
|
377
|
+
- 追加 `--- PLAYCRAFT_STOP ---`(`role: developer`)
|
|
378
|
+
|
|
379
|
+
---
|
|
380
|
+
|
|
381
|
+
## Ring 4 production integration(TA Wave 2 之后 — mandatory)
|
|
382
|
+
|
|
383
|
+
After `@technical-artist` STOP with `next_orchestrator_action: Invoke @developer (Ring 4 production integration)`:
|
|
384
|
+
|
|
385
|
+
1. Read `logs/ta-log.md` Handoff + Production manifest — wire **every** delivered asset at `assetMapping` paths.
|
|
386
|
+
2. Update `TILE_KEYS` / loaders so all new tiles (e.g. 6-color board) are referenced — run `npm run verify:asset-code-sync`.
|
|
387
|
+
3. Remove or disable placeholder-only paths; ensure `bg_*` is a clean plate layer (z below tiles/HUD).
|
|
388
|
+
4. Self-check: `npm run verify:ui` + `npm run dev` with `?debug=1`.
|
|
389
|
+
5. STOP: `devStatus: ready` → `next_orchestrator_action: "Invoke @reviewer ui_diff"`.
|
|
390
|
+
|
|
391
|
+
**Do not** route to `@reviewer ui_diff` until integration is complete — TA deliverables alone are insufficient.
|
|
392
|
+
|
|
393
|
+
---
|
|
394
|
+
|
|
395
|
+
## Rework(`ui_review` 之后)
|
|
396
|
+
|
|
397
|
+
**ring 4 verify ui_diff 修复**不走完整 build flow。那时由 [`../developer.md`](../developer.md) 按 routed Action Items 执行 scoped fixes,并 handoff `Invoke @reviewer ui_diff`。
|
|
398
|
+
|
|
399
|
+
---
|
|
400
|
+
|
|
401
|
+
## 共享参考
|
|
402
|
+
|
|
403
|
+
- 实现模式:[`developer-impl-cookbook.md`](./developer-impl-cookbook.md)
|
|
404
|
+
- Dev 交接详情:[`developer-dev-handoff.md`](./developer-dev-handoff.md)
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
# 5-Component Filter 框架 — 机制好玩度快速检验
|
|
2
|
+
|
|
3
|
+
## 原始来源
|
|
4
|
+
|
|
5
|
+
- **出处**:https://mcpmarket.com/zh/tools/skills/game-design-framework
|
|
6
|
+
- **性质**:这是一个 Claude Code Skill 中提出的实战框架,并非学术论文。它综合了多个游戏设计理论(MDA、Game Feel 等),形成了一套**快速可操作**的机制评估工具。
|
|
7
|
+
- **关联理论**:
|
|
8
|
+
- Steve Swink 的 Game Feel 6 组件(Response 对应"实时控制",Satisfaction 对应"多汁性")
|
|
9
|
+
- MDA 框架的 Aesthetics 层(Motivation 对应"目标情感",Fit 对应"整体一致性")
|
|
10
|
+
- Nielsen 的可用性启发式(Clarity 对应"系统可见性"和"匹配现实世界")
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 一、核心思想
|
|
15
|
+
|
|
16
|
+
5-Component Filter 是一个**快速评估清单**,用于在设计和迭代阶段检验每一个游戏机制是否"好玩"。
|
|
17
|
+
|
|
18
|
+
它的核心问题是:
|
|
19
|
+
|
|
20
|
+
> **"这个机制通过了以下 5 项检查吗?如果任一项不通过,它就不会好玩。"**
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 二、5 个组件详解
|
|
25
|
+
|
|
26
|
+
### 组件 1:Clarity(清晰度)
|
|
27
|
+
|
|
28
|
+
> **核心问题:玩家在 3 秒内能看懂怎么玩吗?**
|
|
29
|
+
|
|
30
|
+
| 维度 | 检查点 |
|
|
31
|
+
| ---------------- | ----------------------------------------------------- |
|
|
32
|
+
| **视觉可见性** | 可操作对象是否视觉突出?能否一眼分辨什么能点/不能点? |
|
|
33
|
+
| **动作可猜测性** | 不看教程,玩家能猜到该做什么吗? |
|
|
34
|
+
| **反馈明确性** | 操作后发生了什么——成功还是失败——是否立刻清晰? |
|
|
35
|
+
| **状态可读性** | 当前游戏状态(分数、剩余步数、进度)是否随时可读? |
|
|
36
|
+
|
|
37
|
+
**评分标准**:
|
|
38
|
+
| 等级 | 描述 |
|
|
39
|
+
|------|------|
|
|
40
|
+
| ⭐⭐⭐ | 零教程可上手,3 秒内理解玩法 |
|
|
41
|
+
| ⭐⭐ | 需要 1 次提示或试错后理解 |
|
|
42
|
+
| ⭐ | 需要文字教程或多次试错 |
|
|
43
|
+
| ❌ | 5 秒后仍不知道该做什么 |
|
|
44
|
+
|
|
45
|
+
**Playable Ad 中的硬约束**:
|
|
46
|
+
|
|
47
|
+
> 在 Playable Ad 中,Clarity 是**生死线**。玩家不会花超过 3 秒去"学"一个广告。如果不能即刻理解,就会关闭。
|
|
48
|
+
|
|
49
|
+
**常见修复手段**:
|
|
50
|
+
|
|
51
|
+
- 手指引导动画(指示首次操作)
|
|
52
|
+
- 高亮可操作区域
|
|
53
|
+
- 第一步设计为"不可能失败"
|
|
54
|
+
- 减少首屏信息量
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
### 组件 2:Motivation(动机)
|
|
59
|
+
|
|
60
|
+
> **核心问题:玩家为什么想做这个动作?**
|
|
61
|
+
|
|
62
|
+
| 维度 | 检查点 |
|
|
63
|
+
| -------------- | ------------------------------------ |
|
|
64
|
+
| **目标可见性** | 玩家是否知道自己在朝什么目标努力? |
|
|
65
|
+
| **进度感** | 每次操作后是否感到"离目标更近了"? |
|
|
66
|
+
| **奖励预期** | 玩家是否期待下一个动作会带来好结果? |
|
|
67
|
+
| **紧迫感** | 是否有时间/步数/空间等约束驱动行动? |
|
|
68
|
+
|
|
69
|
+
**评分标准**:
|
|
70
|
+
| 等级 | 描述 |
|
|
71
|
+
|------|------|
|
|
72
|
+
| ⭐⭐⭐ | 玩家主动想做、停不下来 |
|
|
73
|
+
| ⭐⭐ | 知道该做什么但没有强烈冲动 |
|
|
74
|
+
| ⭐ | 被动执行,缺乏内在驱动力 |
|
|
75
|
+
| ❌ | "为什么我要做这个?" |
|
|
76
|
+
|
|
77
|
+
**设计策略**:
|
|
78
|
+
|
|
79
|
+
| 策略 | 机制示例 | 适用场景 |
|
|
80
|
+
| ------------ | -------------------------------------- | ---------- |
|
|
81
|
+
| **可见目标** | 进度条、目标分数、"消除 30 个红色方块" | 所有类型 |
|
|
82
|
+
| **短期奖励** | 每次匹配后的分数弹出、金币收集动画 | 休闲消除 |
|
|
83
|
+
| **紧迫感** | 倒计时、步数限制、上升的障碍 | 增加挑战感 |
|
|
84
|
+
| **好奇心** | 翻转显示隐藏图案、解锁新内容预览 | 探索发现类 |
|
|
85
|
+
| **差一点感** | 失败时显示"还差 2 个就赢了!" | 转化驱动 |
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
### 组件 3:Response(响应性)
|
|
90
|
+
|
|
91
|
+
> **核心问题:操作后 100ms 内有反馈吗?**
|
|
92
|
+
|
|
93
|
+
| 维度 | 检查点 |
|
|
94
|
+
| ---------- | ------------------------------------ |
|
|
95
|
+
| **即时性** | 触摸/点击后有即时视觉+听觉反馈吗? |
|
|
96
|
+
| **多通道** | 反馈是否同时涵盖视觉+听觉(+触觉)? |
|
|
97
|
+
| **比例性** | 反馈强度是否与动作重要性成正比? |
|
|
98
|
+
| **一致性** | 相同操作的反馈是否每次都一致? |
|
|
99
|
+
|
|
100
|
+
**评分标准**:
|
|
101
|
+
| 等级 | 描述 |
|
|
102
|
+
|------|------|
|
|
103
|
+
| ⭐⭐⭐ | 每次操作都有多通道即时反馈,爽快利落 |
|
|
104
|
+
| ⭐⭐ | 有反馈但单通道或有延迟感 |
|
|
105
|
+
| ⭐ | 部分操作无反馈或反馈不一致 |
|
|
106
|
+
| ❌ | 操作后没有任何可感知的变化 |
|
|
107
|
+
|
|
108
|
+
**这与 Steve Swink 的 Game Feel 直接对应**:
|
|
109
|
+
|
|
110
|
+
- 100ms 阈值 → 来自 Swink 的"实时控制"组件
|
|
111
|
+
- 多通道反馈 → 来自 Swink 的"润色"组件
|
|
112
|
+
- 比例性 → 来自 Swink 的"多汁性"组件
|
|
113
|
+
|
|
114
|
+
**快速检查表**:
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
□ 点击有按下缩放效果?
|
|
118
|
+
□ 松手有弹起动画?
|
|
119
|
+
□ 匹配成功有消除动画?
|
|
120
|
+
□ 消除有音效?
|
|
121
|
+
□ 连击有升级反馈?
|
|
122
|
+
□ 失败有挫败感反馈(但不惩罚)?
|
|
123
|
+
□ 每一帧都有东西在动?
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
### 组件 4:Satisfaction(满足感)
|
|
129
|
+
|
|
130
|
+
> **核心问题:每次成功操作有"爽"的感觉吗?**
|
|
131
|
+
|
|
132
|
+
| 维度 | 检查点 |
|
|
133
|
+
| -------------- | ---------------------------------------------- |
|
|
134
|
+
| **"啊哈"时刻** | 操作结果是否超出玩家预期?(如意外的连锁消除) |
|
|
135
|
+
| **感官奖励** | 成功是否伴随视觉+听觉的"爆发"? |
|
|
136
|
+
| **成长曲线** | 随着游戏进行,满足感是否在升级? |
|
|
137
|
+
| **对比度** | 成功与未成功之间的反馈差距是否足够大? |
|
|
138
|
+
|
|
139
|
+
**评分标准**:
|
|
140
|
+
| 等级 | 描述 |
|
|
141
|
+
|------|------|
|
|
142
|
+
| ⭐⭐⭐ | 每次成功都想"再来一次",有近乎上瘾的满足感 |
|
|
143
|
+
| ⭐⭐ | 成功有正反馈但缺乏"wow"时刻 |
|
|
144
|
+
| ⭐ | 成功与失败的感觉差距不大 |
|
|
145
|
+
| ❌ | 成功了也没什么特别感觉 |
|
|
146
|
+
|
|
147
|
+
**满足感的层级设计**(对应 Juice 的"连击升级"):
|
|
148
|
+
|
|
149
|
+
```
|
|
150
|
+
Level 1(单次匹配) → 小粒子 + 轻音效
|
|
151
|
+
Level 2(连击 ×2) → 更多粒子 + 音高上升 + 飘字
|
|
152
|
+
Level 3(连击 ×3) → 屏幕震动 + 大粒子 + 连击文字
|
|
153
|
+
Level 4(超级连击) → 全屏特效 + 慢动作 + 欢呼声
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
> **关键洞察**:满足感 = Response(响应性)× Surprise(惊喜度)。同样的响应如果每次都完全一样,会逐渐麻木。适度的随机性和升级机制维持满足感。
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
### 组件 5:Fit(契合度)
|
|
161
|
+
|
|
162
|
+
> **核心问题:这个机制与整体风格搭吗?**
|
|
163
|
+
|
|
164
|
+
| 维度 | 检查点 |
|
|
165
|
+
| ------------------ | -------------------------------------- |
|
|
166
|
+
| **与主题一致** | 机制是否与游戏的视觉主题和世界观匹配? |
|
|
167
|
+
| **与其他机制协同** | 这个机制是否与其他机制产生有趣的交互? |
|
|
168
|
+
| **与目标受众匹配** | 机制的复杂度是否适合目标玩家? |
|
|
169
|
+
| **与平台特性适配** | 机制是否利用了平台的特有输入方式? |
|
|
170
|
+
|
|
171
|
+
**评分标准**:
|
|
172
|
+
| 等级 | 描述 |
|
|
173
|
+
|------|------|
|
|
174
|
+
| ⭐⭐⭐ | 机制与整体风格浑然一体、不可分割 |
|
|
175
|
+
| ⭐⭐ | 机制与整体搭配,但有可改进空间 |
|
|
176
|
+
| ⭐ | 机制感觉像是"外挂"上去的 |
|
|
177
|
+
| ❌ | 明显与游戏整体格格不入 |
|
|
178
|
+
|
|
179
|
+
**Fit 的检查维度扩展**:
|
|
180
|
+
|
|
181
|
+
| 契合维度 | 好的例子 | 坏的例子 |
|
|
182
|
+
| ---------- | -------------------------- | ------------------------ |
|
|
183
|
+
| 主题契合 | 果冻消除游戏用"弹弹弹"动画 | 中世纪骑士游戏用霓虹粒子 |
|
|
184
|
+
| 节奏契合 | 休闲消除的慢节奏配柔和配乐 | 放松游戏用高速闪烁特效 |
|
|
185
|
+
| 复杂度契合 | 休闲广告用单指操作 | 休闲广告用 5 步组合操作 |
|
|
186
|
+
| 平台契合 | 移动端用滑动/点击 | 移动端用双指旋转缩放 |
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## 三、5-Component Filter 的使用方法
|
|
191
|
+
|
|
192
|
+
### 方法 1:单机制评估卡
|
|
193
|
+
|
|
194
|
+
评估一个具体的游戏机制(如"滑动交换两个相邻方块"):
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
机制名称: [交换消除]
|
|
198
|
+
┌──────────────┬────────┬─────────────────────────┐
|
|
199
|
+
│ Component │ Score │ Notes │
|
|
200
|
+
├──────────────┼────────┼─────────────────────────┤
|
|
201
|
+
│ Clarity │ ⭐⭐⭐ │ 滑动方向=交换方向,直觉 │
|
|
202
|
+
│ Motivation │ ⭐⭐⭐ │ 可见的目标分数+步数限制 │
|
|
203
|
+
│ Response │ ⭐⭐ │ 缺少消除音效,需补充 │
|
|
204
|
+
│ Satisfaction │ ⭐⭐ │ 连锁反馈不够强烈 │
|
|
205
|
+
│ Fit │ ⭐⭐⭐ │ 与糖果主题完美搭配 │
|
|
206
|
+
└──────────────┴────────┴─────────────────────────┘
|
|
207
|
+
最低分: Response (⭐⭐) & Satisfaction (⭐⭐)
|
|
208
|
+
优先改进: 添加消除音效 + 增强连锁视觉反馈
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### 方法 2:多机制对比
|
|
212
|
+
|
|
213
|
+
在 Brainstorm 阶段比较多个候选机制:
|
|
214
|
+
|
|
215
|
+
```
|
|
216
|
+
Clarity Motivation Response Satisfaction Fit Total
|
|
217
|
+
方案A-滑动交换 ⭐⭐⭐ ⭐⭐⭐ ⭐⭐ ⭐⭐ ⭐⭐⭐ 13
|
|
218
|
+
方案B-点击选取 ⭐⭐ ⭐⭐ ⭐⭐⭐ ⭐⭐ ⭐⭐ 11
|
|
219
|
+
方案C-拖拽放置 ⭐⭐ ⭐⭐⭐ ⭐⭐ ⭐⭐⭐ ⭐⭐ 12
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### 方法 3:迭代检查点
|
|
223
|
+
|
|
224
|
+
在开发过程中定期使用,特别是:
|
|
225
|
+
|
|
226
|
+
1. **Brainstorm 后**:评估概念是否有基本的好玩潜力
|
|
227
|
+
2. **原型完成后**:第一次可玩版本的快速健检
|
|
228
|
+
3. **Juice 添加后**:确认 Juice 是否真的提升了各项分数
|
|
229
|
+
4. **最终交付前**:确保没有组件被遗漏
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## 四、快速诊断表
|
|
234
|
+
|
|
235
|
+
当 QA 或玩家说"不好玩"但说不清原因时,用此表逐项排查:
|
|
236
|
+
|
|
237
|
+
| 玩家的模糊反馈 | 最可能的缺失组件 | 优先修复方向 |
|
|
238
|
+
| ----------------------- | ---------------- | ---------------------------------- |
|
|
239
|
+
| "不知道该干什么" | Clarity | 加引导动画、高亮可操作区 |
|
|
240
|
+
| "没意思" / "为什么要玩" | Motivation | 加可见目标、紧迫感、奖励预览 |
|
|
241
|
+
| "操作没感觉" / "卡卡的" | Response | 加即时反馈、音效、缓动动画 |
|
|
242
|
+
| "赢了也没什么感觉" | Satisfaction | 加连击反馈、胜利演出、对比度 |
|
|
243
|
+
| "感觉怪怪的" / "不搭" | Fit | 检查主题一致性、节奏匹配、平台适配 |
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
## 五、参考资源
|
|
248
|
+
|
|
249
|
+
- 🔗 **框架来源**:[Game Design & Mechanics Framework (MCP Market)](https://mcpmarket.com/zh/tools/skills/game-design-framework)
|
|
250
|
+
- 📕 **Clarity 理论基础**:Jakob Nielsen 的 [10 Usability Heuristics](https://www.nngroup.com/articles/ten-usability-heuristics/)
|
|
251
|
+
- 📕 **Response 理论基础**:Steve Swink 的 [Game Feel (2008)](https://www.taylorfrancis.com/books/mono/10.1201/9781482267334/game-feel-steve-swink)
|
|
252
|
+
- 📕 **Motivation 理论基础**:MDA 框架的 [Aesthetics Taxonomy](https://www.researchgate.net/publication/228884866_MDA_A_Formal_Approach_to_Game_Design_and_Game_Research)
|