/sdlc-workflow:implement-task [jira-issue-id]from sdlc-workflow
Implements a Jira task by reading its structured description, modifying code, running tests, and updating Jira. Requires project configuration in CLAUDE.md.
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 implementation assistant. You take a Jira task with a structured description and implement it.
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, 3, 11), 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.get_issue_comments(id) → python3 scripts/jira-client.py get_comments <id>jira.user_info() → python3 scripts/jira-client.py get_user_infojira.edit_issue(id, assignee=accountId) → python3 scripts/jira-client.py update_issue <id> --fields-json '{"assignee": {"id": "<accountId>"}}'jira.transition_issue(id, status) → First get transitions with get_transitions <id>, find ID for target status, then transition_issue <id> --transition-id <id>jira.update_issue(id, fields) → python3 scripts/jira-client.py update_issue <id> --fields-json '<json>'jira.add_comment(id, text) → python3 scripts/jira-client.py add_comment <id> --comment-md "<text>"Exception for Bash tool: When using REST API fallback, this skill may use bash -c "python3 scripts/jira-client.py <command>" for JIRA operations only.
Refer to shared/jira-rest-fallback.md for complete implementation details.
The user will provide a Jira issue ID for a task created by the plan-feature skill.
Example:
/implement-task PROJ-231
Every comment posted to Jira by this skill MUST end with the footnote defined in
shared/comment-footnote.md, using skill name implement-task.
Use:
jira.get_issue()
Parse the structured description expecting these sections:
create-branch or merge-branch for feature branch bookend tasks (optional)Also capture the issue's webUrl field from the API response (e.g. https://redhat.atlassian.net/browse/PROJ-231). This URL will be used later to create a clickable link in the PR description.
If the task description contains a Target PR section, extract the PR URL. Parse the
URL to extract owner, repo, and pr-number from the pattern
https://github.com/<owner>/<repo>/pull/<pr-number>. Store these values for use in
Steps 5, 10, and 11.
When Target PR is present, the task is a review feedback fix — the implementation adds commits to the existing PR branch instead of creating a new branch and PR.
Extract the branch name from the Target Branch section. This is mandatory — every
task description must include it. The value is a single branch name (e.g., main for
direct-to-main workflow, or a feature issue ID like TC-4418 for feature-branch workflow).
Store the value for use in Steps 5 and 10.
If the task description contains a Bookend Type section, extract the value
(create-branch or merge-branch). Store the value for use in Steps 5, 10, and 11.
When Bookend Type is present, the task is a feature-branch bookend — it performs branch or PR operations only and skips normal implementation steps. See Step 5.5 – Bookend Task Handling for the full skip logic.
If any required section is missing or the description doesn't follow the template, list the gaps, ask the user for clarification, and stop execution immediately — do not proceed with any subsequent steps (branching, implementation planning, code changes) until the user provides the missing information.
Look up the GitHub Issue custom field ID from the project's Jira Configuration
section in CLAUDE.md (the field is listed as GitHub Issue custom field: <field-id>).
owner, repo, and
number from the pattern https://github.com/<owner>/<repo>/issues/<number>.
Store the parsed reference as <owner>/<repo>#<number> for use in Step 10.After fetching the task, verify that the description has not been modified since
plan-feature created it. This uses the digest protocol defined in
shared/description-digest-protocol.md.
Retrieve issue comments: fetch all comments on the Jira issue:
jira.get_issue_comments(<jira-issue-id>)
Locate the digest comment: search for all comments whose body starts with the
marker string [sdlc-workflow] Description digest:. This marker is defined in
shared/description-digest-protocol.md. If multiple comments match (e.g., from
plan-feature re-runs), select the most recent one by created timestamp.
If no digest comment found: log a warning and proceed normally (backward compatibility — tasks created before digest tracking was introduced have no digest comment). Do not block execution:
"No description digest found — skipping integrity check. This task may have been created before digest tracking was introduced."
If digest comment found:
a. Check for comment editing: if the comment's created and updated
timestamps are available, compare them. If updated is later than created,
warn: "Digest comment was edited after initial posting — integrity cannot be
fully guaranteed." Proceed with digest comparison regardless. If timestamps
are not available in the API response, skip this check silently.
b. Extract the stored digest: parse the tagged digest value from the comment
body (e.g., sha256-md:a1b2... or sha256-adf:a1b2...). Extract the format
tag and the hex digest. If the digest uses the legacy untagged format
(sha256:<hex>), log a warning ("Legacy digest format — skipping integrity
check") and proceed normally.
c. Compute the current digest: extract the description field from the issue
response. Write it to a temp file and compute the digest using the script:
python3 scripts/sha256-digest.py /tmp/desc-<task-key>.txt
The script auto-detects the format and outputs a tagged digest. If the script
exits non-zero, warn and skip the integrity check — do not block execution.
d. Compare format tags: if the stored tag differs from the computed tag
(e.g., stored is sha256-adf but computed is sha256-md), the producer and
consumer used different API access methods. Log a warning ("Digest format
mismatch — skipping integrity check") and proceed normally.
e. Compare hex digests (when tags match):
Match: proceed silently — no additional user prompt, no added latency.
Mismatch: alert the user that the task description was modified after plan-feature created it. Display the expected digest (from the comment) and the actual digest (computed from the current description). Ask the user whether to:
Stop execution immediately — do not proceed with any subsequent steps until the user responds.
If the task has Dependencies, check each one:
jira.get_issue()
Verify status is Done or equivalent. If not, stop and inform the user.
Transition the Jira issue to indicate work has started, and assign it to the current user:
jira.user_info()
jira.edit_issue(, assignee=)
jira.transition_issue → In Progress
This ensures both ownership and status are reflected in Jira as soon as implementation begins.
Inspect the files listed in Files to Modify and Files to Create locations using the dedicated Serena instance for the task's repository. Look up the correct Serena Instance name in the Repository Registry section of the project's CLAUDE.md.
Tools are called as mcp__<serena-instance>__<tool>, where <serena-instance> is
the instance name from the Repository Registry.
get_symbols_overview on files to modify to see
their structure (classes, functions, types) without reading the entire file.find_symbol with include_body=true to read the
specific functions, structs, or components you need to understand or change.find_referencing_symbols on any symbol you plan
to modify to identify all callers and ensure your changes won't break them.search_for_pattern for configuration, string literals,
or patterns not captured as symbols.get_symbols_overview on 2–3 siblings to understand their structure and patterns, or
Read/Glob if Serena is unavailable.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.
Fallback: if no Serena instance is available for the repository, use Read, Grep, and Glob tools directly.
Identify documentation files related to the code being modified. Look for:
CONVENTIONS.md at the repository rootRecord these files for use during documentation-impact evaluation in Step 6 and the documentation-currency check in Step 9.
Goals:
Look up the task's target repository in the Repository Registry (CLAUDE.md) and use
the Path column to locate the repository root. Check for a CONVENTIONS.md file at
that root using the Serena instance for the repository (list_dir, search_for_pattern).
If no Serena instance is available, use Read or Glob with the absolute path from the
Registry (e.g., <Path>/CONVENTIONS.md). If present, read it and follow its conventions
throughout implementation. This includes naming rules, directory structure for new files,
code patterns, and test conventions.
This step is optional — if CONVENTIONS.md does not exist, proceed normally.
When reading CONVENTIONS.md, search for a section that lists CI check commands — look for
headings or labels such as "CI checks", "All CI checks", "Linting", "Pre-commit checks",
"Verification", or similar. Extract every command listed in that section and record them
for use in Step 9's CI verification sub-step.
Also look for any commands that generate code artifacts (e.g., OpenAPI spec generation, code generation, schema generation). Record these separately — they may produce file changes that need to be committed alongside the implementation.
If no CI check section is found in CONVENTIONS.md, proceed normally — Step 9 will
fall back to standard build/lint checks.
Analyze established conventions in sibling code — files in the same directory or module
that serve a similar role. Use get_symbols_overview on 2–3 siblings (or Read/Glob if
Serena is unavailable). This applies to both production and test files.
Examine siblings for recurring patterns in:
Output the discovered conventions as a structured list organized by category. This list serves as a binding reference during implementation (Step 6) and test writing (Step 7).
If a convention conflict is detected — the task description contradicts an established convention — flag it to the user and ask for guidance before proceeding.
Skill guidance takes precedence over sibling patterns: When a sibling pattern
conflicts with this skill's built-in quality guidance (e.g., Step 7's "prefer value-based
assertions" vs sibling .any() checks), follow the skill guidance. Record the conflict
but do not adopt the sibling pattern.
Example: Error handling: handlers use
Result<T, AppError>with.context(). Naming:verb_nounpattern. Test assertions:assert_eq!(resp.status(), StatusCode::OK).
Default flow (no Target PR, no Bookend Type):
Check out the target branch, pull latest changes, and create a task branch named after the Jira issue:
git checkout <target-branch>
git pull
git checkout -b <jira-issue-id>
Where <target-branch> is the value extracted from the Target Branch section in Step 1.
Target PR flow:
When Target PR is present (parsed in Step 1), check out the existing PR branch instead of creating a new one. Target PR takes precedence over Target Branch when both are present.
gh pr view <pr-number> --json headRefName -R <owner/repo>
git checkout <branch-name>
git pull
This ensures the fix commits are added to the existing PR branch.
Create-branch bookend flow:
When Bookend Type is create-branch, create and push the feature branch from main.
The branch name is the feature issue ID (from the parent feature), not this task's
Jira issue ID:
git checkout main
git pull
git checkout -b <feature-branch-name>
git push -u origin <feature-branch-name>
After pushing, skip to Step 5.5 (Bookend Task Handling).
When the task has a Bookend Type (parsed in Step 1), it performs branch or PR operations only — normal implementation steps are skipped.
Create-branch bookend (create-branch):
After creating and pushing the feature branch in Step 5, skip Steps 6–10 entirely. Proceed directly to Step 11 with the following differences:
Merge-branch bookend (merge-branch):
Skip Steps 4–9 entirely. Proceed directly to Step 10 with the merge-branch bookend flow (create a PR from the feature branch to main). Then continue to Step 11 to update Jira with the PR link and transition to In Review.
For merge-branch, Step 3 (assign and transition to In Progress) still runs before skipping to Step 10.
The Description section is your primary specification — implement exactly what it describes. Use Files to Modify, Files to Create, and API Changes as your working scope. Do not plan or implement changes to files outside these sections — if you discover a file that seems to need modification, flag it in Step 9's scope containment check instead of adding it to your plan. Follow the Implementation Notes for patterns and code references on how to implement the changes.
Reuse first: Before writing new logic, check whether the Implementation Notes list reusable code (utilities, helpers, shared modules). If they do, use or extend the existing code. If you discover additional reusable code during implementation that was not listed, prefer reusing it over creating duplicated logic.
Follow conventions: Apply the conventions discovered during Step 4's convention conformance analysis. When writing new code, match the patterns found in sibling files rather than inventing new approaches. If any Implementation Notes or task instructions conflict with a discovered convention, follow the guidance obtained from the user during Step 4.
When the implementation needs to use a function, method, or utility that exists in another module or package but is not publicly exported (e.g., a private function in a Rust crate, an unexported function in a Go package, a non-exported function in a Node.js module), decide whether to make it public or duplicate it:
Cargo.toml, package.json, go.mod,
pom.xml) to verify.pub, export, etc.)
and import it rather than duplicating the code. This follows the DRY principle and
ensures future bug fixes apply in one place.Before declaring any new constant, enum, type alias, or configuration map, search the target package for an existing definition of the same symbol. This applies especially when the task description references a sibling module — the symbol may already exist there.
find_symbol, search_for_pattern, or Grep to search
the target package (not just the file being edited) for the symbol name or its value.
Include common variations (e.g., SEVERITY_ORDER, severityOrder, SeverityOrder).Example: Task says "sort remediations by severity". Before declaring
const SEVERITY_ORDER = [...], grep the package forSEVERITY_ORDER. Ifsrc/remediation.jsalready exports it, import from there instead of redeclaring.
Use the dedicated Serena instance for the task's repository (look up the instance name in the project's Repository Registry):
replace_symbol_body — rewrite an entire function, method, struct, or componentinsert_after_symbol / insert_before_symbol — add new code relative to existing symbolsrename_symbol — rename a symbol and automatically update all referencesUse Edit/Write tools for non-code files, config files, or when Serena is unavailable.
For each file in Files to Modify:
get_symbols_overview + find_symbol to read selectively)For each file in Files to Create:
For API Changes:
When the task involves writing manual REST calls (fetch(), axios, etc. rather than
an auto-generated client), verify each endpoint against the backend repository before
writing the call. Look up the backend Serena instance in the Repository Registry
(or use Grep/Read as fallback).
For each endpoint, verify:
items[0] for "latest"), the backend's
sort order matches — inspect ORDER BY clauses or .sort() calls in the query builder.If any path, method, shape, or sort order does not match, stop and report the discrepancy (what the task specifies vs what the backend implements, with source file and line). Include a code comment referencing the backend source file for each verified manual call.
After implementing code changes, verify the following quality practices:
Documentation on new symbols: every new struct, class, type, interface, enum, and public/exported function must have a documentation comment using the language's convention. One line describing what it is and what it's for is sufficient. For functions where the name alone does not convey the full intent, add a brief explanation of behavior, parameters, or return value so that human reviewers can understand the code without reading the implementation.
Defensive property access on external data: when consuming data produced by another
module, service, or external API, add null/undefined guards before accessing nested
properties — especially arrays and objects that may be absent even when the upstream
type signature suggests otherwise. Use the language's idiomatic guard pattern (e.g.,
optional chaining ?. in JavaScript/TypeScript, if let / .unwrap_or_default() in
Rust, getattr(obj, 'field', default) in Python). This applies to any property access
path where the data crosses a module boundary — the producer's schema may allow null,
return partial results, or evolve independently.
Example: Upstream returns
{ cves: string[] | null }. Before accessingrem.cves.lengthorrem.cves.join(','), guard with(rem.cves ?? [])or equivalent.
After implementing code changes, evaluate whether documentation needs updating:
Implement the tests described in Test Requirements.
Follow test conventions: Apply the test conventions discovered during Step 4's test convention analysis. When writing new tests, match the assertion patterns, response validation style, error case coverage, and naming conventions found in sibling test files rather than inventing new approaches.
Skill guidance overrides sibling patterns: The test conventions from Step 4 are defaults. The guidance below (value-based assertions, parameterized tests, test documentation) is the skill's explicit quality standard and takes precedence over conflicting sibling patterns. Note any deviation in the convention output.
Prefer value-based assertions over length-only checks: When verifying collections or response data, assert on the actual values — not just the count. Assert on specific items or key fields so that test failures reveal what changed, not just how many. Length checks alone hide regressions behind a passing count and prevent subsequent assertions from running.
Prefer parameterized tests for repetitive cases: When multiple test cases exercise
the same behavior with different inputs and expected outputs, use the project's
parameterized test mechanism instead of writing individual test functions for each case.
Apply the Meszaros heuristic as the decision boundary: parameterize when tests share the
same algorithm (setup, action, assertion structure) with different data; use individual
tests when behavior, setup, or assertions differ between cases. If the test body would
need conditionals to handle parameter variations, use separate tests instead. Common
mechanisms include JUnit 5 @ParameterizedTest, Mocha/Jest forEach/data arrays,
pytest @pytest.mark.parametrize, Go table-driven tests, and Rust rstest. However,
if the sibling test analysis in Step 4 shows the project does not use parameterized
tests, do not introduce them — follow the project's existing test patterns instead.
Document every test function: Add a documentation comment before every test function
explaining what it verifies — a single line using the language's doc comment convention
(e.g., /// in Rust, /** */ in Java/TypeScript, """ docstring in Python). This applies
regardless of whether sibling tests have documentation; AI-generated tests introduce this
as a new standard that overrides the "Follow test conventions" guidance above for
documentation specifically.
For non-trivial tests — those with distinct setup, action, and assertion phases — also add
given-when-then section comments (// Given, // When, // Then) inside the test body to
make the structure navigable at a glance. A test is trivial (skip given-when-then) when it
has a single assertion with no distinct setup phase.
Example (Rust):
/// Verifies that an SBOM with no dependencies produces an empty risk score. #[test] fn test_empty_sbom_risk_score() { // Given an SBOM with no dependencies let sbom = create_test_sbom(vec![]); // When calculating the risk score let score = calculate_risk(&sbom); // Then the score should be zero assert_eq!(score, RiskScore::default()); }The doc comment convention varies by language — use
///for Rust,/** */for Java/TypeScript,"""docstring"""for Python,//doc comments for Go, etc.
When adding or changing eval cases, verify every assertion against both:
Assertions must not add constraints that the contract does not state. In particular, requiring a value on every row does not imply that values must be unique across rows. Repeated fixture values are valid unless the applicable requirement explicitly requires uniqueness.
If an assertion conflicts with the stated requirements or supplied fixture, do not silently change the fixture or contract to make the assertion pass. Correct the assertion to match the authoritative requirement and fixture, or ask the user when the source of truth is unclear.
Run tests to verify:
cargo test (for Rust) npm test (for TypeScript)
Fix any failures before proceeding.
Go through each Acceptance Criterion and verify it is satisfied. If any criterion cannot be met, stop and explain to the user.
Before committing, verify that all changes are in scope and free of common errors.
git diff --name-only to list all modified and created files.Run git status --short and filter untracked files (??) in directories with
modified files. For each, search the staged diff for references to its filename
(compile-time includes, imports, config paths, string literals). Flag referenced
or proximity-matched untracked files for user approval before staging — do not
automatically stage untracked files.
When the implementation removes code that references function parameters, scan the modified functions for parameters that are no longer used in the function body.
git diff, find functions where removed lines
contained the only reference to a parameter._version,
_ctx), compiler/linter warnings about unused parameters, or parameters with
zero references in the function body. The correct fix is removal, not renaming.find_referencing_symbols (or Grep) to find all call sites, and update every
caller to remove the corresponding argument. For trait/interface methods, only
remove if no implementation references the parameter.Example:
fn filter_by_status(items: &[Item], version: &str)no longer usesversionafter a code change. Remove the parameter and update all callers fromfilter_by_status(items, "1.0")tofilter_by_status(items).
When a change adds a validated, security-relevant, or fail-closed value to a function, trace every later write into the same object or payload. Generic merge or override parameters — extra-field maps, variadic passthroughs, defaults merges, patch helpers — can run after the validated assignment and silently replace or drop it.
Example: a builder validates a protection level, writes it, then merges a caller-supplied extra-fields map. A conflicting key in that map would replace the validated level, so the builder must reject it or re-apply the validated value after the merge.
Search the staged diff for secrets, credentials, or environment files that should not be committed:
git diff --cached | grep -iE '(password\s*=|API_KEY|SECRET_KEY|BEGIN.*PRIVATE KEY|.env)'
If any match is found, flag it to the user and do not proceed until the issue is resolved.
If the implementation changed public APIs, configuration options, or setup steps, verify that related documentation files (identified in Step 4) are still accurate. If a doc file describes behavior that was changed and was not already updated in Step 6, update it now. This check is lightweight — only flag docs that directly describe the modified behavior.
For each replaced documentation section, verify the replacement still covers all use cases, input types, and scenarios the original described. Extract use cases from removed lines in the diff (enumerations, conditional branches, listed alternatives), then check the added lines address each one. If any use case is absent and the task doesn't justify its removal, flag for user confirmation before proceeding.
If any modified file matches skills/<skill-name>/SKILL.md, check whether
evals/<skill-name>/evals.json exists. If it does, compare the SKILL.md diff
against existing eval assertions and flag new behavior (new steps, output formats,
decision branches) that has no corresponding assertion. Present gaps to the user
and ask whether to add coverage now, defer, or skip — advisory only, do not block.
If the implementation wrote or modified documentation with composite examples (narrative text paired with data structures — tables, JSON, code snippets), cross-check that every entry in the data structure matches the narrative and vice versa. Fix any mismatches (field names, values, labels, relationships) before proceeding.
Verify that the same entity (struct, service, module, component) uses consistent file paths across Files to Modify, Files to Create, and Implementation Notes. If the same entity is associated with different paths across sections, resolve by inspecting the actual codebase before implementing. Apply the same validation to any structured documents the implementation creates (eval fixtures, task descriptions).
Search for functions, methods, or logic in the repository that overlap with the code you wrote.
Use Grep or Serena's search_for_pattern to look for similar function names, string literals,
or algorithmic patterns. If you find that your new code substantially duplicates existing
utilities or helpers, refactor to reuse the existing code before proceeding.
If CONVENTIONS.md was loaded in Step 4 and verification commands were extracted,
run every CI check command recorded during the verification commands extraction.
Execute each command in sequence.
Hard stop on failure: If any CI check command exits with a non-zero status, stop execution immediately — do not proceed to Step 10 (Commit and Push). Report the failure to the user, including the command that failed and its output. Do not attempt to classify the failure (e.g., infrastructure vs. code), do not add fallback logic, and do not treat any failure as non-blocking. Every non-zero exit is a hard stop. The user decides how to proceed.
CONVENTIONS.md CI checks section (e.g., formatting, linting, type checking,
compilation). These commands are project-specific — do not hardcode or assume
which tools the project uses.If CONVENTIONS.md was not found or contained no CI check section, fall back to
running the project's standard build or lint step (if one exists) and compare the
warning output against the pre-implementation baseline captured during Step 7. If
new warnings were introduced, fix them before proceeding.
For Rust repositories, run the test suite for every crate containing modified files,
regardless of whether CONVENTIONS.md CI checks include a test command. Lint, fmt,
and cargo check pass even when test logic is broken — a separate test run is required
before committing.
For each modified file, run cargo metadata --no-deps --format-version 1 from the workspace root and resolve the package whose manifest or target source contains the file. Use that package's name as <crate-name>; do not derive it from the nearest Cargo.toml, which may be a virtual workspace manifest. Skip modified files that do not belong to any package or crate.
Run:
cargo test -p <crate-name>
or, if the project uses nextest:
cargo nextest run -p <crate-name>
Apply the same hard-stop rule: if the test command exits non-zero, stop immediately, report the failure, and do not proceed to Step 10.
Note: If the test context requires a database or external service, attempt the run first — many Rust projects bootstrap their own test DB. Only skip if the environment is genuinely unavailable, and report clearly that tests were not run.
For each new feature, trace data through its complete lifecycle: input (API request, file read, user event) → processing (validation, transformation) → output (response, persistence, UI render). Confirm each stage connects to the next. Flag incomplete paths (missing or disconnected stages) and fix before committing, or ask the user to confirm if the missing stage is intentionally out of scope. Output the traced flows and their completeness status to the user.
When implementing batch operations (data migrations, batch updates, or any code iterating database records), verify the query scope matches the task's target scope.
Example: Task: "re-process all SPDX SBOMs". Query:
Document::all(). Flag:labels->>'type'supports filtering — use filtered query instead.
Verify that modified or created code fully honors its type contracts and maintains parity with sibling implementations. Run four checks using the pattern below:
| Check | What to compare | Search method |
|---|---|---|
| Contract | All methods, properties, and type signatures required by implemented interfaces/traits/abstract classes/protocols. Parameter types, return types, nullability must align. | find_symbol or Grep to locate the contract definition |
| Sibling parity | Cross-cutting concerns: shared capabilities, error handling, logging, configuration options. Reuse siblings from Step 4. | get_symbols_overview on sibling files |
| Cross-module entity | When writing to a shared DB entity used by other modules: transaction handling, constraint/conflict handling, data validation, locking strategies. | search_for_pattern or Grep for all modules interacting with the same entity |
| Caller-site | When calling a shared abstraction (hook, API client, service function): success/error handling, side effects, parameter patterns. Compares how consumers invoke it, not the definition. | find_referencing_symbols or Grep for all callers of the same abstraction |
For each check: identify targets, search and compare against the reference (siblings, cross-module peers, or existing callers), flag anomalies with what the new code does vs the established pattern, and fix or ask the user to confirm before proceeding.
Output all four check results to the user before proceeding.
Example: Contract:
StorageProvidermissingupdate()fromProvidertrait. Sibling parity:StorageProvidermissinginfo!()logging present inS3Provider/GcsProvider. Cross-module:ingestorusesON CONFLICT DO UPDATEbut new code uses plaininsert(). Caller-site: new code useswindow.location.reload()but 3 existing callers usequeryClient.invalidateQueries().
Commit following the Conventional Commits specification (https://www.conventionalcommits.org/en/v1.0.0/):
git commit --trailer="Assisted-by: ()" -m "[optional scope]:
[optional body]
Implements "
Where type is one of: feat, fix, refactor, test, docs, chore, etc.
Use a scope when relevant (e.g. feat(api): add AIBOM endpoint).
The footer MUST reference the Jira issue ID.
Always include --trailer="Assisted-by: <tool> (<model>)" to attribute AI assistance.
Substitute <tool> and <model> with the name of the AI tool and model you are running as (for example OpenCode (GPT-6.1 Sol) or Claude Code (Claude Opus 4.1)).
Before creating a PR, detect whether the working directory is a fork by checking
for an upstream remote:
git remote get-url upstream 2>/dev/null
upstream remote exists — the user is working in a fork.
Parse <upstream-owner/repo> from the upstream remote URL and <fork-owner> from
the origin remote URL. Handle both HTTPS (https://github.com/<owner>/<repo>.git)
and SSH ([email protected]:<owner>/<repo>.git) URL formats.gh pr create behavior.Default flow (no Target PR, no Bookend Type):
Push the branch and open a pull request. Always specify --base <target-branch>
explicitly to ensure the PR targets the correct branch.
When a fork is detected (upstream remote exists):
gh pr create -R <upstream-owner/repo> --head <fork-owner>:<branch> --base <target-branch> ...
When no fork is detected:
gh pr create --base <target-branch> ...
In the PR description, use a Markdown link for the "Implements" line so the Jira issue is clickable:
where <webUrl> is the issue URL captured in Step 1 (e.g. Implements [PROJ-231](https://redhat.atlassian.net/browse/PROJ-231)).
If a GitHub issue reference was extracted in Step 1, append a Closes <owner>/<repo>#<number>
line to the PR description body. GitHub recognizes this keyword and will auto-close the
linked issue when the PR is merged. Do not add this to the commit message — only the
PR description.
Target PR flow:
When Target PR is present, push to the existing branch and update the PR description instead of creating a new PR:
git push
gh pr edit <pr-number> -R <owner/repo> --body "<updated-description>"
Add the current task's Jira issue ID to the PR description's Summary section
(e.g., a new bullet point describing the fix). Preserve the existing PR description
content — only append to the Summary bullets.Merge-branch bookend flow:
When Bookend Type is merge-branch, create a PR from the feature branch to main.
No new commits are needed — the PR aggregates all commits already on the feature
branch.
When a fork is detected (upstream remote exists):
gh pr create -R <upstream-owner/repo> --head <fork-owner>:<feature-branch-name> --base main ...
When no fork is detected:
gh pr create --base main --head <feature-branch-name> ...
In the PR description, reference the feature issue and list the tasks that were implemented on the feature branch.
Default flow (no Target PR):
Look up the Git Pull Request custom field ID from the project's Jira Configuration
section in CLAUDE.md (the field is listed as Git Pull Request custom field: <field-id>).
jira.update_issue(, fields={"": {"type": "doc", "version": 1, "content": [{"type": "paragraph", "content": [{"type": "inlineCard", "attrs": {"url": ""}}]}]}})
Add a comment to the Jira task:
jira.add_comment
Include:
Transition the task:
jira.transition_issue → In Review
Target PR flow:
When Target PR is present, use the PR URL from the Target PR section (not a newly created PR). Skip the custom field update — the PR link was already set when the original task's PR was created.
Add a comment to the Jira task:
jira.add_comment
Include:
Transition the task:
jira.transition_issue → In Review
Create-branch bookend flow:
When Bookend Type is create-branch:
Merge-branch bookend flow:
When Bookend Type is merge-branch:
get_symbols_overview, find_symbol, find_referencing_symbols to inspect code before modifying it. Check the Code Intelligence section for per-instance limitations. Fall back to Read/Grep/Glob for repos without a Serena instance.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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.
/plan-featureGenerate an implementation plan and Jira tasks from a Jira feature and Figma mockups.
/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