From 7dc741d1a729f2bf760ffdc237aea3739797a415 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Sun, 6 Dec 2026 18:18:04 +0000 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi --- plugins/git/.apm/skills/git-commits/SKILL.md | 4 ++-- .../skills/git-commits/references/commit-template.md | 4 +++- .../references/conventional-commits-spec.md | 4 ++-- .../skills/git-commits/references/create-commit.md | 2 +- plugins/gitea/.apm/skills/gitea-branches/SKILL.md | 2 +- .../.apm/skills/gitea-branches/references/sources.md | 10 +++++----- plugins/gitea/.apm/skills/gitea-issues/SKILL.md | 2 +- .../.apm/skills/gitea-issues/references/enrichments.md | 2 +- .../.apm/skills/gitea-issues/references/sources.md | 9 ++++----- .../gitea/.apm/skills/gitea-labels-milestones/SKILL.md | 2 +- .../gitea-labels-milestones/references/labels.md | 2 +- 11 files changed, 22 insertions(+), 21 deletions(-) diff --git a/plugins/git/.apm/skills/git-commits/SKILL.md b/plugins/git/.apm/skills/git-commits/SKILL.md index 4d8a569..b291ab7 100644 --- a/plugins/git/.apm/skills/git-commits/SKILL.md +++ b/plugins/git/.apm/skills/git-commits/SKILL.md @@ -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 "] + "footers": ["Fixes: #123", "Refs: #456", "Signed-off-by: Bob "] } } ``` diff --git a/plugins/git/.apm/skills/git-commits/references/commit-template.md b/plugins/git/.apm/skills/git-commits/references/commit-template.md index 885d686..78514a4 100644 --- a/plugins/git/.apm/skills/git-commits/references/commit-template.md +++ b/plugins/git/.apm/skills/git-commits/references/commit-template.md @@ -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. diff --git a/plugins/git/.apm/skills/git-commits/references/conventional-commits-spec.md b/plugins/git/.apm/skills/git-commits/references/conventional-commits-spec.md index 77f1528..d6be837 100644 --- a/plugins/git/.apm/skills/git-commits/references/conventional-commits-spec.md +++ b/plugins/git/.apm/skills/git-commits/references/conventional-commits-spec.md @@ -90,7 +90,7 @@ Rules: # # 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 +Signed-off-by: Alice BREAKING CHANGE: the `--format` flag now requires a value ``` diff --git a/plugins/git/.apm/skills/git-commits/references/create-commit.md b/plugins/git/.apm/skills/git-commits/references/create-commit.md index 2299b6f..3e448f5 100644 --- a/plugins/git/.apm/skills/git-commits/references/create-commit.md +++ b/plugins/git/.apm/skills/git-commits/references/create-commit.md @@ -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 `, `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 `, `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`. diff --git a/plugins/gitea/.apm/skills/gitea-branches/SKILL.md b/plugins/gitea/.apm/skills/gitea-branches/SKILL.md index d1eee2b..43b6224 100644 --- a/plugins/gitea/.apm/skills/gitea-branches/SKILL.md +++ b/plugins/gitea/.apm/skills/gitea-branches/SKILL.md @@ -12,7 +12,7 @@ compatibility: Requires Gitea MCP server configured with a token with write:repo metadata: category: integration - version: "0.1.4" + version: "0.1.5" source_keys: - gitea-mcp-repo - gitea-mcp-slim-go diff --git a/plugins/gitea/.apm/skills/gitea-branches/references/sources.md b/plugins/gitea/.apm/skills/gitea-branches/references/sources.md index 76fb66e..db3a15f 100644 --- a/plugins/gitea/.apm/skills/gitea-branches/references/sources.md +++ b/plugins/gitea/.apm/skills/gitea-branches/references/sources.md @@ -1,10 +1,10 @@ # Sources -**Note on call signatures:** per `docs/adr/0011-gitea-skill-deep-modules.md`, the tool parameter -signatures in `references/branches.md` and `references/commits.md` were re-verified live via -`ToolSearch` against the deployed `gitea-mcp` server — **last verified against v1.7.0**, as reported -by `get_gitea_mcp_server_version` — rather than copied verbatim from `api-reference.md` below. This resolves issue #6 comment #849's root-cause finding -that a prior skill was authored from API docs that had drifted from the actual MCP tool schema. +**Note on call signatures:** the tool parameter signatures in `references/branches.md` and +`references/commits.md` were re-verified live via `ToolSearch` against the deployed `gitea-mcp` +server — **last verified against v1.7.0**, as reported by `get_gitea_mcp_server_version` — rather +than copied verbatim from `api-reference.md` below, because API docs can drift from the actual MCP +tool schema, and a skill authored from them once shipped a wrong parameter. The research docs cited here informed gotchas, response shapes, and workflow context, not the parameter lists themselves. diff --git a/plugins/gitea/.apm/skills/gitea-issues/SKILL.md b/plugins/gitea/.apm/skills/gitea-issues/SKILL.md index cc9ce3a..3a56979 100644 --- a/plugins/gitea/.apm/skills/gitea-issues/SKILL.md +++ b/plugins/gitea/.apm/skills/gitea-issues/SKILL.md @@ -14,7 +14,7 @@ compatibility: Requires Gitea MCP server configured with write:issue and write:r metadata: category: integration - version: "0.1.5" + version: "0.1.6" source_keys: - gitea-mcp-repo - gitea-mcp-slim-go diff --git a/plugins/gitea/.apm/skills/gitea-issues/references/enrichments.md b/plugins/gitea/.apm/skills/gitea-issues/references/enrichments.md index 44d1c71..1ee58a1 100644 --- a/plugins/gitea/.apm/skills/gitea-issues/references/enrichments.md +++ b/plugins/gitea/.apm/skills/gitea-issues/references/enrichments.md @@ -8,7 +8,7 @@ source_keys: # Create-flow enrichments -Closes out the four enrichments deferred from issue #6 comment #848. Run in this order before the +Four enrichments to the create flow. Run them in this order before the `issue_write method: "create"` call in SKILL.md's create dispatch: **labels → milestone → assignee → dependency link**. Each step is independent and skippable on its own — a missing milestone fit doesn't block label inference, and so on — but this is the order that lets later diff --git a/plugins/gitea/.apm/skills/gitea-issues/references/sources.md b/plugins/gitea/.apm/skills/gitea-issues/references/sources.md index 7b60d71..30b92f1 100644 --- a/plugins/gitea/.apm/skills/gitea-issues/references/sources.md +++ b/plugins/gitea/.apm/skills/gitea-issues/references/sources.md @@ -1,10 +1,9 @@ # Sources -**Note on call signatures:** per `docs/adr/0011-gitea-skill-deep-modules.md`, the tool parameter -signatures in `references/issues.md` and `references/search.md` are re-verified live via -`ToolSearch` against the deployed `gitea-mcp` server — they are not copied verbatim from -`api-reference.md`. This resolves issue #6 comment #849's root-cause finding that a prior skill was -authored from API docs that had drifted from the actual MCP tool schema. That re-verification is +**Note on call signatures:** the tool parameter signatures in `references/issues.md` and +`references/search.md` are re-verified live via `ToolSearch` against the deployed `gitea-mcp` +server — they are not copied verbatim from `api-reference.md`, because API docs can drift from the +actual MCP tool schema, and a skill authored from them once shipped a wrong parameter. That re-verification is ongoing, not one-off: an earlier live check recorded `list_issues` as lacking the `type` and `milestones` parameters `api-reference.md` documents, and both are present on the deployed gitea-mcp **v1.7.0**, which is the version these signatures are current as of. diff --git a/plugins/gitea/.apm/skills/gitea-labels-milestones/SKILL.md b/plugins/gitea/.apm/skills/gitea-labels-milestones/SKILL.md index bd45428..7fd1078 100644 --- a/plugins/gitea/.apm/skills/gitea-labels-milestones/SKILL.md +++ b/plugins/gitea/.apm/skills/gitea-labels-milestones/SKILL.md @@ -16,7 +16,7 @@ metadata: - gitea-mcp-slim-go - context7-websites-gitea - context7-gitea-tea-cli - version: "0.1.7" + version: "0.1.8" allowed-tools: Bash mcp__gitea__label_read mcp__gitea__label_write mcp__gitea__milestone_read mcp__gitea__milestone_write --- diff --git a/plugins/gitea/.apm/skills/gitea-labels-milestones/references/labels.md b/plugins/gitea/.apm/skills/gitea-labels-milestones/references/labels.md index 7f9ff51..d2b54ce 100644 --- a/plugins/gitea/.apm/skills/gitea-labels-milestones/references/labels.md +++ b/plugins/gitea/.apm/skills/gitea-labels-milestones/references/labels.md @@ -61,7 +61,7 @@ per repo label. That does not contradict `label_write`'s schema, which annotates server-side; where it is `false` labels in that scope stack legitimately. Read the field — never infer exclusivity from the `/` in a name, and never carry another repo's map over. -On the instance this skill was authored against (`Mortis/Holocron`) the split ran: every +On the repo this skill was authored against the split ran: every `Priority/*`, `Reviewed/*` and `Status/*` label `exclusive: true`, every `Kind/*` label and `Compat/Breaking` `exclusive: false`. That is one repo's configuration at one point in time, recorded as a worked example of what the field looks like in practice — it is not a property of the taxonomy