# /catchup Command

Read all changed files in the current git branch to catch up on context.

## Purpose

When the user types `/catchup`, read all relevant source files that have changed in the current git branch compared to the master branch. This helps Claude understand what work has been done and provide informed assistance.

## Steps

1. **Get the current branch**:
   ```bash
   git branch --show-current
   ```

2. **Get all changed files** compared to master:
   ```bash
   git diff --name-only master
   git ls-files --others --exclude-standard
   ```

3. **Filter to relevant source files only**:
   - **Include**: `.php` files in `userfrosting/src/`, `tests/`, `routes/`, `docs/`
   - **Include**: `.md` documentation files in root, `docs/`, `nimbalyst-local/`
   - **Include**: `.js` files in `public_html/js/workspace/modules/`, `public_html/js/admin/`
   - **Include**: `.css` files in `public_html/css/admin/`
   - **Include**: `.json` migration files in `userfrosting/migrations/input/`
   - **Include**: `.html` Twig templates in `userfrosting/templates/`
   - **Exclude**: `vendor/`, `node_modules/`, `public_html/_gsdata_/`, `public_html/fontawesome/`, `public_html/wiki/`, `.min.js`, `.min.css`, `dist/`

4. **Read all relevant files** in parallel using the Read tool

5. **Provide a summary** organized by:
   - New files added
   - Modified files
   - Key changes by feature/module
   - Tests that were added/modified

## Example Output

```
## Catchup Summary for feature/025-schedule-templates-overlays

### New Files (12)
- userfrosting/src/BuyerKiosk/Scheduling/Models/Template.php
- userfrosting/src/BuyerKiosk/Scheduling/Services/TemplateService.php
- ...

### Modified Files (4)
- userfrosting/routes/scheduling.php
- userfrosting/src/BuyerKiosk/Scheduling/Models/Shift.php
- ...

### Key Changes by Module
**Scheduling Templates**: Added template and overlay management...
**Shift Model**: Added recurrence support...
...
```

## Notes

- Always read files in parallel for speed
- Group changes logically by module/feature
- Highlight architectural changes, not just syntax
- Note any test coverage changes
