Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. .PHONY: help install link doctor update new-skill
  2. help: ## Show available commands
  3. @grep -E '^[a-zA-Z_-]+:.*##' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*## "}; {printf " make %-14s %s\n", $$1, $$2}'
  4. install: link ## Full install: symlinks + prerequisites + plugins
  5. bash install-plugins.sh
  6. link: ## Create/update symlinks into ~/.claude/
  7. bash link.sh
  8. doctor: ## Run setup diagnostic
  9. bash doctor.sh
  10. update: ## Update config, submodules, plugins, and verify
  11. bash update-all.sh
  12. onboard: link ## Onboard an existing project (run from the project directory)
  13. @echo "Open Claude Code in your project directory and run: /onboard"
  14. @echo "Or with hints: /onboard Python FastAPI monorepo"
  15. new-skill: ## Create a new skill scaffold (usage: make new-skill name=myskill)
  16. @test -n "$(name)" || (echo "Usage: make new-skill name=myskill" && exit 1)
  17. @mkdir -p agents skills/$(name)
  18. @if [ ! -f agents/$(name).md ]; then \
  19. printf -- '---\nname: $(name)\ndescription: <what this agent does — keep under 200 chars>\ntools: Read, Grep, Glob, Bash\nmodel: sonnet\n---\n\n# $(name)\n\n## ROLE\n<role>\n\n## TASKS\n- <task>\n\n## RULES\n- <rule>\n\n## OUTPUT\n```\n<format>\n```\n' > agents/$(name).md; \
  20. echo "✅ Created agents/$(name).md"; \
  21. else echo "⚠️ agents/$(name).md already exists"; fi
  22. @if [ ! -f skills/$(name)/SKILL.md ]; then \
  23. printf -- '---\nname: $(name)\ndescription: <what this skill does — front-load key use case, max 250 chars>\nargument-hint: <what to pass>\ndisable-model-invocation: true\nallowed-tools: Read, Grep, Glob, Bash\n---\n\nLoad and follow strictly:\n- .claude/agents/$(name).md\n\nExecute on:\n\n$$ARGUMENTS\n' > skills/$(name)/SKILL.md; \
  24. echo "✅ Created skills/$(name)/SKILL.md"; \
  25. else echo "⚠️ skills/$(name)/SKILL.md already exists"; fi
  26. @echo " Edit both files, then run: bash link.sh"