work-on-ticket
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "work-on-ticket" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b9241f6f5f43935754467886f382f840407bd24ae646cd47f29eabc551ab592d. Verify the upstream source and version against https://github.com/jjmartres/opencode before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Fetches Jira ticket details, creates a appropriately named Git branch, and initiates task planning. To be used only when the user indicates “handle [TICKET_ID]” or a similar phrase.
Introduction source: third_party · jjmartres · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Fetches Jira ticket details, creates an appropriately named branch, and initiates the task planning workflow. Use when the user says "work on [TICKET_ID]" or similar phrases.
- Audience
- Activate this skill when: The user says "work on AGP-123" or "start work on AGP-123" The user says "pick up AGP-123" or "begin AGP-123" The user mentions starting work on a specific Jira ticket ID Pattern: `work on [TICKET_ID]` or similar intent
- Testing
- Not tested
Browse files
Frontmatter
name: work-on-ticket
description: Fetches Jira ticket details, creates an appropriately named branch, and initiates the task planning workflow. Use when the user says "work on [TICKET_ID]" or similar phrases.Work on Ticket
Streamlined workflow to start work on a Jira ticket by fetching ticket details, creating a branch, and initiating task planning.
When to Use This Skill
Activate this skill when:
- The user says "work on AGP-123" or "start work on AGP-123"
- The user says "pick up AGP-123" or "begin AGP-123"
- The user mentions starting work on a specific Jira ticket ID
- Pattern:
work on [TICKET_ID]or similar intent
Workflow
1. Parse Ticket ID
Extract the Jira ticket ID from the user's message. Common patterns:
work on AGP-782start AGP-782pick up PROJ-123
Ticket ID format: [A-Z]+-[0-9]+ (e.g., AGP-782, AICC-123)
2. Fetch Jira Ticket Details
Use the MCP Zapier tool to fetch the ticket:
mcp__zapier -
frontend__jira_software_cloud_find_issue_by_key({
instructions: "Get details for ticket [TICKET_ID]",
key: "[TICKET_ID]",
fields: "summary,description,issuetype,priority,status",
});
Extract from response:
- Summary (title)
- Description
- Issue type
- Status
- Any other relevant context
3. Generate Branch Name
Create a branch name using this format:
[TICKET_ID]-[kebab-case-summary]
Branch Naming Rules:
- Start with the ticket ID (e.g.,
AGP-782-) - Convert summary to kebab-case (lowercase, dashes instead of spaces)
- Remove special characters
- Keep it concise (max 50 characters total)
- Use meaningful words from the summary
Examples:
AGP-782-migrate-existing-mcp-serverAICC-123-fix-auth-token-expiryPROJ-456-add-user-settings-page
Implementation:
# Convert summary to kebab-case
# Example: "Migrate existing MCP server" -> "migrate-existing-mcp-server"
4. Create Isolated Worktree under .worktree/
In accordance with the Git Worktree Policy, do NOT run git checkout -b in the primary workspace. Create an isolated worktree under .worktree/:
BRANCH_NAME="[TICKET_ID]-[kebab-case-summary]"
REPO_ROOT=$(git rev-parse --show-toplevel)
# Ensure .worktree/ is ignored
grep -q "^\.worktree/" .gitignore 2>/dev/null || echo ".worktree/" >> .gitignore
# Fetch latest default branch
git fetch origin
# Create isolated worktree under .worktree/
git worktree add ".worktree/${BRANCH_NAME}" -b "${BRANCH_NAME}"
5. Relocate OpenCode Session
Immediately move the active OpenCode session to the new worktree using execute:
await tools.opencode.session_move({ directory: `${REPO_ROOT}/.worktree/${BRANCH_NAME}` });
Confirm to User: "Created isolated worktree at .worktree/${BRANCH_NAME} and relocated session."
6. Build Task Planning Prompt
Analyze the Jira ticket and create a comprehensive prompt for the /eng:chore command:
Prompt should include:
- The ticket summary
- Key details from the description
- Any acceptance criteria mentioned
- Relevant technical context
Example prompt construction:
Summary: [ticket.summary]
Description: [ticket.description]
Acceptance Criteria:
[extracted criteria if present]
7. Execute Task Planning
Run the /eng:chore slash command with the ticket number and constructed prompt:
/eng:chore [TICKET_ID] [CONSTRUCTED_PROMPT]
Example:
AGP-782 Migrate existing MCP server implementation to new architecture
Description: We need to refactor the MCP server to use the new modular architecture. This includes updating the tool registry, migrating existing tools, and ensuring backward compatibility.
Acceptance Criteria:
- All existing tools work with new architecture
- Tests pass
- No breaking changes to API
Error Handling
If ticket not found:
- Inform User: "Couldn't find ticket [TICKET_ID] in Jira. Please check the ticket ID."
- STOP - don't proceed with branch creation
If branch already exists:
- Inform User: "Branch [BRANCH_NAME] already exists."
- Ask: "Should I check it out, create a new branch with a different name, or stop?"
- Wait for decision
If git operations fail:
- Show the error to User
- STOP - don't proceed to task planning
Example Usage
Example 1: Simple Ticket
User: "work on AGP-782"
Claude:
- Fetches AGP-782 from Jira
- Finds summary: "Migrate existing MCP server"
- Checks git state (clean, on staging)
- Creates branch:
AGP-782-migrate-existing-mcp-server - Runs:
/eng:chore AGP-782 Migrate existing MCP server implementation...
Example 2: With Uncommitted Changes
User: "work on AICC-456"
Claude:
- Fetches AICC-456 from Jira
- Checks git state - finds uncommitted changes
- STOPS and asks: "You have uncommitted changes. Should I commit them first, stash them, or continue anyway?"
- Waits for User's decision
Example 3: Ticket Not Found
User: "work on BAD-999"
Claude:
- Tries to fetch BAD-999 from Jira
- Ticket not found
- Informs User: "Couldn't find ticket BAD-999 in Jira. Please check the ticket ID."
- STOPS
Coding Standards
CRITICAL RULE - NESTED CONDITIONALS:
- NEVER EVER EVER USE NESTED CONDITIONALS when working on tickets
- If you find yourself nesting if statements, STOP immediately
- Refactor using early returns, guard clauses, or extract functions
- This rule applies to all code written while working on any ticket
- Violation of this rule is FAILURE
Why this matters:
- Nested conditionals reduce readability and increase cognitive load
- They make code harder to test and maintain
- Early returns and guard clauses are always clearer
Instead of:
if (condition1) {
if (condition2) {
// do something
}
}
Do this:
if (!condition1) return;
if (!condition2) return;
// do something
CRITICAL RULE - NO UNNECESSARY INLINE COMMENTS:
- NEVER add simple, obvious inline comments that just restate what the code does
- Code should be self-documenting through clear variable names, function names, and structure
- Only add comments when they explain WHY something is done, not WHAT is being done
- Remove unnecessary comments during refactoring
- This rule applies to all code written while working on any ticket
- Violation of this rule is FAILURE
Bad comments (obvious, unnecessary):
// Set the user's name
user.name = "Alice";
// Loop through the items
for (const item of items) {
// Process the item
processItem(item);
}
// Return true if valid
return isValid;
Good comments (explain WHY, add context):
// Cache user data for 5 minutes to reduce API calls
const cachedUser = await cache.get(userId, { ttl: 300 });
// Process items in batches to avoid memory issues with large datasets
for (const batch of chunkArray(items, 100)) {
await processBatch(batch);
}
// Skip validation for admin users per security requirement SEC-123
if (user.isAdmin) return true;
When comments ARE appropriate:
- Explaining non-obvious business logic or requirements
- Documenting workarounds for external bugs (with issue links)
- Clarifying performance optimizations
- Noting security considerations
- Referencing ticket numbers or external documentation
When to use NO comments:
- If the code is self-explanatory
- If a better variable/function name would make it clear
- If the comment just repeats what the code obviously does
CRITICAL RULE - VITEST TESTING:
- ALWAYS use the Vitest TDD Expert skill when writing or working with Vitest tests
- Before writing any Vitest tests, activate the Vitest TDD Expert skill by invoking it with the Skill tool
- The Vitest TDD Expert skill enforces:
- Red-Green-Refactor TDD cycle (test first, always)
- 95%+ coverage requirements with quality metrics
- FIRST principles (Fast, Independent, Repeatable, Self-validating, Timely)
- Behavior-focused testing (not implementation details)
- Comprehensive edge case coverage and error path testing
- Anti-pattern avoidance (no brittle tests, no excessive mocking)
- This ensures high-quality, maintainable test suites that provide confidence
- Violation of this rule means tests may be brittle, incomplete, or low quality
When to activate Vitest TDD Expert:
// Before writing Vitest tests, invoke:
Skill({ skill: "vitest-tdd" });
Important Notes
- Always check git state before creating branches
- Never force-create branches or overwrite existing branches
- Never proceed if there are uncommitted changes without User's approval
- Keep branch names concise - aim for clarity over completeness
- Include ticket context in the task planning prompt to give the planner maximum context
- The
/eng:chorecommand will handle the detailed planning - this skill just sets up the environment
Success Criteria
The skill is successful when:
- ✅ Jira ticket is fetched successfully
- ✅ Appropriate branch name is generated
- ✅ Git state is verified (no uncommitted changes or user approved)
- ✅ New branch is created and checked out
- ✅
/eng:chorecommand is executed with ticket context - ✅ User is informed of each major step
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 Jira 工单处理自动化流程,显著提升开发团队协作效率
- 集成 Git 分支创建与任务规划启动,形成完整工作流闭环
Highlights
- 触发词覆盖多种自然语言变体(work on/pick up/start等)
- 边界清晰,不易与其他 Skill 重叠
Highlights
- 7个清晰步骤划分,逻辑完整
- 包含错误处理、示例用法和编码规范等完整章节
Highlights
- 覆盖工单不存在、分支冲突、git状态异常等主要错误场景
- 对未提交变更等不可逆操作要求用户确认
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.