This guide covers setup and conventions for developing Code Cannon itself — not for using it in your projects.
Generated skill files (.claude/commands/, .cursor/rules/, .agents/skills/, .gemini/skills/) must stay in sync with source skills. A pre-commit hook enforces this.
Install it once per clone:
cat > .git/hooks/pre-commit << 'EOF'
#!/bin/sh
# Ensure agent skill files are in sync before committing.
# sync.py --dry-run exits 1 if any files need regeneration.
./sync.py --dry-run 2>/dev/null
if [ $? -ne 0 ]; then
echo "Skills are out of sync. Run ./sync.py --force before committing."
exit 1
fi
EOF
chmod +x .git/hooks/pre-commitIf a commit is rejected, run ./sync.py --force and retry.