/sdlc-workflow:setupfrom sdlc-workflow
Configures a project's CLAUDE.md with Project Configuration sections for sdlc-workflow skills. Discovers Serena instances from MCP tools and sets up Repository Registry, Jira, Code Intelligence, and other config sections.
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.
Read when SKILL.md points to them.
You are an AI setup assistant. You configure a project's CLAUDE.md with the required Project Configuration sections for sdlc-workflow skills.
This skill is idempotent and incremental:
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>"Read the file project-config.template.md in this skill's directory. Use it as the structural reference for generating the # Project Configuration section. Replace the {{placeholder}} markers with actual values gathered during the steps below. Preserve the exact headings, table format, and section order from the template.
Read the project's CLAUDE.md file. If it exists, parse it for:
# Project Configuration heading## Repository Registry table — record each Repository name already listed## Jira Configuration list — record which fields already have values### Jira Field Defaults subsection under Jira Configuration — record whether it exists and which fields are populated## Code Intelligence section — record which Serena instances are already documented## Bug Configuration section — record whether it exists and which fields are populated## Security Configuration section — record whether it exists and which fields are populated## Hierarchy Configuration section — record whether it exists and which fields are populatedIf the file doesn't exist, note that everything needs to be created.
Examine the available MCP tools to identify Serena instances. Serena tools follow the naming pattern mcp__<instance-name>__<tool> where typical tool names include find_symbol, get_symbols_overview, search_for_pattern, replace_symbol_body.
Collect the set of unique <instance-name> values that correspond to Serena servers.
For each discovered Serena instance that is not already in the Repository Registry:
get_diagnostics tool (which returns the project root path) or ask the user for the repository's local path.backend, frontend-ui)If all discovered Serena instances are already in the Repository Registry, report "Repository Registry is up to date" and skip to Step 3.
If no Serena instances are discovered at all, inform the user that no Serena MCP servers were found and ask whether they want to continue without code intelligence or set up Serena first. If they choose to continue, create an empty Repository Registry table (headers only).
If ## Jira Configuration already exists with all three required fields (Project key, Cloud ID, Feature issue type ID) populated, report "Jira Configuration is up to date" and skip to Step 3.5.
Otherwise, determine which fields are missing and gather them:
mcp__atlassian__).getVisibleJiraProjects to list available projects
b. Try getAccessibleAtlassianResources to discover the Cloud ID
c. Try getJiraProjectIssueTypesMetadata to list issue typesIf any MCP operation fails, always prompt the user (even if REST API credentials exist in CLAUDE.md):
❌ 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 auto-discovery, I'll provide fields manually
3. Retry - I'll fix MCP configuration and retry
Choose (1/2/3):
If user chooses "1. Yes - Use REST API":
CLAUDE.md for existing REST API credentials under ### REST API Credentials (MCP Fallback)$JIRA_API_TOKEN env var reference)JIRA_SERVER_URL, JIRA_EMAIL, JIRA_API_TOKENshared/jira-rest-fallback.md)python3 scripts/jira-client.py get_user_info### REST API Credentials (MCP Fallback) in ## Jira ConfigurationIf user chooses "2. No - Skip auto-discovery":
If user chooses "3. Retry":
Use the Python client to gather Jira configuration:
Get project metadata:
python3 scripts/jira-client.py get_project_metadata <project-key>
Ask user which project key to use if not already known. The response provides:
Get user info:
python3 scripts/jira-client.py get_user_info
Extract Cloud ID from the response (if present in user metadata). If Cloud ID is not available via API, ask user to provide it manually.
From the project metadata, list issue types and ask user which one is the Feature type (this provides the Feature issue type ID).
Ask the user if they have a Git Pull Request custom field ID (optional).
Ask the user if they have a GitHub Issue custom field ID (optional).
Proceed to Step 3.5 with the gathered fields.
If MCP is not available and user chooses not to use REST API, ask the user to provide the missing fields directly:
mycompany.atlassian.net)Only ask for fields that are not already configured.
Proceed to Step 3.5 with the provided fields.
Check if ## Hierarchy Configuration already exists in CLAUDE.md with all fields
populated (no {{placeholder}} markers).
{{placeholder}} markers: Treat it as not yet populated
and proceed to the discovery steps below (skip scaffolding the section heading since
it already exists).Use the same MCP-first-with-REST-fallback pattern from Step 3:
getJiraProjectIssueTypesMetadata via MCP to list issue types for the project.hierarchyLevel field.Display the discovered hierarchy to the user in a structured format, grouped by hierarchy level and sorted descending. Include the type name and ID for each. Mark the configured Feature issue type with "← currently configured":
Discovered Jira hierarchy for project <key>:
- Level 3: Outcome (id: 10130)
- Level 2: Feature (id: 10142) ← currently configured
- Level 1: Epic (id: 10000)
- Level 0: Task (id: 10014), Story (id: 10009), Bug (id: 10016), ...
If a level-1 type (Epic) exists in the discovered hierarchy, ask:
Default Epic grouping strategy for plan-feature?
1. by-repository — one Epic per repository (recommended for multi-repo projects)
2. by-sub-feature — group by logical sub-features
3. trivial — single Epic wrapping all tasks
4. none — ask each time (no default)
Choose (1/2/3/4):
If no level-1 type exists in the project, skip the grouping strategy question entirely and note: "No Epic-level type found in project — Epic grouping is not available. Hierarchy Configuration will not be created." Then skip to Step 4.
Write the ## Hierarchy Configuration section to CLAUDE.md with the gathered
values. Follow the template structure from project-config.template.md. Present
the planned changes to the user for review before writing.
If the section already exists but has placeholder markers, replace only the placeholder content, preserving any surrounding text.
If ### Jira Field Defaults already exists under ## Jira Configuration with all four
fields populated (Default priority, fixVersion scope, Prompt for priority, Prompt for
fixVersion) and none contain {{placeholder}} markers, report "Jira Field Defaults is
up to date" and skip to Step 5.
If ## Jira Configuration does not exist yet (Step 3 was skipped or not completed),
skip to Step 5 — this subsection depends on Jira Configuration being present.
Otherwise, proceed to discover available values and configure the defaults.
Use getJiraIssueTypeMetaWithFields to fetch the available field values for the
Feature issue type:
jira.getJiraIssueTypeMetaWithFields(cloudId, projectIdOrKey, issueTypeId)
Where:
cloudId is from the Jira ConfigurationprojectIdOrKey is the Project key from the Jira ConfigurationissueTypeId is the Feature issue type ID from the Jira ConfigurationFrom the response, extract:
priority.allowedValues — list each priority namefixVersions.allowedValues — list each version nameIf MCP fails, follow the same REST API fallback pattern from Step 3.2. If REST API is also unavailable, ask the user to provide the values manually.
Present the discovered values and ask the user to configure each field:
Default priority: Show the list of available priorities and ask which one to use as the default pre-selection. The user may also choose "none" (no default).
fixVersion scope: Ask whether fixVersion should apply at the "feature" level only, "task" level only, or "both". Default: "both".
Prompt for priority: Ask whether define-feature should prompt users for priority. Default: true.
Prompt for fixVersion: Ask whether define-feature should prompt users for fixVersion. Default: true.
If ### Jira Field Defaults already exists but has placeholder markers or incomplete
values, replace only the changed fields, preserving any surrounding text. This follows
the setup skill's existing idempotency pattern.
If ### Jira Field Defaults does not exist, add the subsection under
## Jira Configuration, before any other subsections (such as
### REST API Credentials).
Use the template format from project-config.template.md:
### Jira Field Defaults
- Default priority: <selected-priority>
- fixVersion scope: <selected-scope>
- Prompt for priority: <true|false>
- Prompt for fixVersion: <true|false>
Present the planned changes to the user for review before writing.
If ## Code Intelligence already exists and covers all Serena instances from the Repository Registry, report "Code Intelligence is up to date" and skip to Step 6.
If the section doesn't exist, generate it with:
mcp__<instance>__<tool>.### Limitations subheading — ask the user if any Serena instances have known limitations (e.g., language server features that don't work). If none, leave the subsection with a note that no limitations are known.If the section exists but new Serena instances were added in Step 2, ask the user if the new instances have any known limitations and add them under ### Limitations.
Compose the updated # Project Configuration section with its subsections.
If CLAUDE.md doesn't exist: Create the file with the Project Configuration section.
If CLAUDE.md exists but has no # Project Configuration: Append the section at the end of the file.
If CLAUDE.md exists with # Project Configuration: Update only the subsections that changed, preserving all other content in the file and within each subsection.
Present the planned changes to the user for review before writing. Clearly show what will be added or modified. If no changes are needed (everything is already configured), report "Project Configuration is up to date — no changes needed" and stop.
After the user approves, write the changes.
Check if docs/constraints.md already exists in the target project.
constraints.template.md from this skill's directory and write its content to docs/constraints.md in the target project. Report "Created docs/constraints.md from template."For each repository in the Repository Registry, check if a CONVENTIONS.md file exists at the repository root (using the Path column from the Registry table).
{{placeholder}} markers): Report "CONVENTIONS.md already exists in — skipping" and move to the next repository.{{placeholder}} markers: Treat it as not yet populated and proceed to the fill-in prompt below (skip scaffolding since the file already exists).CONVENTIONS.md for that repository. If yes, read conventions.template.md from this skill's directory and write its content to CONVENTIONS.md at the repository root. Report "Created CONVENTIONS.md in from template."This step is optional and does not block the rest of the setup. If the user declines scaffolding for any repository, continue to the next one.
After scaffolding a new CONVENTIONS.md (or finding an existing one with {{placeholder}} markers), ask the user:
"Would you like me to fill in the CONVENTIONS.md for now? I can use code intelligence to analyze the codebase and populate the conventions automatically."
For repositories with a Serena instance (check the Serena Instance column in the Repository Registry):
get_symbols_overview on key source files to discover languages, frameworks, and code structure.search_for_pattern to find naming patterns, error handling idioms, test patterns, and commit message conventions.find_symbol to inspect representative examples of each convention category.For repositories without a Serena instance:
For each section in the CONVENTIONS.md template, replace the {{placeholder}} marker with the discovered conventions:
utils/, common/, shared/, helpers/, or lib/, and for widely-imported modules. List the key modules with their paths and purpose.README.md, docs/ directories, API doc files, and architecture documents.Present the populated CONVENTIONS.md to the user for review before writing. Clearly show the content that will be written. Only write the file after the user approves.
Check if ## Bug Configuration already exists in CLAUDE.md with all three required
fields populated (Bug issue type ID, Bug template, Bug-to-Task link type) and none
contain {{placeholder}} markers.
{{placeholder}} markers: Treat it as not yet populated
and proceed to the discovery steps below (skip scaffolding the section heading since
it already exists).Use the same MCP-first-with-REST-fallback pattern from Step 3:
getJiraProjectIssueTypesMetadata via MCP to list issue types for the project.Ask the user for the path where the bug template file should be placed in the target project. Offer a default:
"Where should the bug template file be placed? (default:
docs/bug-template.md)"
Retrieve available issue link types:
getIssueLinkTypes via MCP (or python3 scripts/jira-client.py get_link_types
as REST fallback)."Which link type should be used to link Bug issues to their remediation Tasks? (default: Blocks)"
Check if the bug template file already exists at the user-specified path in the target project.
docs/templates/bug-template.md from the plugin's
templates directory and write its content to the user-specified path in the target
project. Report "Created from template."Write the ## Bug Configuration section to CLAUDE.md with the gathered values.
Follow the template structure from project-config.template.md. Present the planned
changes to the user for review before writing.
If the section already exists but has placeholder markers, replace only the placeholder content, preserving any surrounding text.
Check if ## Security Configuration already exists in CLAUDE.md with all required
fields populated (no {{placeholder}} markers remaining).
{{placeholder}} markers: Treat it as not yet populated
and proceed to the fill-in prompt below (skip scaffolding since the section already exists)."Would you like to enable security triage for this project? This configures the triage-security skill to perform CVE impact analysis across supported product versions."
If the user declines, skip to Step 11. If the user accepts, proceed below.
Ask the user for the following fields:
Product pages URL — the product lifecycle page for EOL/support status checks
Jira version prefix — filters Jira versions to this product (e.g., MYPRODUCT)
Vulnerability issue type ID — the Jira issue type ID for Vulnerability issues.
If an Atlassian MCP server is available, offer to discover this by listing issue types
via getJiraProjectIssueTypesMetadata and letting the user select the Vulnerability type.
Component label pattern — the label prefix used by PSIRT on Vulnerability issues
to identify the affected component (e.g., pscomponent:)
VEX Justification custom field (optional) — the custom field ID used to record
VEX justification when closing a Vulnerability as "Not a Bug" (e.g., customfield_00000).
This field cannot be auto-discovered via Jira metadata. Ask the user:
"Do you have a VEX Justification custom field? If you're unsure, provide a link to a closed Vulnerability issue that has it set (e.g., https://mycompany.atlassian.net/browse/PROJ-456) and I'll extract the field ID from it. Otherwise, leave blank — you can add it later."
If the user provides an issue link, fetch that issue with all fields and search for a field whose value matches a known VEX justification (e.g., "Component not Present", "Vulnerable Code not Present"). Extract the field ID.
If the user skips, leave the placeholder empty in the template.
Upstream Affected Component custom field (optional) — the custom field ID that
stores the upstream library name on Vulnerability issues (e.g., customfield_10632).
Used by Step 4.3 for cross-CVE overlap detection. Ask the user:
"Do you have an Upstream Affected Component custom field on Vulnerability issues? This field stores the upstream library name (e.g., 'axios', 'webpack') and enables cross-CVE overlap detection. Provide the custom field ID, or leave blank to skip overlap detection."
If the user skips, leave the placeholder empty in the template.
PS Component custom field (optional) — the custom field ID that stores the
PS Component identifier on Vulnerability issues (e.g., customfield_10669).
Used together with the Upstream Affected Component field for cross-CVE overlap
filtering. Ask the user:
"Do you have a PS Component custom field on Vulnerability issues? This field stores the product component identifier (e.g., 'pscomponent:org/image-name') and is used to filter cross-CVE overlap results. Provide the custom field ID, or leave blank."
If the user skips, leave the placeholder empty in the template.
Stream custom field (optional) — the custom field ID that stores the stream
identifier on Vulnerability issues (e.g., customfield_10832). Used together with
the Upstream Affected Component field for cross-CVE overlap filtering. Ask the user:
"Do you have a Stream custom field on Vulnerability issues? This field stores the stream identifier (e.g., 'rhtpa-2.2') and is used to filter cross-CVE overlap results. Provide the custom field ID, or leave blank."
If the user skips, leave the placeholder empty in the template.
ProdSec contact email (optional) — the email address of the Product Security contact for this project. Used for informational reference in CVE triage notifications. Ask the user:
"ProdSec contact email (optional, for CVE triage notifications)?"
If the user skips, leave the placeholder empty in the template.
ProdSec Jira account ID (optional) — the Jira account ID of the ProdSec contact. Used for @mentions in triage comments (Affects Versions corrections, cross-CVE overlap notifications). Ask the user:
"ProdSec Jira account ID (optional, for @mentions in triage comments)?"
If the user skips, leave the placeholder empty in the template.
Embargo policy URL (optional) — link to the organization's coordinated vulnerability disclosure or embargo policy. When configured, triage-security presents a warning gate before proceeding with triage on Critical or Important severity CVEs. Ask the user:
"Embargo policy URL (optional, for coordinated vulnerability disclosure guidance)?"
If the user skips, leave the placeholder empty in the template.
Ask the user for one or more version streams. For each stream, collect:
2.1.x, 2.2.x)git.downstream.example.com/my-org/product-release.0.4.z)docs/security-matrix-2.2.x.md)Ask the user for one or more source repositories whose dependencies are tracked for CVE analysis. For each repository, collect:
backend, frontend-ui)internal, upstream, or customer-shipped. Default to upstream if the user skips."Deployment context for this repository (internal / upstream / customer-shipped)?"
Read security-config.template.md from this skill's directory and replace the
{{placeholder}} markers with the values gathered above.
If the ## Security Configuration section does not yet exist in CLAUDE.md, append it
after the ## Code Intelligence section. If the section exists but has placeholders,
replace only the placeholder content, preserving any surrounding text.
Present the planned Security Configuration section to the user for review before writing.
For each configured Version Stream, check the configured security-matrix.md path.
docs/templates/security-matrix.template.md; docs/templates/security-matrix.md is a
worked example. Expand {source-repo-name} / {source-ref} and matching separator
cells in lockstep into one column and one Source Pinning Method entry per configured
Source Repositories entry. Retain fixed columns and Ecosystem Mappings. Offer to write
the scaffold to the configured path and get confirmation for each file.For a confirmed scaffold, re-read the configured path immediately before writing and create it with create-if-absent semantics. If the file appeared after the initial existence check, preserve the current file and report that it now exists — do not write the scaffold over it. If the user wants a merge, build a proposal from the current file, show the complete merged result, and get fresh confirmation before any write. If the Write tool cannot guarantee create-if-absent behavior, abort rather than overwrite.
After scaffolding or confirming matrix files exist, ask:
"Would you like me to populate the Supportability Matrix and Container Images table from release history and published-image evidence?"
If the user declines, skip to Step 11. The matrix can be populated later on demand
by /triage-security during CVE investigation.
If the user accepts, for each Version Stream:
org.opencontainers.image.revision label with its
resolved full SHA. A missing value or mismatch is unresolved: ask for corrected
evidence and leave the matrix unchanged until verified.<!-- Last-Updated: <ISO-8601-timestamp> --> to the current UTC time. This timestamp
is consumed by triage-security's Step 0.3 staleness check. A declined review leaves
the matrix unchanged.After writing, read the CLAUDE.md back and verify:
# Project Configuration heading exists## Repository Registry contains a table with columns: Repository, Role, Serena Instance, Path## Jira Configuration contains at minimum: Project key, Cloud ID, Feature issue type ID### Jira Field Defaults subsection contains valid field values## Code Intelligence documents the mcp__<instance>__<tool> naming convention## Code Intelligence has a ### Limitations subheadingdocs/constraints.md exists in the target project## Bug Configuration contains: Bug issue type ID, Bug template path, Bug-to-Task link type## Hierarchy Configuration contains Default epic grouping strategy## Security Configuration contains ### Product Lifecycle with all four required fields (VEX Justification is optional)## Security Configuration contains ### Version Streams with at least one row## Security Configuration contains ### Source Repositories with at least one rowReport the validation results to the user.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
project-configuration, claude-md, sdlc-workflow, serena, jira
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.
/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