Imported from ashokraj2011/sbkp (
plugin/skills/sflow-jira-initiative/SKILL.md). Install upstream withnpx skills add ashokraj2011/sbkp --skill sflow-jira-initiative. Copyright stays with the author.
Jira initiative bridge
Output contract: Collect every required choice explicitly; never infer or preselect; preserve errors, artifacts, and next actions.
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-run -
Display 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.