
This loads OpenSpec project context in Chinese, helping Claude discover what specs exist, which changes are in progress, and what capabilities are defined. You'd use it when someone asks "what specs do we have?" or "what's currently being worked on?" instead of manually hunting through directories. The guide includes pre-built commands for listing specs, searching requirements by keyword, and generating dashboard views of the whole project. It's essentially a discovery layer over an OpenSpec directory structure, with all the grep and find patterns you'd eventually write yourself anyway. The token budget note at the end (460 lines) suggests this was built with context window management in mind.
$ npx -y skills add forztf/open-skilled-sdd --skill openspec-context-loading-cn --agent claude-codeInstalls into .claude/skills of the current project.
发现并加载项目规范、进行中的变更和需求,以提供上下文。
上下文加载可帮助回答:
基本模式:搜索 → 阅读 → 总结
注意将控制台与管道输出编码统一为 UTF-8,确保中文字符正确显示。
# 查找所有规范文件
find spec/specs -name "spec.md" -type f
# 查找所有能力目录
find spec/specs -mindepth 1 -maxdepth 1 -type d
# 显示规范树
tree spec/specs/ # 若已安装 tree
# 或
ls -R spec/specs/
输出格式:
spec/specs/
├── authentication/
│ └── spec.md
├── billing/
│ └── spec.md
└── notifications/
└── spec.md
# 显示所有进行中的变更
find spec/changes -maxdepth 1 -type d -not -path "spec/changes" -not -path "*/archive" | sort
# 显示修改时间
find spec/changes -maxdepth 1 -type d -not -path "spec/changes" -not -path "*/archive" -exec ls -ld {} \;
# 统计进行中的变更数量
find spec/changes -maxdepth 1 -type d -not -path "spec/changes" -not -path "*/archive" | wc -l
# 显示所有已归档变更
ls -1 spec/archive/
# 显示日期
ls -la spec/archive/
# 查找最近 7 天归档的变更
find spec/archive/ -maxdepth 1 -type d -mtime -7
# 查找所有需求
grep -r "### Requirement:" spec/specs/
# 在特定能力中查找需求
grep "### Requirement:" spec/specs/authentication/spec.md
Sponsors