Quick Start
Quick Start
Section titled “Quick Start”Get started with Structured Context Specification in just a few steps.
Installation
Section titled “Installation”Option 1: Install from PyPI (Recommended)
Section titled “Option 1: Install from PyPI (Recommended)”pip install scs-toolsThis installs both the scs CLI and the validator.
Option 2: Install from Source
Section titled “Option 2: Install from Source”# Clone the repositorygit clone https://github.com/tim-mccrimmon/structured-context-spec.gitcd structured-context-spec/../scs-cli
# Install in development modepip install -e .Verify Installation
Section titled “Verify Installation”scs --versionscs --helpCreate Your First Project
Section titled “Create Your First Project”1. Scaffold a New Project
Section titled “1. Scaffold a New Project”# Create a standard projectscs new project my-first-scs-project
# Or choose a template for your use casescs new project healthcare-app --type healthcarescs new project fintech-app --type fintechscs new project saas-product --type saasThis creates a complete project structure with:
- 📦 10 domain bundles (Architecture, Security, Compliance, etc.)
- 📄 30+ SCDs covering common project needs
- ✅ Pre-configured validation and structure
2. Explore the Project
Section titled “2. Explore the Project”cd my-first-scs-projectls -la
# View the structuretree -L 2You’ll see:
my-first-scs-project/├── bundles/ # Bundle manifests│ ├── project-bundle.yaml # Your main bundle│ └── domains/ # Domain bundles├── context/ # Your SCDs│ └── project/ # Project-tier SCDs├── docs/ # Documentation└── README.md # Getting started guide3. Validate Your Project
Section titled “3. Validate Your Project”# Validate a bundlescs validate --bundle bundles/project-bundle.yaml
# Validate individual SCDsscs validate context/project/system-context.yamlAdd Context to Existing Project
Section titled “Add Context to Existing Project”Already have a project? Initialize SCS in it:
cd /path/to/your/projectscs init --type saas
# This adds SCS structure to your existing codebaseAdd SCDs Incrementally
Section titled “Add SCDs Incrementally”Don’t need everything? Add just what you need:
# Add a single SCDscs add scd system-context
# Add a domain bundlescs add bundle security
# Add multiple SCDs at oncescs add scd authn-authz data-protection threat-modelExample: Minimal Healthcare Project
Section titled “Example: Minimal Healthcare Project”Here’s a complete example for a healthcare application:
# 1. Create projectscs new project patient-portal --type healthcare
# 2. Navigate to projectcd patient-portal
# 3. Validate everythingscs validate --bundle bundles/project-bundle.yaml
# 4. Customize your SCDs# Edit context/project/system-context.yaml with your app detailsvim context/project/system-context.yaml
# 5. Add healthcare-specific contextscs add scd hipaa-compliancescs add scd phi-handling
# 6. Validate againscs validate --bundle bundles/project-bundle.yamlBasic Workflow
Section titled “Basic Workflow”The typical SCS workflow:
- Create - Scaffold project or add SCS to existing project
- Customize - Edit SCDs to match your system
- Validate - Ensure structure is correct
- Version - Tag and version your bundles
- Deploy - Use bundles with AI agents
Project Templates
Section titled “Project Templates”SCS provides templates for common use cases:
| Template | Best For | Includes |
|---|---|---|
standard | General projects | 38 SCDs, 10 domains |
minimal | Quick prototypes | 11 essential SCDs |
healthcare | HIPAA compliance | HIPAA, CHAI, TEFCA standards |
fintech | Financial services | PCI-DSS, SOX standards |
saas | SaaS products | GDPR, SOC2 standards |
government | Government apps | NIST, FedRAMP standards |
Next Steps
Section titled “Next Steps”Now that you have a project:
- FAQ - Frequently asked questions
- CLI Reference - Complete command documentation
- View Examples - See real-world examples
- Specification - Dive into technical details
Getting Help
Section titled “Getting Help”Common Commands Reference
Section titled “Common Commands Reference”# Create new projectscs new project my-app --type saas
# Initialize in existing projectscs init --type healthcare
# Add SCDs incrementallyscs add scd system-context authn-authz
# Validate everythingscs validate --bundle bundles/project-bundle.yaml
# Strict validationscs validate --bundle bundles/project-bundle.yaml --strict
# Get helpscs --helpscs new --helpReady to dive deeper? Check out the FAQ to understand how SCS works.