Project Organization Map
Reference Facts to consult while you work. Not meant to be read end to end.
Purpose
Section titled “Purpose”This document explains how the repository is organized at the folder level. It maps operations, not code — the point is that a human or an agent opening the repo for the first time can tell what belongs in each folder, which parts are framework-only and which are project material, and which files are meant to change every session versus which are meant to sit still.
Reading rule
Section titled “Reading rule”There are two levels to understand:
-
Framework root This repository itself. It contains the reusable SDD framework, MCP server, guides, scripts, and templates.
-
Target project The runnable or adapted project that uses the framework. The professional default is now:
- project code in the project root
- SDD sidecar in
./spec/Inside this repository, the clean container for that target project is./www/<project-name>/. Outside this repository, the target project can live in another path chosen by the user.
Recommended target-project shape
Section titled “Recommended target-project shape”flowchart TD A["Target project root"] --> B["app code"] A --> C["spec/"] C --> D["idea/"] C --> E["specs/"] C --> F["bitacora/"] C --> G["scripts/"] C --> H["template-context/"]Organizational map
Section titled “Organizational map”flowchart TD A["Repository Root"] --> B["idea/"] A --> C["specs/"] A --> D["bitacora/"] A --> E["docs/"] A --> F["scripts/"] A --> G["template-context/"] A --> H["templates/"] A --> I["packages/"] A --> J["examples/"] A --> K["playbooks/"] A --> L["quality/"] A --> M["legal/"] A --> N["www/"] A --> O[".github/"] A --> P[".githooks/"] A --> Q["site/"] A --> R["builder/"] A --> S["skills/"]Folder-by-folder explanation
Section titled “Folder-by-folder explanation”Role:
- global project intent
What belongs here:
- the main project definition
- the problem, goal, scope, audience, risks, and completion criteria
Main file:
idea/IDEA_GENERAL.md
When to update:
- when the overall project direction changes
specs/
Section titled “specs/”Role:
- feature-level planning and execution backbone
What belongs here:
- the spec index
- the reusable spec template bundle
- one numbered folder per feature or workstream
Important contents:
specs/INDEX.mdspecs/README.mdspecs/_template/specs/001-.../specs/002-.../
When to update:
- every time a new feature is defined
- every time scope, plan, tasks, or history change
bitacora/
Section titled “bitacora/”Role:
- traceability and session memory
What belongs here:
- global project log
- daily logs
- handoffs
- decision records
- reusable logging templates
Subfolders:
bitacora/global/bitacora/diaria/bitacora/handoffs/bitacora/decisiones/bitacora/templates/
When to update:
- at session close
- when an important decision is made
- when another agent or operator must continue the work
Role:
- user documentation and framework guidance
What belongs here:
- onboarding docs
- guides by level
- MCP docs
- roadmap, launch, versioning, legal references, and support material
Important subfolders:
docs/en/docs/es/docs/assets/
When to update:
- when the framework behavior changes
- when user-facing instructions become outdated
scripts/
Section titled “scripts/”Role:
- executable automation for the framework
What belongs here:
- initialization scripts
- validation scripts
- status and roadmap generators
- MCP smoke and integration tests
Examples:
create-www-project.shinit-project.shvalidate-sdd.shcheck-sdd-policy.shcheck-sdd-gate.sh
When to update:
- when the operational workflow changes
- when automation needs to become safer or more consistent
template-context/
Section titled “template-context/”Role:
- core operating instructions for AI agents
What belongs here:
- cross-agent rules
- anti-misuse guidance
- execution gate guidance
- handoff expectations
- prompt accelerators
Important subfolders:
template-context/core-instructions/template-context/prompts/
When to update:
- when AI behavior expectations change
- when new agent rules must be standardized
templates/
Section titled “templates/”Role:
- reusable writing templates for SDD artifacts
What belongs here:
- idea templates
- spec templates
- bitacora templates
Subfolders:
templates/idea/templates/spec/templates/bitacora/
When to update:
- when the standard wording or structure of reusable artifacts changes
packages/
Section titled “packages/”Role:
- productized implementation layer
What belongs here:
- typed reusable code
- MCP server package
Subfolders:
packages/sdd-core/packages/sdd-mcp/packages/create-sdd-project/
Meaning:
sdd-corecontains reusable logicsdd-mcpexposes that logic to AI clients through MCPcreate-sdd-projectis thenpx @juanklagos/create-sdd-projectscaffolder that installs the SDD structure into a new or existing project
When to update:
- when framework behavior changes in code
- when MCP tools, resources, prompts, or transports evolve
Role:
- public documentation site source
What belongs here:
- the Astro Starlight site that auto-syncs every guide from
docs/en/anddocs/es/ - i18n configuration and site theming
Meaning:
docs/remains the source of truth;site/renders it- deployed to GitHub Pages by the
siteworkflow
When to update:
- when the site framework, navigation, or sync pipeline changes
- guide content itself is edited in
docs/, not here
builder/
Section titled “builder/”Role:
- frontend of the visual SDD Builder
What belongs here:
- the Vite + React Flow canvas app (cards, connections, palette, task drawer)
- its build output in
builder/dist/, served by the MCP HTTP transport at/builder
Meaning:
- this is framework product code, like
packages/, not a target project - all reads and writes go through the REST API backed by
packages/sdd-core— markdown stays the source of truth
When to update:
- when the builder UI or its API contract evolves
- rebuild with
npm run builder:build
skills/
Section titled “skills/”Role:
- portable Agent Skills (open standard readable by many AI tools)
What belongs here:
- one folder per skill with a
SKILL.md
Important contents:
skills/sdd-workflow/SKILL.md
When to update:
- when the SDD workflow guidance for agents changes
examples/
Section titled “examples/”Role:
- worked examples for adoption
What belongs here:
- example projects
- example adaptations
- end-to-end example flows
When to update:
- when you need clearer teaching material
- when a new usage pattern should be demonstrated
playbooks/
Section titled “playbooks/”Role:
- accelerators by project type
What belongs here:
- domain-specific guidance for SaaS, e-commerce, mobile, backend API, and similar contexts
When to update:
- when a project category needs more direct operating help
quality/
Section titled “quality/”Role:
- quality evidence and verification support
What belongs here:
- evidence templates
- quality-oriented support material
Important path:
quality/evidence/
When to update:
- when the framework needs stronger verification standards
legal/
Section titled “legal/”Role:
- licensing and legal framing
What belongs here:
- legal materials and license-related references
When to update:
- when the legal posture of the framework changes
Role:
- managed runtime space for target projects inside this repository
What belongs here:
- runnable projects created with the framework’s default workspace convention
Example:
www/my-project/
Meaning:
- this is not framework source
- this is where target project work should live if it stays inside this repository
When to update:
- whenever a new managed target project is created
.github/
Section titled “.github/”Role:
- repository automation and collaboration config
What belongs here:
- workflows
- issue templates
- GitHub-specific instructions
Important subfolders:
.github/workflows/.github/ISSUE_TEMPLATE/
When to update:
- when CI, issue intake, or GitHub behavior changes
.githooks/
Section titled “.githooks/”Role:
- local Git hook automation
What belongs here:
- hook scripts used to enforce validation before commits
When to update:
- when local guardrails need to change
What should usually remain stable
Section titled “What should usually remain stable”These areas are framework structure and should not change casually:
template-context/templates/packages/scripts/docs/site/builder/skills/.github/
What changes frequently during real project work
Section titled “What changes frequently during real project work”These areas move most during normal usage:
idea/specs/bitacora/www/<project-name>/
Practical interpretation for AI agents
Section titled “Practical interpretation for AI agents”- If the task is about improving the framework itself, work in the repository root structure.
- If the task is about a user project, work in the target project path.
- If that target project lives inside this repository, use
www/<project-name>/as the clean default. - Never mix runnable project implementation into the framework root.
Short summary
Section titled “Short summary”idea/explains the project.specs/defines the work.bitacora/preserves the trace.docs/teaches the system.scripts/automate the system.template-context/instructs AI behavior.templates/standardize reusable artifacts.packages/implement the productized core and MCP.site/renders the docs as a public website.builder/is the visual canvas over the specs.skills/package the workflow as a portable Agent Skill.www/hosts managed runnable projects inside this repo.