/sdlc-toolkit:analyse-taskfrom sdlc-toolkit
Analyse a ticket from the configured PM tool, gather context from the codebase, produce a tech or non-tech plan, update the ticket, prepare questions for PM/client, send a Slack notification, and draft a client email. Use when the user says "analyse task", "analyze ticket", "plan task", "review ticket", "what does this ticket need", or provides a ticket URL/ID with analysis intent.
Ships in sdlc-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Gather all information needed to understand and plan a task, then produce artifacts that move it forward: an updated ticket with an implementation plan, questions for PM/client with recommendations, a Slack notification, and a client email draft.
This is an optional step before start-task. Devs can skip straight to start-task when the task is already well-understood.
This skill reads pm_tool from config. Currently supported: linear, jira.
Read <workspace>/.cursor/skills-config.yaml before acting. If missing, tell the user to run bootstrap-config first.
Required config keys:
pm_tool — which PM tool to use (linear or jira)repos — to detect current repo from CWDtesting.runner, testing.prefer_makefile — for validation defaultstesting.custom_input — per-repo test/lint/migration commandsslack.channels.analysis — Slack channel for analysis notifications (falls back to slack.channels.review if missing)release_email.greeting, release_email.sign_off — for email draft formattingConditional config keys (based on pm_tool):
linear: linear.team_name, linear.team_id, linear.custom_inputjira: jira.instance_url, jira.project_key, jira.custom_inputpm_tool, warn the user and ask how to proceed.Collect from the user's prompt:
| PM tool | ID format | URL format |
|---|---|---|
| JIRA | DST-322 | https://<site>.atlassian.net/browse/DST-322 |
| Linear | ENG-123 | https://linear.app/<org>/issue/ENG-123/... |
| Type | When to use | Output focus |
|---|---|---|
| tech | Feature, bugfix, refactor | Implementation steps with specific files/functions, dependency map, migration notes, testing surface, risk assessment |
| non-tech | Business process, documentation, PM task | Same analysis reframed in business language — requirements breakdown, stakeholder impact, process flow, effort sizing, success criteria |
Both types include codebase exploration. The analysis depth is the same — the difference is in the output format and downstream artifacts.
If the user does not specify plan result type, ask before proceeding. Present both options with a one-line explanation and ask them to pick.
Switch to Plan mode immediately. This skill is analysis-only — all outputs are plans, questions, and communications. No code changes or branch operations are permitted during this workflow.
If the user has not specified "tech" or "non-tech", ask:
What type of plan do you need?
- Tech — implementation plan with specific files, functions, and architecture details
- Non-tech — same analysis presented in business language for stakeholders
Do not proceed until the user explicitly chooses.
Extract the ticket identifier from the user's message:
https://<site>.atlassian.net/browse/DST-322, extract DST-322 and infer jira.https://linear.app/<org>/issue/ENG-123/..., extract ENG-123 and infer linear.DST-322 or ENG-123, use pm_tool from config to determine the tool.pm_tool in config, warn the user:
"The URL points to [inferred tool] but your config sets pm_tool to [configured tool]. Which should I use?"
Retain the resolved PM tool and ticket ID for all subsequent steps.
linear:Use get_issue with includeRelations: true.
Extract and retain: title, description (full markdown body), priority, labels, assignee, current status, parent issue, blocking/blocked-by relations, acceptance criteria (if present in description).
jira:Use getJiraIssue with the ticket key as issueIdOrKey.
Extract and retain: summary (title), description, priority, labels, assignee, current status, issue type, parent/epic link, linked issues (blocks/is-blocked-by), acceptance criteria (from description or custom field).
If the Atlassian MCP requires a cloud ID, call getAccessibleAtlassianResources to resolve it, then retry.
If the fetch fails for either tool, stop and tell the user.
After fetching, also check for:
git branch -a | grep <ticket-id>). If found, warn the user — they might be duplicating effort.Incorporate any additional rules from linear.custom_input or jira.custom_input.
Detect current repo from CWD by matching against repos.<name>.path.
Both tech and non-tech plans require codebase exploration. Perform a thorough analysis driven by the ticket requirements:
testing.custom_input for the current repo, identify which test suites, fixtures, and validation commands are relevant.Numbered implementation steps with specific files, functions, and architectural decisions. Include:
Same analysis reframed in business language:
Scope-creep detection: If the implementation plan has significantly more steps than the acceptance criteria suggest, flag this to the user and ask whether to proceed with the larger scope, reduce scope, or split into multiple tickets.
Based on the analysis, compile a list of questions grouped by category:
Present the questions and wait for the user to answer. The user may answer all at once, partially, or ask to proceed with assumptions. If proceeding with assumptions, document each assumption explicitly in the outputs.
Add a structured comment to the ticket (do not edit the description).
linear:Use save_comment with the issue ID.
jira:Use addCommentToJiraIssue.
## Analysis — [plan type] plan
### Implementation Plan
[numbered steps from Step 5]
### Open Questions
[questions that remain unanswered, grouped by category]
### Assumptions
[assumptions made during analysis — each with rationale]
### Risks
[identified risks with severity and mitigation suggestions]
### Validation Approach
[how to verify the implementation — tests, manual checks, acceptance criteria mapping]
Do NOT move the ticket to any new status. The ticket stays in its current state.
Structure the questions as a standalone document the dev can share with the PM or client. Each question includes a recommendation and any assumptions made:
## Questions for [PM/Client] — [ticket-id]: [title]
### Question 1: [concise question]
**Context:** [why this matters for the implementation]
**Our recommendation:** [what we suggest and why]
**Assumption if no answer:** [what we will assume if this is not resolved]
### Question 2: [concise question]
...
Guidelines:
Post a concise message to slack.channels.analysis (fall back to slack.channels.review if not configured).
Before sending, present the message to the user for review. Use slack_send_message_draft if the user wants to review in Slack first, or slack_send_message if the user confirms immediate send.
Message format:
*Task analysed:* [ticket-id] — [title]
Type: [tech | non-tech]
Key findings:
- [1-2 sentence summary of the plan]
- [open questions count] open question(s) for PM/client
Ticket: [ticket-url]
Keep the message under 10 lines. Do not include the full implementation plan — link to the ticket instead.
Read slack.custom_input for any overrides.
If Slack access is not available, skip and tell the user.
Compose a professional email summarizing the analysis and outstanding questions.
Read release_email.greeting and release_email.sign_off from config for consistent tone. Read release_email.custom_input for recipient hints and subject patterns.
Email structure:
Subject: Task Analysis — [ticket-id]: [title]
[greeting from config]
We've completed our initial analysis of [ticket title]. Here is a summary of our findings and a few questions that would help us move forward.
## Summary
[2-3 sentences describing what the task involves and the planned approach, in plain business language]
## Questions
[numbered list of questions, each with our recommendation — same content as Step 8 but formatted for email]
## Next Steps
[what happens after the questions are answered]
[sign_off from config]
Guidelines:
Present the full email text for the user to review and copy.
When finished, report:
Analysis complete:
- Ticket: [ticket-id] — [title]
- Plan type: [tech / non-tech]
- Ticket updated: [yes/no] ([link to comment if yes])
- Open questions: [count] for PM/client
- Slack notification: [sent to #channel / skipped]
- Email draft: [presented / skipped]
- Assumptions made: [count]
Hand-off: When ready to start implementation, use the `start-task` skill with [ticket-id].
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub vecten/sdlc-toolkit --plugin sdlc-toolkit13 skills in this plugin
/bootstrap-configAuto-generate or update the skills-config.yaml file for the current workspace. Scans repos, resolves PM tool and Slack IDs, asks structured questions for gaps. Use when the user says "bootstrap config", "setup skills config", "update skills config", "initialize workspace", or when any other skill detects that skills-config.yaml is missing.
/create-releasePrepares and opens a release branch from the dev branch using release/YYYY-MM-DD, supports per-repo target branches from config, collects changes, enriches release notes with PM tool metadata, pushes branch, creates a PR, and optionally notifies Slack. Use when the user asks to create, cut, or prepare a release.
/create-ticketCreate a structured issue in the configured PM tool with required metadata prompts, defaults, cached IDs from skills-config.yaml, and fallback ID refresh. Use when user says "create ticket", "open ticket", "log request", or similar.
/debug-sentryInvestigate a Sentry issue from a provided Sentry URL, explain the likely root cause, propose a mitigation plan, create a ticket in the configured PM tool, then hand off implementation start to the start-task skill and wrap-up to the finish-task skill when appropriate. Use when the user says "debug sentry", "sentry", "fix sentry issue", or provides a Sentry issue link.
/finish-releaseWrap up a production release by updating tickets to Done in the configured PM tool and drafting a client-facing release email. Use when the user says "finish release", "close release", "release done", "post-release", "release deployed", or asks to prepare a release email or mark released tickets as done.
/finish-taskFinalize an implementation for a ticket by preparing a branch, drafting a commit message from the actual changes, committing, pushing, and preparing or creating a PR. Use when the user says "finish task", "wrap up ticket", "prepare branch and PR", or asks to finish work for a ticket.