agentleFS
softwareone-platformsoftwareone-platform/mpt-extension-skills/skills/mpt-ext-task-create-work-branch/SKILL.md

mpt-ext-task-create-work-branch

Skill3 starsChanged 25 days agoApache-2.0View on GitHub

Only create the work branch when starting work: derive the branch name from the Jira issue and apply the repo naming pattern. Does not change Jira state.

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 17 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈17

    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
  1. Distinctive:

    Create a correctly named work branch from Jira issue context.

    line 10
  2. Distinctive:

    Read repository-specific docs when they exist, because they may extend or override shared guidance.

    line 52
  3. Very specific:

    Read shared docs only when the repository explicitly points to them.

    line 53
  4. Distinctive:

    Read the Jira issue.

    line 55
  5. Distinctive:

    Use the shared Jira tool skill to fetch the issue title and description.

    line 56
  6. Distinctive:

    Use the issue title as the primary source for the branch short description.

    line 57
  7. Distinctive:

    Use the description only as fallback when the title is not sufficient.

    line 58
  8. Distinctive:

    Use the bundled deterministic script to render the short description and target branch name from the Jira key, branch type, and issue text:

    line 62
  9. Very specific:

    Use the script output fields short_description and branch_name.

    line 72
  10. Distinctive:

    If the script cannot produce a slug, or if the generated slug is unclear or ambiguous for the requested work, ask the user before …

    line 73
  11. Distinctive:

    Keep the Jira key uppercase in the branch name.

    line 76
  12. Distinctive:

    Create the branch through the Git branch tool skill.

    line 79
  13. Distinctive:

    If blocked, report whether the blocker comes from Jira data, branch-name ambiguity, or the underlying Git branch tool skill.

    line 87
  14. Distinctive:

    Never invent Jira issue content.

    line 91
  15. Distinctive:

    Never hand-build the branch slug or branch name when the bundled script can render it.

    line 92
  16. Distinctive:

    Never hide the generated branch name from the user.

    line 93
  17. Distinctive:

    Never bypass the Git branch tool skill for branch creation.

    line 94
  18. Distinctive:

    Never embed Jira status transitions, sprint updates, or PR creation inside this task.

    line 95
  19. Distinctive:

    Never continue with an unclear or low-quality branch slug when a short clarification from the user is needed.

    line 96

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

Create Work Branch

Purpose

Create a correctly named work branch from Jira issue context.

Use When

  • The user wants to start work on a Jira issue.
  • The user wants a branch name derived from Jira title or description.
  • The task requires choosing the correct branch naming pattern for feature, bugfix, hotfix, or backport.
  • The task requires creating the branch after reading Jira metadata.

Do Not Use When

  • The task is only to perform low-level Git branch operations on an already known branch name.
  • The task is only to update Jira status, sprint, or assignee without creating a branch.
  • The task is to open or update a pull request.

Inputs

  • Jira issue key.
  • Branch type:
    • feature
    • bugfix
    • hotfix
    • backport
  • Optional user direction when the Jira title or description is not sufficient to derive a safe short branch description.
  • Installed shared package root when shared package guidance is needed:
${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/current

Assumptions

  • Jira authentication is active so the issue title and description can be read before branch creation.
  • Local repository access and Git tooling are available for the underlying branch-creation step.
  • Python 3.12 or later is available as python3 for the deterministic branch-name rendering script.
  • The shared skills package is installed or updated locally, and scripts/render_branch_name.py is readable through ${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/current.
  • The repository state is clean enough for branch creation, or the user is available to decide how to proceed when the underlying Git branch tool reports a dirty worktree or branch conflict.

Workflow

  1. Build repository context first.
  • Read the target repository AGENTS.md once per session. If you already loaded it earlier in this session and still have its full contents, reuse them instead of re-reading; if the context was summarized or you are unsure it is complete, read it again. Do not pre-load shared docs in this step; read them lazily only when the repository points to them.
  • Read repository-specific docs when they exist, because they may extend or override shared guidance.
  • Read shared docs only when the repository explicitly points to them. Resolve those shared docs from ${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/current when available; otherwise read them from the main branch of the shared GitHub repository.
  1. Read the Jira issue.
  • Use the shared Jira tool skill to fetch the issue title and description.
  • Use the issue title as the primary source for the branch short description.
  • Use the description only as fallback when the title is not sufficient.
  1. Derive the short branch description.
  • For repositories that follow this package standard, read standards/branching.md using the shared-doc resolution rule from the repository context step, and use it as the source of truth for the branch naming pattern.
  • Use the bundled deterministic script to render the short description and target branch name from the Jira key, branch type, and issue text:
python3 "${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/current/skills/mpt-ext-task-create-work-branch/scripts/render_branch_name.py" \
  --jira-key MPT-1234 \
  --branch-type feature \
  --title "Add property validation" \
  --json
  • Use the script output fields short_description and branch_name.
  • If the script cannot produce a slug, or if the generated slug is unclear or ambiguous for the requested work, ask the user before continuing.
  1. Review the target branch name.
  • Keep the Jira key uppercase in the branch name.
  • Confirm the generated branch name follows the branch type pattern returned by the script.
  1. Create the branch through the Git branch tool skill.
  • Pass the resolved branch_type and the final target_branch_name to mpt-ext-tool-git-branch-ops.
  • Let the Git branch tool skill handle base branch selection, dirty worktree checks, branch conflicts, and branch creation.
  1. Report the result clearly.
  • Show the Jira issue key used.
  • Show the generated short description.
  • Show the final branch name.
  • If blocked, report whether the blocker comes from Jira data, branch-name ambiguity, or the underlying Git branch tool skill.

Guardrails

  • Never invent Jira issue content; read the actual issue first.
  • Never hand-build the branch slug or branch name when the bundled script can render it.
  • Never hide the generated branch name from the user.
  • Never bypass the Git branch tool skill for branch creation.
  • Never embed Jira status transitions, sprint updates, or PR creation inside this task.
  • Never continue with an unclear or low-quality branch slug when a short clarification from the user is needed.

Bundled Resources

  • scripts/render_branch_name.py
    • Inputs: Jira key, branch type, and Jira title or fallback description
    • Output: repository-safe branch name, or JSON with short_description and branch_name
    • Runtime path: ${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/current/skills/mpt-ext-task-create-work-branch/scripts/render_branch_name.py

Expected Outcome

A repository-safe work branch name is derived from Jira issue context and the branch is created through the shared Git branch tool skill, or the task stops with a clear blocker that requires user direction.

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.