Repository navigation
Expand file tree
/
Copy pathjustfile
More file actions
54 lines (43 loc) · 1.96 KB
/
Copy pathjustfile
File metadata and controls
54 lines (43 loc) · 1.96 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
# agent-config — link skills and agents into local AI agent dirs.
# Run `just --list` to see recipes.
# The installer CLI, run from source (no install step needed).
cli := "cargo run --quiet --"
_default:
@just --list
# Link own assets (target: all | claude | codex), third-party skills, then git hooks.
install target="all": (_own target) third-party hooks
_own target="all":
{{cli}} install -t {{target}}
# Restore global third-party skills from the skills.sh lock (~/.agents/.skill-lock.json).
third-party:
#!/usr/bin/env bash
set -euf -o pipefail
lock="$HOME/.agents/.skill-lock.json"
[ -f "$lock" ] || { echo "no skills.sh lock at $lock — run 'chezmoi apply' or 'npx skills add <src> -g' first"; exit 0; }
jq -r '.skills | to_entries | group_by(.value.source) | .[]
| (.[0].value.source) + " " + ([.[] | "-s " + .key] | join(" "))' "$lock" \
| while IFS= read -r line; do
npx -y skills add $line -g -a claude-code -a codex -a github-copilot -y
done
# Install git pre-commit hooks (prek + gitleaks secret scanning).
hooks:
#!/usr/bin/env bash
set -euf -o pipefail
command -v prek >/dev/null 2>&1 || brew install prek
command -v gitleaks >/dev/null 2>&1 || brew install gitleaks
prek install
# Show what's installed where (target: all | claude | codex).
status target="all":
{{cli}} status -t {{target}}
# Remove this repo's links (target: all | claude | codex).
uninstall target="all":
{{cli}} uninstall -t {{target}}
# Validate a skill against the agentskills.io spec, e.g. `just validate rust-principles`.
validate skill:
npx skills-ref validate ./skills/{{skill}}
# Run one skill's evals with and without the skill, e.g. `just eval git-commits --runs 1`.
eval skill *args:
claude plugin eval . --no-publish --scaffold --case '{{skill}}/*' {{args}}
# Run every skill's evals; flags pass through to `claude plugin eval`.
eval-all *args:
claude plugin eval . --no-publish --scaffold {{args}}