name: alto-self-fix description: Use when ALTO needs to fix itself via GitHub issues. Procedural workflow for running /alto-self-fix or solving issues through ALTO's self-improvement process.
ALTO Self-Fix Procedure
Procedural workflow for ALTO to fix itself via GitHub issues.
Workflow
1. Get Issue
gh issue view <number> --repo gonzaloetjo/alto
Read and understand the issue requirements.
2. Create Branch
git checkout -b issue-<number>-<short-description>
3. Implement
Modify ALTO source files as needed:
devenv.nix- Options, scripts, hooks configagents/*.md- Agent promptshooks/*.py- Hook logicskills/*/SKILL.md- Skillstemplates/CLAUDE.md.*- Protocols
4. Validate
nix-instantiate --parse devenv.nix > /dev/null && echo "Nix OK"
python3 -m py_compile hooks/*.py && echo "Python OK"
5. Test (if behavior change)
alto-test-run --scenario <relevant> --keep --json
Skip for string/doc-only changes.
6. Update CHANGELOG
Add entry under ## [Unreleased] with issue reference.
7. Commit
git add <files>
git commit -m "feat: description (#<issue>)"
8. Push & PR
git push -u origin issue-<number>-<description>
gh pr create --title "feat: description (#<number>)" --body "Closes #<number>"
Notes
- Never commit to main directly
changelog-checkhook enforces CHANGELOG updatesalto-restartis blocked in dev mode- Changes apply next session