一键导入
version
Lock bundles with semantic versioning. Guides through version selection, updates files, and integrates with git.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Lock bundles with semantic versioning. Guides through version selection, updates files, and integrates with git.
用 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.
Initialize structured context for this project. Scaffolds .scs/ with all 11 concern bundles, scans the project, and recommends where to start.
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.
| name | version |
| description | Lock bundles with semantic versioning. Guides through version selection, updates files, and integrates with git. |
| allowed-tools | Read, Glob, Grep, Write, Bash(git status), Bash(git add *), Bash(git commit *), Bash(git tag *) |
/scs-team:version. Never auto-invoke based on project state or conversation context.You are helping the user version their structured context, locking it for use.
Version bottom-up: Concern bundles first, then domain/project bundles.
Semantic versioning:
Immutable once versioned: A versioned bundle should not change. Create a new version instead.
Before versioning:
/scs-team:validate)If there are blocking issues, stop and report them.
Ask the user:
1.0.0Order of operations:
For each bundle being versioned:
# Before
version: "DRAFT"
# After
version: "1.0.0"
For SCDs in versioned bundles:
# Before
version: "DRAFT"
# After
version: "1.0.0"
Update provenance:
provenance:
versioned_by: "<User>"
versioned_at: "<ISO timestamp>"
version_rationale: "<Why this version>"
After versioning, recompile .scs/ source to .claude/rules/ output to reflect the new version:
.scs/scds/ and all concern bundles in .scs/concerns/.claude/rules/<concern-name>.md
d. Add header: <!-- scs-team:managed --> and footer with source SCD attribution including version<!-- scs-team:start --> / <!-- scs-team:end --> markers
b. If markers exist, replace content between them
c. If no markers, append the section at the end
d. If no CLAUDE.md, create one with the markers
e. Content: project overview, architecture summary, quick reference table, links to rules files
f. Include the version number in the section header<!-- scs-team:managed --> header - leave other .claude/rules/ files untouchedOffer to:
Commit message format:
chore(scs): version context to X.Y.Z
- Versioned bundles: <list>
- Versioned SCDs: <count>
- Changes: <brief summary>
Tag format: scs-v1.0.0
Tell the user:
.claude/rules/ files were recompiled## SCS Versioning
### Pre-Version Check
- Validation: Passed
- DRAFT bundles: 3
- DRAFT SCDs: 8
- Blocking issues: None
### Version Selection
This appears to be the first version. Recommend: `1.0.0`
Or choose:
- `1.0.0` - First stable release
- `0.1.0` - Pre-release / still experimental
What version would you like?
[User responds: "1.0.0"]
### Versioning Plan
**Order of operations:**
1. Version `bundle:architecture` → 1.0.0 (2 SCDs)
2. Version `bundle:security` → 1.0.0 (3 SCDs)
3. Version `bundle:compliance` → 1.0.0 (2 SCDs)
4. Update `bundle:my-project` imports
5. Version `bundle:my-project` → 1.0.0
Proceed? (This will modify files)
[User confirms]
### Versioning Complete
**Updated files:**
- `.scs/concerns/architecture.yaml` → 1.0.0
- `.scs/concerns/security.yaml` → 1.0.0
- `.scs/concerns/compliance.yaml` → 1.0.0
- `.scs/project.yaml` → 1.0.0
- 8 SCDs updated to 1.0.0
**Recompiled:**
- `.claude/rules/architecture.md`
- `.claude/rules/security.md`
- `.claude/rules/compliance.md`
- Updated CLAUDE.md scs-team section (v1.0.0)
**Git actions:**
- Staged all changes
- Created commit: "chore(scs): version context to 1.0.0"
- Created tag: scs-v1.0.0
**Next steps:**
- Push to remote: `git push && git push --tags`
- Your context is now locked at version 1.0.0
- Future changes should create version 1.1.0 or 2.0.0
Validation failures: Don't version. Report issues and suggest /scs-team:validate.
Unresolved TBDs: Warn the user but allow them to proceed if they acknowledge.
Git not available: Skip git integration, just update files.
Partial versioning: If user only wants to version some bundles, respect that but warn about dependency issues.