agentsclimarketplace

Specdd init

Skill laura-ideajunkies/specdd-ce-claude-plugin/skills/specdd-init

Bootstrap a repo for spec-driven development (specDD). Creates .specdd/ entrypoints and seeds initial colocated *.sdd specs from existing code. Use when the user says 'set up specdd', 'init specdd', 'add spec-driven dev', or wants to start using .sdd files alongside compound engineering. Run once per repo.From its SKILL.md

Install
npx -y skills add laura-ideajunkies/specdd-ce-claude-plugin --skill specdd-init

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

12.9 KB, as published. Nobody here has run it

Initialise SpecDD in this repo

Note: The current year is 2026. Date any seeded specs and bootstrap notes accordingly.

This is a one-time setup skill. It prepares the repo so that /ce:specdd, /ce:work, and /ce:doc-review can rely on:

  1. A .specdd/ directory with bootstrap files telling any agent how to resolve and obey colocated specs.
  2. An initial chain of .sdd files at the repo root and at major subtree boundaries, reverse-engineered from the code that exists today.
  3. An AGENTS.md (and/or CLAUDE.md) entrypoint that points at .specdd/bootstrap.md so the convention works for any AI agent, not only this plugin.

Relationship to other skills

  • /ce:specdd-init - this skill, run once per repo
  • /ce:specdd - run per feature to draft/update colocated specs
  • /ce:plan - still produces the durable decision artifact in docs/plans/
  • /ce:work - reads both the plan and the active spec chain; defers to specDD for write-scope enforcement
  • /ce:doc-review - gains the specdd-coherence-reviewer persona when .specdd/ is present

Phase 0: Detect existing setup

Before doing anything destructive:

  1. Check for .specdd/bootstrap.md, .specdd/bootstrap.project.md, root *.sdd.
  2. Check for AGENTS.md or CLAUDE.md already pointing at .specdd/.
  3. If a partial setup exists, switch into resume mode: list what's missing and offer to fill the gaps rather than overwrite.

If a complete setup already exists, do not re-run. Tell the user /ce:specdd-init is a no-op here and suggest /ce:specdd for per-feature work.

Phase 1: Project shape interview

Ask the user, one question at a time, using the platform's blocking question tool when available (AskUserQuestion in Claude Code, request_user_input in Codex, ask_user in Gemini). Otherwise present numbered options in chat and wait for the user's reply before proceeding.

  1. Target subtree - whole repo, or a single app (e.g. app/, src/)?
  2. Stack - confirm primary language(s) and framework(s); auto-detect from package.json/Gemfile/pyproject.toml first, then confirm.
  3. Spec granularity - file-level (invoice.sdd next to invoice.ts) or module-level (one spec per directory)? Default to module-level for an existing codebase; file-level scales poorly when reverse-engineering.
  4. Strictness - strict (agents may write only inside Owns) or advisory (warnings only) for v1? Default to advisory for the first two weeks.
  5. Autonomy - hitl (agent pauses for explicit approval after every task), auto (agent decides per decision when a human is needed), or lfg (agent runs tasks to completion, with the write gate as the only hard boundary)? Default to auto.
  6. Existing planning artifacts - does docs/plans/ exist, and should new specs cross-reference it via References: lines? Default yes.

Right-size: skip questions where context is unambiguous.

Phase 2: Write .specdd/ bootstrap files

Create three files. The first two are committed; the third is gitignored.

.specdd/bootstrap.md

  • Origin and purpose: durable, source-adjacent contracts that any AI agent must read before modifying code.
  • Resolution algorithm: walk repo root → target file's directory, collecting every *.sdd along the way as inherited active constraints. Sibling specs only load when the active spec lists them under References:.
  • Constraint composition: child specs may narrow but never loosen parent Must/Must not/Forbids. On conflict, the stricter rule wins.
  • Write authority: an agent may modify only files listed in the nearest active spec's Owns: or Can modify:. Anything else requires a spec update first, in a separate turn.
  • Task state legend: [ ] open, [x] done, [-] skipped, [!] blocked, [?] needs decision.
  • Section vocabulary (omit unused): Spec, Platform, Purpose, Structure, Owns, Can modify, Can read, References, Must, Must not, Depends on, Forbids, Exposes, Accepts, Returns, Raises, Handles, Tasks, Scenario, Example, Done when.

.specdd/bootstrap.project.md

  • Project-specific overrides chosen during the Phase 1 interview (granularity, strictness, autonomy, link-to-plans policy). Write Strictness: and Autonomy: each on their own line - the write gate and /sdd-mode read them there.
  • Autonomy semantics, stated for any agent reading the chain: hitl means implement one task, present it, and wait for explicit approval before the next - questions and observations are never consent, only an explicit go-ahead is; auto means proceed on reversible in-scope changes and pause for a human on anything irreversible, anything marked [?], anything adjacent to a Must not: or Forbids:, or anything the spec leaves ambiguous; lfg means run the task to completion without pausing - the write gate still bounds every write, so autonomy governs pace, never scope.
  • House rule (always include): every spec opens with a TL;DR: section - two to four sentences of plain English that a non-technical reader can follow. No jargon, no file paths, no section names. It answers: what is this part of the system, and what is it for? Keep it current - when a change makes the TL;DR wrong, updating it is part of the change.
  • Map between this repo's directory layout and .sdd placement.
  • Any further house style: e.g. "every feature spec must include a Scenario: for the empty-state path".

.specdd/bootstrap.local.md (usually gitignored)

  • Local agent-side preferences. Add a one-line stub. Offer to add an entry to .gitignore, but ask first - some teams choose to commit local overrides intentionally.

Phase 3: Seed root and subtree specs

Adoption sequence (do not skip steps):

  1. Root spec first. Create the repo's top-level app.sdd (or <repo-name>.sdd at the chosen target subtree's root). It carries the project's global Must: / Must not: - the rules every descendant inherits. Be conservative; only assert what is clearly true today. Bad root constraints are very sticky.
  2. Major subtree boundaries next. For each directory that owns a coherent unit (app entrypoint, feature module, service, adapter), draft a *.sdd next to it. Use the section vocabulary from the bootstrap.
  3. Stop there for v1. Avoid generating one .sdd per source file on day one. Deeper specs are added on demand by /ce:specdd as features land.

Naming conventions are advisory, not enforced:

  • Suffixes like .service.sdd, .model.sdd, .adapter.sdd are optional. Omit them when the directory already disambiguates (e.g. services/api.sdd is fine; services/api.service.sdd is redundant).
  • The kinds list (app, module, feature, service, model, adapter, api, component, job, event, policy) is a vocabulary of conventions, not a closed enum. Follow this project's existing naming over specDD's example list.

For each seeded spec:

  • Open with the TL;DR: - the plain English summary defined in the house rule above. Write it for a reader who has never seen the codebase.
  • Identify: purpose, public surface, what it owns, what it must not do.
  • Be conservative on Must not: and Forbids: - assert only what is clearly true today.
  • Cross-reference parent specs via References: only when there's a real coupling that the inheritance chain doesn't already capture.

Phase 4: Wire entrypoints

If AGENTS.md exists, add a section:

## Spec-driven development

This repo uses specDD. Before modifying any code, read `.specdd/bootstrap.md`, then walk root → target dir collecting every `*.sdd` as active constraints. Modify only files inside the nearest active spec's `Owns` or `Can modify`.

If CLAUDE.md exists, add the same pointer. Do not duplicate the bootstrap content into AGENTS.md/CLAUDE.md; keep .specdd/bootstrap.md as the single source.

Phase 4.5: Optional - wire compound-engineering

Enforcement does not depend on this phase. The write gate ships as a PreToolUse hook inside this plugin (hooks/hooks.json → hooks/specdd-gate.py). It fires before every Write/Edit, resolves the spec chain for the target path, and blocks writes outside the active Owns: / Can modify: boundary when strictness is strict. It runs whether or not compound-engineering (CE) is installed, and it never reads or edits CE's files, so CE updates cannot break it. Nothing in this phase is needed for that.

What this phase adds is the part a hook cannot reach: getting CE's own skills to offer spec work and include the coherence reviewer. Both are advisory by nature - a review suggestion and a handoff option, not a safety gate - so advisory wiring is the appropriate strength for them.

Never edit CE's own files. CE is updated frequently upstream. Edits to a plugin-installed CE are shared across every project and are clobbered on update; edits to a vendored CE break silently whenever upstream rewords the prose an anchor matched against. Neither failure is visible until enforcement has already stopped happening. Write to the project's own files instead - they are yours, versioned with the repo, and unaffected by CE releases.

Detection

Best-effort, and only to decide whether to offer the block at all:

  • Check whether ~/.claude/plugins/compound-engineering/ exists, or glob the repo for a **/.claude-plugin/plugin.json whose name is compound-engineering. Use the native file-search/glob tool (e.g. Glob in Claude Code), not shell find.
  • If neither is found, skip this phase. Print one line: "Compound-engineering not detected - the SpecDD write gate is active regardless. Run /ce:specdd-init again after installing CE to add the review and handoff wiring."

The wiring

Add this block to the project's own AGENTS.md and CLAUDE.md - the same files Phase 4 just touched. Wrap it in markers so it is idempotent and reversible:

<!-- specdd-ce-wire:start (do not edit by hand; run /ce:specdd-init to refresh) -->
### Compound-engineering integration

Write-scope enforcement is handled deterministically by the specdd-ce plugin's
PreToolUse hook. It needs no wiring and applies to every write in this repo.

The following are advisory:

When `/ce:doc-review` runs in this repo, also dispatch
`specdd-ce:document-review:specdd-coherence-reviewer` alongside CE's always-on
reviewers, and surface its findings in the same dedup pipeline.

When `/ce:plan` finishes and the plan introduces new modules, also offer
`/ce:specdd <plan-path>` as a handoff option beside "Start `/ce:work`".
<!-- specdd-ce-wire:end -->

If markers are already present, replace the bracketed content rather than appending a second copy.

UX rules

  1. Show the diff first. Print which files will change and a unified-diff view of the insertion. Use the platform's blocking question tool (AskUserQuestion in Claude Code, request_user_input in Codex, ask_user in Gemini) to ask: "Apply specdd-ce wiring to these file(s)?" Wait for explicit yes.
  2. Idempotent. Re-running detects the specdd-ce-wire markers and replaces the block between them.
  3. Reversible. Deleting every line between and including the markers rolls it back. Say so in the success message.
  4. No commits. Stage nothing, commit nothing.

Prerequisite

The block references an agent under the specdd-ce: namespace, so both compound-engineering and specdd-ce must be installed for it to resolve. If you are running this skill standalone rather than from the installed plugin, warn that the reference will fail until specdd-ce is installed.

Phase 5: Verification & handoff

Print a tree summary:

.specdd/
├── bootstrap.md
├── bootstrap.project.md
└── bootstrap.local.md (gitignored)

<repo>/<n> initial *.sdd files seeded

Write-scope enforcement: active (specdd-ce PreToolUse hook, strictness: <strict | advisory>)

Compound-engineering wiring: <applied | not-detected | declined>
  - <list of files modified, or "none">

Do not commit on the user's behalf. End with the menu:

  1. Open one of the new specs to review
  2. Add .specdd/bootstrap.local.md to .gitignore (offer to do this)
  3. Run /ce:specdd <feature> to draft your first feature spec
  4. Done

Outputs

  • .specdd/bootstrap.md, .specdd/bootstrap.project.md, .specdd/bootstrap.local.md
  • A small set of seeded *.sdd files at significant subtree boundaries
  • A pointer added to AGENTS.md and/or CLAUDE.md

What this skill does not do

  • Does not rewrite existing code to fit specs.
  • Does not generate one spec per source file.
  • Does not commit, push, or open PRs.
  • Does not fail the build. Write blocking is the job of the plugin's PreToolUse gate, which is always on and independent of this skill.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.