development-branch-closeout
Skill12 starsChanged 6 months agoApache-2.0View on GitHub
Use after implementation and required verification when PM/coordinator must choose merge, pull request, preserve, discard, or workspace cleanup handling for the current branch.
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- brainstormingSkill
- change-verificationSkill
- context-packet-fastpathSkill
- core-workflow-contractSkill
- developer-workflowSkill
- dispatching-parallel-agentsSkill
- evolution-loopSkill
- executing-plansSkill
- frontend-designer-workflowSkill
- frontend-design-guardrailsSkill
- quality-assurance-workflowSkill
- repo-init-gateSkill
- repo-init-manual-fallbackSkill
- repo-init-officialSkill
- repo-init-scanSkill
- root-cause-fixer-workflowSkill
- root-cause-investigationSkill
- search-fastpathSkill
- security-reviewer-workflowSkill
- senior-project-expertSkill
- senior-project-expert-workflowSkill
- spec-execution-fastpathSkill
- specification-writer-workflowSkill
- spec-review-gauntletSkill
- structured-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- target-instructions-bootstrapSkill
- target-memory-bootstrapSkill
- target-spec-bootstrapSkill
- td-java-coding-guidelinesSkill
- td-python-coding-guidelinesSkill
- technical-architect-workflowSkill
- test-driven-developmentSkill
- verification-before-completionSkill
- web-experience-auditSkill
- workspace-isolationSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
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 8
Use this after required reviews and verification have evidence.
- Very specific: line 27
Use native ask UI when available.
- Very specific: line 34
If native ask UI is unavailable and a choice is required, follow the Native Ask Contract from core-workflow-contract for fallback behavior.
- Distinctive: line 38
Do not merge, push, delete, or discard unless the user explicitly chose that action.
- Distinctive: line 39
Do not offer merge/PR as complete when verification is failed or blocked.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Development Branch Closeout
Use this after required reviews and verification have evidence. It turns branch handling into an explicit, safe PM decision.
Preconditions
- Required implementation, review, and verification evidence is present or explicitly blocked.
- Current branch, worktree state, base branch, and dirty status are known.
- Top-level session or PM/coordinator owns the user-facing decision.
Detect
git status --shortgit branch --show-currentgit rev-parse --git-dirgit rev-parse --git-common-dirgit rev-parse --show-toplevel- Candidate base:
main,master, or PM-provided base branch.
Decision Surface
Use native ask UI when available. Follow the Native Ask Contract from core-workflow-contract for structured ask UI requirements. Present only applicable options:
merge_local: merge to the selected base branch after verification on the merge result.open_pr: push the branch and create a pull request; preserve the worktree for review follow-up.keep_branch: leave branch/worktree as-is and report path, branch, and next manual command.discard: destructive path; requires explicit typed confirmation and a list of commits/files/worktree path that would be removed.
If native ask UI is unavailable and a choice is required, follow the Native Ask Contract from core-workflow-contract for fallback behavior.
Safety Rules
- Do not merge, push, delete, or discard unless the user explicitly chose that action.
- Do not offer merge/PR as complete when verification is failed or blocked.
- Cleanup only worktrees known to be project-created, such as under
.worktrees/,worktrees/, or aworkspace-isolationartifact. Never remove harness-owned or unknown workspaces. - For
open_prandkeep_branch, preserve the worktree. - For
discard, require exact typed confirmation before deleting anything.
Output
Return:
branch_statebase_branchdirty_statusverification_summarydecision_optionsselected_actioncleanup_scoperesidual_risk
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.

