project-setup
Deploys the complete SDD architecture with engram persistence and ai-context/ memory layer in the current project. Trigger: /project-setup, initialize new project, setup SDD, configure claude project.
What this skill does
# project-setup
> Deploys the complete SDD architecture with engram persistence and ai-context/ memory layer in the current project.
**Triggers**: `/project-setup`, initialize project, setup sdd, configure claude project, new sdd project
---
## What this skill does
When the user runs `/project-setup`, I analyze the current project and generate:
1. `CLAUDE.md` at the project root with real detected context
2. `ai-context/` with the 5 memory files initialized
3. Engram project context for the SDD cycle
4. Registry of relevant skills based on the detected stack
---
## Process
### Step 1 — Project detection
I read and analyze:
- `package.json` / `pyproject.toml` / `go.mod` / `Cargo.toml` / `pom.xml`
- Folder structure (src/, app/, lib/, tests/, etc.)
- Configuration files (tsconfig, eslint, prettier, etc.)
- README.md if it exists
- Existing docs folders
- `.git/` to confirm it is a repository
**I infer:**
- Main language and version
- Framework(s) in use
- Database / ORM
- Testing tools
- Build / bundler tools
- Detected naming conventions (camelCase, snake_case, etc.)
- Folder structure (feature-based, layer-based, monorepo, etc.)
### Step 2 — Generate project CLAUDE.md
I create `CLAUDE.md` at the root with these sections:
```markdown
# [Project Name]
## Stack
[Detected stack with versions]
## Architecture
[Explained folder structure]
[Detected architectural pattern]
## Conventions
[Detected naming conventions]
[Observed code patterns]
## Important Commands
[Scripts from package.json / Makefile / etc.]
## Project Memory
At the start of each session, read the relevant files in ai-context/:
- ai-context/stack.md — Detailed technical stack
- ai-context/architecture.md — Architecture decisions
- ai-context/conventions.md — Team conventions
- ai-context/known-issues.md — Known bugs and gotchas
- ai-context/changelog-ai.md — AI change history
After completing significant work: update the relevant files or
run /memory-update so the AI updates them.
## Active Skills
[List of relevant skills for this project]
## SDD — Spec-Driven Development
This project uses SDD.
Entry points: `/sdd-explore <topic>` (investigate first) or `/sdd-propose <change-name>` (start from proposal).
Multi-phase flows are handled by the orchestrator as meta-commands — type them directly in conversation.
Phase skills: `/sdd-explore`, `/sdd-propose`, `/sdd-spec`, `/sdd-design`, `/sdd-tasks`, `/sdd-apply`, `/sdd-verify`, `/sdd-archive`.
```
### Step 3 — Initialize ai-context/
I create the 5 files with real content based on what was detected:
#### `ai-context/stack.md`
```markdown
# Technical Stack
Last updated: [date]
## Language
- [Language]: [version]
## Main Framework
- [Framework]: [version]
- [Relevant configuration details]
## Database / ORM
- [If applicable]
## Testing
- [Testing framework]
- [Commands to run tests]
## Build / Bundler
- [Tool]: [version]
- [Build command]
- [Dev command]
## Key Dependencies
| Package | Version | Purpose |
| ------- | --------- | -------------- |
| [name] | [version] | [what it does] |
```
#### `ai-context/architecture.md`
```markdown
# Project Architecture
Last updated: [date]
## Architectural Pattern
[Detected: feature-based / layer-based / clean architecture / etc.]
## Folder Structure
[Explained tree with the purpose of each folder]
## Architecture Decisions
| Decision | Choice | Alternatives | Reason |
| -------- | ------ | ------------ | ------ |
[Inferred from existing code]
## Data Flow
[Description of the main flow]
## Entry Points
[Main entry points of the system]
```
#### `ai-context/conventions.md`
```markdown
# Project Conventions
Last updated: [date]
## Naming
- Files: [detected]
- Variables/Functions: [detected]
- Classes/Types: [detected]
- Constants: [detected]
## File Structure
[How files of each type are organized]
## Code Patterns
[Patterns detected in existing code]
## Git
[Commit conventions if detected]
[Branch strategy if detected]
## Testing
[Where tests live]
[Test naming conventions]
```
#### `ai-context/known-issues.md`
```markdown
# Known Issues
Last updated: [date]
## Active Bugs
[Empty at start — filled during development]
## Gotchas and Limitations
[Anything unusual detected in existing code]
## Identified Technical Debt
[Problematic patterns detected]
## Workarounds in Use
[If there are workarounds in the code, document them here]
```
#### `ai-context/changelog-ai.md`
```markdown
# AI Changelog
This file records significant changes made by Claude.
## Entry Format
### [YYYY-MM-DD] — [Change name]
**What was done**: [description]
**Modified files**: [list]
**Decisions made**: [relevant decisions]
**Notes**: [anything important]
---
[Entries are added here chronologically]
```
### Step 4 — Persist project context to engram
**Check if Engram MCP is reachable** (call `mem_context`):
- If reachable: save project context to engram via `mem_save` with `topic_key: sdd-init/{project-name}`. Log `INFO: Engram detected — project context persisted to engram`.
- If not reachable: log `WARNING: Engram not available — project context not persisted. SDD artifacts will be ephemeral.`
### Step 5 — Final report
I present to the user:
```
✅ Project configured: [name]
Detected stack:
- [language + version]
- [framework + version]
- [testing framework]
Files created:
- CLAUDE.md
- ai-context/stack.md
- ai-context/architecture.md
- ai-context/conventions.md
- ai-context/known-issues.md
- ai-context/changelog-ai.md
Next steps:
1. Review and adjust CLAUDE.md with details I could not detect
2. To start a change: /sdd-explore <topic> or /sdd-propose <change-name>
3. To create project-specific skills: /skill-create <name>
```
---
## Rules
- NEVER overwrite existing files without warning and asking for confirmation
- If `CLAUDE.md` already exists, I offer an intelligent merge or creating a backup
- If `ai-context/` already exists, I offer to update only what is missing
- I always read real code — I never invent the stack
- If I cannot determine something with certainty, I mark it as `[To confirm]`
- NEVER create a `.claude/commands/` directory — commands/ is a legacy mechanism; `.claude/skills/` is the only supported extensibility path for new projects.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.