Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Sdd Tojira?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/phenobarbital-sdd-tojira)
---
name: sdd-tojira
description: Export an SDD Specification to a Jira Story (and optionally subtasks).
---
# SDD To Jira
## Full procedure and host adaptations
Before executing, read the [full sdd-tojira procedure](../../../.claude/commands/sdd-tojira.md)
and your host's adaptation contract: the [Codex adaptation contract](../../../docs/sdd/CODEX.md#codex-adaptation-contract)
on Codex, or the [Antigravity adaptation contract](../../../docs/sdd/AGY.md#antigravity-adaptation-contract) on Google Antigravity (`agy`).
Follow the full procedure for details omitted from this summary. The adaptation
contract and the Codex-specific instructions below override Claude runtime syntax
and legacy shell examples; retain all workflow gates and evidence requirements.
Use this skill when the user asks to export an SDD spec to Jira, sync tasks as subtasks, or run `sdd-tojira`.
Invocation: `sdd-tojira <spec-path-or-FEAT-ID> [--ticket KEY] [--with-subtasks] [--project KEY]`.
## Purpose
Export an approved specification (`sdd/specs/*.spec.md`) to Jira as a Story, optionally creating Jira subtasks for each decomposed task in `sdd/tasks/index/<feature>.json`, linking the Jira key in the spec, and committing the change.
## Guardrails
- Spec should be `status: approved` (confirm if draft).
- Check for existing ticket linkage to run in idempotent UPDATE mode.
- Resolve the target in order: `--ticket`, spec metadata/linkage, then search
by Feature ID. For a search match, ask whether to UPDATE, link only (SKIP),
or CREATE separately; wait for the choice. CREATE directly only with no match.
Default project/component/type are `NAV` / `Nav-AI` / `Story`; honor `--project`.
Update an existing ticket only when explicitly requested or resolved through
`--ticket` or spec metadata; never guess a matching ticket to overwrite.
- Map acceptance criteria into Jira custom fields (`customfield_10021`, etc.).
- Commit only the modified spec and task index files.
## Workflow
1. Resolve specification:
- Accept spec path or `FEAT-NNN`.
- Read spec frontmatter, motivation, architecture, acceptance criteria, and test spec.
2. Check Jira connection:
- Prefer Jira MCP tools (`jira_create_issue`, `jira_update_issue`).
- Fallback to curl with `JIRA_INSTANCE`, `JIRA_USERNAME`, `JIRA_API_TOKEN`.
3. Create or update Story:
- Set summary, description, component, and AC.
- Add labels = frontmatter `projects` ∪ `tags` (FEAT-576); on update only add, never remove.
4. Create Subtasks (if `--with-subtasks`):
- Fetch existing subtasks before creating any. Match each TASK-ID against
the stored Jira key and the existing subtask's `[TASK-NNN]` summary.
- Create only missing subtasks with the original estimate; reuse existing
keys, including when a previous run created the subtask but did not save
the index. Stop on ambiguous matches instead of creating duplicates.
- Record created Jira keys in the task index.
5. Update spec with Jira link:
- Add `jira: <KEY>` to frontmatter and link in markdown body.
6. Commit changes:
- Stage spec and index file only.
- Commit: `sdd: export FEAT-<ID> to Jira <JIRA_KEY>`.
## References
- `sdd/specs/*.spec.md`
- `sdd/tasks/index/<feature>.json`
- `sdd/WORKFLOW.md`