Skip to content

Latest commit

 

History

History
94 lines (69 loc) · 3.96 KB

File metadata and controls

94 lines (69 loc) · 3.96 KB
title Context for AI
description Ground truth for Cursor, Claude, and other assistants — repo map, GameInput contract, doc index

import SkillDownloads from '@site/src/components/SkillDownloads';

Context for AI

If an assistant misunderstands this project, give it this page or the repo root file AGENTS.md (same facts, optimized for tools that auto-read the repository).

:::tip Szybko po polsku VeltoKit = biblioteka Swift (VeltoKit/). gametriki = przykładowa aplikacja iOS (app/). Gry czytają tylko GameInput, nie surowe BLE. Szukaj w docs: Search (⌘K / Ctrl+K). Skill do Cursor/Claude: For Cursor Claude. :::

Copy-paste prompt for any AI

You are working on the VeltoKit repository (gametriki monorepo).
Read AGENTS.md at the repo root before answering or editing.
VeltoKit/ is the Swift SDK (MotionSDK → GameInput). app/ is the sample iOS app.
Games must use GameInput only. Triki UI is app-only navigation, not part of the SDK target.
When unsure, open VeltoKit/MotionSDK.swift, VeltoKit/GameInput.swift, and the matching file in app/Games/.
Human documentation source lives in website/docs/ (English).

One-sentence summary

VeltoKit converts BLE cap IMU + button packets into GameInput each frame; gametriki is the reference app that demonstrates Pong, Dart, Bowling, and Quiz.

Architecture (read in this order)

  1. Architecture — layers and frame pipeline
  2. GameInput — field contract (what games use)
  3. MotionSDK APIconnect, pollInput, enqueueBLE
  4. Module map — file-level map
flowchart LR
  BLE[BLE bytes]
  SDK[MotionSDK]
  GI[GameInput]
  G[app/Games]

  BLE --> SDK --> GI --> G
Loading

Repo paths (not website URLs)

Path Role
VeltoKit/MotionSDK.swift Public SDK entry
VeltoKit/GameInput.swift Output struct — ground truth for game code
app/Platform/TrikiInputAdapter.swift Sample adapter + calibration
app/Engine/GameManager.swift Sets MotionMode per game
app/Games/*.swift Integration examples
website/docs/ Documentation you are reading now
AGENTS.md (repo root) Machine-oriented duplicate of this page

MotionMode cheat sheet

Mode Sample game Key GameInput fields
.paddle Pong, Quiz posX, primaryAction
.pointer Dart posX, posY, shotTriggered
.gesture Bowling shotTriggered, throwPower

Details: examples · configuration.

Task → which doc / file

You want to… Open
Add VeltoKit to a new app Quick Start, installation
Understand BLE bytes BLE integration, VeltoKit/BLE/
Fix throw / gesture Gestures, VeltoKit/GestureDetector.swift
Fix cap menus (focus, hold) Triki UI, app/UI/TrikiUI/
Calibrate + simple Triki menu Triki UI — calibration & simple menu, QuizFlowView.swift
Match Pong/Dart/Bowling/Quiz website/docs/examples/* + app/Games/

Mistakes assistants often make

  • Calling the sample app framework “gametriki SDK” — the SDK name is VeltoKit only.
  • Inventing GameInput fields that do not exist in VeltoKit/GameInput.swift.
  • Putting CoreBluetooth code inside app/Games/ (belongs in SDK or Platform).
  • Ignoring MotionMode when changing posX / throw behavior.

Downloadable skills {#download-ai-skills}

Also install from clone: .cursor/skills/veltokit/SKILL.md (Cursor) or paste into Claude Project instructions.

For Cursor Claude hub · Skill for Cursor · Skill for Claude