with one click
jira-implement-task
// Fetch Jira ticket, create branch, implement changes, commit, push, open PR.
// Fetch Jira ticket, create branch, implement changes, commit, push, open PR.
Set up the restore-context hook so skills can resume workflows after /clear and /compact. Use when setting up a new project or after cloning a repo that uses restore-context skills.
Manage restore context files so skills can survive /clear and /compact. Use to write, delete, check, or list .agent-restore-context-* files.
Generate AI-assisted navigation aids to help humans start reviewing a pull request more efficiently. Use when starting a PR review to get oriented on large or unfamiliar changes.
Persist guidelines, conventions, and architectural decisions into the repository's knowledge base. Use when told to remember something for future sessions.
Perform migrations for Renovate dependency upgrades based on breaking changes identified in a review. Use after running /renovate-review.
Review Renovate dependency upgrade PRs to assess safety and effort. Use when reviewing PRs from Renovate bot that update NPM dependencies.
| name | jira-implement-task |
| description | Fetch Jira ticket, create branch, implement changes, commit, push, open PR. |
| disable-model-invocation | false |
| argument-hint | <ticket-key> |
| allowed-tools | Bash, Grep, Glob, Read, Edit, Write, Agent |
| scope | ["jira"] |
You are a software engineer. This skill takes a Jira ticket key, reads its description, and implements the work end-to-end: branch creation, code changes, commits, push, and PR.
Parse $ARGUMENTS to extract:
FEC-123). Required.Restore Context
This skill uses
/agent-restore-contextas a safety net in case/compactor/clearhappens mid-implementation.
- Step 0:
/agent-restore-context checkto verify the hook is set up.- Step 3a:
/agent-restore-context write jira-implement-taskonce after creating the implementation plan.- Step 3c:
/agent-restore-context delete jira-implement-taskwhen done.
Invoke /agent-restore-context check. This verifies the hook is configured and
will invoke /agent-restore-context-setup if needed.
Before starting, read the project's CLAUDE.md and/or AGENTS.md to determine
the following project-specific settings. These files are the source of truth for
how to work in this repo.
| Setting | What to look for | Fallback default |
|---|---|---|
| Test command (files) | Command to run tests for specific files/folders | pnpm test <files> |
| Test command (full) | Command to run the full test suite | pnpm test |
| Branch naming | Branch naming convention or prefix rules | <TICKET-KEY>-<slug> |
| Base branch | Default branch to branch from | main |
| Commit format | Commit message convention | Conventional commits |
| Component workflow | Command/process for new components (e.g., /propose-component) | None |
| Available agents | Specialized agents for research, coding, review | None |
If a setting is not found in CLAUDE.md, AGENTS.md, rules/, or /docs, ask the
user whether they want to add it to CLAUDE.md, AGENTS.md, rules/ or /docs ā or
use the fallback default for this run only.
Use the Atlassian MCP tools to retrieve the ticket:
mcp__atlassian__getAccessibleAtlassianResources to get the cloud IDmcp__atlassian__getJiraIssue with the cloud ID and ticket keyIf the ticket cannot be found, report the error and stop. Always write Markdown to Jira, never ADF ā the MCP tools handle conversion.
Determine the branch name using the project's branch naming convention and the base branch from project configuration.
Create a branch from the base branch in the current working tree:
git checkout <base-branch>
git pull
git checkout -b <branch-name>
If the branch already exists, ask the user whether to check out the existing
branch or create a new one with a -v2 suffix.
<skills-dir>/jira-implement-task/plans/<TICKET-KEY>-plan.md (where
<skills-dir> is .agents/skills/ or .claude/skills/ per the detected
layout). Each task should be independently testable and committable. Commit
the plan so it can be shared for handoff. Delete it before merging or keep
it as a record./agent-restore-context write jira-implement-task
with content that includes the ticket key, branch name, plan file path,
and the instruction to read the plan file before doing any work.For each task in the implementation plan:
If stuck after 3 attempts on a task, stop and ask the user for guidance.
Once all tasks in the plan are implemented and passing:
/agent-restore-context delete jira-implement-task.CLAUDE.md / AGENTS.mdRun gh repo view --json viewerPermission --jq '.viewerPermission'. If the
result is READ, skip push and PR ā print the exact git push and
gh pr create commands for the user to run manually, then stop.
git push -u origin <branch-name>
gh pr create --title "<type>(<scope>): <summary>" --body "$(cat <<'EOF'
## Summary
<1-5 bullet points describing the changes>
Closes <TICKET-KEY>
## Test plan
- [ ] <verification steps>
š¤ Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
Return the PR URL to the user when done.
Implement Jira task: $ARGUMENTS