chore: sync .cursor/ directory with latest agents, commands, and skills

- Sync 13 agent files with updated descriptions and configurations
- Sync 23 command files with latest YAML frontmatter and content
- Sync 7 skill SKILL.md files with proper YAML frontmatter quoting
- Copy missing cpp-testing and security-scan skills to .cursor/
- Fix integration tests: send matching input to blocking hook test and
  expect correct exit code 2 (was 1)
This commit is contained in:
Affaan Mustafa
2026-02-12 13:45:13 -08:00
parent 7e852a5dc5
commit a756602523
45 changed files with 2271 additions and 276 deletions

View File

@@ -36,7 +36,7 @@ Auto-analyze project and generate PM2 service commands.
project/
├── ecosystem.config.cjs # PM2 config
├── {backend}/start.cjs # Python wrapper (if applicable)
└── .cursor/
└── .claude/
├── commands/
│ ├── pm2-all.md # Start all + monit
│ ├── pm2-all-stop.md # Stop all
@@ -107,68 +107,68 @@ proc.on('close', (code) => process.exit(code));
## Command File Templates (Minimal Content)
### pm2-all.md (Start all + monit)
```markdown
````markdown
Start all services and open PM2 monitor.
\`\`\`bash
```bash
cd "{PROJECT_ROOT}" && pm2 start ecosystem.config.cjs && start wt.exe -d "{PROJECT_ROOT}" pwsh -NoExit -c "pm2 monit"
\`\`\`
```
````
### pm2-all-stop.md
```markdown
````markdown
Stop all services.
\`\`\`bash
```bash
cd "{PROJECT_ROOT}" && pm2 stop all
\`\`\`
```
````
### pm2-all-restart.md
```markdown
````markdown
Restart all services.
\`\`\`bash
```bash
cd "{PROJECT_ROOT}" && pm2 restart all
\`\`\`
```
````
### pm2-{port}.md (Start single + logs)
```markdown
````markdown
Start {name} ({port}) and open logs.
\`\`\`bash
```bash
cd "{PROJECT_ROOT}" && pm2 start ecosystem.config.cjs --only {name} && start wt.exe -d "{PROJECT_ROOT}" pwsh -NoExit -c "pm2 logs {name}"
\`\`\`
```
````
### pm2-{port}-stop.md
```markdown
````markdown
Stop {name} ({port}).
\`\`\`bash
```bash
cd "{PROJECT_ROOT}" && pm2 stop {name}
\`\`\`
```
````
### pm2-{port}-restart.md
```markdown
````markdown
Restart {name} ({port}).
\`\`\`bash
```bash
cd "{PROJECT_ROOT}" && pm2 restart {name}
\`\`\`
```
````
### pm2-logs.md
```markdown
````markdown
View all PM2 logs.
\`\`\`bash
```bash
cd "{PROJECT_ROOT}" && pm2 logs
\`\`\`
```
````
### pm2-status.md
```markdown
````markdown
View PM2 status.
\`\`\`bash
```bash
cd "{PROJECT_ROOT}" && pm2 status
\`\`\`
```
````
### PowerShell Scripts (pm2-logs-{port}.ps1)
```powershell
@@ -202,8 +202,8 @@ Based on `$ARGUMENTS`, execute init:
1. Scan project for services
2. Generate `ecosystem.config.cjs`
3. Generate `{backend}/start.cjs` for Python services (if applicable)
4. Generate command files in `.cursor/commands/`
5. Generate script files in `.cursor/scripts/`
4. Generate command files in `.claude/commands/`
5. Generate script files in `.claude/scripts/`
6. **Update project CLAUDE.md** with PM2 info (see below)
7. **Display completion summary** with terminal commands
@@ -213,7 +213,7 @@ Based on `$ARGUMENTS`, execute init:
After generating files, append PM2 section to project's `CLAUDE.md` (create if not exists):
```markdown
````markdown
## PM2 Services
| Port | Name | Type |
@@ -230,7 +230,7 @@ pm2 logs / pm2 status / pm2 monit
pm2 save # Save process list
pm2 resurrect # Restore saved list
```
```
````
**Rules for CLAUDE.md update:**
- If PM2 section exists, replace it
@@ -247,6 +247,7 @@ After all files generated, output:
## PM2 Init Complete
**Services:**
| Port | Name | Type |
|------|------|------|
| {port} | {name} | {type} |
@@ -254,10 +255,10 @@ After all files generated, output:
**Claude Commands:** /pm2-all, /pm2-all-stop, /pm2-{port}, /pm2-{port}-stop, /pm2-logs, /pm2-status
**Terminal Commands:**
# First time (with config file)
## First time (with config file)
pm2 start ecosystem.config.cjs && pm2 save
# After first time (simplified)
## After first time (simplified)
pm2 start all # Start all
pm2 stop all # Stop all
pm2 restart all # Restart all