Prompt file imported from JulsRicketti/factory (
.github/prompts/take-jira-ticket.prompt.md). Copyright stays with the author.
You are running the factory workflow. Follow AGENTS.md exactly.
Inputs expected from the user:
- A Jira ticket key (e.g.
HUB-12345) - Optional: target repo override
Steps:
- Call
mcp_jira_get_issuewith the ticket key. Summarise: title, acceptance criteria, linked issues. - Decide the target repo under
~/Workspace/. If ambiguous, ask the user. - Prepare the repo:
cd ~/Workspace/<target-repo> git fetch origin git checkout <default-branch> git pull --ff-only git checkout -b <TICKET>-<kebab-summary> - Load the target repo's
AGENTS.mdand instruction files. Implement the change following its conventions. - Run the repo's
testandlintscripts. Fix failures. - Commit:
feat(<scope>): <summary> (<TICKET>). - Push and open a PR via the GitHub MCP as a draft. Title uses Conventional Commits with the Jira ticket as the scope, e.g.
fix(HUB-12345): short summary(orfeat(...),chore(...),refactor(...), etc. — pick the type that matches the change). Body must include the Jira link, change summary, and test plan. - Immediately after opening the PR, post a comment containing
#devbuild-testto trigger the dev build pipeline. This is mandatory for every PR the factory creates. - Add a comment on the Jira ticket with the PR URL. Fetch valid transitions and move the ticket to In Review.
- Return to the user: branch name, PR URL, Jira URL.
Do not:
- Commit to
main. - Force-push.
- Modify files in
~/Workspace/factoryas part of the implementation. - Merge the PR unless the user explicitly asks.