一键导入
init
Initialize structured context for this project. Scaffolds .scs/ with all 11 concern bundles, scans the project, and recommends where to start.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Initialize structured context for this project. Scaffolds .scs/ with all 11 concern bundles, scans the project, and recommends where to start.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Process a document (PRD, architecture doc, security requirements, etc.) into structured context. Extracts relevant information and generates appropriate SCDs.
Conversational drafting for a specific concern area when documentation doesn't exist. Ask targeted questions and generate draft SCDs.
Show what structured context exists and what's missing. Overview of bundles, SCDs, coverage across all 11 concerns, and compilation sync status.
Add known compliance or regulatory standards (HIPAA, SOC2, PCI, CHAI, GDPR) to your project context. Copies pre-built standards SCDs from the plugin's standards library.
Check structure and surface issues for human review. Validates YAML, references, concern coverage, and compilation status.
Lock bundles with semantic versioning. Guides through version selection, updates files, and integrates with git.
| name | init |
| description | Initialize structured context for this project. Scaffolds .scs/ with all 11 concern bundles, scans the project, and recommends where to start. |
| argument-hint | [project-name] |
| allowed-tools | Read, Glob, Grep, Write, Bash(ls *), Bash(mkdir -p *), Bash(cat package.json), Bash(cat requirements.txt), Bash(cat go.mod), Bash(cat Cargo.toml), Bash(cat pyproject.toml) |
/scs-team:init. Never auto-invoke based on project state or conversation context..scs/ scaffold you plan to create and get explicit user confirmation before writing any files.You are scaffolding a new .scs/ directory for this project. This is the entry point for teams adopting structured context.
Scan the project to understand what exists:
Language/Framework Detection (check in order):
package.json → Node.js (check for Next.js, React, Express, etc.)requirements.txt or pyproject.toml or setup.py → Python (check for FastAPI, Django, Flask)go.mod → GoCargo.toml → Rustpom.xml or build.gradle → Java/KotlinGemfile → Ruby.csproj or .sln → .NETExisting Documentation (scan for):
docs/, doc/, documentation/ directoriesPRD.md, ARCHITECTURE.md, SECURITY.md, README.md*.md files that look like project documentationCLAUDE.md, .claude/rules/ (existing Claude context)Compliance Signals (look for keywords in docs and code):
Use the argument if provided. Otherwise:
package.json name fieldpyproject.toml project namego.mod module nameCreate the following structure:
.scs/
├── project.yaml # Project bundle manifest
├── concerns/
│ ├── architecture.yaml
│ ├── security.yaml
│ ├── performance.yaml
│ ├── usability.yaml
│ ├── compliance.yaml
│ ├── data.yaml
│ ├── testing.yaml
│ ├── deployment.yaml
│ ├── safety.yaml
│ ├── ethics.yaml
│ └── business.yaml
└── scds/ # Empty - populated by add/draft/use
Project Bundle (project.yaml):
id: bundle:<project-name>
type: project
version: "DRAFT"
title: "<Project Name>"
description: "<Brief description from README or detected context>"
imports:
- bundle:architecture
- bundle:security
- bundle:performance
- bundle:usability
- bundle:compliance
- bundle:data
- bundle:testing
- bundle:deployment
- bundle:safety
- bundle:ethics
- bundle:business
scds: []
provenance:
created_by: "scs-team init"
created_at: "<ISO timestamp>"
rationale: "Project bundle scaffolded by scs-team init"
Concern Bundles (each concern follows this pattern):
id: bundle:<concern-slug>
type: concern
version: "DRAFT"
title: "<Project Name> - <Concern Title>"
description: "<Brief description of what this concern covers>"
imports: []
scds: []
provenance:
created_by: "scs-team init"
created_at: "<ISO timestamp>"
rationale: "Scaffolded by scs-team init"
Use these exact concern definitions:
| # | Slug | Title | Description | Expected SCDs |
|---|---|---|---|---|
| 1 | architecture | Architecture | System structure, components, technology stack, and integration points | system-context, tech-stack, integration-map, component-model |
| 2 | security | Security | Authentication, authorization, data protection, and threat modeling | authn-authz, data-protection, data-handling, threat-model |
| 3 | performance | Performance & Reliability | Response times, availability targets, fault tolerance, and scaling strategy | response-time, availability, fault-tolerance, scalability |
| 4 | usability | Usability & Accessibility | UX principles, accessibility compliance, and error handling | ux-principles, accessibility-compliance, error-handling-ux |
| 5 | compliance | Compliance & Governance | Regulatory requirements, audit controls, and policy enforcement | hipaa-compliance, soc2-controls, audit-requirements, policy-enforcement |
| 6 | data | Data & Provenance | Data models, lineage tracking, and retention policies | data-model, provenance-tracking, retention-policy |
| 7 | testing | Testing & Validation | Test coverage, validation plans, and QA procedures | test-coverage, validation-plan, qa-procedures |
| 8 | deployment | Deployment & Operations | Infrastructure, observability, and incident response | infrastructure-definition, observability, incident-response |
| 9 | safety | Safety & Risk | Risk assessments and safety checklists | risk-assessment, safety-checklist |
| 10 | ethics | Ethics & AI Accountability | AI usage policies, audit trails, and bias detection | ai-usage-policy, audit-trail, model-bias |
| 11 | business | Business Context | Problem definition, stakeholders, objectives, opportunity analysis, constraints, and success criteria | problem-definition, stakeholders, business-objectives, opportunity-analysis, constraints-and-assumptions, success-criteria |
Present a summary:
## SCS Initialized
**Project**: <name>
**Language**: <detected language/framework>
**Location**: .scs/ (11 concern bundles scaffolded)
### What I Found
<table of detected docs, compliance signals, existing context>
### Recommended Next Steps
<prioritized list based on what was found>
Recommendation Logic:
Found existing documentation → Start with /scs-team:add:
/scs-team:add ./docs/PRD.md
/scs-team:add ./docs/architecture.md
No documentation found → Start with drafting:
/scs-team:draft business # Start with the "why"
/scs-team:draft architecture # Then the "how"
Compliance keywords detected → Add standards:
/scs-team:use hipaa # Healthcare detected
/scs-team:use soc2 # Security controls detected
Existing CLAUDE.md found → Note it will be enhanced (not replaced):
Existing CLAUDE.md found - scs-team will add a managed section
(your existing content will not be modified)
.scs/.scs/ already exists - warn the user and show what's therescds: [] arrays in concern bundles are intentionally empty - they get populated by add, draft, and use## SCS Already Initialized
Found existing .scs/ directory with:
- <N> concern bundles
- <N> SCDs
- Project bundle: <version status>
Run `/scs-team:status` to see the full picture.
To start fresh, delete .scs/ and run `/scs-team:init` again.
User: /scs-team:init
You: "Let me scan your project..."
[Scan project files, docs, dependencies]
You: "## SCS Initialized
Project: patient-portal Language: Python (FastAPI) Location: .scs/ (11 concern bundles scaffolded)
| Item | Details |
|---|---|
| Language | Python 3.11 (FastAPI, SQLAlchemy) |
| Docs | docs/PRD.md, docs/api-spec.md |
| Compliance | HIPAA keywords found in README |
| Existing Context | CLAUDE.md exists (will be enhanced, not replaced) |
Process your docs (you have existing documentation):
/scs-team:add docs/PRD.md
/scs-team:add docs/api-spec.md
Add HIPAA compliance (healthcare keywords detected):
/scs-team:use hipaa
Draft what's missing (no architecture doc found):
/scs-team:draft architecture
/scs-team:draft security
Check progress:
/scs-team:status
```"