/dc-specs:spec-setupfrom dc-specs
Walks through setting up, changing, or checking dc-specs in a repo. Installs dependencies, picks a spec source (markdown, GitHub Issues, GitLab Issues, Jira, Linear, or Azure DevOps), configures the approving status, and commits specs/config.yaml.
Ships in dc-specs. 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.
Get a repo ready for dc-specs, change its setup, or check it. The result is a committed specs/config.yaml and a passing check.
Read ${CLAUDE_PLUGIN_ROOT}/references/config.md for the keys and ${CLAUDE_PLUGIN_ROOT}/references/framework.md for H. Run everything from inside the repo.
Find <python> for H (framework.md, Helper). If no candidate is 3.9 or later, walk the human through installing Python before anything else, then check again:
| OS | Install |
|---|---|
| macOS | xcode-select --install, or brew install python |
| Linux | The package manager: sudo apt install python3 or sudo dnf install python3 |
| Windows | winget install --id Python.Python.3.13 -e, then open a new terminal. A python3 that opens the Microsoft Store is a placeholder, not Python. |
Run H deps. For each check that is not ok, show its install step, wait for the human to run it, and run H deps again until it is ok.
Run H config. No config: set up from step 3. A check: run H deps (it reads the source from the config), then go to step 5. A change, or an invalid config: show the current one and ask what changes, then go to step 3 keeping everything else.
Ask which the team uses to track work: Jira, Linear or Azure DevOps (stories are refined there), GitHub Issues or GitLab Issues (the repo's issues are the backlog) or Markdown (no tracker; specs are files in the repo). Pick where the team already writes stories.
Look up the details before asking, and confirm them:
| Source | Detail | Where to look |
|---|---|---|
| markdown | folder, id prefix | Default specs and SPEC |
| github | owner/repo | gh repo view --json nameWithOwner -q .nameWithOwner |
| gitlab | project path, host | git remote get-url origin: the host and the full path after it, without .git. Omit the host for gitlab.com |
| jira | site, project key, issue type | getAccessibleAtlassianResources; ask the key; default Story |
| linear | team key | The Linear MCP's team list. With no Linear MCP, stop and ask the human to connect it |
| ado | organization, project, work item type | az devops configure --list; az devops project list --org https://dev.azure.com/<org>; the process's backlog type (User Story, Product Backlog Item or Issue). Needs az login |
Then ask where the code repo is, GitHub or GitLab, checking git remote get-url origin first. A gitlab source defaults to the same project. For GitLab with another source, take gitlab.project and gitlab.host from the remote, and pass --code-host gitlab --gitlab-project <path> [--gitlab-host <host>] to init.
Once the source is picked, run H deps --source <source> [--code-host gitlab] and repeat the install loop from step 1 for its tools (gh for GitHub, glab for GitLab, az and its azure-devops extension for Azure DevOps). For GitLab, run glab auth login --hostname <host> so it never falls back to gitlab.com. Do each agent_checks item: Jira and Linear need their MCP server connected.
List the statuses that exist: Jira, the distinct statuses of the project's recent issues and one issue's transitions; Linear, the team's workflow states; Azure DevOps, az devops invoke --area wit --resource workItemTypeStates --route-parameters project="<project>" type="<type>" --org https://dev.azure.com/<org>; GitHub, gh label list --repo <repo> --limit 1000 (a label such as spec:approved is best); GitLab, glab label list --repo <host>/<project> --per-page 100 (a scoped label such as spec::approved is best); markdown, default approved.
Ask for the approval status, one an issue is moved into and never created in. Optionally ask for in progress, done and any also frozen statuses after it; all of them count as frozen.
H init --source <source> --approval "<status>" [--in-progress "<s>"] [--done "<s>"] [--also-frozen "<s>" ...] \
[--repo <owner/repo>] [--host <gitlab host>] [--site <site>] [--project <KEY or name>] [--issue-type <type>] [--team <KEY>] \
[--org <org>] [--work-item-type <type>] [--code-host gitlab --gitlab-project <path> --gitlab-host <host>] \
[--dir <folder>] [--id-prefix <prefix>] --dry-run
Show the config, its changes and warnings, and confirm. When the source or location changes, list the specs in flight in the old place and say they stay there. Then run it without --dry-run, adding --force if it says needs_force.
Run H setup-check. Fix every error (a missing GitHub or GitLab label comes with its gh label create or glab label create command), report every warning, and do each agent_checks item with the MCP tools. Setup is done when it is ok and every agent check passed.
Stage only specs/config.yaml and commit on a branch, dc-specs-setup unless the human wants it in their current branch. Offer to push and open a PR (a merge request on GitLab); until it merges, dc-specs works only on branches that have the config.
Tell the human the source, the approval status and that the check passed, and that spec-template makes the team's own templates. Do not mention dc-specs in the repo's CLAUDE.md; the plugin's session hook does that. If another skill sent you here, return to it.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub devclarityai/devclarity-marketplace --plugin dc-specs7 skills in this plugin
/report-issueUse when someone hits a problem with dc-specs itself or wants it to do something new - "report a dc-specs bug", "file an issue for dc-specs", "dc-specs did X instead of Y", "can dc-specs do X", "report issue". Files a dc-specs bug or feature request as a GitHub issue on devclarityai/devclarity-marketplace, after checking for a duplicate, with the versions filled in and nothing from the reporter's own repo. Not for bugs in the reporter's code or in other plugins./spec-authorUse when turning a ticket, issue or idea into a dc-specs spec before building it - "spec this ticket", "write a spec for OPS-412", "draft the acceptance criteria", "refine this story". Decides whether the change needs a spec, recommends a template and lets the human choose, asks the questions a QA lead and a tech lead would, and writes numbered Given/When/Then acceptance criteria onto the spec's source of truth (Jira, Linear, Azure DevOps, GitHub Issues, GitLab Issues or a markdown file). Not for test specs (RSpec, Jest), OpenAPI specs or other technical specifications./spec-closeUse after a dc-specs spec's PR has merged - "close out OPS-412", "close the spec", "wrap up this spec", "what from this spec should we keep". Sorts what should outlive the change, promotes the rare lasting rule to the right CLAUDE.md through a reviewed PR, leaves everything else on the spec where search finds it, and posts a closing note with links./spec-implementUse when building an approved dc-specs spec in a repo that has specs/config.yaml - "build OPS-412", "implement the spec", "build it" after a spec is approved, "start on this spec". Confirms the spec is frozen and records the version it builds against, plans against the numbered acceptance criteria, builds each step the repo's way with its own skills and a passing test per criterion, and stops to ask when the spec is unclear, recording every answer on the spec as a dated amendment, fills the evidence as tests pass, and opens the PR with the evidence as its description. Never edits the frozen spec./spec-templateUse when someone wants a new or changed dc-specs spec template or evidence template - "make a spec template", "we need a template for QA test plans", "add a rollout section to our feature template", "change what the PR evidence asks for", "what spec templates do we have". Asks what the template is for and what it should contain, writes it and its paired evidence template to specs/templates/, checks both, and commits them on a branch. Also runs when spec-author finds no template that fits./spec-verifyUse when checking a finished implementation against its dc-specs spec before review, in a repo that has specs/config.yaml - "verify OPS-412", "verify the spec", "check this PR against the acceptance criteria", or after spec-implement hands off. Audits the PR's evidence against the frozen spec, read from its source, and posts a verdict per criterion as a new PR comment. Runs in a fresh session and never edits the evidence.