For Cursor Claude
This page is a practical hub for AI-assisted development in this repository.
Use it as a fast checklist before implementing, debugging, or documenting.
- Wklej do czatu treść z Context for AI lub wskaż plik
AGENTS.mdw katalogu głównym repozytorium. - Zainstaluj skill:
.cursor/skills/veltokit/SKILL.md(już w repo) albo pobierz plik.mdponiżej. - Proś AI o czytanie
VeltoKit/GameInput.swiftiVeltoKit/MotionSDK.swift— to jest kontrakt API, nie tylko strony www.
Wyszukiwarka dokumentacji: pole Search w prawym górnym rogu paska (⌘K / Ctrl+K).
Pobranie skilli Cursor / Claude: sekcja Download AI skills poniżej (przyciski Download), albo menu AI Skills w navbarze → ↓ Download Cursor (.md) / ↓ Download Claude (.md).
W klonie repo: website/static/skills/cursor-skill.md i claude-skill.md.
Docs search
Use the Search field in the top navbar (keyboard: ⌘K on macOS, Ctrl+K on Windows/Linux). It indexes all documentation pages and the homepage.
Download AI skills
One-file prompts for Cursor or Claude. In a clone they are at website/static/skills/. Use the docs Search box in the navbar (⌘K / Ctrl+K) to find SDK topics quickly.
PL: Wyszukiwarka — pole Search w prawym górnym rogu (`⌘K` / `Ctrl+K`). Pobranie skilli — przyciski poniżej lub menu AI Skills → ↓ Download Cursor (.md) / ↓ Download Claude (.md).
Direct links (copy)
- On this site: https://koderhack.github.io/veltokit/skills/cursor-skill.md
- On this site: https://koderhack.github.io/veltokit/skills/claude-skill.md
- GitHub raw: https://raw.githubusercontent.com/koderhack/veltokit/main/website/static/skills/cursor-skill.md
- GitHub raw: https://raw.githubusercontent.com/koderhack/veltokit/main/website/static/skills/claude-skill.md
Best for understanding the repo: open AGENTS.md at the repo root (already in clone). Cursor: skill is at .cursor/skills/veltokit/SKILL.md or paste downloaded file into chat. Claude: attach AGENTS.md or add Project instructions from the downloaded file.
Fast orientation
- AI ground truth: Context for AI · repo root
AGENTS.md - SDK core:
VeltoKit/ - Sample app:
app/ - Website docs:
website/docs/ - Triki UI navigation layer:
app/UI/TrikiUI/ - Input adapter (
MotionInputProvideralias):app/Platform/TrikiInputAdapter.swift
Primary integration flow
BLE packet -> MotionSDK / MotionEngine -> GameInput -> game update loop -> optional Triki UI layer
Quick references:
- SDK overview: VeltoKit SDK
- Motion facade API: MotionSDK API
- Output contract: GameInput
- UI navigation integration: Triki UI navigation
- End-to-end architecture: Architecture
High-value files (read first)
| Goal | File |
|---|---|
| Understand main SDK facade | VeltoKit/MotionSDK.swift |
| Check frame processing logic | VeltoKit/MotionEngine.swift |
| Validate input shape used by games | VeltoKit/GameInput.swift |
| Debug BLE ingress/parsing | VeltoKit/BLE/BLEManager.swift, VeltoKit/BLEGyroParser.swift |
| Understand Triki screen lifecycle | app/UI/TrikiUI/TrikiUIComponents.swift |
| Understand focus/hold activation | app/UI/TrikiUI/TrikiUINavigator.swift, TrikiFocusGate.swift, TrikiHoldTracker.swift |
Recommended Cursor workflow
- Locate scope first (SDK core vs app integration vs docs).
- Read API docs + implementation before editing.
- Keep behavior stable: avoid renaming or logic rewrites unless requested.
- When changing public/internal APIs, update Swift
///docs immediately. - When changing user-visible behavior, update docs in
website/docs/. - Validate quickly: run lints/tests relevant to touched area.
Ready-to-use prompt snippets
Add API docs only
Document all public/internal Swift APIs in the changed files using /// comments.
Do not change logic, names, or behavior. Include parameters, returns, side effects, and concise examples where useful.
Trace Triki UI issue
Investigate Triki UI navigation: trikiUIScreen lifecycle, focus mapping, hold tracking, and activation callback flow.
Identify where focus is computed and where activation is fired, then propose minimal fixes.
Improve docs website after SDK changes
Sync website docs with current SDK behavior. Update sdk/overview, sdk/motion-sdk, sdk/game-input, sdk/triki-ui, and affected game examples.
Prioritize developer-facing clarity and actionable examples.
Practical rules for this repo
- Keep docs concise and technical; avoid marketing wording.
- Prefer explicit field names (
posX,primaryAction,shotTriggered) in examples. - In game examples, always state
MotionModeand keyGameInputfields. - For Triki UI docs, always include lifecycle and side effects (
isActive,itemCount, HUD visibility).