agentleFS
ArcanEdge-AIArcanEdge-AI/coding-agent-playbook-codex/skills/feature-branch-lifecycle/SKILL.md

feature-branch-lifecycle

Skill3 starsChanged 3 months agoMITView on GitHub

Use when a feature, change, or update may use one or more development branches and must be integrated, validated, promoted through long-lived integration and production branches, and cleaned up safely.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 8 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to keep feature assembly out of long-lived branches and to make promotion and cleanup explicit.

    line 8
  2. Very specific:

    Read references/branching-rule.md before creating the branch structure, opening an integration or promotion pull request, or deleting …

    line 10
  3. Distinctive:

    Before applying the branching model, inspect:

    line 14
  4. Very specific:

    Use the repository's actual branch names.

    line 21
  5. Distinctive:

    If the repository does not have an established long-lived integration and production branch model, do not create or rename those branches …

    line 23
  6. Distinctive:

    When the model applies:

    line 27
  7. Distinctive:

    Create the feature integration branch from the current integration branch.

    line 39
  8. Distinctive:

    Create feature-scoped development branches from the feature integration branch.

    line 40
  9. Distinctive:

    Never delete permanent integration or production branches.

    line 45
  10. Distinctive:

    Delete temporary local and remote branches only after the cleanup gates pass and authority exists for the exact deletion.

    line 46
  11. Very specific:

    Use multi-session-coordination when independent Codex tasks or other owners are working on related branches.

    line 50
  12. Very specific:

    Use worktree-lifecycle when any participating branch is checked out in an auxiliary worktree.

    line 51
  13. Very specific:

    Use task-graph-orchestration when integration, validation, promotion, and cleanup form part of a broader dependency graph.

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Feature Branch Lifecycle Skill

Use this skill to keep feature assembly out of long-lived branches and to make promotion and cleanup explicit.

Read references/branching-rule.md before creating the branch structure, opening an integration or promotion pull request, or deleting temporary branches.

Applicability Gate

Before applying the branching model, inspect:

  • applicable repository instructions
  • the default, current, integration, and production branches
  • relevant remotes, pull requests, branch protections, and worktrees
  • active work that may still depend on a temporary branch

Use the repository's actual branch names. The examples use staging and main.

If the repository does not have an established long-lived integration and production branch model, do not create or rename those branches merely because this skill is available. Follow a more specific repository workflow or obtain an explicit maintainer decision.

Lifecycle Invariants

When the model applies:

development branches
        ↓
feature integration branch
        ↓
long-lived integration branch (for example, staging)
        ↓
long-lived production branch (for example, main)
  • Create the feature integration branch from the current integration branch.
  • Create feature-scoped development branches from the feature integration branch.
  • Merge development branches only into the feature integration branch.
  • Validate the complete intended change on the feature integration branch before promotion.
  • Promote the feature integration branch to the integration branch with one pull request.
  • Promote to the production branch only from the integration branch.
  • Never delete permanent integration or production branches.
  • Delete temporary local and remote branches only after the cleanup gates pass and authority exists for the exact deletion.

Related Skills

  • Use multi-session-coordination when independent Codex tasks or other owners are working on related branches.
  • Use worktree-lifecycle when any participating branch is checked out in an auxiliary worktree. A branch and a worktree are not interchangeable lifecycle units.
  • Use task-graph-orchestration when integration, validation, promotion, and cleanup form part of a broader dependency graph.

Required Result

Track and report:

  • the resolved branch roles and exact branch names
  • the base and destination of each temporary branch
  • complete-feature validation evidence
  • pull-request and merge state
  • cleanup eligibility and final disposition for each temporary branch
  • any missing authority, failed gate, or active dependency that requires preservation

The branching rule defines required sequencing. It does not provide blanket authority to create remote infrastructure, open or merge pull requests, delete branches, or promote production.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.