finish-branch
Skill1 starsChanged 23 days agoMITView on GitHub
Finish work on a feature branch — tests, README/CHANGELOG/version check, merge into the main branch, branch clean-up and optional issue status update. Use when the user wants to finish, merge or close a feature branch. Examples: "finish the branch", "/finish-branch", "merge the feature branch into main", "dokonči branch".
- Commits and pushes
8 other projects use a version of this.
Adopted by
Most recently taken up by
- ariadoss/superskillstheir own version, first seen Nov 23, 2026
- Yesterday-AI/ytstacktheir own version, first seen Nov 8, 2026
- LARi-UQAC/ResearchToolstheir own version, first seen Nov 8, 2026
- kazemcodes/skill-treetheir own version, first seen Nov 8, 2026
- sergvss/agents-best-teamstheir own version, first seen Nov 1, 2026
- slowernet/dietpowerstheir own version, first seen Oct 4, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- LARi-UQAC/ResearchTools★ 15same name
- ariadoss/superskills★ 13same name
- KhaledSaeed18/dotclaude★ 7same name
- sergvss/agents-best-teams★ 2same name
- Yesterday-AI/ytstack★ 2same name
- jnsfhrmnn/jf-agentic-coding-starter-kit★ 1same name
- kazemcodes/skill-tree★ 1same name
- slowernet/dietpowers★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- bump-versionSkill
- create-issueSkill
- implement-issueSkill
- source-trust-assessmentSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 10 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 29
Verify that the branch exists and contains commits.
- Very specific: line 37
Run the same checks as CI (.github/workflows/ci.yml):
- Very specific: line 44
If vocabulary.ttl changed and rdflib is available, also parse the vocabulary (CI does this.
- Distinctive: line 51
If anything fails, STOP and report it.
- Distinctive: line 55
Check the project rules (AGENTS.md, CONTRIBUTING.md) against the changed files:
- Very specific: line 59
Codes are defined once: If the branch adds or changes a code, the same change is in references/methodology.md, …
- Very specific: line 62
Methodology versioning: If codes or rules changed, the methodology version was raised (SKILL.md metadata.methodology-version, header of …
- Very specific: line 65
Profiles: only specify codes, never redefine or add them.
- Very specific: line 71
Before merging the branch, verify that the READMEs match the state after the change.
- Very specific: line 72
Check both README.md and README.cs.md:
- Distinctive: line 86
If something does not match, fix it and commit it to the feature branch before the merge:
- Distinctive: line 92
If the READMEs match, skip the step and say so in the summary.
- Distinctive: line 98
Ask the user for the preferred procedure.
- Distinctive: line 111
STOP: - Wait for confirmation before merging.
- Very specific: line 122
Create the PR with gh pr create.
- Distinctive: line 126
Ask the user: "Is the issue completely finished by this?"
- Distinctive: line 133
Add the closing date
- Distinctive: line 142
Commit the issue status change:
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Finish a feature branch
Finish work on a feature branch — tests, README/CHANGELOG/version check, merge into the main branch, branch clean-up and optional issue status update.
@.claude/prompts/assistant-programming.md
<!-- This file is authoritative. SKILL.cs.md is a Czech translation for humans. -->IMPORTANT: NEVER add "Co-Authored-By: Claude noreply@anthropic.com" to code files or git commits.
Instructions
STEP 1: Establish the context
Ask me for:
- The name of the feature branch (or use the current branch)
- The target branch for the merge (default
main)
Verify that the branch exists and contains commits. List the changed files:
git diff --name-only <target-branch>...HEADSTEP 2: Run the checks
Run the same checks as CI (.github/workflows/ci.yml):
python -m unittest discover -s tests -v
python skills/source-trust-assessment/scripts/validate_assessment.py tests/fixtures/valid/*.jsonIf vocabulary.ttl changed and rdflib is available, also parse the vocabulary
(CI does this; it is not a dependency of the skill):
python -c "import rdflib; g = rdflib.Graph(); g.parse('skills/source-trust-assessment/assets/vocabulary.ttl', format='turtle'); print(len(g), 'triples')"If anything fails, STOP and report it. Do not merge a red branch.
STEP 3: Check consistency of the change
Check the project rules (AGENTS.md, CONTRIBUTING.md) against the changed files:
- Distributed directory stays clean.
skills/source-trust-assessment/contains no research notes, tests, CI files or other repository-only files. - Codes are defined once. If the branch adds or changes a code, the same change is in
references/methodology.md,assets/assessment.schema.json,assets/vocabulary.ttlandscripts/validate_assessment.py(+ tests). - Methodology versioning. If codes or rules changed, the methodology version was raised
(
SKILL.mdmetadata.methodology-version, header ofmethodology.md, schema$id) and there is an ADR indocs/adr/. If not, offer/bump-version. - Profiles only specify codes, never redefine or add them. A new profile is listed in
vocabulary.ttl(sta:profileScheme) and has a valid fixture intests/fixtures/valid/. - CHANGELOG.md has an entry under
## [Unreleased]for every user-visible change.
STEP 4: Update the READMEs
Before merging the branch, verify that the READMEs match the state after the change.
Check both README.md and README.cs.md:
- the methodology version in the overview (
Status: … (methodology X.Y.Z)/Stav: … (metodika X.Y.Z)) equalsmetadata.methodology-versioninSKILL.md, - the list of profiles (
cz,eu,bim, …) in the overview and in "Repository structure" matchesreferences/profiles/regions/andreferences/profiles/domains/, - install and use instructions and the repository structure are not outdated.
grep -n "methodology-version\| version" skills/source-trust-assessment/SKILL.md
grep -n "methodology\|metodika" README.md README.cs.md
ls skills/source-trust-assessment/references/profiles/*/If something does not match, fix it and commit it to the feature branch before the merge:
docs(<issue-id>): Update READMEsIf the READMEs match, skip the step and say so in the summary.
STEP 5: Merge and clean-up
What is a PR (Pull Request)? A request to integrate changes from a feature branch into the main branch. Used for code review in teams. For solo development a direct merge is possible.
Ask the user for the preferred procedure. Changes of the methodology (codes, rules) should go through a PR, because the maintainer must review them (GOVERNANCE.md).
Option A: Direct merge (default for solo development)
Find the source branch (the one the feature branch was created from) and merge:
git checkout <source-branch> # e.g. main
git merge feature/<issue-id>-<description>
git branch -d feature/<issue-id>-<description>STOP - Wait for confirmation before merging.
Option B: Pull Request (for team collaboration)
Prepare the PR description:
- Summary: What this PR does
- Motivation: Why (link to the issue, ADR if any)
- Changes: List of changes; methodology version change if any
- Testing: Steps to verify (
python -m unittest discover -s tests, validator on fixtures)
Create the PR with gh pr create.
STEP 6: Issue update (optional)
Ask the user: "Is the issue completely finished by this?"
If YES:
Edit the issue file in docs/issues/:
- Change
**Status**: Opento**Status**: Implemented(no emoji) - Add the closing date
Move the file to the archive and close the GitHub issue (there are no README tables — the list lives on GitHub):
git mv docs/issues/<NNN>-*.md docs/issues/done/
gh issue close <NNN> --repo cassandragargoyle/skill-source-trust-assessmentCommit the issue status change:
docs(<issue-id>): Close issue - implementation completeIf NO:
Skip the status update. The issue stays open for further work.
STEP 7: Summary
Show a summary:
- Tests and fixture validation: passed
- Consistency check (codes, versions, profiles, CHANGELOG): OK / fixed / issues
- READMEs updated: yes/no (not needed)
- Merge performed into branch:
<name>(or PR URL) - Feature branch deleted: yes/no
- Issue status updated: yes/no/skipped
- Next steps (if any, e.g.
/bump-versionbefore a release)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

