torrentclaw-skill/Makefile
Deivid Soto 98c550feb0 feat: initial open-source project structure
Agent Skill for searching and downloading torrents via TorrentClaw.
Includes SKILL.md with OpenClaw metadata, bash scripts for torrent
client detection, CONTRIBUTING.md, CHANGELOG.md, CI/CD with GitHub
Actions (shellcheck + conventional commits), lefthook git hooks,
Makefile, and .editorconfig.
2026-02-13 18:40:53 +01:00

23 lines
653 B
Makefile

.PHONY: lint shellcheck version install-tools hooks
# Lint shell scripts
shellcheck:
shellcheck scripts/*.sh
# Lint everything
lint: shellcheck
# Version management
version:
@grep '^metadata:' SKILL.md | grep -oP '"version":\s*"\K[^"]+'
# Developer setup
install-tools:
@echo "Checking lefthook..."
@command -v lefthook >/dev/null 2>&1 || (echo "Install lefthook: https://github.com/evilmartians/lefthook#install" && exit 1)
@echo "Checking shellcheck..."
@command -v shellcheck >/dev/null 2>&1 || (echo "Install shellcheck: https://github.com/koalaman/shellcheck#installing" && exit 1)
@echo "All tools installed."
hooks:
lefthook install