Browse Jira Epics and child stories, preview their repository mapping, adopt an Epic into a Singularity initiative, or prepare a governed outbound Jira write plan.
Install
npx skillscat add ashokraj2011/singularityflow/sflow-jira-initiative Install via the SkillsCat registry.
Jira initiative bridge
Output contract: Collect every required choice explicitly; never infer or preselect; preserve errors, artifacts, and next actions. For suggested actions, pair Shell with the returned Copilot command; honor commandGuidance. If absent, say "Copilot: no verified equivalent"; never invent a slash command.
Boundary: no Story required; cwd=opened Git root or verified repositoryPath from singularity-flow workspace current --json; refuse if neither resolves; never search $HOME/parents.
Use this skill when a contributor wants to browse Jira hierarchy or connect an existing Jira Epic to a Singularity initiative.
Safety contract
- Never ask the user to paste an API token or PAT into Copilot chat.
- Prefer the VS Code Connect Jira command for sign-in; it stores credentials through VS Code SecretStorage and the operating-system keychain.
- CLI credentials must already exist in the user environment or protected secret manager.
- Read operations may run directly.
- Always preview Epic adoption before changing initiative state.
- Never invent repository ownership. Ask the user to map every unresolved Jira child to a configured repository.
- Never run
jira-applywithout showing the complete plan, its SHA-256, and the exact fields affected. - The governed initiative write plan does not alter status, assignee, sprint, priority, or resolution. An explicit
/sf-jira-updaterequest is a separate operator action with exact Story-key confirmation.
Read flow
- Run
singularity-flow jira status. - List permitted projects with
singularity-flow jira projects. - List project Epics with
singularity-flow jira epics --project <KEY>. - Show children with
singularity-flow jira children <EPIC-KEY>.
Adoption flow
Confirm that the current Git branch is the target initiative branch.
Preview:
singularity-flow initiative jira-adopt <EPIC-KEY> --repository <JIRA-KEY>=<REPO> --dry-runDisplay both identifier columns: Singularity Work ID and Jira ID.
Resolve every missing repository mapping with the user.
Run the same command without
--dry-run.Report the committed source snapshot hash, branch commit, and push result.
Outbound write flow
- Run
singularity-flow initiative jira-plan. - Display every operation, subject, and field plus the exact plan SHA-256.
- Explain that
jira.writeMode: approvedand an approved Plan/Elaboration phase are required. - Ask the user to confirm the exact initiative ID and exact plan hash.
- Only then run
singularity-flow initiative jira-apply --plan <SHA-256>. - Display each Jira key and the committed receipt/push result.
Do not transition issues automatically. Do not treat Jira as workflow state; committed Git records remain canonical.