@workingpayload/agent-skills 2.1.0 → 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.
@@ -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
@@ -18,7 +18,7 @@ npx @workingpayload/agent-skills install
18
18
 
19
19
  ## ✨ Features
20
20
 
21
- * 🧠 55 expert-level developer skills with named tools, concrete steps, and edge case coverage
21
+ * 🧠 56 expert-level developer skills with named tools, concrete steps, and edge case coverage
22
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
@@ -329,6 +329,7 @@ Run: `ruff check`, `mypy --strict`, `bandit -r .`...
329
329
  | Skill | Command | Description |
330
330
  | --- | --- | --- |
331
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 |
332
333
  | **PRMentor** | `/prmentor` | PR reviews with severity tiers, scope checks, IaC review, and merge readiness checklist |
333
334
  | **IssueForge** | `/issueforge` | Structured bug reports and feature requests for GitHub Issues and Jira |
334
335
 
@@ -428,7 +429,7 @@ Agent Skills turns prompts into:
428
429
 
429
430
  ## 🚀 Roadmap
430
431
 
431
- * [x] 55 expert-level skills with edge case coverage
432
+ * [x] 56 expert-level skills with edge case coverage
432
433
  * [x] CLI with install, route, doctor, score commands
433
434
  * [x] Quality tooling (linter, scorer, adversarial tests)
434
435
  * [x] Machine-readable skill index (skills.json)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workingpayload/agent-skills",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Install portable AI-powered developer skills across Copilot, Claude, Codex, Gemini, and other agents",
5
5
  "bin": {
6
6
  "agent-skills": "./bin/cli.js"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": "1.0",
3
- "generated_at": "2026-03-28T18:44:36+00:00",
4
- "skill_count": 55,
3
+ "generated_at": "2026-11-10T17:56:03+00:00",
4
+ "skill_count": 56,
5
5
  "skills": [
6
6
  {
7
7
  "name": "accessplus",
@@ -114,6 +114,32 @@
114
114
  "vulnerabilities"
115
115
  ]
116
116
  },
117
+ {
118
+ "name": "authorguard",
119
+ "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.",
120
+ "categories": [
121
+ "security",
122
+ "git",
123
+ "ai/ml"
124
+ ],
125
+ "triggers": [
126
+ "commits",
127
+ "attributed",
128
+ "only",
129
+ "themselves",
130
+ "remove",
131
+ "copilot",
132
+ "claude",
133
+ "codex",
134
+ "co-author",
135
+ "lines",
136
+ "their",
137
+ "gpg",
138
+ "ssh",
139
+ "signature",
140
+ "agent-made"
141
+ ]
142
+ },
117
143
  {
118
144
  "name": "autoscriptor",
119
145
  "description": "Generates production-grade automation scripts in Bash, Python, and PowerShell with idempotency, dry-run mode, error handling, and ShellCheck compliance. Use when a user needs a cron job, deployment script, file processing utility, system automation, or any CLI tool for repetitive developer or ops tasks.",
package/skills.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": "1.0",
3
- "generated_at": "2026-03-28T18:44:36+00:00",
4
- "skill_count": 55,
3
+ "generated_at": "2026-11-10T17:56:03+00:00",
4
+ "skill_count": 56,
5
5
  "skills": [
6
6
  {
7
7
  "name": "accessplus",
@@ -321,6 +321,72 @@
321
321
  "crypto.timingSafeEqual"
322
322
  ]
323
323
  },
324
+ {
325
+ "name": "authorguard",
326
+ "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.",
327
+ "path": "AuthorGuard/skill.md",
328
+ "directory": "AuthorGuard",
329
+ "triggers": [
330
+ "commits",
331
+ "attributed",
332
+ "only",
333
+ "themselves",
334
+ "remove",
335
+ "copilot",
336
+ "claude",
337
+ "codex",
338
+ "co-author",
339
+ "lines",
340
+ "their",
341
+ "gpg",
342
+ "ssh",
343
+ "signature",
344
+ "agent-made"
345
+ ],
346
+ "categories": [
347
+ "security",
348
+ "git",
349
+ "ai/ml"
350
+ ],
351
+ "line_count": 110,
352
+ "has_code_examples": true,
353
+ "tools_mentioned": [
354
+ "Co-authored-by:",
355
+ "*[bot]@users.noreply.github.com",
356
+ "noreply@anthropic.com",
357
+ "223556219+Copilot@...",
358
+ "Generated with ...",
359
+ "🤖 Generated by ...",
360
+ "Signed-off-by:",
361
+ "--author",
362
+ "-c user.name=...",
363
+ "GIT_AUTHOR_*",
364
+ "GIT_COMMITTER_*",
365
+ "--no-gpg-sign",
366
+ "-c commit.gpgsign=false",
367
+ "--no-verify",
368
+ "user.name",
369
+ "user.email",
370
+ "git config user.name \"Jane Doe\"",
371
+ "git config user.email \"jane@example.com\"",
372
+ "git config user.name",
373
+ "%G?",
374
+ "G",
375
+ "U",
376
+ "git status -sb",
377
+ "ahead",
378
+ "-S",
379
+ "git config --global core.hooksPath ~/.githooks",
380
+ "core.hooksPath",
381
+ "github-actions[bot]",
382
+ "gpg.format=ssh",
383
+ "user.signingkey",
384
+ "gpg.ssh.allowedSignersFile",
385
+ "N",
386
+ "git cat-file -p HEAD | grep gpgsig",
387
+ "cannot run gpg"
388
+ ]
389
+ },
324
390
  {
325
391
  "name": "autoscriptor",
326
392
  "description": "Generates production-grade automation scripts in Bash, Python, and PowerShell with idempotency, dry-run mode, error handling, and ShellCheck compliance. Use when a user needs a cron job, deployment script, file processing utility, system automation, or any CLI tool for repetitive developer or ops tasks.",