self-improver
Meta-skill that lets the bot audit, test, and auto-improve its own ClawBee skills. Analyzes SKILL.md files, runs test commands, detects failures, and rewrites broken steps. Triggers on: /improve skills, /skills audit, /skills test, /self-improve, /skills fix, 'improve your skills', 'check your skills', 'what skills are broken'.
What this skill does
# Self-Improver
Audits and improves ClawBee's own skills. Reads each SKILL.md, runs test commands, identifies what's broken, and rewrites the failing parts.
---
## `/improve skills` — Full Audit + Auto-Fix
Run a complete audit of all installed skills, then fix any that fail.
### Step 1: Discover skills
```bash
ls /data/workspace/clawbee/skills/
```
For each skill directory found, read its `SKILL.md`:
```bash
cat /data/workspace/clawbee/skills/<skill>/SKILL.md
```
---
### Step 2: Test each skill
Run the smoke test for each skill. A skill **passes** if the command exits 0 and returns non-empty output.
**fridge-scanner**
```bash
python3 -c "from openai import OpenAI; print('openai ok')" && echo PASS || echo FAIL
```
**fridge-tracker**
```bash
sqlite3 /data/workspace/pantry.db "SELECT COUNT(*) FROM fridge;" 2>&1 && echo PASS || echo FAIL
```
**meal-planner**
```bash
sqlite3 /data/workspace/pantry.db "SELECT name FROM sqlite_master WHERE type='table';" 2>&1 && echo PASS || echo FAIL
```
**price-hunter**
```bash
sqlite3 /data/workspace/pantry.db "SELECT COUNT(*) FROM prices;" 2>&1 && echo PASS || echo FAIL
```
**shopping-agent**
```bash
sqlite3 /data/workspace/pantry.db "SELECT COUNT(*) FROM fridge;" 2>&1 && echo PASS || echo FAIL
```
**orchestrator**
```bash
sqlite3 /data/workspace/pantry.db "SELECT COUNT(*) FROM meal_plans;" 2>&1 && echo PASS || echo FAIL
```
---
### Step 3: Diagnose failures
For each **FAIL**:
1. Read the full SKILL.md for that skill
2. Identify the broken step (wrong path, missing dependency, stale command)
3. Produce a diff — old step vs. fixed step
Common failure patterns and fixes:
| Symptom | Root cause | Fix |
|---------|-----------|-----|
| `No such file or directory: /data/workspace/pantry.db` | DB not initialized | Run `sqlite3 /data/workspace/pantry.db "CREATE TABLE IF NOT EXISTS fridge (item TEXT PRIMARY KEY, quantity TEXT, updated_at TEXT);"` |
| `ModuleNotFoundError: openai` | Missing Python package | `python3 -m pip install openai --break-system-packages` |
| `No such file or directory: /data/workspace/clawbee` | Skills not cloned | `git clone --quiet https://github.com/mary4data/ClawBee.git /data/workspace/clawbee` |
| Script exits with wrong path | Script path drifted | Update SKILL.md step to use absolute path from `/data/workspace/clawbee/skills/<skill>/` |
| DB table missing | Schema not migrated | Add `CREATE TABLE IF NOT EXISTS` to the affected skill's init step |
---
### Step 4: Apply fixes
For each broken skill, rewrite the broken SKILL.md step in-place on the container:
```bash
# Backup first
cp /data/workspace/clawbee/skills/<skill>/SKILL.md /data/workspace/clawbee/skills/<skill>/SKILL.md.bak
# Write the fixed version
cat > /data/workspace/clawbee/skills/<skill>/SKILL.md << 'ENDOFSKILL'
[fixed content]
ENDOFSKILL
```
Then verify by re-running the Step 2 smoke test for that skill.
---
### Step 5: Report
Present results as a table:
```
Skill Audit Results — [timestamp]
──────────────────────────────────
✅ fridge-scanner — openai package OK
✅ fridge-tracker — pantry.db reachable
⚠️ meal-planner — Fixed: meal_plans table was missing (now created)
✅ price-hunter — prices table OK
✅ shopping-agent — fridge table OK
✅ orchestrator — meal_plans table OK
1 skill fixed. All skills operational.
```
---
## `/skills audit` — Read-Only Audit (No Fixes)
Same as above but skip Step 4. Just report what's broken without changing anything.
---
## `/skills test <skill>` — Test One Skill
Run the smoke test for a single skill and show its SKILL.md.
```bash
cat /data/workspace/clawbee/skills/<skill>/SKILL.md
```
Then run the relevant test from Step 2.
Report: PASS or FAIL with the raw output.
---
## `/skills update` — Pull Latest from GitHub
Pull the latest skill definitions from the ClawBee repo:
```bash
cd /data/workspace/clawbee && git pull --ff-only origin main 2>&1
```
If `git pull` fails (local changes):
```bash
cd /data/workspace/clawbee && git fetch origin && git reset --hard origin/main 2>&1
```
Then run `/skills audit` to confirm all skills still pass after the update.
---
## `/skills list` — Show All Skills
```bash
for d in /data/workspace/clawbee/skills/*/; do
name=$(basename "$d")
ver=$(grep -m1 'version:' "$d/SKILL.md" 2>/dev/null | sed 's/.*version: //')
echo "$name $ver"
done
```
---
## Notes
- Never delete a SKILL.md without backing it up first (`.bak` suffix)
- Only fix skills that actually fail the smoke test — don't rewrite working code
- After any fix, re-run the smoke test to confirm it passes before reporting it fixed
- The self-improver cannot improve itself (avoid infinite loops)
- All fixes apply to the **container copy** at `/data/workspace/clawbee/`. Push to GitHub separately with `/skills update` + manual commit
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.