
sdd-init
SDD step 0. Analyse the project codebase and create docs/project.md with tech stack, architecture, and conventions. Run once before starting SDD in a new project. If docs/project.md already exists, asks whether to regenerate it.
- Installs
- 63
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/sivaprasadreddy/sdd-skills --skill sdd-init- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads sdd-init automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
SDD: Init docs/project.md
You are a senior software architect analysing a project to produce its context document.
Pre-conditions
Check whether docs/project.md already exists.
If it exists: Ask the user:
"
docs/project.mdalready exists. Do you want to regenerate it? This will overwrite the current file."
Wait for confirmation. If the user says no, stop and tell them to edit the file manually. If the user confirms, proceed with the full process below.
If it does not exist: Proceed immediately.
Process
1. Detect the Tech Stack
Scan the project root and source tree for build and configuration files to auto-detect as much as possible:
| What to find | Where to look |
|---|---|
| Language & version | pom.xml (<java.version>), build.gradle/build.gradle.kts (jvmToolchain, sourceCompatibility), .java-version, pyproject.toml, package.json (engines), go.mod, Cargo.toml |
| Framework | pom.xml / build.gradle dependencies — Spring Boot, Quarkus, Micronaut, FastAPI, Express, Django, Rails, etc. |
| Build tool | Presence of pom.xml (Maven), gradlew (Gradle), package.json (npm/yarn/pnpm), Makefile, pyproject.toml (Poetry/Hatch) |
| Database | Dependencies or config files — spring.datasource in application.properties/application.yml, DATABASE_URL in .env.example, docker-compose services |
| ORM / data access | Dependencies — Hibernate/JPA, Spring Data, SQLAlchemy, Prisma, TypeORM, GORM, Diesel |
| Migrations | Dependencies or directories — Flyway, Liquibase, Alembic, db/migrate/ (Rails), Prisma migrate |
| Messaging | Dependencies or docker-compose services — Kafka, RabbitMQ, SQS, Redis Streams |
| Testing libraries | Test-scope dependencies — JUnit 5, Mockito, Testcontainers, RestAssured, pytest, Jest, Vitest, RSpec |
| Other libraries | Remaining notable dependencies — Spring Security, MapStruct, Lombok, Resilience4j, OpenAPI, etc. |
Read docker-compose.yml or docker-compose.yaml if present — it often reveals the database, messaging, and cache stack.
2. Detect Architecture & Conventions
Explore the source tree structure:
- Identify the top-level source layout (e.g.,
src/main/java,src/,app/,lib/) - Infer the architecture pattern from package/directory names:
- Packages named
controller,service,repository→ Layered - Packages named
domain,application,infrastructure,adapter→ Hexagonal / Clean - Packages named after business modules (e.g.,
order,payment,user) each containing layers → Modular Monolith - Multiple top-level services each with their own build file → Microservices
- Packages named
- Identify the base package name (e.g.,
com.example.myapp) - Look for a centralised error handler (e.g.,
GlobalExceptionHandler, middleware, error boundary, or equivalent) - Look for a base REST path prefix in controllers or config (e.g.,
/api/v1) - Note any security config (e.g.,
SecurityConfig, auth annotations, JWT setup)
3. Ask Clarifying Questions
Some information cannot be reliably detected. Ask the user the following questions in a single grouped message — do not ask them one at a time:
I've analysed the project. Before I write docs/project.md, I need a few details:
1. **Project name and mission:** What does this application do, and who uses it?
(1-2 sentences is enough — this is the "why we exist" paragraph.)
2. **Architecture pattern:** Based on the source layout, I think this uses [detected pattern].
Is that right, or would you describe it differently?
3. **Key conventions:** Are there any conventions AI Agent should follow that aren't obvious from the code?
For example: naming rules, auth requirements per endpoint, error response format, pagination style.
4. **Approved dependencies:** Are there any constraints on what libraries can be added?
(If not, I'll list the detected dependencies as approved by default.)
Adjust or omit questions 2–4 if you already have high confidence from the codebase scan.
Wait for the user's answers before writing the file.
4. Write docs/project.md
Create docs/ if it does not exist. Write docs/project.md with this structure, filled in from your analysis and the user's answers:
# Project: <Name>
## Mission
<One paragraph on what this application does and who it serves.>
## Tech Stack
- Language: <language and version>
- Framework: <framework and version>
- Build tool: <tool>
- Database: <database and version if known>
- ORM: <ORM / data access library>
- Migrations: <migration tool, or "none">
- Messaging: <messaging system, or "none">
- Testing: <testing libraries>
- Other: <other notable libraries>
## Architecture
<Describe the pattern: Layered / Hexagonal / DDD / Modular Monolith / Microservices>
<Describe the package structure with an example, e.g.:>
< com.example.<module>.<layer> → com.example.user.controller, com.example.user.service>
## Conventions
- Package naming: <convention>
- REST base path: <base path, e.g. /api/v1>
- Error handling: <mechanism, e.g. centralised exception handler, error middleware, global error boundary>
- Authentication: <default auth requirement, e.g. all endpoints require auth unless annotated @Public>
- <Any other conventions the user provided>
## Approved Dependencies
<Bulleted list of libraries approved for use. Anything outside this list requires a flag before adding.>
Do not leave any placeholder text (angle-bracket tokens) in the output — fill every field or omit the line if genuinely unknown.
5. Confirm
After writing the file:
- Show the user a summary of what was detected automatically vs. what they provided
- Tell them to review
docs/project.mdand update anything that looks wrong - Remind them to keep this file up to date as the stack evolves — it is the primary input for all other SDD skills
- Prompt them to run
/sdd-feature <feature description>to start their first feature
FAQ
What does the sdd-init skill do?
SDD step 0. Analyse the project codebase and create docs/project.md with tech stack, architecture, and conventions. Run once before starting SDD in a new project. If docs/project.md already exists, asks whether to regenerate it.
How do I install sdd-init?
Run npx skills add https://github.com/sivaprasadreddy/sdd-skills --skill sdd-init in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/sdd-init/ (personal) or .claude/skills/sdd-init/ (project).
Which AI agents can use sdd-init?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is sdd-init safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains sdd-init?
It is published by sivaprasadreddy in sivaprasadreddy/sdd-skills. It has 63 recorded installs.
More from sivaprasadreddy/sdd-skills
sdd-review
sivaprasadreddy/sdd-skills
SDD step 5. Reviews the implemented feature code against language and framework best practices, checks for code duplication, security vulnerabilities, performance issues, test coverage, and alignment with feature.md acceptance criteria. Use after /sdd-implement or on any existing feature implementation.
sdd-plan
sivaprasadreddy/sdd-skills
SDD step 3. Read feature.md and produce a detailed implementation plan.md tailored to the project's tech stack and architecture. Use after /sdd-feature has produced feature.md.
sdd-archive
sivaprasadreddy/sdd-skills
SDD step 7. Archive feature.md and plan.md into docs/specs-archive/ - / directory, then update docs/project.md with the new feature, and any architecture decisions made. Use after /sdd-review is complete and the feature is ready to merge.
sdd-implement
sivaprasadreddy/sdd-skills
SDD step 4. Read plan.md and implement the feature step by step, then verify all acceptance criteria are met. Use after /sdd-plan has produced plan.md.
sdd-refine
sivaprasadreddy/sdd-skills
SDD step 2 (optional, repeatable). Read an existing feature.md and refine it by updating or enhancing requirements based on user input. Use when requirements have changed, new edge cases are discovered, or the spec needs clarification before planning or re-planning. Run before /sdd-plan if plan.md already exists.
sdd-yolo
sivaprasadreddy/sdd-skills
SDD fast path. Runs the full pipeline — analyse → plan → implement → review → archive — with a single confirmation gate before implementation begins. Stops automatically if Critical or Major issues are found in review. Use when you want to ship a well-understood feature with minimal interruptions.
Popular code quality & workflow skills
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
improve-codebase-architecture
mattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
handoff
mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
domain-modeling
mattpocock/skills
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
codebase-design
mattpocock/skills
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
diagnosing-bugs
mattpocock/skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.