Skip to content
Back to skills

Add Exercise

ASecurity

Add a new exercise to vibereps. Use when the user wants to create a new exercise type with pose detection. Handles creating the JSON config file and detection logic.

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 2, 2026
ai-agentsgobashtestingapi

Works with

  • api

Security analysis

A100/100

Scanned June 2, 2026

npx -y skills add majiayu000/claude-skill-registry --skill add-exercise --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Exercise?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Add Exercise
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-add-exercise/badge)](https://www.skillsdirectory.com/skills/majiayu000-add-exercise)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: add-exercise
description: Add a new exercise to vibereps. Use when the user wants to create a new exercise type with pose detection. Handles creating the JSON config file and detection logic.
allowed-tools: Read, Write, Glob, Grep
---

# Add New Exercise

## Instructions

When adding a new exercise to vibereps:

1. **Read the template** at `exercises/_template.json` for the JSON structure
2. **Choose a detection type** based on the exercise motion:
   - `angle` - Joint angle changes (squats, pushups)
   - `height_baseline` - Vertical movement from baseline (calf raises)
   - `height_relative` - Position relative to reference point (jumping jacks)
   - `tilt` - Torso lean (side stretches)
   - `distance` - Body parts approaching each other (standing crunches)
   - `width_ratio` - Shoulder/hip width ratio (torso twists)
   - `quadrant_tracking` - Circular arm motion (arm circles)

3. **Create the JSON config** in `exercises/{exercise_name}.json`

4. **Test detection** by running the tracker

## MediaPipe Landmark IDs

Key landmarks for detection:
- Shoulders: 11 (left), 12 (right)
- Elbows: 13 (left), 14 (right)
- Wrists: 15 (left), 16 (right)
- Hips: 23 (left), 24 (right)
- Knees: 25 (left), 26 (right)
- Ankles: 27 (left), 28 (right)

## Example: Angle-based exercise

```json
{
  "id": "squats",
  "name": "Squats",
  "description": "Strengthens legs",
  "category": "strength",
  "reps": { "normal": 10, "quick": 5 },
  "detection": {
    "type": "angle",
    "landmarks": {
      "joint": [23, 25, 27],
      "joint_alt": [24, 26, 28]
    },
    "thresholds": { "down": 120, "up": 150 }
  },
  "instructions": {
    "ready": "Squat down below {down}°",
    "down": "Good! Now stand up"
  }
}
```

## Testing

Run the tracker to test:
```bash
./exercise_tracker.py user_prompt_submit '{}'
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.