add-exercises
π―Skillfrom alexanderop/workouttracker
Enables adding new exercises to the workout tracker database by specifying exercise details like name, equipment, muscle group, type, and tracking metrics.
Installation
npx skills add https://github.com/alexanderop/workouttracker --skill add-exercisesSkill Details
Add new exercises to the workout tracker database. Use when asked to add exercises, expand the exercise library, or check what exercises exist. Triggers include "add exercise", "new exercise", "exercise database", "what exercises", "missing exercises", "expand exercises".
Overview
# Adding Exercises to the Workout Tracker
File Location
All exercises are defined in: src/data/popularExercises.ts
File Structure
The file is organized by MUSCLE GROUP β EQUIPMENT TYPE, with exercises sorted alphabetically within each section:
```
CHEST
βββ Barbell (1)
βββ Dumbbell (1)
βββ Cable (2)
βββ Machine (5)
βββ Bodyweight (7)
BACK
βββ ...
```
The file header contains a summary showing counts for each muscle/equipment combination.
Exercise Schema
```typescript
{
name: string // Unique name (duplicates throw runtime error)
equipment: Equipment
muscle: Muscle
type: ExerciseType
metrics: Metrics
}
```
Valid Types
| Field | Valid Values |
|-------|-------------|
| equipment | 'barbell', 'dumbbell', 'machine', 'cable', 'bodyweight', 'kettlebell', 'band', 'ez-bar', 'hex-bar', 'club', 'battle-rope' |
| muscle | 'chest', 'back', 'legs', 'shoulders', 'arms', 'core' |
| type | 'compound', 'isolation', 'stability', 'cardio', 'isometric' |
| metrics | 'weight-reps', 'reps-only', 'duration', 'distance-duration', 'weight-distance' |
Metrics Guidelines
| Equipment/Type | Typical Metrics |
|---------------|-----------------|
| Weighted exercises (barbell, dumbbell, machine, cable, kettlebell) | 'weight-reps' |
| Bodyweight strength | 'reps-only' |
| Holds/planks | 'duration' |
| Cardio (running, rowing) | 'distance-duration' |
Type Guidelines
| Type | Description | Examples |
|------|-------------|----------|
| compound | Multi-joint movements | Squats, Deadlifts, Bench Press |
| isolation | Single-joint movements | Bicep Curls, Leg Extensions |
| stability | Dynamic balance/core exercises | Bird Dogs, Single-Leg Deadlift |
| cardio | High heart rate | Burpees, Jump Rope |
| isometric | Static holds under tension | Wall Sit, Dead Hang, L-Sit Hold |
How to Add Exercises
Step 1: Check What Exists
Read the file header summary to see current counts:
```
- - LEGS (71): barbell: 8, dumbbell: 9, kettlebell: 3, cable: 3, machine: 26, bodyweight: 22
```
Or search for specific exercises:
```bash
grep -i "squat" src/data/popularExercises.ts
```
Step 2: Find the Right Section
Exercises are organized by muscle group, then equipment. Find the correct section:
```typescript
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// LEGS
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// --- Legs: Barbell (8) ---
{ name: 'Barbell Calf Raises', equipment: 'barbell', muscle: 'legs', type: 'isolation', metrics: 'weight-reps' },
```
Step 3: Add in Alphabetical Order
Insert the new exercise in the correct alphabetical position within its section:
```typescript
// --- Legs: Barbell (8) --- β Update count to (9)
{ name: 'Barbell Calf Raises', equipment: 'barbell', muscle: 'legs', type: 'isolation', metrics: 'weight-reps' },
{ name: 'Barbell Good Mornings', equipment: 'barbell', muscle: 'legs', type: 'compound', metrics: 'weight-reps' },
{ name: 'Barbell Hack Squat', equipment: 'barbell', muscle: 'legs', type: 'compound', metrics: 'weight-reps' }, β NEW
{ name: 'Barbell Hip Thrust', equipment: 'barbell', muscle: 'legs', type: 'compound', metrics: 'weight-reps' },
```
Step 4: Update Counts
- Update the section comment count:
// --- Legs: Barbell (8) ---β(9) - Update the file header summary
Step 5: Verify
Run type-check to ensure no duplicates or type errors:
```bash
pnpm type-check
```
The file has runtime duplicate detection - if you add a duplicate name, it will throw an error immediately.
Common Mistakes to Avoid
- Duplicate names: Every exercise name must be unique across ALL muscles/equipment
- Wrong section: Always add to the correct muscle AND equipment section
- Not alphabetical: Keep exercises sorted A-Z within each section
- Forgetting counts: Update both the section count and header summary
- Wrong metrics: Use
'weight-reps'for weighted,'reps-only'for bodyweight
Example: Adding Multiple Exercises
When adding multiple exercises at once:
- Group them by muscle β equipment
- Add each to its correct section alphabetically
- Update all affected counts
- Run
pnpm type-checkonce at the end
More from this repository7
Tracks and automatically advances kettlebell swing progressions through reps, time, and weight phases using an EMOM timer.
Helps product owners and business analysts streamline product planning by creating, refining, and prioritizing user stories, PRDs, backlogs, and roadmaps.
vue-composable-testing skill from alexanderop/workouttracker
Generates high-quality Vue 3 composables by following established patterns and best practices for creating reusable Composition API logic.
Enables comprehensive Vue 3 integration testing using Vitest Browser Mode and Page Objects for verifying complex user flows and multi-component interactions.
Provides comprehensive Vitest mocking strategies for creating test doubles, replacing dependencies, and verifying interactions in JavaScript/TypeScript tests.
Enhance mobile app accessibility by generating clear, context-aware notifications with screen reader compatibility and adaptive formatting.