mpt-ext-task-create-work-branch
Skill3 starsChanged 4 months 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.
In this repository34 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/mpt-extension-skills.mdcCursor rule
- mpt-ext-task-apply-dashboard-jira-decisionSkill
- mpt-ext-task-commit-changesSkill
- mpt-ext-task-create-initial-epicSkill
- mpt-ext-task-dependabot-pr-policy-fixSkill
- mpt-ext-task-ensure-active-sprintSkill
- mpt-ext-task-fix-pre-commit-failuresSkill
- mpt-ext-task-fix-repository-check-failuresSkill
- mpt-ext-task-handle-pr-commentsSkill
- mpt-ext-task-move-jira-to-code-reviewSkill
- mpt-ext-task-move-jira-to-qaSkill
- mpt-ext-task-notify-pr-ready-in-teamsSkill
- mpt-ext-task-open-pull-requestSkill
- mpt-ext-task-run-repository-checksSkill
- mpt-ext-task-start-jira-workSkill
- mpt-ext-task-update-docs-from-changesSkill
- mpt-ext-task-write-documentationSkill
- mpt-ext-task-write-python-unittestsSkill
- mpt-ext-tool-gh-pr-opsSkill
- mpt-ext-tool-git-branch-opsSkill
- mpt-ext-tool-jira-workitem-opsSkill
- mpt-ext-tool-teams-send-messageSkill
- mpt-ext-workflow-address-review-feedbackSkill
- mpt-ext-workflow-complete-after-mergeSkill
- mpt-ext-workflow-dashboard-failure-triageSkill
- mpt-ext-workflow-decompose-tdrSkill
- mpt-ext-workflow-fix-dependabot-prsSkill
- mpt-ext-workflow-hotfix-backportSkill
- mpt-ext-workflow-notify-pr-readySkill
- mpt-ext-workflow-send-to-reviewSkill
- mpt-ext-workflow-skill-authoringSkill
- mpt-ext-workflow-start-workSkill
- mpt-ext-workflow-update-documentationSkill
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
- Distinctive: line 10
Create a correctly named work branch from Jira issue context.
- Distinctive: line 52
Read repository-specific docs when they exist, because they may extend or override shared guidance.
- Very specific: line 53
Read shared docs only when the repository explicitly points to them.
- Distinctive: line 55
Read the Jira issue.
- Distinctive: line 56
Use the shared Jira tool skill to fetch the issue title and description.
- Distinctive: line 57
Use the issue title as the primary source for the branch short description.
- Distinctive: line 58
Use the description only as fallback when the title is not sufficient.
- Distinctive: line 62
Use the bundled deterministic script to render the short description and target branch name from the Jira key, branch type, and issue text:
- Very specific: line 72
Use the script output fields short_description and branch_name.
- Distinctive: line 73
If the script cannot produce a slug, or if the generated slug is unclear or ambiguous for the requested work, ask the user before …
- Distinctive: line 76
Keep the Jira key uppercase in the branch name.
- Distinctive: line 79
Create the branch through the Git branch tool skill.
- Distinctive: line 87
If blocked, report whether the blocker comes from Jira data, branch-name ambiguity, or the underlying Git branch tool skill.
- Distinctive: line 91
Never invent Jira issue content.
- Distinctive: line 92
Never hand-build the branch slug or branch name when the bundled script can render it.
- Distinctive: line 93
Never hide the generated branch name from the user.
- Distinctive: line 94
Never bypass the Git branch tool skill for branch creation.
- Distinctive: line 95
Never embed Jira status transitions, sprint updates, or PR creation inside this task.
- Distinctive: line 96
Never continue with an unclear or low-quality branch slug when a short clarification from the user is needed.
≈ “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
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, orbackport. - 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:
featurebugfixhotfixbackport
- 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}/currentAssumptions
- 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
python3for the deterministic branch-name rendering script. - The shared skills package is installed or updated locally, and
scripts/render_branch_name.pyis 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
- Build repository context first.
- Read the target repository
AGENTS.mdonce 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}/currentwhen available; otherwise read them from themainbranch of the shared GitHub repository.
- 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.
- Derive the short branch description.
- For repositories that follow this package standard, read
standards/branching.mdusing 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_descriptionandbranch_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.
- 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.
- Create the branch through the Git branch tool skill.
- Pass the resolved
branch_typeand the finaltarget_branch_nametompt-ext-tool-git-branch-ops. - Let the Git branch tool skill handle base branch selection, dirty worktree checks, branch conflicts, and branch creation.
- 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_descriptionandbranch_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.
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.

