@playcraft/skills 0.0.2
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/README.md +333 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/skills.loader.d.ts +31 -0
- package/dist/src/skills.loader.d.ts.map +1 -0
- package/dist/src/skills.loader.js +200 -0
- package/dist/src/skills.loader.js.map +1 -0
- package/dist/src/skills.types.d.ts +44 -0
- package/dist/src/skills.types.d.ts.map +1 -0
- package/dist/src/skills.types.js +9 -0
- package/dist/src/skills.types.js.map +1 -0
- package/package.json +35 -0
- package/skills/2048_core.aigameplay/SKILL.md +123 -0
- package/skills/2048_core.aigameplay/manifest.json +159 -0
- package/skills/2048_core.aigameplay/ref/pgs-schema.json +194 -0
- package/skills/2048_core.aigameplay/ref/reducer.template.ts +189 -0
- package/skills/SKILL.md +46 -0
- package/skills/ad_compliance_rules.aiconfig/SKILL.md +85 -0
- package/skills/ad_compliance_rules.aiconfig/manifest.json +60 -0
- package/skills/agent_remix_orchestrator.aicomponent/SKILL.md +257 -0
- package/skills/agent_remix_orchestrator.aicomponent/manifest.json +12 -0
- package/skills/app_metadata.aiconfig/SKILL.md +53 -0
- package/skills/app_metadata.aiconfig/manifest.json +32 -0
- package/skills/appear_sfx.aiaudio/SKILL.md +59 -0
- package/skills/appear_sfx.aiaudio/manifest.json +45 -0
- package/skills/appear_sfx.aiaudio/ref/appear.mp3 +0 -0
- package/skills/arrow_move_error_sfx.aiaudio/SKILL.md +59 -0
- package/skills/arrow_move_error_sfx.aiaudio/manifest.json +45 -0
- package/skills/arrow_move_error_sfx.aiaudio/ref/arrow_move_error.mp3 +0 -0
- package/skills/arrow_path_data_format.aicomponent/SKILL.md +152 -0
- package/skills/arrow_path_data_format.aicomponent/manifest.json +57 -0
- package/skills/arrow_path_data_format.aicomponent/ref/LevelParser.ts +188 -0
- package/skills/arrow_path_data_format.aicomponent/ref/LevelTypes.ts +131 -0
- package/skills/arrow_pick_match_rules.aigameplay/SKILL.md +117 -0
- package/skills/arrow_pick_match_rules.aigameplay/manifest.json +105 -0
- package/skills/arrow_pick_match_rules.aigameplay/ref/pgs-schema.json +180 -0
- package/skills/asset_pipeline_scripts.aicomponent/SKILL.md +117 -0
- package/skills/asset_pipeline_scripts.aicomponent/manifest.json +17 -0
- package/skills/asset_pipeline_scripts.aicomponent/ref/gen-sprite.sh +105 -0
- package/skills/ball_sort.aigameplay/SKILL.md +109 -0
- package/skills/ball_sort.aigameplay/manifest.json +155 -0
- package/skills/ball_sort.aigameplay/ref/pgs-schema.json +192 -0
- package/skills/ball_sort.aigameplay/ref/reducer.template.ts +156 -0
- package/skills/basketball_shot.aigameplay/SKILL.md +94 -0
- package/skills/basketball_shot.aigameplay/manifest.json +150 -0
- package/skills/basketball_shot.aigameplay/ref/pgs-schema.json +229 -0
- package/skills/basketball_shot.aigameplay/ref/reducer.template.ts +189 -0
- package/skills/bg_music.aiaudio/SKILL.md +61 -0
- package/skills/bg_music.aiaudio/manifest.json +48 -0
- package/skills/bg_music.aiaudio/ref/bg.mp3 +0 -0
- package/skills/big_watermelon.aigameplay/SKILL.md +94 -0
- package/skills/big_watermelon.aigameplay/manifest.json +155 -0
- package/skills/big_watermelon.aigameplay/ref/pgs-schema.json +191 -0
- package/skills/big_watermelon.aigameplay/ref/reducer.template.ts +202 -0
- package/skills/block_puzzle.aigameplay/SKILL.md +121 -0
- package/skills/block_puzzle.aigameplay/manifest.json +154 -0
- package/skills/block_puzzle.aigameplay/ref/pgs-schema.json +170 -0
- package/skills/block_puzzle.aigameplay/ref/reducer.template.ts +182 -0
- package/skills/board_entity_sprite.aiimage/SKILL.md +255 -0
- package/skills/board_entity_sprite.aiimage/manifest.json +153 -0
- package/skills/board_entity_sprite.aiimage/ref/ProceduralCar.ts +357 -0
- package/skills/board_entity_sprite.aiimage/ref/car.png +0 -0
- package/skills/board_entity_sprite.aiimage/ref/car.webp +0 -0
- package/skills/bottom_ui_bar.aicomponent/SKILL.md +50 -0
- package/skills/bottom_ui_bar.aicomponent/manifest.json +31 -0
- package/skills/bottom_ui_bar.aicomponent/ref/GameBottomUI.ts +27 -0
- package/skills/bubble_shooter.aigameplay/SKILL.md +129 -0
- package/skills/bubble_shooter.aigameplay/manifest.json +181 -0
- package/skills/bubble_shooter.aigameplay/ref/pgs-schema.json +226 -0
- package/skills/bubble_shooter.aigameplay/ref/reducer.template.ts +228 -0
- package/skills/button_click_sfx.aiaudio/SKILL.md +59 -0
- package/skills/button_click_sfx.aiaudio/manifest.json +45 -0
- package/skills/button_click_sfx.aiaudio/ref/button_click.mp3 +0 -0
- package/skills/calm_piano.aiaudio/SKILL.md +68 -0
- package/skills/calm_piano.aiaudio/manifest.json +50 -0
- package/skills/camera_controller_3d.aicomponent/SKILL.md +100 -0
- package/skills/camera_controller_3d.aicomponent/manifest.json +52 -0
- package/skills/camera_controller_3d.aicomponent/ref/CameraController.ts +199 -0
- package/skills/camera_controller_3d.aicomponent/ref/OrbitControlsAdapter.ts +152 -0
- package/skills/candy_tile.aiimage/SKILL.md +62 -0
- package/skills/candy_tile.aiimage/manifest.json +49 -0
- package/skills/car_parking.aigameplay/SKILL.md +105 -0
- package/skills/car_parking.aigameplay/manifest.json +164 -0
- package/skills/car_parking.aigameplay/ref/pgs-schema.json +163 -0
- package/skills/car_parking.aigameplay/ref/reducer.template.ts +166 -0
- package/skills/castle.aiimage/SKILL.md +64 -0
- package/skills/castle.aiimage/manifest.json +48 -0
- package/skills/cheerful_ukulele.aiaudio/SKILL.md +72 -0
- package/skills/cheerful_ukulele.aiaudio/manifest.json +50 -0
- package/skills/click_sfx.aiaudio/SKILL.md +59 -0
- package/skills/click_sfx.aiaudio/manifest.json +45 -0
- package/skills/click_sfx.aiaudio/ref/click.mp3 +0 -0
- package/skills/combo_display.aicomponent/SKILL.md +45 -0
- package/skills/combo_display.aicomponent/manifest.json +31 -0
- package/skills/combo_display.aicomponent/ref/ComboManager.ts +362 -0
- package/skills/combo_display.aicomponent/ref/ComboSmallUI.ts +232 -0
- package/skills/combo_praise_text.aicomponent/SKILL.md +56 -0
- package/skills/combo_praise_text.aicomponent/manifest.json +34 -0
- package/skills/combo_praise_text.aicomponent/ref/ComboManager.ts +362 -0
- package/skills/countdown_timer.aicomponent/SKILL.md +44 -0
- package/skills/countdown_timer.aicomponent/manifest.json +35 -0
- package/skills/countdown_timer.aicomponent/ref/CountdownDisplay.ts +213 -0
- package/skills/cta_platform_config.aiconfig/SKILL.md +72 -0
- package/skills/cta_platform_config.aiconfig/manifest.json +56 -0
- package/skills/debug_overlay.aicomponent/SKILL.md +75 -0
- package/skills/debug_overlay.aicomponent/manifest.json +17 -0
- package/skills/debug_overlay.aicomponent/ref/DebugOverlay.ts +144 -0
- package/skills/desert.aiimage/SKILL.md +63 -0
- package/skills/desert.aiimage/manifest.json +49 -0
- package/skills/difficulty_curve_designer.aiconfig/SKILL.md +68 -0
- package/skills/difficulty_curve_designer.aiconfig/manifest.json +36 -0
- package/skills/digit_renderer.aicomponent/SKILL.md +43 -0
- package/skills/digit_renderer.aicomponent/manifest.json +25 -0
- package/skills/digit_renderer.aicomponent/ref/DigitRenderer.ts +237 -0
- package/skills/download_button.aicomponent/SKILL.md +44 -0
- package/skills/download_button.aicomponent/manifest.json +25 -0
- package/skills/download_button.aicomponent/ref/DownloadButton.ts +137 -0
- package/skills/draw_line_puzzle.aigameplay/SKILL.md +84 -0
- package/skills/draw_line_puzzle.aigameplay/manifest.json +152 -0
- package/skills/draw_line_puzzle.aigameplay/ref/pgs-schema.json +189 -0
- package/skills/draw_line_puzzle.aigameplay/ref/reducer.template.ts +194 -0
- package/skills/easy_to_hard.aiconfig/SKILL.md +52 -0
- package/skills/easy_to_hard.aiconfig/manifest.json +33 -0
- package/skills/eight_ball_pool.aigameplay/SKILL.md +104 -0
- package/skills/eight_ball_pool.aigameplay/manifest.json +152 -0
- package/skills/eight_ball_pool.aigameplay/ref/pgs-schema.json +205 -0
- package/skills/eight_ball_pool.aigameplay/ref/reducer.template.ts +198 -0
- package/skills/energetic_electronic.aiaudio/SKILL.md +69 -0
- package/skills/energetic_electronic.aiaudio/manifest.json +51 -0
- package/skills/fail_sfx.aiaudio/SKILL.md +59 -0
- package/skills/fail_sfx.aiaudio/manifest.json +44 -0
- package/skills/fail_sfx.aiaudio/ref/fail.mp3 +0 -0
- package/skills/figer_icon.aiimage/SKILL.md +58 -0
- package/skills/figer_icon.aiimage/manifest.json +48 -0
- package/skills/figer_icon.aiimage/ref/figer.png +0 -0
- package/skills/figer_icon.aiimage/ref/figer.webp +0 -0
- package/skills/forest.aiimage/SKILL.md +74 -0
- package/skills/forest.aiimage/manifest.json +48 -0
- package/skills/fruit_tile.aiimage/SKILL.md +68 -0
- package/skills/fruit_tile.aiimage/manifest.json +48 -0
- package/skills/game_over_panel.aicomponent/SKILL.md +47 -0
- package/skills/game_over_panel.aicomponent/manifest.json +61 -0
- package/skills/game_over_panel.aicomponent/ref/GameOverPanel.ts +74 -0
- package/skills/game_scene.aicomponent/SKILL.md +57 -0
- package/skills/game_scene.aicomponent/manifest.json +36 -0
- package/skills/game_scene.aicomponent/ref/Game.ts +748 -0
- package/skills/gameplay_balance_check.aivalidator/SKILL.md +69 -0
- package/skills/gameplay_balance_check.aivalidator/manifest.json +21 -0
- package/skills/gameplay_unit_test.aivalidator/SKILL.md +89 -0
- package/skills/gameplay_unit_test.aivalidator/manifest.json +17 -0
- package/skills/gameplay_unit_test.aivalidator/ref/gameplay.test.ts +202 -0
- package/skills/gameplay_unit_test.aivalidator/ref/vitest.config.ts +13 -0
- package/skills/grid_board_layout.aicomponent/SKILL.md +85 -0
- package/skills/grid_board_layout.aicomponent/manifest.json +69 -0
- package/skills/grid_board_layout.aicomponent/ref/BoardLayout.ts +416 -0
- package/skills/grid_board_layout.aicomponent/ref/BoardLayout3D.ts +125 -0
- package/skills/grid_board_layout.aicomponent/ref/BoardLayoutMath.ts +85 -0
- package/skills/grid_board_layout.aicomponent/ref/BoardRenderer3D.ts +298 -0
- package/skills/heart_lives.aicomponent/SKILL.md +42 -0
- package/skills/heart_lives.aicomponent/manifest.json +25 -0
- package/skills/heart_lives.aicomponent/ref/HeartDisplay.ts +96 -0
- package/skills/idle-breathe.aicomponent/SKILL.md +27 -0
- package/skills/idle-breathe.aicomponent/manifest.json +20 -0
- package/skills/idle-breathe.aicomponent/ref/phaser.js +25 -0
- package/skills/idle-breathe.aicomponent/ref/playcanvas.js +29 -0
- package/skills/jewel_tile.aiimage/SKILL.md +63 -0
- package/skills/jewel_tile.aiimage/manifest.json +49 -0
- package/skills/knife_hit.aigameplay/SKILL.md +103 -0
- package/skills/knife_hit.aigameplay/manifest.json +151 -0
- package/skills/knife_hit.aigameplay/ref/pgs-schema.json +202 -0
- package/skills/knife_hit.aigameplay/ref/reducer.template.ts +196 -0
- package/skills/left_right_parkour.aigameplay/SKILL.md +120 -0
- package/skills/left_right_parkour.aigameplay/manifest.json +165 -0
- package/skills/left_right_parkour.aigameplay/ref/pgs-schema.json +200 -0
- package/skills/left_right_parkour.aigameplay/ref/reducer.template.ts +194 -0
- package/skills/level_data_pack.aiconfig/SKILL.md +64 -0
- package/skills/level_data_pack.aiconfig/manifest.json +37 -0
- package/skills/level_data_validator.aivalidator/SKILL.md +85 -0
- package/skills/level_data_validator.aivalidator/manifest.json +17 -0
- package/skills/level_data_validator.aivalidator/ref/LevelValidator.ts +113 -0
- package/skills/level_lifecycle.aicomponent/SKILL.md +81 -0
- package/skills/level_lifecycle.aicomponent/manifest.json +87 -0
- package/skills/level_lifecycle.aicomponent/ref/LevelLifecycle.ts +235 -0
- package/skills/level_solvability_validator.aivalidator/SKILL.md +74 -0
- package/skills/level_solvability_validator.aivalidator/manifest.json +23 -0
- package/skills/level_solvability_validator.aivalidator/ref/LevelValidator.ts +186 -0
- package/skills/level_state.aicomponent/SKILL.md +55 -0
- package/skills/level_state.aicomponent/manifest.json +34 -0
- package/skills/level_state.aicomponent/ref/LevelDataManager.ts +26 -0
- package/skills/level_state.aicomponent/ref/LevelManager.ts +26 -0
- package/skills/loading_screen.aicomponent/SKILL.md +57 -0
- package/skills/loading_screen.aicomponent/manifest.json +43 -0
- package/skills/loading_screen.aicomponent/ref/LoadingUI.ts +339 -0
- package/skills/lose_result_panel.aiimage/SKILL.md +58 -0
- package/skills/lose_result_panel.aiimage/manifest.json +47 -0
- package/skills/lose_result_panel.aiimage/ref/lose.png +0 -0
- package/skills/lose_result_panel.aiimage/ref/lose.webp +0 -0
- package/skills/lose_sfx.aiaudio/SKILL.md +59 -0
- package/skills/lose_sfx.aiaudio/manifest.json +45 -0
- package/skills/lose_sfx.aiaudio/ref/lose.mp3 +0 -0
- package/skills/match-pop.aicomponent/SKILL.md +29 -0
- package/skills/match-pop.aicomponent/manifest.json +19 -0
- package/skills/match-pop.aicomponent/ref/phaser.js +30 -0
- package/skills/match-pop.aicomponent/ref/playcanvas.js +22 -0
- package/skills/match3_core.aigameplay/SKILL.md +125 -0
- package/skills/match3_core.aigameplay/manifest.json +107 -0
- package/skills/match3_core.aigameplay/ref/pgs-schema.json +154 -0
- package/skills/match3_core.aigameplay/ref/reducer.template.ts +191 -0
- package/skills/match_engine.aicomponent/SKILL.md +84 -0
- package/skills/match_engine.aicomponent/manifest.json +23 -0
- package/skills/match_engine.aicomponent/ref/MatchEngine.ts +75 -0
- package/skills/memory_match.aigameplay/SKILL.md +111 -0
- package/skills/memory_match.aigameplay/manifest.json +164 -0
- package/skills/memory_match.aigameplay/ref/pgs-schema.json +190 -0
- package/skills/memory_match.aigameplay/ref/reducer.template.ts +162 -0
- package/skills/merge_core.aigameplay/SKILL.md +112 -0
- package/skills/merge_core.aigameplay/manifest.json +154 -0
- package/skills/merge_core.aigameplay/ref/pgs-schema.json +202 -0
- package/skills/merge_core.aigameplay/ref/reducer.template.ts +179 -0
- package/skills/mistake_sfx.aiaudio/SKILL.md +59 -0
- package/skills/mistake_sfx.aiaudio/manifest.json +45 -0
- package/skills/mistake_sfx.aiaudio/ref/mistake.mp3 +0 -0
- package/skills/nomove_hint_overlay.aiimage/SKILL.md +58 -0
- package/skills/nomove_hint_overlay.aiimage/manifest.json +48 -0
- package/skills/nomove_hint_overlay.aiimage/ref/nomove_hint.png +0 -0
- package/skills/nomove_hint_overlay.aiimage/ref/nomove_hint.webp +0 -0
- package/skills/normal_dot.aiimage/SKILL.md +58 -0
- package/skills/normal_dot.aiimage/manifest.json +46 -0
- package/skills/normal_dot.aiimage/ref/normal_dot.png +0 -0
- package/skills/normal_dot.aiimage/ref/normal_dot.webp +0 -0
- package/skills/ocean.aiimage/SKILL.md +71 -0
- package/skills/ocean.aiimage/manifest.json +49 -0
- package/skills/particle-confetti.aicomponent/SKILL.md +32 -0
- package/skills/particle-confetti.aicomponent/manifest.json +21 -0
- package/skills/particle-confetti.aicomponent/ref/html5-spritesheet.js +17 -0
- package/skills/particle-confetti.aicomponent/ref/phaser.js +38 -0
- package/skills/particle-explosion.aicomponent/SKILL.md +37 -0
- package/skills/particle-explosion.aicomponent/manifest.json +24 -0
- package/skills/particle-explosion.aicomponent/ref/html5-spritesheet.js +40 -0
- package/skills/particle-explosion.aicomponent/ref/phaser.js +46 -0
- package/skills/particle-explosion.aicomponent/ref/playcanvas.js +33 -0
- package/skills/particle-trail.aicomponent/SKILL.md +25 -0
- package/skills/particle-trail.aicomponent/manifest.json +22 -0
- package/skills/particle-trail.aicomponent/ref/phaser.js +31 -0
- package/skills/path_animation.aicomponent/SKILL.md +82 -0
- package/skills/path_animation.aicomponent/manifest.json +77 -0
- package/skills/path_animation.aicomponent/ref/AnimationManager.ts +694 -0
- package/skills/path_animation.aicomponent/ref/AnimationManager3D.ts +317 -0
- package/skills/path_elimination_rules.aigameplay/SKILL.md +88 -0
- package/skills/path_elimination_rules.aigameplay/manifest.json +119 -0
- package/skills/path_elimination_rules.aigameplay/ref/pgs-schema.json +227 -0
- package/skills/path_input_handler.aicomponent/SKILL.md +87 -0
- package/skills/path_input_handler.aicomponent/manifest.json +97 -0
- package/skills/path_input_handler.aicomponent/ref/InputHandler.ts +714 -0
- package/skills/path_input_handler.aicomponent/ref/InputHandler3D.ts +204 -0
- package/skills/path_renderer.aicomponent/SKILL.md +101 -0
- package/skills/path_renderer.aicomponent/manifest.json +69 -0
- package/skills/path_renderer.aicomponent/ref/PathRenderer.ts +509 -0
- package/skills/path_renderer.aicomponent/ref/PathRenderer3D.ts +176 -0
- package/skills/path_renderer.aicomponent/ref/PathRenderers.ts +640 -0
- package/skills/phaser.aicomponent/SKILL.md +315 -0
- package/skills/phaser.aicomponent/manifest.json +156 -0
- package/skills/phaser.aicomponent/ref/BootScene.ts +29 -0
- package/skills/phaser.aicomponent/ref/GameConfig.ts +29 -0
- package/skills/phaser.aicomponent/ref/GameScene.ts +88 -0
- package/skills/phaser.aicomponent/ref/PreloaderScene.ts +78 -0
- package/skills/phaser.aicomponent/ref/SceneKeys.ts +7 -0
- package/skills/phaser.aicomponent/ref/SoundUtils.ts +21 -0
- package/skills/phaser.aicomponent/ref/UiLayout.ts +74 -0
- package/skills/phaser.aicomponent/ref/globals.d.ts +52 -0
- package/skills/phaser.aicomponent/ref/index.css +40 -0
- package/skills/phaser.aicomponent/ref/index.html +14 -0
- package/skills/phaser.aicomponent/ref/index.ts +48 -0
- package/skills/phaser.aicomponent/ref/main.ts +16 -0
- package/skills/phaser.aicomponent/ref/package.json +22 -0
- package/skills/phaser.aicomponent/ref/tsconfig.json +25 -0
- package/skills/phaser.aicomponent/ref/webpack.config.js +57 -0
- package/skills/phaser_scene_lifecycle.aicomponent/SKILL.md +63 -0
- package/skills/phaser_scene_lifecycle.aicomponent/manifest.json +33 -0
- package/skills/pick_and_match_rules.aigameplay/SKILL.md +113 -0
- package/skills/pick_and_match_rules.aigameplay/manifest.json +121 -0
- package/skills/pick_and_match_rules.aigameplay/ref/pgs-schema.json +354 -0
- package/skills/pin_pull.aigameplay/SKILL.md +110 -0
- package/skills/pin_pull.aigameplay/manifest.json +164 -0
- package/skills/pin_pull.aigameplay/ref/pgs-schema.json +201 -0
- package/skills/pin_pull.aigameplay/ref/reducer.template.ts +216 -0
- package/skills/playable_app_logo.aiimage/SKILL.md +58 -0
- package/skills/playable_app_logo.aiimage/manifest.json +47 -0
- package/skills/playable_app_logo.aiimage/ref/logo.png +0 -0
- package/skills/playable_app_logo.aiimage/ref/logo.webp +0 -0
- package/skills/playable_end_screen_layout.aicomponent/SKILL.md +75 -0
- package/skills/playable_end_screen_layout.aicomponent/manifest.json +24 -0
- package/skills/playable_guidance_layer.aicomponent/SKILL.md +89 -0
- package/skills/playable_guidance_layer.aicomponent/manifest.json +24 -0
- package/skills/playable_hud_layout.aicomponent/SKILL.md +96 -0
- package/skills/playable_hud_layout.aicomponent/manifest.json +24 -0
- package/skills/playable_scripts_build.aicomponent/SKILL.md +69 -0
- package/skills/playable_scripts_build.aicomponent/manifest.json +53 -0
- package/skills/playable_scripts_build.aicomponent/ref/builds.config.js +257 -0
- package/skills/playcraft-3d-flip-sprite/SKILL.md +336 -0
- package/skills/playcraft-3d-flip-sprite/renderer/flatten_glb.mjs +62 -0
- package/skills/playcraft-3d-flip-sprite/renderer/render.mjs +325 -0
- package/skills/playcraft-3d-flip-sprite/renderer/render_single.mjs +138 -0
- package/skills/playcraft-asset-management/SKILL.md +73 -0
- package/skills/playcraft-audio-generation/SKILL.md +126 -0
- package/skills/playcraft-build/SKILL.md +44 -0
- package/skills/playcraft-code-editor/SKILL.md +71 -0
- package/skills/playcraft-create-remix/SKILL.md +62 -0
- package/skills/playcraft-deploy/SKILL.md +59 -0
- package/skills/playcraft-image-generation/SKILL.md +148 -0
- package/skills/playcraft-image-processing/SKILL.md +216 -0
- package/skills/playcraft-platform-intro/SKILL.md +41 -0
- package/skills/playcraft-prefab/SKILL.md +98 -0
- package/skills/playcraft-project-management/SKILL.md +57 -0
- package/skills/playcraft-remix-workflow/SKILL.md +119 -0
- package/skills/playcraft-remix-workflow/references/xplatform.schema.json5 +31 -0
- package/skills/playcraft-save/SKILL.md +46 -0
- package/skills/playcraft-skill-recommender/SKILL.md +152 -0
- package/skills/playcraft-sprite-generation/SKILL.md +534 -0
- package/skills/playcraft-sprite-remix/SKILL.md +155 -0
- package/skills/playcraft-sprite-sheet/SKILL.md +97 -0
- package/skills/playtest_report.aivalidator/SKILL.md +103 -0
- package/skills/playtest_report.aivalidator/manifest.json +21 -0
- package/skills/preloader_scene.aicomponent/SKILL.md +58 -0
- package/skills/preloader_scene.aicomponent/manifest.json +43 -0
- package/skills/preloader_scene.aicomponent/ref/Preloader.ts +339 -0
- package/skills/progress_bar.aicomponent/SKILL.md +38 -0
- package/skills/progress_bar.aicomponent/manifest.json +25 -0
- package/skills/progress_bar.aicomponent/ref/ProgressDisplay.ts +140 -0
- package/skills/references/xplatform.schema.json5 +31 -0
- package/skills/responsive_2d_layout.aicomponent/SKILL.md +161 -0
- package/skills/responsive_2d_layout.aicomponent/manifest.json +43 -0
- package/skills/responsive_2d_layout.aicomponent/ref/UiLayout.ts +56 -0
- package/skills/run_context_state.aicomponent/SKILL.md +54 -0
- package/skills/run_context_state.aicomponent/manifest.json +40 -0
- package/skills/run_context_state.aicomponent/ref/RunContextRuntime.ts +30 -0
- package/skills/score-fly.aicomponent/SKILL.md +31 -0
- package/skills/score-fly.aicomponent/manifest.json +21 -0
- package/skills/score-fly.aicomponent/ref/phaser.js +26 -0
- package/skills/score-fly.aicomponent/ref/playcanvas.js +28 -0
- package/skills/score_goal.aiconfig/SKILL.md +46 -0
- package/skills/score_goal.aiconfig/manifest.json +33 -0
- package/skills/screen-flash.aicomponent/SKILL.md +30 -0
- package/skills/screen-flash.aicomponent/manifest.json +20 -0
- package/skills/screen-flash.aicomponent/ref/phaser.js +48 -0
- package/skills/screen-shake.aicomponent/SKILL.md +30 -0
- package/skills/screen-shake.aicomponent/manifest.json +19 -0
- package/skills/screen-shake.aicomponent/ref/phaser.js +23 -0
- package/skills/screen-shake.aicomponent/ref/playcanvas.js +44 -0
- package/skills/screw_puzzle.aigameplay/SKILL.md +116 -0
- package/skills/screw_puzzle.aigameplay/manifest.json +164 -0
- package/skills/screw_puzzle.aigameplay/ref/pgs-schema.json +235 -0
- package/skills/screw_puzzle.aigameplay/ref/reducer.template.ts +213 -0
- package/skills/settings_state.aicomponent/SKILL.md +61 -0
- package/skills/settings_state.aicomponent/manifest.json +33 -0
- package/skills/settings_state.aicomponent/ref/SettingsManager.ts +130 -0
- package/skills/slide_out_to_tray_animation.aicomponent/SKILL.md +64 -0
- package/skills/slide_out_to_tray_animation.aicomponent/manifest.json +58 -0
- package/skills/slide_out_to_tray_animation.aicomponent/ref/AnimationManager.ts +164 -0
- package/skills/slide_out_to_tray_animation.aicomponent/ref/AnimationManager3D.ts +198 -0
- package/skills/slide_out_to_tray_animation.aicomponent/ref/BezierUtils.ts +59 -0
- package/skills/slot_machine.aigameplay/SKILL.md +119 -0
- package/skills/slot_machine.aigameplay/manifest.json +166 -0
- package/skills/slot_machine.aigameplay/ref/pgs-schema.json +212 -0
- package/skills/slot_machine.aigameplay/ref/reducer.template.ts +212 -0
- package/skills/sniper_shot.aigameplay/SKILL.md +84 -0
- package/skills/sniper_shot.aigameplay/manifest.json +153 -0
- package/skills/sniper_shot.aigameplay/ref/pgs-schema.json +211 -0
- package/skills/sniper_shot.aigameplay/ref/reducer.template.ts +211 -0
- package/skills/solitaire.aigameplay/SKILL.md +101 -0
- package/skills/solitaire.aigameplay/manifest.json +151 -0
- package/skills/solitaire.aigameplay/ref/pgs-schema.json +200 -0
- package/skills/solitaire.aigameplay/ref/reducer.template.ts +176 -0
- package/skills/sound-effects/SKILL.md +46 -0
- package/skills/sound_utils.aicomponent/SKILL.md +52 -0
- package/skills/sound_utils.aicomponent/manifest.json +30 -0
- package/skills/sound_utils.aicomponent/ref/SoundUtils.ts +29 -0
- package/skills/sprite-animation-2d.aicomponent/SKILL.md +45 -0
- package/skills/sprite-animation-2d.aicomponent/manifest.json +28 -0
- package/skills/sprite-animation-2d.aicomponent/ref/html5.js +83 -0
- package/skills/sprite-animation-2d.aicomponent/ref/phaser.js +38 -0
- package/skills/sprite-animation-2d.aicomponent/ref/playcanvas.js +67 -0
- package/skills/sprite_entity_renderer.aicomponent/SKILL.md +148 -0
- package/skills/sprite_entity_renderer.aicomponent/manifest.json +17 -0
- package/skills/sprite_entity_renderer.aicomponent/ref/SpriteEntityRenderer.ts +126 -0
- package/skills/success_sfx.aiaudio/SKILL.md +59 -0
- package/skills/success_sfx.aiaudio/manifest.json +45 -0
- package/skills/success_sfx.aiaudio/ref/success.mp3 +0 -0
- package/skills/tap_blast.aigameplay/SKILL.md +116 -0
- package/skills/tap_blast.aigameplay/manifest.json +153 -0
- package/skills/tap_blast.aigameplay/ref/pgs-schema.json +208 -0
- package/skills/tap_blast.aigameplay/ref/reducer.template.ts +202 -0
- package/skills/theme_state.aicomponent/SKILL.md +53 -0
- package/skills/theme_state.aicomponent/manifest.json +33 -0
- package/skills/theme_state.aicomponent/ref/ThemeManager.ts +174 -0
- package/skills/theme_switcher_build.aicomponent/SKILL.md +62 -0
- package/skills/theme_switcher_build.aicomponent/manifest.json +38 -0
- package/skills/theme_switcher_build.aicomponent/ref/theme-index.ts +8 -0
- package/skills/theme_variant.aiconfig/SKILL.md +78 -0
- package/skills/theme_variant.aiconfig/manifest.json +39 -0
- package/skills/theme_variant.aiconfig/ref/ExampleTheme/index.ts +16 -0
- package/skills/theme_variant.aiconfig/ref/ExampleTheme/levelEasy.json +141 -0
- package/skills/threejs.aicomponent/SKILL.md +422 -0
- package/skills/threejs.aicomponent/manifest.json +166 -0
- package/skills/threejs.aicomponent/ref/AssetLoader.ts +158 -0
- package/skills/threejs.aicomponent/ref/BaseScene.ts +88 -0
- package/skills/threejs.aicomponent/ref/GameConfig.ts +47 -0
- package/skills/threejs.aicomponent/ref/MainScene.ts +170 -0
- package/skills/threejs.aicomponent/ref/PreloaderScene.ts +93 -0
- package/skills/threejs.aicomponent/ref/SceneKeys.ts +6 -0
- package/skills/threejs.aicomponent/ref/SceneManager.ts +69 -0
- package/skills/threejs.aicomponent/ref/ViewportManager.ts +62 -0
- package/skills/threejs.aicomponent/ref/globals.d.ts +74 -0
- package/skills/threejs.aicomponent/ref/index.css +80 -0
- package/skills/threejs.aicomponent/ref/index.html +20 -0
- package/skills/threejs.aicomponent/ref/index.ts +117 -0
- package/skills/threejs.aicomponent/ref/main.ts +10 -0
- package/skills/threejs.aicomponent/ref/package.json +23 -0
- package/skills/threejs.aicomponent/ref/tsconfig.json +24 -0
- package/skills/threejs.aicomponent/ref/webpack.config.js +61 -0
- package/skills/time_clear_goal.aiconfig/SKILL.md +46 -0
- package/skills/time_clear_goal.aiconfig/manifest.json +32 -0
- package/skills/time_icon.aiimage/SKILL.md +58 -0
- package/skills/time_icon.aiimage/manifest.json +47 -0
- package/skills/time_icon.aiimage/ref/time.png +0 -0
- package/skills/time_icon.aiimage/ref/time.webp +0 -0
- package/skills/top_ui_bar.aicomponent/SKILL.md +45 -0
- package/skills/top_ui_bar.aicomponent/manifest.json +27 -0
- package/skills/top_ui_bar.aicomponent/ref/GameTopUI.ts +229 -0
- package/skills/tower_defence.aigameplay/SKILL.md +117 -0
- package/skills/tower_defence.aigameplay/manifest.json +175 -0
- package/skills/tower_defence.aigameplay/ref/pgs-schema.json +247 -0
- package/skills/tower_defence.aigameplay/ref/reducer.template.ts +239 -0
- package/skills/tray_container.aicomponent/SKILL.md +143 -0
- package/skills/tray_container.aicomponent/manifest.json +58 -0
- package/skills/tray_container.aicomponent/ref/TrayRenderer.ts +155 -0
- package/skills/tray_container.aicomponent/ref/TrayRenderer3D.ts +281 -0
- package/skills/tray_container.aicomponent/ref/TrayRendererHtmlOverlay.ts +228 -0
- package/skills/tutorial_overlay.aicomponent/SKILL.md +46 -0
- package/skills/tutorial_overlay.aicomponent/manifest.json +34 -0
- package/skills/tutorial_overlay.aicomponent/ref/TutorialManager.ts +367 -0
- package/skills/tween-animation-2d.aicomponent/SKILL.md +35 -0
- package/skills/tween-animation-2d.aicomponent/manifest.json +28 -0
- package/skills/tween-animation-2d.aicomponent/ref/phaser.js +49 -0
- package/skills/tween-animation-2d.aicomponent/ref/playcanvas.js +36 -0
- package/skills/typescript_module_patterns.aicomponent/SKILL.md +209 -0
- package/skills/typescript_module_patterns.aicomponent/manifest.json +28 -0
- package/skills/typescript_module_patterns.aicomponent/ref/globals.d.ts +31 -0
- package/skills/ui-transition.aicomponent/SKILL.md +33 -0
- package/skills/ui-transition.aicomponent/manifest.json +19 -0
- package/skills/ui-transition.aicomponent/ref/phaser.js +45 -0
- package/skills/ux_flow_spec.aiconfig/SKILL.md +82 -0
- package/skills/ux_flow_spec.aiconfig/manifest.json +39 -0
- package/skills/wave_difficulty.aiconfig/SKILL.md +46 -0
- package/skills/wave_difficulty.aiconfig/manifest.json +33 -0
- package/skills/webpack_build.aicomponent/SKILL.md +204 -0
- package/skills/webpack_build.aicomponent/manifest.json +29 -0
- package/skills/webpack_build.aicomponent/ref/package.json +16 -0
- package/skills/webpack_build.aicomponent/ref/webpack.config.js +53 -0
- package/skills/win_anim_sfx.aiaudio/SKILL.md +59 -0
- package/skills/win_anim_sfx.aiaudio/manifest.json +46 -0
- package/skills/win_anim_sfx.aiaudio/ref/win_anim.mp3 +0 -0
- package/skills/win_dot.aiimage/SKILL.md +58 -0
- package/skills/win_dot.aiimage/manifest.json +47 -0
- package/skills/win_dot.aiimage/ref/win_dot.png +0 -0
- package/skills/win_dot.aiimage/ref/win_dot.webp +0 -0
- package/skills/win_result_panel.aiimage/SKILL.md +58 -0
- package/skills/win_result_panel.aiimage/manifest.json +47 -0
- package/skills/win_result_panel.aiimage/ref/win.png +0 -0
- package/skills/win_result_panel.aiimage/ref/win.webp +0 -0
- package/skills/word_connect.aigameplay/SKILL.md +86 -0
- package/skills/word_connect.aigameplay/manifest.json +154 -0
- package/skills/word_connect.aigameplay/ref/pgs-schema.json +212 -0
- package/skills/word_connect.aigameplay/ref/reducer.template.ts +186 -0
- package/src/index.ts +10 -0
- package/src/skills.loader.ts +225 -0
- package/src/skills.types.ts +42 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"atomId": "bubble_shooter.aigameplay",
|
|
4
|
+
"bundleType": "aigameplay",
|
|
5
|
+
"category": "gameplay",
|
|
6
|
+
"mode": "fixed",
|
|
7
|
+
"label": {
|
|
8
|
+
"zh": "泡泡射击消除",
|
|
9
|
+
"en": "Bubble Shooter gameplay"
|
|
10
|
+
},
|
|
11
|
+
"tags": [
|
|
12
|
+
"gameplay",
|
|
13
|
+
"bubble",
|
|
14
|
+
"shooter",
|
|
15
|
+
"eliminate",
|
|
16
|
+
"casual",
|
|
17
|
+
"color",
|
|
18
|
+
"aim"
|
|
19
|
+
],
|
|
20
|
+
"bindingRoles": [
|
|
21
|
+
"gameplayRule"
|
|
22
|
+
],
|
|
23
|
+
"imports": [
|
|
24
|
+
{
|
|
25
|
+
"slot": "engine",
|
|
26
|
+
"pinAtomId": "phaser.aicomponent",
|
|
27
|
+
"edgeKind": "requires",
|
|
28
|
+
"bindAs": "engine"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"slot": "bgMusic",
|
|
32
|
+
"description": "背景循环音乐",
|
|
33
|
+
"bindAs": "bgm",
|
|
34
|
+
"required": false,
|
|
35
|
+
"edgeKind": "compatibleWith",
|
|
36
|
+
"matchBindingRoles": [
|
|
37
|
+
"bgMusic"
|
|
38
|
+
],
|
|
39
|
+
"allowedBundleTypes": [
|
|
40
|
+
"aiaudio"
|
|
41
|
+
],
|
|
42
|
+
"constraints": {
|
|
43
|
+
"loop": true
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"slot": "background",
|
|
48
|
+
"description": "游戏背景图",
|
|
49
|
+
"bindAs": "bg",
|
|
50
|
+
"required": false,
|
|
51
|
+
"edgeKind": "compatibleWith",
|
|
52
|
+
"matchBindingRoles": [
|
|
53
|
+
"backgroundTexture"
|
|
54
|
+
],
|
|
55
|
+
"allowedBundleTypes": [
|
|
56
|
+
"aiimage"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"slot": "bubbleTextures",
|
|
61
|
+
"description": "泡泡颜色贴图集",
|
|
62
|
+
"bindAs": "bubbles",
|
|
63
|
+
"required": false,
|
|
64
|
+
"edgeKind": "compatibleWith",
|
|
65
|
+
"matchBindingRoles": [
|
|
66
|
+
"tileTextureSet"
|
|
67
|
+
],
|
|
68
|
+
"allowedBundleTypes": [
|
|
69
|
+
"aiimage"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"slot": "levelDataPack",
|
|
74
|
+
"description": "关卡数据包",
|
|
75
|
+
"bindAs": "levels",
|
|
76
|
+
"required": false,
|
|
77
|
+
"edgeKind": "compatibleWith",
|
|
78
|
+
"matchBindingRoles": [
|
|
79
|
+
"levelDataPack"
|
|
80
|
+
],
|
|
81
|
+
"allowedBundleTypes": [
|
|
82
|
+
"aiconfig"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"slot": "tutorial",
|
|
87
|
+
"description": "新手引导浮层",
|
|
88
|
+
"bindAs": "tutorial",
|
|
89
|
+
"required": false,
|
|
90
|
+
"edgeKind": "compatibleWith",
|
|
91
|
+
"matchBindingRoles": [
|
|
92
|
+
"tutorialOverlay"
|
|
93
|
+
],
|
|
94
|
+
"allowedBundleTypes": [
|
|
95
|
+
"aicomponent"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"slot": "winPanel",
|
|
100
|
+
"description": "通关反馈面板视觉",
|
|
101
|
+
"bindAs": "winPanel",
|
|
102
|
+
"required": false,
|
|
103
|
+
"edgeKind": "compatibleWith",
|
|
104
|
+
"matchBindingRoles": [
|
|
105
|
+
"successFeedbackPanel"
|
|
106
|
+
],
|
|
107
|
+
"allowedBundleTypes": [
|
|
108
|
+
"aiimage"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"slot": "losePanel",
|
|
113
|
+
"description": "失败反馈面板视觉",
|
|
114
|
+
"bindAs": "losePanel",
|
|
115
|
+
"required": false,
|
|
116
|
+
"edgeKind": "compatibleWith",
|
|
117
|
+
"matchBindingRoles": [
|
|
118
|
+
"failFeedbackPanel"
|
|
119
|
+
],
|
|
120
|
+
"allowedBundleTypes": [
|
|
121
|
+
"aiimage"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"slot": "endScreen",
|
|
126
|
+
"description": "可玩广告结算屏(含 CTA 按钮)",
|
|
127
|
+
"bindAs": "endScreen",
|
|
128
|
+
"required": false,
|
|
129
|
+
"edgeKind": "compatibleWith",
|
|
130
|
+
"matchBindingRoles": [
|
|
131
|
+
"playableEndScreenLayout"
|
|
132
|
+
],
|
|
133
|
+
"allowedBundleTypes": [
|
|
134
|
+
"aicomponent"
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"generation": {
|
|
139
|
+
"kind": "pgs",
|
|
140
|
+
"pgsVersion": "1.0",
|
|
141
|
+
"gameplayType": "bubble_shooter",
|
|
142
|
+
"rules": {
|
|
143
|
+
"minClusterSize": 3,
|
|
144
|
+
"wallBounceEnabled": true,
|
|
145
|
+
"orphanDropEnabled": true,
|
|
146
|
+
"advanceRowAfterShots": 5,
|
|
147
|
+
"colorCount": 6
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"result": {
|
|
151
|
+
"outputFile": "reducer.ts",
|
|
152
|
+
"format": "typescript",
|
|
153
|
+
"constraints": {
|
|
154
|
+
"testCasesMustPass": true
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"binding": {
|
|
158
|
+
"role": "gameplayRule",
|
|
159
|
+
"target": "game/gameplay/bubble_shooter/reducer.ts",
|
|
160
|
+
"type": "gameplay-module-reference",
|
|
161
|
+
"constraints": {
|
|
162
|
+
"interface": [
|
|
163
|
+
"init(config)",
|
|
164
|
+
"dispatch(action)",
|
|
165
|
+
"getState()",
|
|
166
|
+
"calculateTrajectory(state, angle)",
|
|
167
|
+
"snapToGrid(position)",
|
|
168
|
+
"findCluster(board, col, row)",
|
|
169
|
+
"popCluster(state, cluster)",
|
|
170
|
+
"findOrphans(board)",
|
|
171
|
+
"dropOrphans(state, orphans)",
|
|
172
|
+
"calculateScore(popped, dropped)"
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"files": {
|
|
177
|
+
"skill": "SKILL.md",
|
|
178
|
+
"pgsSchema": "ref/pgs-schema.json",
|
|
179
|
+
"reducerTemplate": "ref/reducer.template.ts"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "PGS (PlayCraft Gameplay Schema) 参考骨架 - 泡泡射击消除玩法。Agent 以此为起点编写或 fork 玩法规则。",
|
|
3
|
+
"version": "1.0",
|
|
4
|
+
"gameplayType": "bubble_shooter",
|
|
5
|
+
"entities": {
|
|
6
|
+
"board": {
|
|
7
|
+
"type": "grid",
|
|
8
|
+
"layout": "rectangular",
|
|
9
|
+
"cols": 9,
|
|
10
|
+
"rows": 12,
|
|
11
|
+
"description": "泡泡网格,奇数行与偶数行可以错位(六边形布局),board[row][col],null 表示空格"
|
|
12
|
+
},
|
|
13
|
+
"bubble": {
|
|
14
|
+
"type": "cell-item",
|
|
15
|
+
"fields": {
|
|
16
|
+
"color": "BubbleColor (0..colorCount-1)",
|
|
17
|
+
"row": "number",
|
|
18
|
+
"col": "number"
|
|
19
|
+
},
|
|
20
|
+
"description": "泡泡,有颜色,占据网格的一个格子"
|
|
21
|
+
},
|
|
22
|
+
"cannon": {
|
|
23
|
+
"type": "shooter",
|
|
24
|
+
"fields": {
|
|
25
|
+
"currentColor": "BubbleColor (当前待发射的泡泡颜色)",
|
|
26
|
+
"nextColor": "BubbleColor (下一颗泡泡颜色,供玩家预判)",
|
|
27
|
+
"position": "{ x: number, y: number } (炮口位置,固定在底部中央)"
|
|
28
|
+
},
|
|
29
|
+
"description": "发射炮,持有当前和下一颗泡泡颜色"
|
|
30
|
+
},
|
|
31
|
+
"score": {
|
|
32
|
+
"type": "counter",
|
|
33
|
+
"initial": 0,
|
|
34
|
+
"description": "当前得分"
|
|
35
|
+
},
|
|
36
|
+
"moves": {
|
|
37
|
+
"type": "counter",
|
|
38
|
+
"initial": 0,
|
|
39
|
+
"description": "已发射次数,每发射 advanceRowAfterShots 次后推进一排"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"rules": {
|
|
43
|
+
"aim_and_shoot": {
|
|
44
|
+
"description": "玩家指定瞄准角度,泡泡从炮口沿直线飞出,可在左右墙壁反弹",
|
|
45
|
+
"trajectory": "angle-based ray with wall reflection",
|
|
46
|
+
"wallBounce": true,
|
|
47
|
+
"maxBounces": 3
|
|
48
|
+
},
|
|
49
|
+
"snap_to_grid": {
|
|
50
|
+
"description": "飞行中的泡泡命中已有泡泡或顶部墙壁时,吸附到最近的空网格位置",
|
|
51
|
+
"snapLogic": "find nearest empty cell adjacent to hit position"
|
|
52
|
+
},
|
|
53
|
+
"cluster_pop": {
|
|
54
|
+
"description": "泡泡落定后,检测与落点颜色相同的连通区域(BFS);若连通数量 >= minClusterSize,整簇消除",
|
|
55
|
+
"minClusterSize": 3,
|
|
56
|
+
"connectivity": "4-connected (or 6-connected for hex layout)",
|
|
57
|
+
"scorePerBubble": 100
|
|
58
|
+
},
|
|
59
|
+
"orphan_drop": {
|
|
60
|
+
"description": "消除后,从顶部行出发做 BFS;无法到达顶部的泡泡即为孤立泡泡,自动掉落",
|
|
61
|
+
"trigger": "after_cluster_pop",
|
|
62
|
+
"scorePerOrphan": 200,
|
|
63
|
+
"dropAnimation": "fall-off-screen"
|
|
64
|
+
},
|
|
65
|
+
"advance_board": {
|
|
66
|
+
"description": "每发射 advanceRowAfterShots 次后,顶部新增一排随机颜色泡泡,整体下移一行",
|
|
67
|
+
"trigger": "shots_count % advanceRowAfterShots === 0",
|
|
68
|
+
"newRowColors": "random from existing colors on board"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"algorithm": {
|
|
72
|
+
"description": "主循环:aim → shoot → snap → cluster_check → pop → orphan_drop → advance_check → win/lose",
|
|
73
|
+
"steps": [
|
|
74
|
+
"1. 玩家输入瞄准角度",
|
|
75
|
+
"2. 计算弹道轨迹(含墙壁反弹),确定落点",
|
|
76
|
+
"3. 泡泡吸附到最近空网格位置",
|
|
77
|
+
"4. 更新发射次数(moves += 1)",
|
|
78
|
+
"5. 以落点为起始,BFS 查找同色连通簇",
|
|
79
|
+
"6. 若簇大小 >= minClusterSize → 整簇消除,计分",
|
|
80
|
+
"7. 从顶部行 BFS,标记所有不可达泡泡为孤立泡泡",
|
|
81
|
+
"8. 孤立泡泡掉落,计分",
|
|
82
|
+
"9. 更新 cannon:currentColor = nextColor,随机生成新 nextColor",
|
|
83
|
+
"10. 检查推进条件:moves % advanceRowAfterShots === 0 → 新增顶部一排",
|
|
84
|
+
"11. 检查失败:最低泡泡行 >= cannon 所在行(泡泡触底)",
|
|
85
|
+
"12. 检查胜利:棋盘所有泡泡已清空"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
"winCondition": {
|
|
89
|
+
"type": "board_cleared",
|
|
90
|
+
"description": "棋盘上所有泡泡均已消除(board 全为 null)"
|
|
91
|
+
},
|
|
92
|
+
"loseCondition": {
|
|
93
|
+
"type": "bubbles_reach_cannon_line",
|
|
94
|
+
"description": "任意泡泡的 row >= loseRow(炮台所在行),游戏结束"
|
|
95
|
+
},
|
|
96
|
+
"testCases": [
|
|
97
|
+
{
|
|
98
|
+
"id": "tc_basic_3pop",
|
|
99
|
+
"description": "基础三消:发射与已有同色泡泡相邻,凑成3个连通,整簇消除",
|
|
100
|
+
"initialState": {
|
|
101
|
+
"board": {
|
|
102
|
+
"rows": [
|
|
103
|
+
{ "row": 0, "bubbles": [{ "col": 4, "color": 0 }, { "col": 5, "color": 0 }] }
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
"cannon": { "currentColor": 0, "nextColor": 1 },
|
|
107
|
+
"score": 0,
|
|
108
|
+
"moves": 0
|
|
109
|
+
},
|
|
110
|
+
"actions": [
|
|
111
|
+
{ "type": "shoot", "angle": 90, "_comment": "竖直向上,落在 row=0, col=4 附近" }
|
|
112
|
+
],
|
|
113
|
+
"expectedState": {
|
|
114
|
+
"poppedCount": 3,
|
|
115
|
+
"scoreGained": 300,
|
|
116
|
+
"boardEmpty": false,
|
|
117
|
+
"gameOver": false
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"id": "tc_wall_bounce_pop",
|
|
122
|
+
"description": "墙壁反弹后命中泡泡并触发消除",
|
|
123
|
+
"initialState": {
|
|
124
|
+
"board": {
|
|
125
|
+
"rows": [
|
|
126
|
+
{ "row": 0, "bubbles": [
|
|
127
|
+
{ "col": 8, "color": 2 },
|
|
128
|
+
{ "col": 7, "color": 2 }
|
|
129
|
+
]}
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
"cannon": { "currentColor": 2, "nextColor": 0 },
|
|
133
|
+
"score": 0,
|
|
134
|
+
"moves": 0
|
|
135
|
+
},
|
|
136
|
+
"actions": [
|
|
137
|
+
{ "type": "shoot", "angle": 45, "_comment": "斜向右上,反弹右壁后命中右侧同色泡泡" }
|
|
138
|
+
],
|
|
139
|
+
"expectedState": {
|
|
140
|
+
"poppedCount": { "min": 3 },
|
|
141
|
+
"scoreGained": { "min": 300 },
|
|
142
|
+
"gameOver": false
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"id": "tc_orphan_drop",
|
|
147
|
+
"description": "孤立掉落:消除支撑簇后,上方失去连接的泡泡自动掉落",
|
|
148
|
+
"initialState": {
|
|
149
|
+
"board": {
|
|
150
|
+
"rows": [
|
|
151
|
+
{ "row": 0, "bubbles": [
|
|
152
|
+
{ "col": 4, "color": 0 },
|
|
153
|
+
{ "col": 5, "color": 0 }
|
|
154
|
+
]},
|
|
155
|
+
{ "row": 1, "bubbles": [
|
|
156
|
+
{ "col": 4, "color": 1 },
|
|
157
|
+
{ "col": 5, "color": 0 }
|
|
158
|
+
]},
|
|
159
|
+
{ "row": 2, "bubbles": [
|
|
160
|
+
{ "col": 4, "color": 0 }
|
|
161
|
+
]}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"cannon": { "currentColor": 0, "nextColor": 1 },
|
|
165
|
+
"score": 0,
|
|
166
|
+
"moves": 0
|
|
167
|
+
},
|
|
168
|
+
"actions": [
|
|
169
|
+
{ "type": "shoot", "angle": 90 }
|
|
170
|
+
],
|
|
171
|
+
"expectedState": {
|
|
172
|
+
"poppedCount": { "min": 3 },
|
|
173
|
+
"orphanDropped": { "min": 1 },
|
|
174
|
+
"scoreGained": { "min": 500 },
|
|
175
|
+
"gameOver": false
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"id": "tc_lose_condition",
|
|
180
|
+
"description": "失败条件:泡泡推进后触碰炮台行",
|
|
181
|
+
"initialState": {
|
|
182
|
+
"board": {
|
|
183
|
+
"rows": [
|
|
184
|
+
{ "row": 10, "bubbles": [{ "col": 0, "color": 3 }, { "col": 1, "color": 3 }, { "col": 2, "color": 3 }] },
|
|
185
|
+
{ "row": 11, "bubbles": [{ "col": 0, "color": 4 }] }
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"cannon": { "currentColor": 5, "nextColor": 1 },
|
|
189
|
+
"score": 0,
|
|
190
|
+
"moves": 4,
|
|
191
|
+
"loseRow": 12
|
|
192
|
+
},
|
|
193
|
+
"actions": [
|
|
194
|
+
{ "type": "shoot", "angle": 90 }
|
|
195
|
+
],
|
|
196
|
+
"expectedState": {
|
|
197
|
+
"gameOver": true,
|
|
198
|
+
"win": false,
|
|
199
|
+
"reason": "bubbles_reach_cannon_line"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"id": "tc_win_board_cleared",
|
|
204
|
+
"description": "胜利条件:消除最后一组泡泡,棋盘清空",
|
|
205
|
+
"initialState": {
|
|
206
|
+
"board": {
|
|
207
|
+
"rows": [
|
|
208
|
+
{ "row": 0, "bubbles": [{ "col": 4, "color": 1 }, { "col": 5, "color": 1 }] }
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
"cannon": { "currentColor": 1, "nextColor": 2 },
|
|
212
|
+
"score": 0,
|
|
213
|
+
"moves": 0
|
|
214
|
+
},
|
|
215
|
+
"actions": [
|
|
216
|
+
{ "type": "shoot", "angle": 90 }
|
|
217
|
+
],
|
|
218
|
+
"expectedState": {
|
|
219
|
+
"boardEmpty": true,
|
|
220
|
+
"win": true,
|
|
221
|
+
"gameOver": true,
|
|
222
|
+
"poppedCount": 3
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* bubble_shooter.aigameplay — reducer 接口模板
|
|
3
|
+
*
|
|
4
|
+
* Agent 生成实际 reducer 时,必须导出以下函数。
|
|
5
|
+
* 此文件是接口约束模板,不是可执行代码。
|
|
6
|
+
*
|
|
7
|
+
* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
8
|
+
* ⚠️ 重要:渲染层(GameScene)不应直接调用 dispatch()
|
|
9
|
+
*
|
|
10
|
+
* dispatch() 是一体化接口,内部完成发射 + 吸附 + 消除 + 掉落后只返回最终状态,
|
|
11
|
+
* 中间过程(弹道轨迹、消除簇坐标、孤立泡泡掉落路径)全部丢失。
|
|
12
|
+
*
|
|
13
|
+
* 渲染层需要分步动画(泡泡飞行 → 吸附 → 消除爆炸 → 孤立掉落),
|
|
14
|
+
* 因此必须使用下方的「分步函数」逐步驱动,每步之间插入 Tween / 粒子动画。
|
|
15
|
+
*
|
|
16
|
+
* dispatch() 的用途:无头测试、AI 模拟、快速跳过动画等场景。
|
|
17
|
+
* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
// ─── 配置类型 ─────────────────────────────────────────────────────────────────
|
|
21
|
+
|
|
22
|
+
export type BubbleColor = number; // 0 ~ colorCount-1
|
|
23
|
+
|
|
24
|
+
export type BubbleShooterConfig = {
|
|
25
|
+
/** 棋盘列数,默认 9 */
|
|
26
|
+
cols: number;
|
|
27
|
+
/** 棋盘初始行数,默认 8 */
|
|
28
|
+
initialRows: number;
|
|
29
|
+
/** 泡泡颜色总数,默认 6 */
|
|
30
|
+
colorCount: number;
|
|
31
|
+
/** 触发消除的最小连通数,默认 3 */
|
|
32
|
+
minClusterSize: number;
|
|
33
|
+
/** 是否允许墙壁反弹,默认 true */
|
|
34
|
+
wallBounceEnabled: boolean;
|
|
35
|
+
/** 最大反弹次数,默认 3 */
|
|
36
|
+
maxBounces: number;
|
|
37
|
+
/** 每发射多少次后推进一排,默认 5 */
|
|
38
|
+
advanceRowAfterShots: number;
|
|
39
|
+
/** 失败行(泡泡到达此行时失败),默认 = initialRows + 2 */
|
|
40
|
+
loseRow: number;
|
|
41
|
+
/** 每消除一颗泡泡的得分,默认 100 */
|
|
42
|
+
scorePerPop: number;
|
|
43
|
+
/** 每掉落一颗孤立泡泡的得分,默认 200 */
|
|
44
|
+
scorePerDrop: number;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// ─── 动作类型 ─────────────────────────────────────────────────────────────────
|
|
48
|
+
|
|
49
|
+
export type BubbleShooterAction =
|
|
50
|
+
| { type: 'shoot'; angle: number } // angle: 度数,0=向右,90=向上,180=向左
|
|
51
|
+
| { type: 'reset' };
|
|
52
|
+
|
|
53
|
+
// ─── 状态类型 ─────────────────────────────────────────────────────────────────
|
|
54
|
+
|
|
55
|
+
export type GridPosition = {
|
|
56
|
+
row: number;
|
|
57
|
+
col: number;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** 棋盘:board[row][col],null 表示空格 */
|
|
61
|
+
export type BubbleBoard = (BubbleColor | null)[][];
|
|
62
|
+
|
|
63
|
+
export type CannonState = {
|
|
64
|
+
currentColor: BubbleColor;
|
|
65
|
+
nextColor: BubbleColor;
|
|
66
|
+
position: { x: number; y: number };
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export type BubbleShooterState = {
|
|
70
|
+
board: BubbleBoard;
|
|
71
|
+
cannon: CannonState;
|
|
72
|
+
score: number;
|
|
73
|
+
/** 已发射次数 */
|
|
74
|
+
moves: number;
|
|
75
|
+
gameOver: boolean;
|
|
76
|
+
win: boolean;
|
|
77
|
+
loseReason?: 'bubbles_reach_cannon_line';
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
// ─── 分步操作返回类型 ─────────────────────────────────────────────────────────
|
|
81
|
+
|
|
82
|
+
/** 弹道轨迹点(含反弹折射点) */
|
|
83
|
+
export type TrajectoryPoint = {
|
|
84
|
+
x: number;
|
|
85
|
+
y: number;
|
|
86
|
+
/** 是否为墙壁反弹点 */
|
|
87
|
+
isBounce: boolean;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/** 弹道计算结果 */
|
|
91
|
+
export type TrajectoryResult = {
|
|
92
|
+
/** 轨迹关键点列表(起点 → 反弹点1 → ... → 落点) */
|
|
93
|
+
points: TrajectoryPoint[];
|
|
94
|
+
/** 最终落点网格坐标(吸附前的世界坐标) */
|
|
95
|
+
landingPosition: { x: number; y: number };
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
/** 消除簇信息 */
|
|
99
|
+
export type ClusterInfo = {
|
|
100
|
+
/** 连通的同色格子坐标列表 */
|
|
101
|
+
cells: GridPosition[];
|
|
102
|
+
/** 颜色 */
|
|
103
|
+
color: BubbleColor;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/** popCluster 结果 */
|
|
107
|
+
export type PopResult = {
|
|
108
|
+
newState: BubbleShooterState;
|
|
109
|
+
/** 被消除的格子列表 */
|
|
110
|
+
popped: GridPosition[];
|
|
111
|
+
/** 本次消除得分 */
|
|
112
|
+
scoreGained: number;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/** dropOrphans 结果 */
|
|
116
|
+
export type DropResult = {
|
|
117
|
+
finalState: BubbleShooterState;
|
|
118
|
+
/** 掉落的孤立格子列表 */
|
|
119
|
+
dropped: GridPosition[];
|
|
120
|
+
/** 本次掉落得分 */
|
|
121
|
+
scoreGained: number;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
125
|
+
// 必须导出的函数
|
|
126
|
+
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
127
|
+
|
|
128
|
+
// ─── 初始化 ──────────────────────────────────────────────────────────────────
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* init:根据配置初始化游戏状态,随机生成初始泡泡排列
|
|
132
|
+
*/
|
|
133
|
+
export declare function init(config: BubbleShooterConfig): BubbleShooterState;
|
|
134
|
+
|
|
135
|
+
// ─── 一体化接口(测试/AI 模拟用) ───────────────────────────────────────────
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* dispatch:接收动作,返回新状态(纯函数,不得修改原 state)
|
|
139
|
+
* - shoot:发射泡泡,自动执行吸附/消除/掉落/推进一步(一步到位)
|
|
140
|
+
* - reset:重置到初始状态
|
|
141
|
+
*
|
|
142
|
+
* ⚠️ 仅用于无头测试和 AI 模拟。渲染层请使用下方分步函数。
|
|
143
|
+
*/
|
|
144
|
+
export declare function dispatch(state: BubbleShooterState, action: BubbleShooterAction): BubbleShooterState;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* getState:返回当前状态快照
|
|
148
|
+
*/
|
|
149
|
+
export declare function getState(state: BubbleShooterState): BubbleShooterState;
|
|
150
|
+
|
|
151
|
+
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
152
|
+
// 分步函数(渲染层/场景层必须使用这些函数驱动动画)
|
|
153
|
+
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* calculateTrajectory:根据瞄准角度计算泡泡弹道轨迹
|
|
157
|
+
* 返回包含反弹折射点的轨迹关键点列表及最终落点世界坐标
|
|
158
|
+
*
|
|
159
|
+
* 场景层根据 TrajectoryResult.points 绘制弹道预览线,
|
|
160
|
+
* 并驱动泡泡精灵沿轨迹飞行动画
|
|
161
|
+
*/
|
|
162
|
+
export declare function calculateTrajectory(
|
|
163
|
+
state: BubbleShooterState,
|
|
164
|
+
angle: number,
|
|
165
|
+
): TrajectoryResult;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* snapToGrid:将世界坐标映射到最近的空网格格子
|
|
169
|
+
* 返回目标格子的行列坐标
|
|
170
|
+
*
|
|
171
|
+
* 场景层在泡泡飞行动画结束后调用,确定最终落点
|
|
172
|
+
*/
|
|
173
|
+
export declare function snapToGrid(
|
|
174
|
+
state: BubbleShooterState,
|
|
175
|
+
position: { x: number; y: number },
|
|
176
|
+
): GridPosition;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* findCluster:从指定格子出发,BFS 查找同色连通区域
|
|
180
|
+
* 返回包含起始格子的完整连通簇信息
|
|
181
|
+
*
|
|
182
|
+
* 场景层在泡泡落定后调用,size >= minClusterSize 则触发消除
|
|
183
|
+
*/
|
|
184
|
+
export declare function findCluster(
|
|
185
|
+
board: BubbleBoard,
|
|
186
|
+
col: number,
|
|
187
|
+
row: number,
|
|
188
|
+
): ClusterInfo;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* popCluster:消除指定簇,更新棋盘和得分
|
|
192
|
+
* 返回消除结果(含更新后的状态和被消除格子列表)
|
|
193
|
+
*
|
|
194
|
+
* 场景层根据 PopResult.popped 播放各泡泡爆炸/缩小消失动画
|
|
195
|
+
*/
|
|
196
|
+
export declare function popCluster(
|
|
197
|
+
state: BubbleShooterState,
|
|
198
|
+
cluster: ClusterInfo,
|
|
199
|
+
): PopResult;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* findOrphans:从顶部行出发做 BFS,返回所有不可达(孤立)泡泡的坐标列表
|
|
203
|
+
* 孤立泡泡 = 无法通过连通路径到达第 0 行的泡泡
|
|
204
|
+
*
|
|
205
|
+
* 场景层在 popCluster 后调用,对孤立泡泡播放悬空抖动 → 掉落动画
|
|
206
|
+
*/
|
|
207
|
+
export declare function findOrphans(board: BubbleBoard): GridPosition[];
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* dropOrphans:从棋盘移除孤立泡泡,更新得分
|
|
211
|
+
* 返回掉落结果(含更新后的状态和掉落格子列表)
|
|
212
|
+
*
|
|
213
|
+
* 场景层根据 DropResult.dropped 播放泡泡掉落消失动画
|
|
214
|
+
*/
|
|
215
|
+
export declare function dropOrphans(
|
|
216
|
+
state: BubbleShooterState,
|
|
217
|
+
orphans: GridPosition[],
|
|
218
|
+
): DropResult;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* calculateScore:根据消除数量和掉落数量计算得分
|
|
222
|
+
* score = popped * scorePerPop + dropped * scorePerDrop
|
|
223
|
+
*/
|
|
224
|
+
export declare function calculateScore(
|
|
225
|
+
popped: number,
|
|
226
|
+
dropped: number,
|
|
227
|
+
config: Pick<BubbleShooterConfig, 'scorePerPop' | 'scorePerDrop'>,
|
|
228
|
+
): number;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: button_click_sfx.aiaudio
|
|
3
|
+
description: UI 按钮(设置/下载等)点击时的干净点击音效。
|
|
4
|
+
triggers: 需要生成 UI 按钮通用点击音效时触发。
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 按钮点击音效
|
|
8
|
+
|
|
9
|
+
## Recipe
|
|
10
|
+
|
|
11
|
+
生成提示词见 manifest.json generation.prompt。
|
|
12
|
+
- model: Google Lyria 3(平台默认,见 manifest.json generation.platformSkill)
|
|
13
|
+
- format: mp3
|
|
14
|
+
- loop: false
|
|
15
|
+
|
|
16
|
+
## Result
|
|
17
|
+
|
|
18
|
+
- 产物文件:`button_click.mp3`
|
|
19
|
+
- 在 Preloader.ts 中作为 `sfxButtonClick` key 加载
|
|
20
|
+
|
|
21
|
+
## Binding
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"role": "sfxButtonClick",
|
|
26
|
+
"target": "assets/sounds/button_click.mp3",
|
|
27
|
+
"type": "audio-asset-reference"
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## 生成方式
|
|
32
|
+
|
|
33
|
+
Platform Skill: `playcraft-audio-generation`
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# 1. 生成 SFX(--prompt 必须英文)
|
|
37
|
+
playcraft tools generate-sfx \
|
|
38
|
+
--prompt "clean button tap sound for UI buttons in mobile game" \
|
|
39
|
+
--duration 1 \
|
|
40
|
+
--output ta-workspace/raw_sfx.mp3
|
|
41
|
+
|
|
42
|
+
# 2. 归一化音量
|
|
43
|
+
playcraft audio normalize --input ta-workspace/raw_sfx.mp3 --output ta-workspace/raw_sfx.mp3 --target-loudness -16
|
|
44
|
+
|
|
45
|
+
# 3. 压缩(SFX 目标 ≤15KB)
|
|
46
|
+
playcraft audio compress --input ta-workspace/raw_sfx.mp3 --output ta-workspace/button_click.mp3 --target-size 15KB
|
|
47
|
+
|
|
48
|
+
# 4. 将产物写入 sandbox 对应路径(见 binding.target)
|
|
49
|
+
```
|
|
50
|
+
## Skill Definition
|
|
51
|
+
|
|
52
|
+
```yaml
|
|
53
|
+
tools:
|
|
54
|
+
- generate_audio
|
|
55
|
+
inputs:
|
|
56
|
+
- prompt: see manifest.json
|
|
57
|
+
outputs:
|
|
58
|
+
- audio: button_click.mp3
|
|
59
|
+
```
|