/sdlc-workflow:plan-feature [jira-issue-id] [figma-url]from sdlc-workflow
Generates an implementation plan and creates Jira tasks from a Jira feature and Figma mockups. Reads project config from CLAUDE.md and posts structured tasks back to Jira.
Ships in sdlc-workflow. 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.
You are an AI planning assistant helping engineers convert a Jira feature into an implementation plan and Jira tasks.
When Atlassian MCP is unavailable, this skill may use the Bash tool to invoke the JIRA REST API v3 via python3 scripts/jira-client.py. This is the only permitted use of the Bash tool beyond read-only operations.
bash -c "python3 scripts/jira-client.py <command>"Every comment posted to Jira by this skill MUST end with the following footnote, separated from the main content by a horizontal rule.
Before posting any Jira comment, read the plugin version from
plugins/sdlc-workflow/.claude-plugin/plugin.json and extract the version field.
Use this value as {version} in the footer below.
Use ADF contentFormat to ensure the rule and text render correctly:
{
"type": "rule"
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "This comment was AI-generated by "
},
{
"type": "text",
"text": "sdlc-workflow/plan-feature",
"marks": [
{
"type": "link",
"attrs": {
"href": "https://github.com/RHEcosystemAppEng/sdlc-plugins"
}
}
]
},
{
"type": "text",
"text": " v{version}."
}
]
}
Append these two nodes at the end of the ADF document's content array.
Before proceeding, read the project's CLAUDE.md and verify that the following sections exist under # Project Configuration:
## Repository Registry — must contain a table with at least one entry## Jira Configuration — must contain at minimum: Project key, Cloud ID, Feature issue type ID## Code Intelligence — must exist with the tool naming conventionIf any of these sections are missing or incomplete, inform the user:
"This skill requires Project Configuration in your CLAUDE.md. Please run
/setupfirst to configure your project, then re-run this skill."
Stop execution immediately. Do not attempt to gather the missing information or proceed without it.
Before attempting any JIRA operations (Steps 1, 1.5, 2.5, 4, 6), determine the access method.
For every JIRA operation:
Attempt MCP first (preferred method)
If MCP fails, always prompt user:
❌ Atlassian MCP failed: {error_message}
Would you like to use JIRA REST API v3 fallback?
Options:
1. Yes - Use REST API (requires credentials)
2. No - Skip this JIRA operation
3. Retry - I'll fix MCP configuration and retry
Choose (1/2/3):
If "1. Yes": Check CLAUDE.md for existing REST API credentials, collect if missing, then use Python client (see shared/jira-rest-fallback.md)
If "2. No": Skip the JIRA operation and inform user
If "3. Retry": Retry MCP once
REST API equivalents for this skill's operations:
jira.get_issue(id) → python3 scripts/jira-client.py get_issue <id> --fields "*all"jira.add_comment(id, text) → python3 scripts/jira-client.py add_comment <id> --comment-md "<text>"jira.get_project_issue_types(project) → python3 scripts/jira-client.py get_project_metadata <project-key>jira.create_issue(...) → python3 scripts/jira-client.py create_issue --project <key> --summary "<summary>" --description-md "<desc>" --issue-type Task --labels <labels> --priority "<priority>" --fix-versions "<v1>,<v2>"jira.create_issue_link(...) → python3 scripts/jira-client.py create_link --inward <issue1> --outward <issue2> --link-type <type>jira.get_priorities() → python3 scripts/jira-client.py get_prioritiesjira.get_versions(project) → python3 scripts/jira-client.py get_versions <project-key> --unreleased-onlyjira.edit_issue(id, parent) → python3 scripts/jira-client.py update_issue <id> --fields-json '{"parent": {"key": "<parent-key>"}}'Refer to shared/jira-rest-fallback.md for complete implementation details.
The user will provide a Jira issue ID representing a feature, and optionally a Figma URL for the associated design.
Examples:
/plan-feature PROJ-123 /plan-feature PROJ-123 https://www.figma.com/design/abc123/MyDesign
Parse the arguments: the first token is the Jira issue ID, and if a second token is present and looks like a Figma URL (contains figma.com), save it for use in Step 2.
Use:
jira.get_issue()
Extract:
priority: extract fields.priority.name and fields.priority.id (e.g., {"name": "Major", "id": "10002"}). If the priority name is "Undefined", treat it as unset — do not store or propagate it.fixVersions: extract the fields.fixVersions array (e.g., [{"name": "RHTPA 1.5.0", "id": "62648"}]). If the array is empty, treat it as unset.On MCP failure, if REST API chosen (Step 0.5): use get_issue <id> --fields "*all" — the response includes fields.priority and fields.fixVersions in the same structure.
After fetching the Feature issue in Step 1, optionally link it to a parent issue in the Jira hierarchy (e.g., an Outcome at hierarchy level 3+). This enables teams to maintain the full Outcome → Feature → Epic → Task hierarchy.
Check existing parent: inspect the Feature issue response from Step 1 for a
parent field. If the Feature already has a parent set, display the current
parent (key and summary) and ask the user whether to keep or change it. If the
user wants to keep it, skip to Step 2.
Prompt the user: display an interactive prompt:
Link this Feature to a parent issue? Enter the parent issue key (e.g., TC-100) or press Enter to skip:
If user provides a key: validate it by fetching the issue:
jira.get_issue(<parent-key>)
Verify that:
hierarchyLevel is strictly higher than the Feature's
hierarchyLevel. Use the type-to-role mapping from Step 2.5 if already
available, or inspect the parent issue type's hierarchyLevel field directly
from the fetched issue response (fields.issuetype.hierarchyLevel). The
parent should be at level 3+ (e.g., Outcome), not at the same level as
the Feature (level 2) or lower (Epic level 1, Task level 0).If validation fails, inform the user of the hierarchy mismatch and ask again.
Set the parent link: update the Feature issue:
jira.edit_issue(<feature-key>, fields={"parent": {"key": "<parent-key>"}})
If user skips (presses Enter): proceed without linking — this step is entirely optional.
After extracting the standard fields, detect and parse the "Documentation Considerations" section from the Feature description. The define-feature skill (Step 3i) captures this section with standard categories:
Extract:
New Content, Updates, Release Notes, or
No Doc ImpactStore these as documentation signals for use in Step 5 (Documentation task generation).
If the Feature description has no "Documentation Considerations" section, record that no documentation signals are present — do not prompt the user or treat this as an error.
If a Figma URL was provided as an argument, use it directly. Otherwise, check the Jira issue description for a Figma URL.
If a Figma URL is available:
figma.get_file figma.get_nodes
Extract:
When the Figma design contains custom UI elements that do not map to standard framework components (e.g., PatternFly, Material UI), extract their visual specification so that implementers can reproduce them faithfully instead of falling back to plain text or generic approximations.
Example output:
Custom sub-component specifications:
- Step number indicators: 24px circular; active = primary fill + white text, inactive = neutral border + dark text, completed = green CheckCircleIcon replacing number
When a Figma design shows a data display component (table, card grid, list, chart) inside a contextual container (wizard step, tab panel, accordion section, modal, drawer), determine whether the component renders data scoped to its parent context or aggregated across all contexts. The Figma layer hierarchy is the primary signal: if the data component is a child of a step-specific or tab-specific frame, it renders per-context data.
Example output:
Data component rendering scope:
- Criteria summary table inside wizard step "Review by Category" → per-context — filter
results.categoriesbycurrentCategory.key, do notflatMapacross all categories- Risk score chart inside tab "Current Assessment" → per-context — display only
assessment.risksfor the selected assessment, not aggregated across all assessments- Final summary table on wizard step "Confirm" → aggregated — combine entries from all previous steps into a single view
When a Figma mockup shows data values in a table, list, or detail view (e.g., criterion
names, status labels, category names, enum descriptions), compare the displayed text
against the actual values returned by the backend API for the corresponding field. Figma
designs often use human-readable labels that differ from the machine-oriented values the
API returns — for example, a table cell showing "System scope and boundaries" when the
backend returns threat_identification as the field value.
system_scope_and_boundaries
or threat_identification)Example output:
Display text vs API value mismatches:
- Field
criterion.namein criteria table: Figma shows "System scope and boundaries" but API returnsthreat_identification— frontend mapping needed from API keys to display labels:{ threat_identification: "System scope and boundaries", data_sensitivity: "Data sensitivity assessment", ... }- Field
statusin status badge: Figma shows "In Review" but API returnsin_review— frontend mapping needed (case transformation: snake_case → Title Case)- Field
category.labelin filter dropdown: Figma shows category names that match API response — no mismatch (no action needed)
Dynamically discover the available issue types in the Jira project and map them to hierarchy roles. This replaces hardcoded type assumptions and enables Epic support for projects that have a level-1 issue type.
Use MCP (preferred) or REST API fallback to fetch the project's issue types:
jira.get_project_issue_types(cloudId, projectKey)
The cloudId and project key come from the project's ## Jira Configuration in
CLAUDE.md (already read in Step 0).
Classify each discovered issue type by its hierarchyLevel field:
hierarchyLevel | Role | Description |
|---|---|---|
| 2+ | Feature | The feature-level issue type (already known from Jira Configuration) |
| 1 | Epic | Intermediate hierarchy — used to group tasks under the Feature |
| 0 | Task | The work-item issue type for implementation tasks |
Filtering rules:
subtask: true)No level-1 type exists: log an informational message to the user:
"No Epic-level type found in project — tasks will be created directly under the Feature."
Set a flag to skip Epic creation in Steps 5 and 6. This preserves backward compatibility for projects without Epics — the skill proceeds with Feature → Task hierarchy without error.
Multiple level-1 types exist: prefer the one named "Epic" (case-insensitive match). If none is named "Epic", present the available level-1 types to the user and ask them to select which to use for the intermediate hierarchy role.
Record the mapping (type ID, type name, hierarchy level) for each role:
Type-to-role mapping:
Feature: <type-name> (ID: <type-id>, level: <level>)
Epic: <type-name> (ID: <type-id>, level: 1) # if available
Task: <type-name> (ID: <type-id>, level: 0)
This mapping is used in Steps 5 and 6 when creating Jira issues.
If CLAUDE.md has a ## Hierarchy Configuration section (from the setup skill),
read the stored default grouping strategy and apply it. If not present, skip
silently — hierarchy preferences are optional.
Analyze relevant repositories to identify impacted modules, APIs, and tests.
Each target repository has a dedicated Serena MCP server instance, as specified in the Repository Registry section of the project's CLAUDE.md. Look up the Serena Instance column to determine the correct instance name for each repository.
Use the instance matching the repository you are analyzing. Tools are called as
mcp__<serena-instance>__<tool>, where <serena-instance> is the instance name
from the Repository Registry.
For each target repository with a Serena instance:
get_symbols_overview on key files/directories to understand
the module structure without reading entire files.find_symbol with substring_matching=true to find
relevant types, functions, endpoints, and components by name.find_referencing_symbols on key symbols to discover callers,
consumers, and integration points.search_for_pattern for string literals, configuration keys,
route definitions, or anything not captured as a symbol.Note: Check the Code Intelligence section of the project's CLAUDE.md for per-instance limitations (e.g., some language servers may not support certain operations). Adapt your tool usage accordingly.
Example:
mcp__<serena-instance>__find_symbol(
name_path_pattern="SbomService",
substring_matching=true,
include_body=false
)
If no Serena instance is available for a repository, use Explore agents with Glob, Grep, and Read tools.
For each target repository, look up its Path in the Repository Registry (CLAUDE.md)
to locate the repository root. Check for a CONVENTIONS.md file at that root using the
Serena instance for the repository (list_dir). If no Serena instance is available, use
Glob or Read with the absolute path from the Registry (e.g., <Path>/CONVENTIONS.md).
If present, read it and use its conventions — naming rules, directory structure, code
patterns, test conventions — to inform the Implementation Notes in generated task
descriptions. Reference specific conventions by name when they apply to a task.
This step is optional — if CONVENTIONS.md does not exist, proceed normally.
For each target repository, identify existing documentation files that may be impacted by the feature:
README.md, README)docs/api/, OpenAPI specs)docs/architecture.md, ARCHITECTURE.md)CONVENTIONS.md)docs/setup.md, CONTRIBUTING.md)Use Glob, list_dir, or search_for_pattern to locate these files. Record them for use in Step 5 when determining whether tasks need a Documentation Updates section.
For each target repository, check for a testing readiness template at the
conventional path docs/testing-readiness.md:
docs/testing-readiness.md at the repository root using Glob or Read
(Serena's list_dir if available).## <Category Name>
headings followed by acceptance criteria as bullet points. Each category represents
a cross-cutting test type (e.g., "Smoke Tests", "Performance Benchmarks", "E2E Tests").When a feature involves a frontend repository making REST calls to a backend API — and the auto-generated API client is not yet available or does not cover the needed endpoints — perform explicit backend API discovery to prevent path and shape mismatches.
mcp__<serena-instance>__<tool>.search_for_pattern or find_symbol on the backend
repo to locate route definitions, controller methods, or handler functions for the
needed endpoints. Extract:
/api/v2/sboms, /api/v1/advisories/{id})If no Serena instance is available for the backend repository, use Grep, Glob, and Read on the backend repo to locate route definitions and type definitions.
Example output:
Discovered backend API contracts:
GET /api/v2/sboms— returns{ items: Sbom[], total: number }(seeSbomSummarystruct inmodules/fundamental/src/sbom/model/summary.rs)POST /api/v2/sbom— accepts multipart upload, returnsIngestResult(seeuploadhandler inmodules/fundamental/src/sbom/endpoints/mod.rs)GET /api/v2/sbom/{id}— returnsSbomDetails(seegethandler)
When a Feature acceptance criterion depends on the contents or behavior of a shared artifact (for example, a shared record, manifest, index, registry, cache, or generated document), trace that criterion through the artifact's full lifecycle before building the Repository Impact Map:
If the requested scope excludes a path needed to satisfy an acceptance criterion, record the exact path and coverage gap in the impact map and ask the user to resolve the scope conflict before treating the criterion as covered. Do not claim that a shared-artifact criterion is satisfied by the primary writer alone.
find_symbol, search_for_pattern, or Grep to locate candidates. Record matches as reuse candidates for inclusion in the task description's Reuse Candidates sectionSKILL.md (under plugins/<plugin>/skills/<skill-name>/), check whether evals/<skill-name>/ exists. If found, record the eval directory and its contents (e.g., evals.json, fixture files in files/) as eval infrastructure that will need coverage updates in generated tasksBased on the repository analysis (Step 3), produce a Repository Impact Map listing every repository that must change and what changes are needed.
Format:
<repository-name>:
changes:
- <change description>
- <change description>
Rules:
When a requirement from the Feature description cannot be planned due to missing inputs (no design mockups available, no target repository for that requirement's domain, insufficient specification to decompose into tasks), explicitly document it in the impact map under an "Excluded requirements" section. For each excluded requirement, state the requirement and the specific missing input that prevents planning. Do not silently omit requirements — the engineer needs to know what was excluded and why so they can provide the missing inputs. This applies to MVP and non-MVP requirements alike — any requirement that cannot be decomposed into actionable tasks should be flagged rather than silently dropped.
Present the map to the user for review before proceeding to task generation.
Once the user approves the map, post it as a comment on the Jira feature issue using:
jira.add_comment(, )
Important: The Repository Impact Map is an input for Jira task creation (Step 5), not a trigger to start coding. Do not implement any changes — proceed to Step 4.5.
After the Repository Impact Map is approved, determine whether the feature requires feature-branch mode (all-or-nothing delivery) or direct-to-main mode (incremental delivery). This decision governs how tasks are generated in Step 5.
Analyze the feature requirements and the Repository Impact Map to determine if any task
PR would leave main in a broken state without the others. Evaluate the following
atomicity indicators:
feature-branch mode.direct-to-main mode.Default: direct-to-main when no atomicity constraint is identified. This preserves
backward compatibility — features that do not require coordinated delivery behave exactly
as before.
Determinism requirement: the same feature description and Repository Impact Map should produce the same mode conclusion. Base the decision on structural properties of the changes (cross-task data dependencies, API contract breaks), not on subjective assessment of risk.
Post the workflow mode decision as a comment on the Jira feature issue (or append it to the impact map comment). Include:
feature-branch or direct-to-main)feature-branch mode: which specific tasks are interdependent and whyfeature-branch mode: note that the workflow:feature-branch label will be
applied to the feature issue in Step 6aUse:
jira.add_comment(, )
Proceed to Step 5 with the selected workflow mode.
Reminder: This step generates task descriptions for Jira. Do not implement any code — only create structured task descriptions and then post them to Jira in Step 6.
Before generating task descriptions, read docs/constraints.md from the project repository. For each task, include any constraints from that document that are relevant to the task's scope in the Implementation Notes section. Specifically:
Create implementation tasks for each unit of work. Each task description MUST follow the template defined in shared/task-description-template.md exactly — read the template and rules from that file before generating tasks.
Before finalizing implementation tasks, reconcile them against the shared-artifact path map from Step 3. Every affected producer, writer, and consumer must be represented by its relevant Files to Modify or Files to Create, path-specific validation, and Test Requirements. Include tests for Feature acceptance criteria that preserve existing behavior, such as stable identifiers or update semantics. Include fallback/recovery and on-demand/manual/API paths when repository evidence shows they populate the same artifact. When an applicable eval suite exists, propagate coverage to its eval cases using the eval coverage propagation rules below.
If a stakeholder scope instruction excludes a path required by an acceptance criterion, keep the criterion visibly unresolved in the impact map and request clarification before finalizing tasks. Until the user approves expanding scope, do not put excluded paths in task Files to Modify, Files to Create, or Test Requirements; list them only as unresolved impact-map paths. A task set that covers only the primary workflow must not be presented as satisfying a criterion that applies to the shared artifact across population paths.
When the Feature or any source description names a failure mode that can finish "green" without doing the intended work — e.g., a call that silently returns [], a check that fails open, a step that skips verification, or an unauthenticated/degraded request that still exits 0 — lower that risk into verifiable, code-level coverage in the task that owns the affected gate. For every stated risk of a silent, empty, or no-op success, emit a fail-closed Acceptance Criterion and test; never let a prose-only or operational mitigation stand alone. The task MUST include:
An operational or post-merge mitigation (e.g., "a live run after merge confirms it") may supplement this coverage but MUST NOT be the only coverage for such a risk.
If Step 2.5 discovered a level-1 type (Epic role), group tasks into Epics before generating individual task descriptions. If no level-1 type was found, skip this section entirely — generate tasks as before (Feature → Task hierarchy).
Check if CLAUDE.md ## Hierarchy Configuration has a Default epic grouping strategy
setting:
If set to a valid strategy (by-repository, by-sub-feature, or trivial), use it.
If set to none, or if the setting is absent, present an interactive prompt:
How should tasks be grouped into Epics?
1. by-repository — one Epic per repository in the impact map
2. by-sub-feature — group by logical sub-features (I'll suggest groupings)
3. trivial — single Epic wrapping all tasks (1:1 with Feature)
Choose (1/2/3):
For each Epic group, generate:
<feature-key>: <group-label> (e.g., "TC-4866: sdlc-plugins" for
by-repository, "TC-4866: Dynamic issue type discovery" for by-sub-feature,
"TC-4866: Implementation" for trivial)Annotate each task with its Epic group assignment:
Generate a documentation task when the Feature description contains documentation signals extracted in Step 1.
task-description-template.md format.The documentation task description MUST include:
## Repository — the repository where the documentation lives## Target Branch — follows the same Target Branch assignment rules as other
tasks (see below)## Description — what changed (from the Feature overview and requirements),
the doc impact type (New Content, Updates, or Release Notes), details from
the Documentation Considerations section, and a reference to the Feature issue## Acceptance Criteria — verify the documentation accurately reflects the
feature's behavior and covers the scope identified in Documentation Considerations## Test Requirements — verify the documentation is accurate, complete, and
consistent with the implemented feature behavior## Dependencies — depends on the implementation tasks (documentation should
be written after implementation is complete)The documentation task MUST omit the following sections (the implementer determines which doc files to update based on the description):
Generate cross-cutting testing tasks when a testing readiness template was discovered in Step 3.
Check for testing readiness template: if no testing readiness template was discovered in Step 3 for any target repository, skip testing task generation silently.
Generate testing tasks: if a template was found, generate one testing task
per test category (## <Category Name> heading) listed in the template.
Each testing task follows the task-description-template.md format with:
## Repository — same as the implementation tasks## Target Branch — follows the same Target Branch assignment rules as other
tasks (main for direct-to-main, feature issue ID for feature-branch)## Description — what to test, referencing the Feature issue and the test
category's acceptance criteria from the readiness template## Acceptance Criteria — the acceptance criteria from the readiness template
for that category## Test Requirements — specific test scenarios derived from the readiness
template## Dependencies — depends on all implementation tasks (testing tasks run
after implementation is complete)Testing tasks MUST omit the following sections (these are validation activities, not code changes):
After drafting each task's Implementation Notes, cross-reference the conventions discovered during the CONVENTIONS.md lookup (Step 3) with the task's scope. If the task touches an area covered by a documented convention, include explicit guidance in the Implementation Notes referencing the convention by section name and describing the required action.
This ensures that conventions are not merely discovered but actively propagated into every task where they apply — preventing gaps where implement-task follows the task faithfully but misses a convention that was never mentioned.
How to apply:
For each task, review its Files to Modify, Files to Create, and Description against the conventions collected in Step 3.
Before including a convention, validate its file-type applicability per
shared/convention-applicability-rules.md. Follow these sub-steps for each
convention:
a. Check file-type overlap. Compare the convention's scope (file extensions, directory patterns) against the task's Files to Modify and Files to Create. If no file in either section matches the convention's scope, the convention fails — proceed to sub-step b.
b. Exclude failing conventions silently. If the convention failed in sub-step a, remove it from the output entirely. Do not list it with "Not applicable", "does NOT apply", "N/A", "Excluded", or any other annotation. The convention must be completely absent from the task description.
c. Write the rationale in prescribed format. If the convention passed, write
the rationale using exactly this format — no other format is accepted:
Applies: task modifies <file> matching the convention's <scope>.
Replace <file> with a specific file from Files to Modify or Files to Create.
Replace <scope> with the convention's scope signal (e.g., "migration file
scope").
d. Self-verify before including. Before adding the convention to the task, check the rationale against these rules. If any check fails, rewrite — do not include the convention until all pass:
Applies:When a match is found, add a line to Implementation Notes of the form:
"Per CONVENTIONS.md §<Section Name>: <specific action required>"
Include a reference to an existing file that demonstrates the convention in practice, so the implementer has a concrete example to follow.
Example — database migrations with foreign keys:
When a task creates or modifies a database migration that defines foreign key columns, include guidance such as:
Per CONVENTIONS.md §Migration Patterns: add
Index::create()for all FK columns. Seemigration/m0001200_source_document_fk_indexes.rsfor the established pattern.
This applies equally to any convention pattern — error handling strategies, naming rules, test structure, API design patterns, logging conventions, etc. The goal is to make every relevant convention explicit in the task description rather than relying on the implementer to independently discover and apply it.
After generating all task descriptions, perform a final verification sweep over every task's Implementation Notes to confirm that convention references comply with the prescribed format. This is a mandatory second pass — do not skip it.
For each task, scan its Implementation Notes for any line that references CONVENTIONS.md or mentions a convention by section name. For each such reference, verify the following checklist:
Rationale starts with Applies: — the line containing the file-type
applicability rationale must begin with the word Applies: followed by a
reference to a specific file from the task's Files to Modify or Files to
Create. If the rationale uses free-form prose (e.g., "This convention is
relevant because...", "Applicable — this task..."), rewrite it to the
prescribed format: Applies: task modifies <file> matching the convention's <scope>.
No excluded conventions appear — search the entire task description for any convention listed with "Not applicable", "does NOT apply", "N/A", "Excluded", or similar annotations. If found, remove the convention entry entirely — failing conventions must be absent, not annotated.
Rationale names a real file — the file named in the Applies: line must
appear in the task's Files to Modify or Files to Create sections. If it
references a file not listed in those sections, either fix the rationale or
remove the convention.
If any convention reference fails this checklist, fix it before finalizing the task description. Do not proceed to Step 6 with non-compliant convention references.
Completeness check: If CONVENTIONS.md was discovered in Step 3 and contains
at least one convention, verify that at least one non-bookend task includes a
convention reference with an Applies: rationale. If no task contains any
convention reference at all, convention enrichment was skipped — go back and
apply the convention-aware enrichment process (above) to each task before
proceeding. Convention enrichment is not optional when conventions exist.
When a task introduces a cross-cutting change — a parameter, flag, config option, behavior, or interface modification that must propagate to multiple consumers — enumerate all affected call sites before writing the task's Files to Modify and Acceptance Criteria sections.
Detect cross-cutting changes: review each planned task for changes that affect multiple consumers. Indicators include:
Enumerate all affected call sites: when a cross-cutting change is detected, use
Serena (find_referencing_symbols, search_for_pattern) or Grep/Glob to exhaustively
search for every consumer of the affected surface. Examples:
find_referencing_symbols on the function to
find all callersInclude every call site in the task description:
Flag incomplete enumerations: if the search reveals more call sites than expected from the feature description, include all of them — do not assume the feature description's partial list is exhaustive. The codebase search is authoritative.
Example: A feature adds
--providersand--sourcesflags to a CLI tool. The feature description mentions "stack and component commands," but the CLI registration file defines four commands:stack,component,stack-batch, andimage. The task must list all four in Files to Modify and include one acceptance criterion per command — not just the two the feature description mentioned.
For each task, apply the eval coverage propagation from
shared/eval-coverage-propagation.md.
When a frontend task requires manual REST calls (i.e., the auto-generated API client does not cover the needed endpoints), enrich the task description with the API contracts discovered during Step 3's backend API discovery.
For each such task:
This ensures that frontend tasks carry precise, verified API details rather than assumptions — preventing mismatches between the frontend call and the actual backend endpoint.
Example Implementation Notes entry:
Backend API contracts:
GET /api/v2/sboms?offset={offset}&limit={limit}— response shape:{ items: SbomSummary[], total: number }(seemodules/fundamental/src/sbom/endpoints/mod.rs:list)DELETE /api/v2/sbom/{id}— response: 204 No Content (seemodules/fundamental/src/sbom/endpoints/mod.rs:delete)Verify these contracts against the backend repo during implementation using the implement-task cross-repo API verification step.
Every generated task description MUST include a ## Target Branch section — this is a
mandatory section per the task description template. The value depends on the workflow
mode determined in Step 4.5:
direct-to-main mode: set Target Branch to main in every task.feature-branch mode: set Target Branch to the feature issue ID (e.g., TC-4418)
in every intermediate task. Bookend tasks (see below) use main as their Target
Branch because they operate on the main branch directly.When the workflow mode is feature-branch, generate two additional bookend tasks that
bracket the intermediate implementation tasks:
First task — create feature branch:
Create feature branch <feature-id> from main## Repository — a single repository name (pick the repository where the
majority of implementation tasks land; never list multiple repositories)## Target Branch — main (this task branches FROM main)## Bookend Type — create-branch## Description — Create and push the feature branch <feature-id> from the
latest main. All subsequent implementation tasks will target this branch.## Acceptance Criteria — the feature branch <feature-id> exists and is pushed
to the remote## Test Requirements — verify the branch exists on the remote after push## Dependencies section.
This means EVERY non-documentation intermediate task must include the
create-branch task in its ## Dependencies section, in addition to any
task-specific dependencies. Chain dependencies (Task 3 depends on Task 2,
which depends on Task 1) are insufficient — each task must directly list the
create-branch bookend. Documentation tasks may list implementation tasks as
dependencies instead, since documentation depends on implementation completion.Last task — merge feature branch:
Merge feature branch <feature-id> to main## Repository — a single repository name (pick the repository where the
majority of implementation tasks land; never list multiple repositories)## Target Branch — main (this task creates a PR TO main)## Bookend Type — merge-branch## Description — Create a PR to merge feature branch <feature-id> into main.
The PR description should summarize all changes made across the feature's tasks.## Acceptance Criteria — a PR from <feature-id> to main is open and ready
for review## Test Requirements — verify all intermediate task PRs have been merged into
the feature branch before creating the merge PR## Dependencies section.Before generating bookend tasks, check the feature issue's existing "incorporates" links for tasks whose summaries contain "Create feature branch" or "Merge feature branch".
issuelinks for outward links of type "Incorporates".This guard prevents duplicate bookend tasks when plan-feature is re-run on a feature that already has bookend tasks from a previous run.
When Step 2.5 discovered a level-1 type and Epic grouping was performed in Step 5, create the Epic issues before creating tasks. If no level-1 type was found (the no-Epic flag was set), skip this sub-step entirely.
For each Epic group defined in Step 5:
Create the Epic issue:
jira.create_issue(
projectKey=<project-key>,
issueTypeName=<level-1-type-name>,
summary="<feature-key>: <group-label>",
description=<epic-plain-text-description>,
parent=<feature-issue-key>,
additional_fields={
"labels": ["ai-generated-jira"],
"priority": {"name": "<inherited-priority>"},
"fixVersions": [{"name": "<inherited-version>"}]
}
)
Apply the same conditional inclusion rules for priority and fixVersions as
defined in sub-step 6a (include only when set on the Feature; respect fixVersion scope from Jira Field Defaults).
Record the Epic key: map each Epic group label to its created Jira key (e.g., "sdlc-plugins" → PROJ-240). This mapping is used in sub-step 6a to set task parents.
When no level-1 type is available (Step 2.5 set the no-Epic flag):
parent field (or with Feature as parent if the project
supports it).Use:
jira.create_issue jira.create_subtask
Every created issue must include the ai-generated-jira label to mark it as AI-generated.
Additionally, propagate the Feature's priority and fixVersions to every created task
when they are set. Build the additional_fields object as follows:
additional_fields: {
"labels": ["ai-generated-jira"],
"priority": {"name": "<inherited-priority>"},
"fixVersions": [{"name": "<inherited-version>"}]
}
Conditional inclusion rules:
priority: include only if the Feature has a priority set (not "Undefined" — see Step 1). If the Feature's priority is unset, omit the priority key entirely from additional_fields.fixVersions: include only if both conditions are met:
fixVersions array (see Step 1).fixVersion scope setting in ### Jira Field Defaults (under ## Jira Configuration in CLAUDE.md) includes task-level propagation. Specifically:
fixVersion scope is "task" or "both": propagate fixVersions to tasks.fixVersion scope is "feature": do NOT propagate fixVersions to tasks.### Jira Field Defaults does not exist or fixVersion scope is absent: default to "both" (propagate to tasks).
If either condition is not met, omit the fixVersions key entirely from additional_fields.On MCP failure, if REST API chosen (Step 0.5): use the --priority and --fix-versions flags on create_issue (see REST API equivalents in Step 0.5). Omit the flag entirely when the value should not be propagated.
Epic-aware parent field: when Epics were created in sub-step 6a.0, set each task's
parent field to its assigned Epic key (from the Epic group mapping built in 6a.0).
This establishes the Task → Epic hierarchy. When no Epics are available, omit the
parent field (or set it to the Feature key if the project supports it) — preserving
the existing behavior.
As each task is created, record a mapping of task number/title → Jira key (e.g. "Task 1 — Add CSV endpoint" → PROJ-231). This mapping is needed for link creation below.
When the workflow mode is feature-branch, add the workflow:feature-branch label to
the feature issue (not the individual tasks) after all tasks are created:
jira.edit_issue(
<feature-issue-key>,
fields={ "labels": [<existing-labels>, "workflow:feature-branch"] }
)
Preserve any existing labels on the feature issue — append workflow:feature-branch to
the current label list rather than replacing it.
Immediately after creating each task (before creating issue links or other comments), you must post a description digest comment on the created issue. Follow these steps exactly:
Re-fetch the description. After creating the task, fetch the issue back from Jira to get the description as persisted by the API. Do not hash the markdown string you submitted — Jira normalizes content during storage, so the submitted text differs from what the API returns.
jira.get_issue(<created-task-key>)
Extract the description field from the response. Write it to a temp file
(e.g., /tmp/desc-<task-key>.txt).
Compute the tagged digest using the script.
python3 scripts/sha256-digest.py /tmp/desc-<task-key>.txt
The script auto-detects the input format (ADF JSON or markdown text) and outputs
a format-tagged digest (e.g., sha256-md:a1b2c3... or sha256-adf:a1b2c3...).
If the script exits non-zero, report the error and do not post a digest comment.
Post the digest comment. Post a standalone ADF comment on the created issue:
{
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "[sdlc-workflow] Description digest: <tagged-digest>"
}
]
}
]
}
Replace <tagged-digest> with the full output from step 2 (including the format
tag — e.g., sha256-md:a1b2c3...). Do not append the Comment Footnote — this
must be a standalone comment separate from any other comments.
See shared/description-digest-protocol.md for the full protocol specification
including consumer verification behavior and common mistakes to avoid.
After all tasks (and Epics, if applicable) are created, create the following links:
Feature "incorporates" links:
When Epics are available: create "Incorporates" links from the Feature to each Epic (not to individual Tasks). Tasks inherit hierarchy through their Epic parent.
jira.create_issue_link(
link_type="Incorporates",
inward_issue_key=<feature-issue-key>,
outward_issue_key=<created-epic-key>
)
When no Epics are available (graceful degradation): create "Incorporates" links from the Feature to each Task as before:
jira.create_issue_link(
link_type="Incorporates",
inward_issue_key=<feature-issue-key>,
outward_issue_key=<created-task-key>
)
Task "depends on" other tasks:
For each task whose Dependencies section references another task, resolve the referenced task title/number to its Jira key using the mapping built in 6a, then call:
jira.create_issue_link(
link_type="Depend",
inward_issue_key=<dependent-task-key>,
outward_issue_key=<dependency-task-key>
)
This makes the dependent task show "depends on DEPENDENCY-TASK" and the dependency show "is depended on by DEPENDENT-TASK".
Then comment on the feature summarizing the plan:
jira.add_comment
Include:
fixVersion scope was set to "feature")get_symbols_overview, find_symbol, find_referencing_symbols, search_for_pattern. Check the Code Intelligence section for per-instance limitations. Fall back to Glob/Grep/Read for repos without a Serena instance.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rhecosystemappeng/sdlc-plugins --plugin sdlc-workflow9 skills in this plugin
/define-featureInteractively define a Jira Feature by walking through all description template sections and creating the issue.
/implement-taskImplement a Jira task by reading its structured description, modifying code, running tests, and updating Jira.
/report-bugInteractively define a Jira Bug by walking through project-configured template sections, or accept structured input programmatically from other skills. Creates the issue and suggests triage.
Other plugins' skills for the same job