| name | plugin-dev-workflow |
| description | Guide plugin development workflow — editing skills, agents, hooks, or eval framework in this repo. Use when modifying files in plugins/elixir-phoenix/, lab/eval/, or lab/autoresearch/. Ensures changes pass eval, lint, and tests before committing. |
| effort | medium |
Plugin Development Workflow
This repo is the Elixir/Phoenix Claude Code plugin. When editing plugin
files, follow this workflow to ensure quality.
Before You Start
Run make help to see all available commands:
make eval
make eval-all
make eval-fix
make test
make ci
Scoring Individual Files (CLI)
IMPORTANT: Always use -m module syntax, never run scorer.py directly.
python3 -m lab.eval.scorer plugins/elixir-phoenix/skills/verify/SKILL.md
python3 -m lab.eval.scorer plugins/elixir-phoenix/skills/verify/SKILL.md --pretty
python3 -m lab.eval.scorer --all
python3 -m lab.eval.agent_scorer plugins/elixir-phoenix/agents/verification-runner.md
python3 -m lab.eval.agent_scorer --all
make ci
When Editing Skills (plugins/elixir-phoenix/skills/*/SKILL.md)
- Read CLAUDE.md conventions (size limits, frontmatter requirements)
- Make your changes
- Run
make eval — it auto-detects changed skills and scores them
- If FAIL: check the dimension that failed, fix it
- Run
make lint to verify markdown formatting
- Commit
Skill requirements (eval checks all of these):
- Frontmatter: name, description, effort. Description must start with action verb + include "Use when..."
- Iron Laws section with 1+ numbered items
- Under 185 lines (command skills) or 150 lines (reference skills)
- No section exceeds 45 lines
- All
/phx: references point to existing skills
- All
references/*.md paths exist
- No dangerous code patterns outside Iron Laws sections
- Code examples present (1+ fenced code blocks)
- "Use when..." in description (for trigger accuracy)
When Editing Agents (plugins/elixir-phoenix/agents/*.md)
- Make your changes
- Run
make eval-agents to score all agents
- Agent requirements:
permissionMode: bypassPermissions (always — background agents need it)
disallowedTools: Write, Edit, NotebookEdit for review/analysis agents
- model matches effort: haiku=low, sonnet=medium, opus=high
- Under 300 lines (specialist) or 535 lines (orchestrator)
When Editing Eval Framework (lab/eval/*.py)
- Make your changes
- Run
make test — 75 pytest tests must pass
- Run
make eval-all — verify no skills/agents regressed
- If adding new matchers: add tests in
lab/eval/tests/test_matchers.py
When Editing Hooks (plugins/elixir-phoenix/hooks/scripts/*.sh)
- Make your changes
- Run
make lint (markdown in hook comments)
- Test the hook manually (hooks run on Edit/Write/Bash events)
- Check CLAUDE.md hook documentation is still accurate
Autoresearch (Self-Improvement Loop)
If make eval-fix shows failures, it suggests an autoresearch command:
claude -p 'Run autoresearch. Score all skills...' --allowedTools 'Edit,Read,Write,Bash,Glob,Grep'
This runs the autoresearch loop: find weakest skill → fix ONE issue → re-score → keep/revert.
Pre-Commit Checklist
Before committing any plugin changes:
References
- CLAUDE.md — full conventions, size limits, checklist
lab/eval/ — scoring framework (24 matchers, 8 dimensions)
lab/autoresearch/ — self-improvement loop
lab/findings/interesting.jsonl — log interesting discoveries here