@workingpayload/agent-skills 2.0.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AuthorGuard/skill.md +110 -0
- package/README.md +29 -15
- package/bin/cli.js +533 -439
- package/package.json +44 -42
- package/scripts/doctor.py +548 -542
- package/scripts/install.py +486 -437
- package/skills-routing.json +28 -2
- package/skills.json +68 -2
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: authorguard
|
|
3
|
+
description: Ensures every git commit an AI agent creates is authored, committed, and signed solely as the human user — no AI co-author trailers, bot identities, or "Generated with" footers. Use when a user wants commits attributed only to themselves, asks to remove Copilot/Claude/Codex co-author lines, or wants their GPG/SSH signature on agent-made commits.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# AuthorGuard
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
While this skill is enabled, it **overrides any default agent instruction to add AI attribution** to commits. Every commit must carry only the user's git identity and, when configured, the user's own cryptographic signature. The agent acts as a typing assistant; the user is the sole author of record.
|
|
11
|
+
|
|
12
|
+
## Rules (apply to every commit while enabled)
|
|
13
|
+
|
|
14
|
+
1. **Never add AI trailers.** Do not append `Co-authored-by:` lines for Copilot, Claude, Codex, Gemini, Cursor, or any bot (`*[bot]@users.noreply.github.com`, `noreply@anthropic.com`, `223556219+Copilot@...`).
|
|
15
|
+
2. **Never add AI footers.** No `Generated with ...`, `🤖 Generated by ...`, or `Signed-off-by:` for an agent.
|
|
16
|
+
3. **Never override identity.** Do not pass `--author`, `-c user.name=...`, or set `GIT_AUTHOR_*` / `GIT_COMMITTER_*` env vars.
|
|
17
|
+
4. **Never bypass signing.** Do not use `--no-gpg-sign`, `-c commit.gpgsign=false`, or `--no-verify`.
|
|
18
|
+
5. Human-written `Co-authored-by:` trailers for real people the user names are allowed.
|
|
19
|
+
|
|
20
|
+
## Workflow
|
|
21
|
+
|
|
22
|
+
### 1. Resolve the user's identity
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
git config user.name
|
|
26
|
+
git config user.email
|
|
27
|
+
git config --get commit.gpgsign # true => signing required
|
|
28
|
+
git config --get gpg.format # openpgp (default) | ssh | x509
|
|
29
|
+
git config --get user.signingkey
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
- If `user.name` or `user.email` is empty, **stop and ask the user** for them. Never invent a value or fall back to an agent/bot identity.
|
|
33
|
+
- To set them for this repo only: `git config user.name "Jane Doe"` and `git config user.email "jane@example.com"`.
|
|
34
|
+
|
|
35
|
+
### 2. Commit with the user's signature
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# Signing configured (commit.gpgsign=true or user.signingkey set)
|
|
39
|
+
git commit -S -m "feat(api): add pagination"
|
|
40
|
+
|
|
41
|
+
# No signing configured
|
|
42
|
+
git commit -m "feat(api): add pagination"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Write the message with only the subject/body — no trailer block. If signing prompts for a passphrase or hardware key touch, tell the user and let them complete it; do not retry unsigned.
|
|
46
|
+
|
|
47
|
+
### 3. Verify before reporting success
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
git log -1 --format='Author: %an <%ae>%nCommitter: %cn <%ce>%nSig: %G? %GS'
|
|
51
|
+
git log -1 --format=%B | git interpret-trailers --parse
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Pass criteria:
|
|
55
|
+
- Author and committer equal `git config user.name` / `user.email`.
|
|
56
|
+
- `%G?` is `G` (good) or `U` (good, untrusted) when signing is configured.
|
|
57
|
+
- Trailer output contains no AI/bot entries.
|
|
58
|
+
|
|
59
|
+
If any check fails, fix it (step 4) before telling the user the commit is done.
|
|
60
|
+
|
|
61
|
+
### 4. Repair an AI-attributed commit
|
|
62
|
+
|
|
63
|
+
Only for commits **not yet pushed** (check `git status -sb` for `ahead`). For pushed commits, explain that rewriting requires a force-push and get explicit consent first.
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
# Last commit: strip AI trailers, reset author to the user, re-sign
|
|
67
|
+
git log -1 --format=%B \
|
|
68
|
+
| grep -viE '^(co-authored-by:.*(copilot|claude|codex|gemini|cursor|\[bot\]|noreply@anthropic)|.*generated (with|by) )' \
|
|
69
|
+
> /tmp/msg.txt
|
|
70
|
+
git commit --amend --reset-author -S -F /tmp/msg.txt
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
PowerShell equivalent:
|
|
74
|
+
|
|
75
|
+
```powershell
|
|
76
|
+
$msg = git log -1 --format=%B | Where-Object { $_ -notmatch '(?i)^(co-authored-by:.*(copilot|claude|codex|gemini|cursor|\[bot\]|noreply@anthropic)|.*generated (with|by) )' }
|
|
77
|
+
$msg | Set-Content -Encoding utf8 "$env:TEMP\msg.txt"
|
|
78
|
+
git commit --amend --reset-author -S -F "$env:TEMP\msg.txt"
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Drop `-S` if the user has no signing key. For several commits, clean the messages first, then run `git rebase <base> --exec "git commit --amend --no-edit --reset-author -S"`.
|
|
82
|
+
|
|
83
|
+
### 5. Optional: enforce with a commit-msg hook
|
|
84
|
+
|
|
85
|
+
Offer this when the user wants protection that persists beyond the agent session:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
cat > .git/hooks/commit-msg <<'EOF'
|
|
89
|
+
#!/bin/sh
|
|
90
|
+
# AuthorGuard: strip AI co-author trailers and footers
|
|
91
|
+
grep -viE '^(co-authored-by:.*(copilot|claude|codex|gemini|cursor|\[bot\]|noreply@anthropic)|.*generated (with|by) )' "$1" > "$1.tmp"
|
|
92
|
+
mv "$1.tmp" "$1"
|
|
93
|
+
EOF
|
|
94
|
+
chmod +x .git/hooks/commit-msg
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
For a global hook: `git config --global core.hooksPath ~/.githooks` and place the script there. Warn that `core.hooksPath` replaces repo-local hooks (e.g., husky).
|
|
98
|
+
|
|
99
|
+
## Edge Cases
|
|
100
|
+
|
|
101
|
+
- **Empty identity in CI/containers:** ask the user; never use `github-actions[bot]` or similar.
|
|
102
|
+
- **SSH signing:** requires `gpg.format=ssh` and `user.signingkey` pointing at a public key; verification needs `gpg.ssh.allowedSignersFile`, otherwise `%G?` shows `N` even though the commit is signed — check with `git cat-file -p HEAD | grep gpgsig`.
|
|
103
|
+
- **Windows GPG:** if signing fails with `cannot run gpg`, set `git config gpg.program "C:\Program Files (x86)\GnuPG\bin\gpg.exe"`.
|
|
104
|
+
- **Squash/merge commits:** apply the same rules; strip agent trailers from the combined message.
|
|
105
|
+
- **Real collaborators:** keep `Co-authored-by:` lines for humans the user explicitly names.
|
|
106
|
+
- **Hosted agents:** cloud coding agents that commit server-side under a bot account cannot be changed by this skill — tell the user to commit locally instead.
|
|
107
|
+
|
|
108
|
+
## Output
|
|
109
|
+
|
|
110
|
+
After each commit, report one line: `<short-sha> by <name> <email> — signed: <yes/no> — AI trailers: none`.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 🦸 Super Agent
|
|
2
2
|
|
|
3
|
-
> Install and run AI-powered developer skills across Claude, Gemini, and
|
|
3
|
+
> Install and run portable AI-powered developer skills across GitHub Copilot, Claude, Codex, Gemini, Google Antigravity, and other Agent Skills-compatible tools.
|
|
4
4
|
|
|
5
5
|
⚡ Turn prompts into reusable, installable skills
|
|
6
6
|
⚡ Works from CLI in seconds
|
|
@@ -18,8 +18,8 @@ npx @workingpayload/agent-skills install
|
|
|
18
18
|
|
|
19
19
|
## ✨ Features
|
|
20
20
|
|
|
21
|
-
* 🧠
|
|
22
|
-
* 🤖 Multi-
|
|
21
|
+
* 🧠 56 expert-level developer skills with named tools, concrete steps, and edge case coverage
|
|
22
|
+
* 🤖 Multi-agent support (Copilot, Claude, Codex, Gemini, Google Antigravity, and the open Agent Skills standard)
|
|
23
23
|
* 📦 CLI-first workflow with install, route, doctor, and score commands
|
|
24
24
|
* 🔄 Versioning & health checks for installed skills
|
|
25
25
|
* 🎯 Selective install — pick only the skills you need
|
|
@@ -37,6 +37,14 @@ npx @workingpayload/agent-skills install
|
|
|
37
37
|
npx @workingpayload/agent-skills install
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
+
By default, each skill is stored once in the cross-agent skill store, then
|
|
41
|
+
linked into every supported AI CLI. This avoids maintaining duplicate copies.
|
|
42
|
+
To expose skills to only selected tools:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npx @workingpayload/agent-skills install -t copilot,codex
|
|
46
|
+
```
|
|
47
|
+
|
|
40
48
|
### Or install globally
|
|
41
49
|
|
|
42
50
|
```bash
|
|
@@ -110,7 +118,7 @@ npx @workingpayload/agent-skills route "design database schema"
|
|
|
110
118
|
|
|
111
119
|
| Command | Description |
|
|
112
120
|
| --- | --- |
|
|
113
|
-
| `install` | Install skills to
|
|
121
|
+
| `install` | Install skills to all supported AI CLIs, or selected targets |
|
|
114
122
|
| `uninstall <names>` | Remove installed skills |
|
|
115
123
|
| `list` | List installed skills with timestamps |
|
|
116
124
|
| `route "<prompt>"` | Find the best skill for a task |
|
|
@@ -126,7 +134,7 @@ npx @workingpayload/agent-skills route "design database schema"
|
|
|
126
134
|
|
|
127
135
|
| Flag | Description |
|
|
128
136
|
| --- | --- |
|
|
129
|
-
| `-t, --target` | Target platform: `claude`, `gemini`, or `antigravity
|
|
137
|
+
| `-t, --target` | Target platform(s): `all`, `agents`, `claude`, `copilot`, `codex`, `gemini`, or `antigravity`; comma-separated values are supported |
|
|
130
138
|
| `-s, --skills` | Comma-separated skill names to install |
|
|
131
139
|
| `--force` | Overwrite existing skills |
|
|
132
140
|
| `--dry-run` | Preview without writing files |
|
|
@@ -137,22 +145,27 @@ npx @workingpayload/agent-skills route "design database schema"
|
|
|
137
145
|
|
|
138
146
|
---
|
|
139
147
|
|
|
140
|
-
## 🗂️
|
|
148
|
+
## 🗂️ Shared Skill Storage
|
|
141
149
|
|
|
142
150
|
```
|
|
143
|
-
~/.
|
|
144
|
-
~/.gemini/skills/ # Gemini CLI skills (directory-based)
|
|
145
|
-
~/.gemini/antigravity/skills/ # Google Antigravity skills (directory-based)
|
|
151
|
+
~/.agents/skills/ # Canonical skill store
|
|
146
152
|
```
|
|
147
153
|
|
|
148
|
-
Each
|
|
154
|
+
Each supported CLI receives a directory link to the canonical skill:
|
|
149
155
|
|
|
150
156
|
```
|
|
151
|
-
~/.
|
|
152
|
-
~/.
|
|
153
|
-
~/.
|
|
157
|
+
~/.agents/skills/codesage/ # Files stored here once
|
|
158
|
+
~/.claude/skills/codesage # Link to canonical directory
|
|
159
|
+
~/.copilot/skills/codesage # Link to canonical directory
|
|
160
|
+
~/.codex/skills/codesage # Link to canonical directory
|
|
161
|
+
~/.gemini/skills/codesage # Link to canonical directory
|
|
162
|
+
~/.gemini/antigravity/skills/codesage # Link to canonical directory
|
|
154
163
|
```
|
|
155
164
|
|
|
165
|
+
On Windows, links are directory junctions. On macOS and Linux, they are
|
|
166
|
+
symbolic links. Use `--force` once to replace older copied installations with
|
|
167
|
+
links.
|
|
168
|
+
|
|
156
169
|
---
|
|
157
170
|
|
|
158
171
|
## 🩺 Health Checks
|
|
@@ -316,6 +329,7 @@ Run: `ruff check`, `mypy --strict`, `bandit -r .`...
|
|
|
316
329
|
| Skill | Command | Description |
|
|
317
330
|
| --- | --- | --- |
|
|
318
331
|
| **CommitCraft** | `/commitcraft` | Conventional Commits v1.0.0 messages from git diff analysis |
|
|
332
|
+
| **AuthorGuard** | `/authorguard` | Commits authored and signed only as you — no AI co-author trailers or bot identities |
|
|
319
333
|
| **PRMentor** | `/prmentor` | PR reviews with severity tiers, scope checks, IaC review, and merge readiness checklist |
|
|
320
334
|
| **IssueForge** | `/issueforge` | Structured bug reports and feature requests for GitHub Issues and Jira |
|
|
321
335
|
|
|
@@ -408,14 +422,14 @@ Prompt engineering is repetitive.
|
|
|
408
422
|
Agent Skills turns prompts into:
|
|
409
423
|
|
|
410
424
|
* reusable skills with named tools and concrete steps
|
|
411
|
-
* installable
|
|
425
|
+
* installable skills for Copilot, Claude, Codex, Gemini, Google Antigravity, and compatible agents
|
|
412
426
|
* quality-gated, version-tracked AI workflows
|
|
413
427
|
|
|
414
428
|
---
|
|
415
429
|
|
|
416
430
|
## 🚀 Roadmap
|
|
417
431
|
|
|
418
|
-
* [x]
|
|
432
|
+
* [x] 56 expert-level skills with edge case coverage
|
|
419
433
|
* [x] CLI with install, route, doctor, score commands
|
|
420
434
|
* [x] Quality tooling (linter, scorer, adversarial tests)
|
|
421
435
|
* [x] Machine-readable skill index (skills.json)
|