Skip to main content

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.

Jeśli AI „nie rozumie” dokumentacji
  1. Wklej do czatu treść z Context for AI lub wskaż plik AGENTS.md w katalogu głównym repozytorium.
  2. Zainstaluj skill: .cursor/skills/veltokit/SKILL.md (już w repo) albo pobierz plik .md poniżej.
  3. Proś AI o czytanie VeltoKit/GameInput.swift i VeltoKit/MotionSDK.swift — to jest kontrakt API, nie tylko strony www.
Po polsku — gdzie co jest

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.

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)

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 (MotionInputProvider alias): app/Platform/TrikiInputAdapter.swift

Primary integration flow​

BLE packet -> MotionSDK / MotionEngine -> GameInput -> game update loop -> optional Triki UI layer

Quick references:

High-value files (read first)​

GoalFile
Understand main SDK facadeVeltoKit/MotionSDK.swift
Check frame processing logicVeltoKit/MotionEngine.swift
Validate input shape used by gamesVeltoKit/GameInput.swift
Debug BLE ingress/parsingVeltoKit/BLE/BLEManager.swift, VeltoKit/BLEGyroParser.swift
Understand Triki screen lifecycleapp/UI/TrikiUI/TrikiUIComponents.swift
Understand focus/hold activationapp/UI/TrikiUI/TrikiUINavigator.swift, TrikiFocusGate.swift, TrikiHoldTracker.swift
  1. Locate scope first (SDK core vs app integration vs docs).
  2. Read API docs + implementation before editing.
  3. Keep behavior stable: avoid renaming or logic rewrites unless requested.
  4. When changing public/internal APIs, update Swift /// docs immediately.
  5. When changing user-visible behavior, update docs in website/docs/.
  6. 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 MotionMode and key GameInput fields.
  • For Triki UI docs, always include lifecycle and side effects (isActive, itemCount, HUD visibility).

Next useful pages​