opencode/skills/game-development/flame/flame-core/SKILL.md
Flame Engine core fundamentals - components, input, collision, camera, animation, scenes
npx skillsauth add mbuyco/dotfiles flame-coreInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Flame Engine 核心基礎,涵蓋組件系統、輸入處理、碰撞檢測、相機、動畫與場景管理。
flutter create my_game && cd my_game
flutter pub add flame
flutter pub add flame_audio # Optional
flutter pub add flame_tiled # Optional
import 'package:flame/game.dart';
import 'package:flutter/material.dart';
void main() => runApp(GameWidget(game: MyGame()));
class MyGame extends FlameGame with HasCollisionDetection {
@override
Future<void> onLoad() async {
camera.viewfinder.anchor = Anchor.topLeft;
}
}
| Topic | File | Description |
|-------|------|-------------|
| Components | references/components.md | 組件生命週期、類型、最佳實踐 |
| Input | references/input.md | 觸控、鍵盤、搖桿輸入處理 |
| Collision | references/collision.md | 碰撞檢測、Hitbox 類型 |
| Camera | references/camera.md | 相機設置、跟隨、HUD |
| Animation | references/animation.md | 精靈動畫、Effects 系統 |
| Scenes | references/scenes.md | RouterComponent、Overlays、UI |
| Audio | references/audio.md | 音效、背景音樂、AudioPool |
| Particles | references/particles.md | 粒子系統、特效、爆炸效果 |
| Performance | references/performance.md | 效能優化、最佳實踐、常見問題 |
| Debug | references/debug.md | 除錯模式、日誌、效能監控 |
需要了解組件系統? → Read references/components.md
需要處理輸入? → Read references/input.md
需要碰撞檢測? → Read references/collision.md
需要相機設置? → Read references/camera.md
需要動畫效果? → Read references/animation.md
需要場景管理/UI? → Read references/scenes.md
需要音效/音樂? → Read references/audio.md
需要粒子特效? → Read references/particles.md
需要效能優化? → Read references/performance.md
需要除錯/日誌? → Read references/debug.md
| Type | Use Case |
|------|----------|
| Component | Logic only |
| PositionComponent | Has position/size |
| SpriteComponent | Static image |
| SpriteAnimationComponent | Animated sprite |
| SpriteAnimationGroupComponent | Multiple states |
flame-systems - 14 個遊戲系統(任務、對話、背包等)flame-templates - 遊戲類型模板(RPG、平台、Roguelike)development
# SKILL.md ## Name VimReaper ## Description VimReaper is a dead‑code cleanup skill that systematically scans a codebase to identify and safely remove unused code—dead functions, unreachable blocks, obsolete variables, redundant imports, and leftover comments—while preserving the intended logic and test suite. As its name suggests, VimReaper wields the **vim editor** as its primary scalpel: code removal is performed using vim’s precise ex commands, search patterns, and scripted editing modes, m
development
Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.
development
Find deepening opportunities in a codebase, informed by the domain language in CONTEXT.md and the decisions in docs/adr/. Use when the user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more testable and AI-navigable.
testing
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".