Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (39 loc) · 2.57 KB
/
Copy pathMakefile
File metadata and controls
57 lines (39 loc) · 2.57 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.PHONY: refresh refresh-fast stats organize organize-local bootstrap-collections bootstrap-collections-dry offline-local audit audit-deep workflow workflow-full workflow-offline workflow-offline-dry sync-skill-bundle check-bundle-sync test
LOCAL_ROOT ?= .cache/collections
refresh:
python3 scripts/fetch_skills.py --config config/sources.json --output data/skills.json --csv data/skills.csv --markdown docs/latest.md
python3 scripts/print_stats.py --input data/skills.json
refresh-fast:
python3 scripts/fetch_skills.py --config config/sources.json --output data/skills.json --csv data/skills.csv --markdown docs/latest.md --max-skills 1000
python3 scripts/print_stats.py --input data/skills.json
stats:
python3 scripts/print_stats.py --input data/skills.json --format markdown
organize:
python3 scripts/organize_collections.py --seed config/collections.seed.json --skills data/skills.json --output data/collections.json --markdown docs/collections.md
organize-local:
python3 scripts/organize_collections.py --seed config/collections.seed.json --skills data/skills.json --output data/collections.json --markdown docs/collections.md --local-root "$(LOCAL_ROOT)"
bootstrap-collections:
python3 scripts/bootstrap_collections.py --seed config/collections.seed.json --local-root "$(LOCAL_ROOT)" --manifest data/collections.bootstrap.json
bootstrap-collections-dry:
python3 scripts/bootstrap_collections.py --seed config/collections.seed.json --local-root "$(LOCAL_ROOT)" --manifest data/collections.bootstrap.json --dry-run
offline-local:
$(MAKE) bootstrap-collections LOCAL_ROOT="$(LOCAL_ROOT)"
$(MAKE) organize-local LOCAL_ROOT="$(LOCAL_ROOT)"
audit:
python3 scripts/audit_skills.py --input data/skills.json --output data/skills.audit.json --markdown docs/skills-audit.md --min-risk-score 2
audit-deep:
python3 scripts/audit_skills.py --input data/skills.json --output data/skills.audit.json --markdown docs/skills-audit.md --fetch-content --max-skills 500 --min-risk-score 2 --max-retries 2
workflow:
python3 scripts/run_workflow.py --mode secure-refresh --out-dir data
workflow-full:
python3 scripts/run_workflow.py --mode full --out-dir data
workflow-offline:
python3 scripts/run_workflow.py --mode offline --out-dir data --skills-input data/skills.json --local-root "$(LOCAL_ROOT)"
workflow-offline-dry:
python3 scripts/run_workflow.py --mode offline --out-dir data --skills-input data/skills.json --local-root "$(LOCAL_ROOT)" --bootstrap-dry-run --dry-run
sync-skill-bundle:
python3 scripts/sync_skill_bundle.py
check-bundle-sync:
python3 scripts/sync_skill_bundle.py --check
test:
pytest -q