rs-shared
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseThis skill contains shared resources for all RootSpec skills. Do not invoke directly.
本技能包含所有RootSpec技能的共享资源,请勿直接调用。
Skills
技能
| Skill | Purpose | Mode |
|---|---|---|
| Initialize project — directories, base files, prerequisites | Interactive |
| Create or update specification — interview + validation loop | Interactive (skippable) |
| Implement from spec — test-driven, autonomous | Non-interactive |
| Run tests and report results | Non-interactive |
| Upgrade project to latest framework version | Interactive |
| 技能 | 用途 | 模式 |
|---|---|---|
| 初始化项目:创建目录、基础文件、准备前置依赖 | 交互模式 |
| 创建或更新规范:包含需求访谈+验证循环 | 交互模式(支持跳过) |
| 基于规范实现:测试驱动、自主执行 | 非交互模式 |
| 运行测试并上报结果 | 非交互模式 |
| 将项目升级到最新框架版本 | 交互模式 |
Scripts
脚本
Project scanning
项目扫描
- — Find spec directory, list found/missing files, detect version
scripts/scan-spec.sh - — Detect framework, source dirs, config files
scripts/scan-project.sh
- — 查找规范目录、列出已存在/缺失的文件、检测版本
scripts/scan-spec.sh - — 检测框架、源码目录、配置文件
scripts/scan-project.sh
Spec validation
规范验证
- — Find downward references across spec levels
scripts/check-hierarchy.sh - — Find hardcoded numbers in L1-L4
scripts/check-numerics.sh - — Find duplicate story IDs in L5
scripts/check-duplicate-ids.sh - — Check L1 pillar count and format
scripts/check-pillar-quality.sh - — Check L2 for explicit trade-off statements
scripts/check-tradeoffs.sh - — Cross-reference L4 systems with L5 stories
scripts/check-coverage.sh - — Compute deterministic hash of all spec files
scripts/compute-spec-hash.sh
- — 查找跨规范层级的向下引用
scripts/check-hierarchy.sh - — 查找L1-L4层级中的硬编码数字
scripts/check-numerics.sh - — 查找L5层级中重复的用户故事ID
scripts/check-duplicate-ids.sh - — 检查L1层级的核心支柱数量与格式
scripts/check-pillar-quality.sh - — 检查L2层级是否有明确的权衡说明
scripts/check-tradeoffs.sh - — 交叉校验L4层级系统与L5层级用户故事的对应关系
scripts/check-coverage.sh - — 计算所有规范文件的确定性哈希值
scripts/compute-spec-hash.sh
Initialization and upgrade
初始化与升级
- — Detect dev server, hooks, release/test scripts
scripts/detect-prerequisites.sh - — Check all expected init files exist
scripts/verify-init.sh - — Compare project version against bundled framework version
scripts/gap-analysis.sh
- — 检测开发服务、钩子、发布/测试脚本
scripts/detect-prerequisites.sh - — 检查所有预期的初始化文件是否存在
scripts/verify-init.sh - — 对比项目版本与内置框架版本的差异
scripts/gap-analysis.sh
Stories and testing
故事与测试
- — Filter L5 stories by ID, system, priority, or status
scripts/filter-stories.sh - — Parse Cypress JSON output to story/criterion results
scripts/parse-cypress-results.sh - — Merge test results into tests-status.json
scripts/build-tests-status.sh - — Diff two test runs, report regressions/fixes
scripts/compare-test-runs.sh
- — 按ID、所属系统、优先级或状态过滤L5层级用户故事
scripts/filter-stories.sh - — 解析Cypress JSON输出,生成用户故事/验收标准的测试结果
scripts/parse-cypress-results.sh - — 合并测试结果到tests-status.json文件
scripts/build-tests-status.sh - — 对比两次测试运行结果,上报回归/修复情况
scripts/compare-test-runs.sh
Bundled Files
内置文件
- — Foundational beliefs (copied to user projects by rs-init)
00.AXIOMS.md - — Framework definition (copied to user projects by rs-init)
00.FRAMEWORK.md
- — 基础理念(由rs-init复制到用户项目中)
00.AXIOMS.md - — 框架定义(由rs-init复制到用户项目中)
00.FRAMEWORK.md
Fragments
代码片段
- — Reference hierarchy and placeholder rules
fragments/framework-rules.md - — Interview methodology
fragments/interview-protocol.md - — Common anti-patterns by level
fragments/anti-patterns.md - — Prerequisite detection and creation
fragments/prerequisites.md - — YAML syntax for user stories and fine-tuning
fragments/l5-yaml-format.md - — Test DSL step reference and extensions
fragments/l5-test-dsl.md
- — 参考层级与占位符规则
fragments/framework-rules.md - — 需求访谈方法论
fragments/interview-protocol.md - — 各层级常见反模式
fragments/anti-patterns.md - — 前置依赖检测与创建说明
fragments/prerequisites.md - — 用户故事与微调使用的YAML语法
fragments/l5-yaml-format.md - — 测试DSL步骤参考与扩展说明
fragments/l5-test-dsl.md