com um clique
sdd-init
Bootstrap OpenSpec structure and SDD context for a project.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Bootstrap OpenSpec structure and SDD context for a project.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Mandatory thoth-mem workflow contract for orchestrator/subagent memory ownership, parent session_id/project dispatch, prompt-save prohibitions, project-scoped read tools, session-summary ownership, and durable observation rules. Use whenever work mentions thoth-mem, persistent memory, orchestrator/subagents, session_id, project, saved prompts, session summaries, or project-level memory context.
Execute SDD task lists with real-time progress tracking, sub-agent dispatch, and verification checkpoints.
Review SDD task plans for execution blockers and return [OKAY] or [REJECT].
Generate phased `tasks.md` checklists from specs and design.
Repository understanding and hierarchical codemap generation
Mandatory step-0 requirements discovery for non-trivial work before any implementation or SDD routing decisions.
Baseado na classificação ocupacional SOC
| name | sdd-init |
| description | Bootstrap OpenSpec structure and SDD context for a project. |
| metadata | {"author":"gentleman-programming","version":"1.0"} |
Initialize SDD for a project by detecting local conventions, creating the minimal OpenSpec structure when needed, and persisting startup context.
~/.config/opencode/skills/_shared/openspec-convention.md~/.config/opencode/skills/_shared/persistence-contract.md~/.config/opencode/skills/_shared/thoth-mem-convention.mdThe orchestrator passes the artifact store mode (thoth-mem, openspec, or
hybrid). Follow
~/.config/opencode/skills/_shared/persistence-contract.md for read/write
rules per mode.
thoth-mem: persist initialization context to thoth-mem only — do NOT create
or modify openspec/ files.openspec: create or update OpenSpec structure only — do NOT call thoth-mem
save tools.hybrid: do both (default).openspec/ is not initializedsdd-proposehybrid)Read the shared conventions before initializing.
Detect project stack and conventions from repository files:
package.json, go.mod, pyproject.toml,
requirements.txt, Cargo.toml, pom.xml, build.gradle,
composer.json.vitest.config.*, jest.config.*,
playwright.config.*, pytest.ini, tox.ini, go test conventions,
Cargo.toml test crates.biome.json, .eslintrc*, eslint.config.*,
.prettierrc*, ruff.toml, .golangci.*, rustfmt.toml..github/workflows/*, .gitlab-ci.yml,
azure-pipelines.yml, .circleci/config.yml.apps/, packages/,
services/, src/, cmd/, internal/.Build concise config context (max 10 lines) using detected values. Use
unknown for missing signals.
If the selected mode includes OpenSpec (openspec or hybrid), check
whether these already exist:
openspec/config.yamlopenspec/specs/openspec/changes/If all required OpenSpec paths already exist, report what exists and ask the
orchestrator whether config.yaml should be updated. Do not overwrite by
default.
If any required OpenSpec path is missing and mode includes OpenSpec, create only the minimum structure:
openspec/
├── config.yaml
├── specs/
└── changes/
└── archive/
Generate openspec/config.yaml dynamically with this shape:
schema: spec-driven
context: |
Tech stack: {detected}
Architecture: {detected}
Testing: {detected}
Style: {detected}
rules:
proposal:
- Include rollback plan for risky changes
- Identify affected modules/packages
specs:
- Use Given/When/Then format for scenarios
- Use RFC 2119 keywords (MUST, SHALL, SHOULD, MAY)
design:
- Include sequence diagrams for complex flows
- Document architecture decisions with rationale
tasks:
- Group tasks by phase (infrastructure, implementation, testing)
- Use hierarchical numbering (1.1, 1.2, etc.)
- Keep tasks small enough to complete in one session
apply:
- Follow existing code patterns and conventions
tdd: false
test_command: ''
verify:
test_command: ''
build_command: ''
coverage_threshold: 0
archive:
- Warn before merging destructive deltas
Never create placeholder SDD artifacts (proposal.md, design.md,
tasks.md, or spec files) during initialization.
If the selected mode includes thoth-mem (thoth-mem or hybrid), persist
the detected context and initialization status with:
thoth_mem_mem_save(
title: "sdd-init/{project-name}",
topic_key: "sdd-init/{project-name}",
type: "config",
project: "{project-name}",
scope: "project",
content: "What: ...\nWhy: ...\nWhere: ...\nLearned: ..."
)
In hybrid mode, initialization is complete only when both OpenSpec setup
and thoth-mem persistence succeed.
Return:
ProjectModeDetected Context: stack, architecture, testing, style, CIOpenSpec Status: initialized, already initialized, or skipped by modeCreated Paths: list of directories/files created (if any)Topic Key: sdd-init/{project-name} when mode includes thoth-memNext Step: usually sdd-proposethoth-mem mode, never create openspec/ directories or files.config.yaml context concise (max 10 lines).