Foundation
/Foundation
Create and maintain the project foundation document at /directive/foundation.md with automatic domain detection, codebase analysis, semantic versioning, and consistency propagation. USE WHEN foundation, project foundation, create foundation, update foundation, project principles, governance, foundation document, amend foundation.
- Author
- rsts-dev ↗
- Repository
- claude-buddy-marketplace ↗
- Licence
- MIT
- Last repository change
- 21.08.2026
Assessment and security
- Files in this package
- 83
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 21.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Create and maintain the project foundation document at /directive/foundation.md with automatic domain detection, codebase analysis, semantic versioning, and consistency propagation. USE WHEN foundation, project foundation, create foundation, update foundation, project principles, governance, foundation document, amend foundation.
Original author description
Create and maintain the project foundation document at /directive/foundation.md with automatic domain detection, codebase analysis, semantic versioning, and consistency propagation. USE WHEN foundation, project foundation, create foundation, update foundation, project principles, governance, foundation document, amend foundation.
How it works
- Customization
- Prerequisites
- Workflow Routing
- Auto-Detection
- Domain Architecture
- Examples
- Persona System
SKILL.md preview
---
name: Foundation
description: Create and maintain the project foundation document at /directive/foundation.md with automatic domain detection, codebase analysis, semantic versioning, and consistency propagation. USE WHEN foundation, project foundation, create foundation, update foundation, project principles, governance, foundation document, amend foundation.
---
# Foundation
Maintain the authoritative project foundation document. Automatically detects the project's technology domain, creates from codebase analysis or user input, updates with semantic versioning, and propagates changes to dependent artifacts.
## Customization
**Before executing, check for user customizations at:**
`~/.claude/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/Foundation/`
If this directory exists, load and apply any PREFERENCES.md configurations. If not, proceed with defaults.
## Prerequisites
LifeOS must be installed. Check `~/.claude/LIFEOS/VERSION`. If missing, inform user: "LifeOS is required. Run `/setup:lifeos` to install."
## Workflow Routing
| Workflow | Trigger | File |
|----------|---------|------|
| **CreateFoundation** | No `/directive/foundation.md` exists | `Workflows/CreateFoundation.md` |
| **UpdateFoundation** | Foundation exists, user wants changes | `Workflows/UpdateFoundation.md` |
| **CreateDomain** | User wants to create a new domain | `Workflows/CreateDomain.md` |
| **DetectDomain** | Called by CreateFoundation during setup | `Workflows/DetectDomain.md` |
## Auto-Detection
1. Check if user input contains "create domain", "new domain", or "add domain"
- If **yes** -> route to `Workflows/CreateDomain.md`
2. Check if `/directive/foundation.md` exists
- If **no** -> route to `Workflows/CreateFoundation.md`
- CreateFoundation automatically detects the project domain via `DetectDomain.md`
- Delegates to the domain's `analyze.md` for deep analysis
- If **yes** -> route to `Workflows/UpdateFoundation.md`
## Domain Architecture
Technology-specific knowledge lives in `Domains/`, where each subdirectory is a self-contained domain definition. Domains are **auto-discovered** — no registration needed.
### Available Domains
| Domain | Type Key | Description |
|--------|----------|-------------|
| `default` | `default` | Generic fallback for any project type |
| `react` | `react` | React.js frontend applications |
| `jhipster` | `jhipster` | JHipster full-stack (Angular + Spring Boot) |
| `mulesoft` | `mulesoft` | MuleSoft integration and API development |
### Domain Directory Structure
```
Domains/{domain-name}/
profile.md # Identity: type key, priority, dependencies, keywords, reference index
detect.md # Detection rules with confidence scoring
analyze.md # Deep analysis workflow fragment
Templates/ # Domain-specific templates for downstream skills
Spec.md # Specification template
Plan.md # Implementation plan template
Tasks.md # Task breakdown template
Docs.md # Documentation template
Reference/ # Large reference materials (loaded on-demand)
README.md # Index of reference files
*.md # Domain-specific reference documentation
```
### Adding a New Domain
**Interactive wizard (recommended):**
```
/buddy:foundation create domain
```
The CreateDomain workflow guides you through creating all required files interactively, with intelligent defaults and technology-aware generation. Domains created this way are stored in your user customization directory:
```
~/.claude/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/Foundation/Domains/{domain-name}/
```
**Manual creation:**
1. Create a directory under `Domains/` or `~/.claude/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/Foundation/Domains/`
2. Add the required files: `profile.md`, `detect.md`, `analyze.md`
3. Add templates in `Templates/`: `Spec.md`, `Plan.md`, `Tasks.md`, `Docs.md`
4. Optionally add reference materials in `Reference/`
5. Use `Domains/_domain-template/` as a starting point
No changes to Foundation, DetectDomain, or any downstream skill workflows are needed. The new domain is automatically discovered and available.
### Domain Search Order
DetectDomain scans domains from two locations:
1. **User domains**: `~/.claude/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/Foundation/Domains/` (takes precedence)
2. **Built-in domains**: `skills/Foundation/Domains/`
User domains can override built-in domains by using the same `type_key`.
### Template Resolution
Downstream skills (Spec, Plan, Tasks, Docs) resolve templates dynamically:
1. **Try**: `skills/Foundation/Domains/{foundation-type}/Templates/{Skill}.md`
2. **Fallback**: The skill's own `Templates/DefaultSpec.md` (etc.)
### Reference Material Loading
Domain reference materials are large and loaded on-demand. Each domain's `profile.md` includes a Reference Materials table with a `Load When` column indicating which workflow phases should load each file.
## Examples
**Example 1: Initialize foundation (auto-detect React project)**
```
User: "/buddy:foundation"
-> No foundation exists
-> DetectDomain scans Domains/, finds package.json with "react" -> score 90
-> Selects react domain
-> Executes Domains/react/analyze.md for deep analysis
-> Derives 5 core principles (including React-specific)
-> Creates /directive/foundation.md with Foundation Type: react
```
**Example 2: Initialize foundation (auto-detect MuleSoft project)**
```
User: "/buddy:foundation"
-> No foundation exists
-> DetectDomain finds mule-artifact.json -> score 90
-> Selects mulesoft domain
-> Executes Domains/mulesoft/analyze.md
-> Creates /directive/foundation.md with Foundation Type: mulesoft
```
**Example 3: Create a new domain**
```
User: "/buddy:foundation create domain"
-> Asks for domain name and description
-> Gathers technology stack details (runtime, framework, config files, etc.)
-> Generates profile.md, detect.md, analyze.md with intelligent defaults
-> Generates 4 customized templates (Spec, Plan, Tasks, Docs)
-> Writes to ~/.claude/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/Foundation/Domains/{name}/
-> Domain immediately available for detection
```
## Persona System
12 specialized personas provide expert perspectives during workflow execution. Personas are loaded on-demand by downstream workflows based on task context.
### Available Personas
| Persona | Type Key | Expertise |
|---------|----------|-----------|
| `architect` | Systems design | Architecture patterns, scalability, dependency management |
| `security` | Threat modeling | Vulnerability assessment, compliance, secure coding |
| `qa` | Quality assurance | Test strategy, quality gates, coverage analysis |
| `frontend` | UI/UX specialist | Accessibility, responsive design, component patterns |
| `backend` | API specialist | Database optimization, microservices, authentication |
| `devops` | Infrastructure | CI/CD, containerization, monitoring, deployment |
| `performance` | Optimization | Profiling, bottleneck analysis, performance budgets |
| `refactorer` | Code quality | Technical debt, clean code, design patterns |
| `analyzer` | Investigation | Root cause analysis, debugging, diagnostics |
| `mentor` | Education | Knowledge transfer, explanations, tutorials |
| `scribe` | Documentation | Writing, commit messages, changelogs, style |
| `po` | Product owner | Requirements, user stories, acceptance criteria |
### Persona Directory Structure
```
Personas/{persona-name}/
persona.md # Full persona definition with identity, principles, and frameworks
```
### How Personas Are Used
Downstream workflows load relevant personas to enhance their output:
- **Spec generation** loads `po` for requirement perspective
- **Plan generation** loads `architect` for design decisions
- **Task generation** loads `qa` for testing strategy
- **Implementation** loads context-dependent personas (e.g., `frontend` for UI tasks)
- **Commit** loads `scribe` for message quality
- **Docs** loads `scribe` for writing quality
### Loading a Persona
Workflows load personas by reading:
```
skills/Foundation/Personas/{persona-name}/persona.md
```
The persona definition provides identity, core principles, decision frameworks, auto-activation triggers, collaboration patterns, and response patterns that guide the workflow's output.
**Example 4: Add a principle**
```
User: "/buddy:foundation add security review principle"
-> Foundation exists
-> Adds new security principle
-> Bumps version (MINOR: new principle)
-> Propagates changes to dependent artifacts
```
Files in this package (83)
- SKILL.md 8 KB
- Domains/_domain-template/analyze.md 1 KB
- Domains/_domain-template/detect.md 1 KB
- Domains/_domain-template/profile.md 1 KB
- Domains/_domain-template/Reference/README.md 1 KB
- Domains/_domain-template/Templates/Docs.md 1 KB
- Domains/_domain-template/Templates/Plan.md 1 KB
- Domains/_domain-template/Templates/Spec.md 1 KB
- Domains/_domain-template/Templates/Tasks.md 1 KB
- Domains/default/analyze.md 2 KB
- Domains/default/detect.md 1 KB
- Domains/default/profile.md 1 KB
- Domains/default/Reference/README.md 1 KB
- Domains/default/Templates/Docs.md 1 KB
- Domains/default/Templates/Plan.md 3 KB
- Domains/default/Templates/Spec.md 4 KB
- Domains/default/Templates/Tasks.md 2 KB
- Domains/jhipster/analyze.md 4 KB
- Domains/jhipster/detect.md 1 KB
- Domains/jhipster/profile.md 1 KB
- Domains/jhipster/Reference/README.md 1 KB
- Domains/jhipster/Reference/angular-js.md 60 KB
- Domains/jhipster/Reference/angular-material.md 62 KB
- Domains/jhipster/Reference/jhipster.md 58 KB
- Domains/jhipster/Templates/Docs.md 22 KB
- Domains/jhipster/Templates/Plan.md 14 KB
- Domains/jhipster/Templates/Spec.md 10 KB
- Domains/jhipster/Templates/Tasks.md 15 KB
- Domains/mulesoft/analyze.md 3 KB
- Domains/mulesoft/detect.md 1 KB
- Domains/mulesoft/profile.md 2 KB
- Domains/mulesoft/Reference/README.md 2 KB
- Domains/mulesoft/Reference/anypoint-cli.md 65 KB
- Domains/mulesoft/Reference/dataweave.md 54 KB
- Domains/mulesoft/Reference/docs-general.md 53 KB
- Domains/mulesoft/Reference/mule-connector.md 42 KB
- Domains/mulesoft/Reference/mule-guidelines.md 61 KB
- Domains/mulesoft/Reference/mule-sdk.md 53 KB
- Domains/mulesoft/Templates/Docs.md 23 KB
- Domains/mulesoft/Templates/Plan.md 13 KB
- Domains/mulesoft/Templates/Spec.md 9 KB
- Domains/mulesoft/Templates/Tasks.md 12 KB
- Domains/react/analyze.md 3 KB
- Domains/react/detect.md 1 KB
- Domains/react/profile.md 2 KB
- Domains/react/Reference/README.md 1 KB
- Domains/react/Reference/react-js.md 47 KB
- Domains/react/Templates/Docs.md 1 KB
- Domains/react/Templates/Plan.md 4 KB
- Domains/react/Templates/Spec.md 5 KB
- Domains/react/Templates/Tasks.md 3 KB
- Domains/salesforce/analyze.md 3 KB
- Domains/salesforce/detect.md 1 KB
- Domains/salesforce/profile.md 2 KB
- Domains/salesforce/Reference/README.md 1 KB
- Domains/salesforce/Templates/Docs.md 1 KB
- Domains/salesforce/Templates/Plan.md 2 KB
- Domains/salesforce/Templates/Spec.md 3 KB
- Domains/salesforce/Templates/Tasks.md 2 KB
- Domains/springboot/analyze.md 3 KB
- Domains/springboot/detect.md 2 KB
- Domains/springboot/profile.md 2 KB
- Domains/springboot/Reference/README.md 1 KB
- Domains/springboot/Templates/Docs.md 1 KB
- Domains/springboot/Templates/Plan.md 2 KB
- Domains/springboot/Templates/Spec.md 3 KB
- Domains/springboot/Templates/Tasks.md 2 KB
- Personas/analyzer/persona.md 10 KB
- Personas/architect/persona.md 8 KB
- Personas/backend/persona.md 8 KB
- Personas/devops/persona.md 11 KB
- Personas/frontend/persona.md 7 KB
- Personas/mentor/persona.md 11 KB
- Personas/performance/persona.md 10 KB
- Personas/po/persona.md 7 KB
- Personas/qa/persona.md 11 KB
- Personas/refactorer/persona.md 11 KB
- Personas/scribe/persona.md 12 KB
- Personas/security/persona.md 9 KB
- Workflows/CreateDomain.md 10 KB
- Workflows/CreateFoundation.md 5 KB
- Workflows/DetectDomain.md 3 KB
- Workflows/UpdateFoundation.md 2 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · rsts-dev/claude-buddy-marketplace | 95 | MIT |
| Albaylar/Mobile-Development-Kit | 100 | MIT |
Database snapshot: 13.11.2026 · package version 1ccc630912e9 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 3 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90constitution:amend
Amend project constitution with semantic versioning and changelog management. Use when user asks to "amend constitution", "update constitution version", "add principle", or "modify governance rules". Automatically regenerates checklist. - 100vision
Create or maintain a project's root CONTEXT.md — goals, product boundary, non-goals, decision principles, and a domain language glossary. Use when starting a new project, clarifying product direction, aligning a codebase for future agent work, defining a north star, pinning down… - 95project-principles
Create or amend the project's principles document (its constitution): the non-negotiable rules, quality gates, and governance that design, planning, and verification check against. Fills the template's placeholder tokens, bumps the semantic version by the MAJOR/MINOR/PATCH… - 100project-bootstrap-assistant
Plans the platform foundation of a new or inherited system, ending in a charter and 90-day backlog. Use when preparing the technical foundation for a kickoff (not the PRD). - 100survey
Use to establish the repo's architecture map the rest of the pipeline reads. Two modes: on an EXISTING codebase it scans once and persists what's there; on an EMPTY/greenfield repo it runs a short, level-adaptive foundation session — picks the stack / folder structure / data… - 95foundation-models
On-device LLM integration using Apple's Foundation Models framework. Use when implementing AI text generation, structured output, or tool calling.