/sdd:organize [SPEC-XXXX or spec-name] [--project <name>] [--dry-run] [--module <name>]from sdd
Retroactively groups existing tracker issues into tracker-native projects and enriches project workspaces. Useful when a user wants to organize issues into project boards for existing sprint work.
Ships in sdd. 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.
Harness portability. This skill runs on any agent harness that loads Agent Skills — Claude Code, Codex CLI, OpenCode, Crush. Tool names used below (
AskUserQuestion,Task,TeamCreate,SendMessage,TaskCreate,ToolSearch,mcp__*,${CLAUDE_PLUGIN_ROOT}) denote capabilities, not hard requirements: map each to your harness's equivalent or use the documented fallback per${CLAUDE_PLUGIN_ROOT}/references/harness-compat.md. References toCLAUDE.mdmean the project memory file (CLAUDE.md,AGENTS.md, orCRUSH.md) per harness-compat § "Project Memory File". A citation of the formshared-patterns.md § "Section"names one##heading in that file — load only that section (see its "How to Read This File" note), never the whole file. Invocation and arguments. Where your harness has no command layer (Crush, Codex CLI, OpenCode) this skill is reached from itsdescription, not a slash command: the/sdd:{name}form below is Claude Code namespacing.$ARGUMENTSmeans whatever arrived with the invocation: take the target and any--flagsfrom the request that triggered this skill, and when neither is present follow this skill's documented no-argument path instead of reporting missing arguments (harness-compat § "Invocation and Arguments").
You are retroactively grouping existing tracker issues into tracker-native projects and enriching project workspaces. You use a three-tier intervention model that lets the operator control how invasive the changes are. See ADR-0012 and SPEC-0011.
Resolve artifact paths: Follow the Artifact Path Resolution pattern from ${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "Artifact Path Resolution" to determine the spec directory. If $ARGUMENTS contains --module <name>, resolve paths relative to that module. The resolved spec directory is {spec-dir}.
Parse arguments: Extract from $ARGUMENTS:
SPEC-0007) or capability directory name--project <name>: Use a single combined project with this name for all issues. Default: per-epic.--dry-run: Preview what would be created without making changes. Default: off.--module <name>: Resolve artifact paths relative to the named module. Default: none.If no spec identifier is provided, list available specs by globbing {spec-dir}/*/spec.md, read the title from each, and use AskUserQuestion to ask which spec to organize.
Resolve spec: Follow the plugin's ${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "Spec Resolution" (which uses {spec-dir} from the Artifact Path Resolution pattern).
Read spec: Read {spec-dir}/{capability-name}/spec.md and design.md to understand the spec number, requirement names, and architecture. Validate spec pairing per ${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "Spec Pairing Validation".
Detect tracker: Follow the "Config Resolution" and "Tracker Detection" flows in the plugin's ${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "Config Resolution" and § "Tracker Detection". Also read Projects settings from the ### SDD Configuration section in CLAUDE.md for cached project IDs and enrichment config (Views, Columns, Iteration Weeks). If no tracker is found, error — projects require a tracker.
Find existing issues: Search the tracker for issues whose body references the spec number.
gh issue list --search "SPEC-XXXX" --json number,title,body,labels --limit 100tea api --login {login} 'repos/{owner}/{repo}/issues?q=SPEC-XXXX&type=issues&state=all&limit=50' (see ${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "Gitea Access")glab issue list -R {owner}/{repo} --search "SPEC-XXXX" --all --output json --per-page 100 (see ${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "GitLab Access")Identify epics vs stories: Classify each found issue:
epic labelAssess project state (Governing: SPEC-0011 REQ "Organize Three-Tier Intervention"):
For each project (existing or to-be-created), assess its current state:
size/* label (per ${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "Size Labels")?### Branch and ### PR Convention sections present in issue bodies?Present findings to the operator and offer three intervention tiers via AskUserQuestion:
(a) Leave as-is: Report the current state and exit. No changes made.
(b) Restructure workspace only: Add/fix project-level structure without touching any issues:
(c) Complete refactor: All tier (b) changes PLUS:
${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "Try-Then-Create Label Pattern")size/* label per ${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "Size Labels" — add a missing one, collapse duplicates, and never re-size an issue that already has exactly one### Branch and ### PR Convention sections (if missing)Execute chosen tier: Carry out the selected intervention. All enrichment steps use graceful degradation: if a feature is unavailable for the tracker, skip and log "Skipped {step}: {tracker} does not support {feature}".
GitHub workspace enrichment (tier b/c):
Projects > Iteration Weeks (default: 2 weeks)Projects > Views (default: "All Work" table, "Board" board, "Roadmap" roadmap)Gitea workspace enrichment (tier b/c), all through tea (see ${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "Gitea Access"):
tea milestones create, assign stories with tea issues edit --milestoneProjects > Columns (default: Todo, In Progress, In Review, Done)GitLab workspace enrichment (tier b/c), all through glab (see ${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "GitLab Access"):
glab milestone create -R {owner}/{repo} --title ..., assign stories with glab issue update {n} -R {owner}/{repo} --milestone "{title}"glab issue board create -R {owner}/{repo} --name ... and add one label list per column (same steps as /sdd:plan 5.7 "For GitLab")Tier (c) additional steps:
${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "Try-Then-Create Label Pattern")tea api -X POST repos/{owner}/{repo}/issues/{index}/dependencies)glab api -X POST projects/{encoded-path}/issues/{n}/links with link_type=is_blocked_by, or relates_to plus a Blocked by: #N body line on Free tier — see /sdd:plan 5.7)### Branch / ### PR Convention to issue bodies that lack them (same logic as /sdd:enrich)--dry-run mode: If --dry-run is set, report the assessment and what WOULD be done at each tier, but don't modify anything.
Report results: Provide a summary:
Projects section was updated with project IDsBefore discovering existing issues (Step 5), sync the {repo}-issues qmd collection from the tracker so the local cache reflects current issue state. This is Tier 4 of the freshness model: always sync at consumer entry, subject to a 5-minute deduplication window.
.sdd/issues/_meta.json (per ${CLAUDE_PLUGIN_ROOT}/references/tracker-sync.md § "Cursor Management"). If last_sync is within the last 5 minutes, skip the sync and proceed silently.${CLAUDE_PLUGIN_ROOT}/references/tracker-sync.md with the cursor for incremental fetch. Print: "Syncing N issues from {tracker}…".${CLAUDE_PLUGIN_ROOT}/references/tracker-sync.md § "Failure Modes and Degradation" and proceed with live tracker queries (the pre-v5 path) for this run. Do NOT block; organize is the user's primary intent.After tier (c) interventions modify issue bodies (labels, project links surfaced in body, etc.), trigger a narrow re-sync of {repo}-issues so the qmd index reflects the changes. Use the canonical update pattern from ${CLAUDE_PLUGIN_ROOT}/references/qmd-helpers.md § "Update Patterns".
qmd update.{repo}-issues — run /sdd:index update manually") and report the organize step itself as successful.If tier (a) (report-only) or tier (b) (project-level only, no issue-content changes) was selected, skip Step 12 — there's nothing to re-index for {repo}-issues.
This skill reads and writes the Projects subsection of the ### SDD Configuration section in CLAUDE.md. See the plugin's ${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "Config Resolution" for the canonical format and defaults. All keys are optional with sensible defaults. When writing, merge — do not overwrite.
ToolSearch); where it cannot, assume them absent and take the documented CLI path (harness-compat § Capability Map)${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "Config Resolution" to read configuration from CLAUDE.mdProjects for cached project IDs before creatinggh project link, Gitea)${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "Try-Then-Create Label Pattern") for all label applications in tier (c) (Governing: SPEC-0011 REQ "Auto-Create Labels")size/* label per ${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "Size Labels", unless #### Sizing > Enabled is false--review support (utility skill){repo}-issues after tier (c) interventions per Step 12 — best-effort, silent on success (Governing: ADR-0026, SPEC-0019 REQ "Tier 1 Mutation-Aware Updates")What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub joestump/claude-plugin-sdd --plugin sddOther plugins' skills for the same job
22 skills in this plugin
/adrCreate a new Architecture Decision Record (ADR) using MADR format. Use when the user wants to document an architectural decision, says "create an ADR", "we need an ADR for", or discusses a decision that should be recorded./auditComprehensive audit of design artifact alignment across the project. Use when the user says "audit the architecture", "full drift report", or wants a thorough review of spec compliance and ADR adherence./checkQuick-check code against ADRs and specs for drift. Use when the user says "check for drift", "does this match the spec", or wants a fast alignment check on a specific file or directory./discoverDiscover implicit architectural decisions and spec-worthy subsystems in an existing codebase. Use when the user says "discover architecture", "what decisions exist in this code", "bootstrap ADRs", or wants to reverse-engineer design artifacts from code./docsGenerate a documentation site from your ADRs and specs. Use when the user says "generate docs", "create a docs site", or wants to publish their architecture decisions./enrichRetroactively add branch naming and PR convention sections to existing issue bodies. Use when the user says "add branch names to issues", "enrich issues", or wants to add developer workflow conventions to existing issues.