fix(plugins): make git and gitea skill content repo-neutral
Consumer repos install these skills, so they must not carry this repo's attribution policy, slug, ADR paths, or issue references. git-commits trailer examples now show only neutral trailers, and commit-template.md defers AI-attribution and co-author trailers to the consumer repo's AGENTS.md, CONTRIBUTING, or session instructions. The gitea sources notes state the live-verification rule plainly instead of citing an ADR, and labels.md drops the repo slug. Refs: #177 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
This commit is contained in:
1 parent
f3075ae01e
commit
7dc741d1a7
11 files changed
+22
-21
No files matched your search
@@ -8,7 +8,7 @@ description: >
|
||||
Not branch lifecycle -> `git-branches`.
|
||||
|
||||
metadata:
|
||||
version: "0.1.8"
|
||||
version: "0.1.9"
|
||||
category: git
|
||||
source_keys:
|
||||
- conventional-commits-spec
|
||||
@@ -65,7 +65,7 @@ For an agent caller, return:
|
||||
"scope": "api",
|
||||
"description": "add user authentication",
|
||||
"body": "optional body text, or null",
|
||||
"footers": ["Fixes: #123", "Refs: #456", "Co-authored-by: Bob <[email protected]>"]
|
||||
"footers": ["Fixes: #123", "Refs: #456", "Signed-off-by: Bob <[email protected]>"]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -59,8 +59,10 @@ Refs:
|
||||
ADR:
|
||||
RFC:
|
||||
Design:
|
||||
Co-authored-by:
|
||||
Reviewed-by:
|
||||
Signed-off-by:
|
||||
BREAKING CHANGE:
|
||||
```
|
||||
|
||||
Add an AI-attribution or co-author trailer only when the repo's AGENTS.md or CONTRIBUTING, or the
|
||||
session instructions, ask for one, and use exactly the form they give.
|
||||
@@ -90,7 +90,7 @@ Rules:
|
||||
<token> #<value> # for issue references
|
||||
```
|
||||
|
||||
- Tokens use hyphens for word separation: `Reviewed-by`, `Co-authored-by`, `Refs`.
|
||||
- Tokens use hyphens for word separation: `Reviewed-by`, `Signed-off-by`, `Refs`.
|
||||
- Exception: `BREAKING CHANGE` (space allowed, uppercase).
|
||||
- Multiple footers allowed, one per line.
|
||||
- Blank line required before the footer block.
|
||||
@@ -99,7 +99,7 @@ Valid footer examples:
|
||||
```text
|
||||
Reviewed-by: Z
|
||||
Refs: #123
|
||||
Co-authored-by: Alice <[email protected]>
|
||||
Signed-off-by: Alice <[email protected]>
|
||||
BREAKING CHANGE: the `--format` flag now requires a value
|
||||
```
|
||||
|
||||
|
||||
@@ -12,6 +12,6 @@ source_keys:
|
||||
3. **Determine the scope** — infer it from the files changed (`api`, `db`, `cli`, `config`). Scope is optional, but it identifies which part of the system moved and is worth setting.
|
||||
4. **Write the description** — imperative mood, no trailing period: "add user authentication", "fix race condition in cache". Neither source spec sets a target below the 100-character header maximum, but convention favours roughly 50 characters so `git log --oneline` stays readable.
|
||||
5. **Add a body when the change is non-trivial** — blank line first, wrapped at 100 characters. Explain *why*, not what: the diff already shows what changed, and the message's job is the context the diff cannot carry — motivation, root cause, tradeoffs. Follow the Why / Implementation Notes / Impact structure in `references/commit-template.md`.
|
||||
6. **Add footers where they apply** — `Fixes: #123`, `Refs: #123`, `ADR: 0012`, `Co-authored-by: Name <email>`, `BREAKING CHANGE: description`. For the full trailer list, read `references/commit-template.md`.
|
||||
6. **Add footers where they apply** — `Fixes: #123`, `Refs: #123`, `ADR: 0012`, `Signed-off-by: Name <email>`, `BREAKING CHANGE: description`. For the full trailer list, read `references/commit-template.md`.
|
||||
7. **Signal a breaking change with `!` before the colon** — `feat!: drop Node 6` is visible in `git log --oneline`, where the `BREAKING CHANGE:` footer alone is machine-readable but hidden. Use both when the break needs describing.
|
||||
8. **Validate, confirm, execute** — check header length, type, lowercase subject and trailing period against commitlint, show the message, and commit only once the caller has approved. Never add `--no-verify`.
|
||||
Reference in new issue
Block a user