2026-07-10 11:23:51 +02:00
|
|
|
.PHONY: install project test update
|
|
|
|
|
|
|
|
|
|
# Install the skills globally into $HOME (.agents/skills + .claude/skills).
|
|
|
|
|
install:
|
|
|
|
|
@TARGET="$(HOME)" bash scripts/install.sh
|
|
|
|
|
|
|
|
|
|
# Copy the skills into a project: make project TARGET=/path/to/repo
|
|
|
|
|
project:
|
|
|
|
|
@test -n "$(TARGET)" || { echo "usage: make project TARGET=/path/to/repo"; exit 2; }
|
|
|
|
|
@TARGET="$(TARGET)" bash scripts/install.sh
|
|
|
|
|
|
2026-07-10 12:54:47 +02:00
|
|
|
# Validate the lock, lint Python (ruff), scripts (shellcheck), and markdown.
|
2026-07-10 11:23:51 +02:00
|
|
|
test:
|
|
|
|
|
@python3 -m unittest discover -s tests -v
|
2026-07-10 12:54:47 +02:00
|
|
|
@if command -v ruff >/dev/null; then ruff check .; else echo "ruff not installed - skipped"; fi
|
2026-07-10 11:23:51 +02:00
|
|
|
@if command -v shellcheck >/dev/null; then shellcheck scripts/*.sh; else echo "shellcheck not installed - skipped"; fi
|
2026-07-10 12:54:47 +02:00
|
|
|
@if command -v markdownlint-cli2 >/dev/null; then markdownlint-cli2 "**/*.md"; else echo "markdownlint-cli2 not installed - skipped"; fi
|
2026-07-10 11:23:51 +02:00
|
|
|
|
|
|
|
|
# Update all skills to their latest versions and refresh skills-lock.json.
|
|
|
|
|
update:
|
|
|
|
|
@bash scripts/update.sh
|