mattpocock-skills

LOW
maintainer cwrau 0 votes scanned 2026-10-22 09:34:24.719450
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: Chris Werner Rau <aur@cwrau.io>
2
3pkgname=mattpocock-skills
4pkgver=1.3.1 # renovate: datasource=github-releases depName=mattpocock/skills
5pkgrel=1
6pkgdesc="Matt Pocock's agent skills (agentskills.io format), linked into ~/.agents/skills via user tmpfiles"
7url="https://github.com/mattpocock/skills"
8arch=('any')
9license=('MIT')
10depends=('systemd')
11makedepends=('jq')
12install="$pkgname.install"
13source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
14sha256sums=('1847b1dab968d7dc8e87fdcad6613574557fd51301b66ba423c78d306bfa157b')
15
16_datadir="/usr/share/agent-skills/$pkgname"
17
18# Upstream nests skills in buckets (skills/engineering/tdd, ...) but agents scan
19# one level deep, so flatten. The promoted set is whatever the Claude plugin
20# manifest lists; this also leaves out misc/, in-progress/ and deprecated/.
21_skills() {
22 jq -r '.skills[] | sub("^\\./"; "")' "$srcdir/skills-$pkgver/.claude-plugin/plugin.json"
23}
24
25build() {
26 cd "$srcdir/skills-$pkgver"
27
28 local dir name
29 declare -A seen
30 : >"$srcdir/$pkgname.conf"
31 while read -r dir; do
32 [[ -f "$dir/SKILL.md" ]] || { echo "missing $dir/SKILL.md" >&2; return 1; }
33 name="$(basename "$dir")"
34 [[ -z "${seen[$name]:-}" ]] || { echo "flattening collision: $name" >&2; return 1; }
35 seen[$name]=1
36 # plain L: never replace a skill the user already has under that name
37 printf 'L %%h/.agents/skills/%s - - - - %s/%s\n' "$name" "$_datadir" "$name" >>"$srcdir/$pkgname.conf"
38 done < <(_skills)
39}
40
41package() {
42 cd "$srcdir/skills-$pkgver"
43
44 local dir
45 while read -r dir; do
46 install -dm755 "$pkgdir$_datadir/$(basename "$dir")"
47 cp -r --no-preserve=ownership "$dir/." "$pkgdir$_datadir/$(basename "$dir")/"
48 done < <(_skills)
49 chmod -R u=rwX,go=rX "$pkgdir$_datadir"
50
51 install -Dm644 "$srcdir/$pkgname.conf" "$pkgdir/usr/lib/user-tmpfiles.d/$pkgname.conf"
52 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
53}
54

Scan history

Scanned at (UTC)SeverityRules
2026-10-22 09:34:24 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion