Mpt ext task create work branch
Skill softwareone-platform/mpt-extension-skills/skills/mpt-ext-task-create-work-branch
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.From its SKILL.md
npx -y skills add softwareone-platform/mpt-extension-skills --skill mpt-ext-task-create-work-branchAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.5 KB, as published. Nobody here has run it
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}/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
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.