-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (30 loc) · 1.2 KB
/
Copy pathMakefile
File metadata and controls
39 lines (30 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
SKILL_DIR := human-copywrite
DIST_DIR := dist
.DEFAULT_GOAL := help
.PHONY: help
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-12s\033[0m %s\n", $$1, $$2}'
.PHONY: check
check: ## Run automated checks (skill structure + scanner behavior)
python tests/run_checks.py
.PHONY: scan
scan: ## Scan a draft, e.g. make scan FILE=draft.txt
@test -n "$(FILE)" || (echo "usage: make scan FILE=draft.txt" >&2; exit 1)
python $(SKILL_DIR)/scripts/copy_scan.py "$(FILE)"
.PHONY: build
build: ## Package dist/human-copywrite.skill
bash scripts/build_skill.sh
.PHONY: portable
portable: ## Build dist/human-copywrite-portable.md (single file for ChatGPT/Gemini/GLM/DeepSeek/Kimi)
bash scripts/build_portable.sh
.PHONY: eval
eval: ## Validate the eval harness offline (scorer self-test on bundled fixtures)
python tests/eval/score.py --self-test
.PHONY: model-eval
model-eval: portable ## Run the with/without-skill eval against EVAL_BASE_URL/EVAL_MODEL (needs EVAL_API_KEY)
python tests/eval/run_model_eval.py
.PHONY: clean
clean: ## Remove build artifacts
rm -rf $(DIST_DIR)
find . -type d -name __pycache__ -prune -exec rm -rf {} +