Bump skill
Stack-agnostic agentic-programming workflow skills + documentation scaffold
npx -y skills add gtrabanco/agentic-workflow --skill bump-skillAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 19 stars19 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Internal skill for the agentic-workflow repo. After editing one or more SKILL.md files, bumps their `version:` fields and updates every piece of documentation in the repo that must stay in sync: CHANGELOG.md, CHANGELOG.es.md, README.md, and README.es.md. Run before committing any skill change. On Claude Code and want hand-tuned per-skill model/effort tiers? Install the `#claude` branch instead (`npx skills add gtrabanco/agentic-workflow#claude`) — see the README. This branch is model-agnostic: the skill inherits whatever model and effort your agent session is already using. Trigger phrases: "bump the skill version", "update the version", "update the changelog", "I just changed a skill", "log this change", "version bump".
SKILL.md
12.9 KB, as published. Nobody here has run it
Turn contract — verify before ending the turn
✓ Every changed skill's version: was bumped and BOTH changelogs got their rows
✓ The lint results (all 7 authoring rules, including the two machine-surface
parity/ordering checks and the internal-skill discovery-exclusion check)
were reported
✓ The git add + commit command block is printed as the ABSOLUTE last output
About to end the turn with any box unchecked? The turn is NOT done — complete the missing box first.
When to use
After any edit to one or more skills/<name>/SKILL.md files in this repo,
before committing. Handles the full documentation surface so nothing drifts.
Step 0 — Orientation
This skill is specific to the agentic-workflow repository. Before doing
anything, confirm you are in that repo (presence of skills/ + CHANGELOG.md
CHANGELOG.es.md). If not, stop and tell the user.
Versioning policy (from CHANGELOG.md):
| Bump | When |
|---|---|
| major | rename, removed/renamed flag, changed contract or output shape — ships with a migration note |
| minor | new backward-compatible capability: new flag, new section, new routing case |
| patch | wording, examples, clarifications, internal tidy — no behavior change |
Process
1. Identify changed skills
Run git diff --name-only HEAD and git diff --cached --name-only to find
every modified skills/*/SKILL.md. Union both lists (covers staged and
unstaged). If the user names specific skills explicitly, use those instead and
verify the files exist.
If no modified skill files are found, say so and stop.
2. For each changed skill — read the diff and determine the bump
Run git diff HEAD skills/<name>/SKILL.md (add --cached if staged). Read
the diff carefully:
- major — the
name:changed, a flag or section was removed, the output contract changed fundamentally. Also checkdocs/workflow/MIGRATION.mdto see if a migration note is needed. - minor — a new section, new flag, new routing case, or meaningfully expanded capability was added.
- patch — wording, examples, formatting, or internal clarifications only.
If the nature of the change is ambiguous, ask the user before proceeding. One question covering all ambiguous skills at once is fine.
2b. Lint the repo's authoring rules (flag, don't fix)
For each changed skill, check the seven CLAUDE.md authoring invariants and warn
if violated (this skill never edits a SKILL.md beyond its version: line, so it
reports — it does not auto-correct):
- Closing
→ Next:block. A user-facing skill should end with a visible→ Next:recommendation block (recommended command + open·alternatives), not just a "Done when" bullet.grep -L '→ Next:' skills/<name>/SKILL.mdflags a miss. - Phase naming. Plans use
P1, P2, …("phases") only — neverS1/S2/"Step N".grep -nE '\bS[0-9]\b|\bStep [0-9]' skills/<name>/SKILL.mdshould return nothing in a planning/execution context; flag any hit for the user to fix before committing. - Portability section. Every user-facing skill (
user-invocable: true) carries a## Portabilitysection with the standard non-Claude-Code fallbacks.grep -L '^## Portability' skills/<name>/SKILL.mdflags a miss (skip this check for internal skills). - Turn contract. Every user-facing skill opens with a
## Turn contractsection (deliverable in fixed format;→ Next:printed last; executors run commands, never describe them).grep -L '^## Turn contract' skills/<name>/SKILL.mdflags a miss (skip for internal skills). plugin.jsonparity. Everyskills/<name>/withuser-invocable: truehas a matching./skills/<name>entry in.claude-plugin/plugin.json. Compare the two sets (directories vs. array entries) and flag anyuser-invocable: trueskill missing from the array — this is what leftfold-findingsinstalling outside its category (see #71).- Machine-surface alphabetical order.
.claude-plugin/plugin.json'sskillsarray anddocs/workflow/model-routing.yml's top-level keys must each be alphabetical (perCLAUDE.md's Conventions table). Extract each surface's ordered list and diff it against its sorted form (sort -c-equivalent); flag any surface that fails. - Internal-skill discovery exclusion. Any
skills/<name>/that is bothuser-invocable: falseand absent fromplugin.json'sskillsarray is repo-internal (meaningless outside this repo) and must carrymetadata.internal: truein its frontmatter — the only mechanism theskillsCLI honors to keepnpx skills add . --listfrom discovering and offering it (user-invocable/plugin.jsonalone do not gate discovery; seedocs/fix/74-bump-skill-discovery-exclusion/decisions.md). Skills present inplugin.jsonare exempt even ifuser-invocable: false(they are shipped sub-skills composed by orchestrators, not repo-internal — e.g. thereview-*pack,orchestration-envelope,plan-feature-scaffold,plan-feature-from-issue). For each changed skill: ifuser-invocable: falseand its./skills/<name>entry is absent fromplugin.json, check the frontmatter block only (the region between the first two---lines) for an anchoredinternal: truekey — e.g.awk '/^---$/{c++} c==1' skills/<name>/SKILL.md | grep -qE '^\s*internal:\s*true\s*$'— should succeed; flag a miss. Matching anywhere in the body (not just the frontmatter) would let this rule's own prose aboutmetadata.internal: truesatisfy the check for a skill that never actually sets the key.
Report violations in the summary; do not block the bump on them.
3. Compute the new version
Parse version: from the SKILL.md frontmatter (line matching ^version:).
Apply the semver bump: increment the appropriate component, reset lower
components to zero.
Examples: 1.2.3 + patch → 1.2.4; 1.2.3 + minor → 1.3.0;
1.2.3 + major → 2.0.0.
4. Update version: in the SKILL.md frontmatter
Replace only the version: line in the YAML frontmatter. Touch nothing else
in the file.
5. Add a row to CHANGELOG.md
Locate the per-skill table for <name> under ## Per-skill version history.
Insert a new row at the top of that skill's table (newest first):
| <new-version> | <YYYY-MM-DD> | <bump-type> | <one-sentence summary> |
- Use today's date.
- Bump type:
major,minor, orpatch. - Summary: one tight sentence describing the actual behavioral change — not the name of the bump type. Write it so a reader instantly knows what changed.
If the skill has no table yet (new skill), create one with the standard header:
#### `<name>`
| Version | Date | Type | What changed |
|---|---|---|---|
| <new-version> | <YYYY-MM-DD> | — | First versioned release |
Place it in the correct subsection: User-facing if user-invocable: true,
Internal (user-invocable: false) otherwise.
Also append a brief entry to the Release log section at the bottom of
CHANGELOG.md if this is the first bump in a new date (i.e. no entry for
today yet). Merge all same-day bumps into one log line.
6. Add the matching row to CHANGELOG.es.md
Find the same skill's table in CHANGELOG.es.md and add the equivalent row
in Spanish. The content must match exactly — this is a translation, not a
separate record. Follow the same "newest first" order.
If the skill has no table yet in CHANGELOG.es.md, create one following the
same structure as the English version, adapted to Spanish (see existing entries
for phrasing conventions).
7. Check and update README.md
Open README.md and check two sections:
a) Skills table (under ## The skills): find the row for this skill.
If the skill's description or primary behavior changed (minor or major bump),
rewrite the "What it does" cell to reflect the current state. For patch bumps,
no change is needed unless the cell is already inaccurate.
b) Model & effort table (under ## Recommended model & effort): main
carries no model:/effort: frontmatter — this table documents the
#claude branch's tiers, sourced from docs/workflow/model-routing.yml. If
the user asks to change this skill's tier, update model-routing.yml (never
the claude branch directly — it's force-pushed by CI on every push to
main and a direct edit is lost) and mirror the new value into this table
row.
Make no other changes to README.md.
8. Check and update README.es.md
Apply the same checks as step 7 to README.es.md, translating any updated
text to Spanish.
8b. docs/workflow/model-routing.yml (only when a tier changed)
If step 7b changed a model/effort tier, this file must already reflect it
(step 7b is where the edit happens — this is a reminder to not skip it, not a
separate edit). Verify the skill's block matches what you just wrote to the
README table. sync-derived-branches.yml reads this file on every push to
main to regenerate the claude branch — a mismatch here means the next
CI run rewrites claude with a value the README doesn't document.
9. Handle major bumps — migration note
If any skill received a major bump due to a rename or removed/renamed flag:
- Check
docs/workflow/MIGRATION.md. If it exists, append a migration note. If it does not exist yet, create it with the standard header and the note. - Update
CLAUDE.mdunder "Skills available in this repo" if the skill's name or contract description changed there. - Search the repo for cross-references to the old name:
grep -r "<old-name>" docs/ skills/ --include="*.md" -land update any that now point to the wrong contract.
10. Print a summary and the next step
Print a table:
skill old → new bump
─────────────────────────────────────────
execute-phase 1.2.0 → 1.3.0 minor
plan-fix 1.0.1 → 1.0.2 patch
Then print the next step:
All documentation updated. Stage and commit:
git add skills/<name>/SKILL.md CHANGELOG.md CHANGELOG.es.md README.md README.es.md git commit -m "chore(skills): bump <name> to <version> — <one-line reason>"If this is a major bump with a migration note, also add
docs/workflow/MIGRATION.md.
Guardrails
- Never change anything in a SKILL.md except the
version:line. - Never commit or push — this skill only edits files.
- If a skill file is not tracked by git (new file not yet added), note it and still update the SKILL.md version and CHANGELOG entries, but warn that the diff-based bump analysis is unavailable for untracked files — ask the user what changed.
- For the README cells, prefer updating over rewriting: keep the existing tone and length; change only what is factually wrong or missing.
Portability (agents other than Claude Code)
This skill is repo-maintenance for agentic-workflow itself, but the repo may
be worked on from any agent:
- No slash-command menu — follow this
SKILL.mddirectly after editing any skill, before committing. - No per-skill
model:/effort:— a mid-tier model is enough; this is mechanical version/changelog bookkeeping.
Relationship to other skills
- Run after any manual edit to a skill or after
execute-phasetouches a skill file, and before the commit. CLAUDE.mdsection "Version every change" is the policy this skill enforces mechanically.- Major bumps that introduce renames feed into
docs/workflow/MIGRATION.md, whichinit-workspacereads when installing.
Done when
- Every modified skill's
version:field is updated. CHANGELOG.mdandCHANGELOG.es.mdeach have a new row for every bumped skill, newest first.README.mdandREADME.es.mdskills and model tables are accurate.- Major bumps have a migration note and cross-reference updates.
- Any authoring-rule violations (missing
→ Next:block,S1/"Step" phase labels, auser-invocable: trueskill absent fromplugin.json, a non-alphabetical machine surface) are reported for the user to fix before committing. - The next step is printed — the
git add+git commitcommand, ready to run.