standards
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseStandards Skill
编码标准Skill
Language-specific coding standards loaded on-demand by other skills.
特定语言的编码标准会根据需求被其他技能加载。
Purpose
用途
This is a library skill - it doesn't run standalone but provides standards
references that other skills load based on file types being processed.
这是一个库类Skill——它无法独立运行,但会提供标准参考,供其他技能根据正在处理的文件类型进行加载。
Standards Available
支持的标准
| Language | Reference | Loaded By |
|---|---|---|
| Python | | vibe, implement, complexity |
| Go | | vibe, implement, complexity |
| Rust | | vibe, implement, complexity |
| TypeScript | | vibe, implement |
| Shell | | vibe, implement |
| YAML | | vibe |
| JSON | | vibe |
| Markdown | | vibe, doc |
| 语言 | 参考文件 | 加载方 |
|---|---|---|
| Python | | vibe, implement, complexity |
| Go | | vibe, implement, complexity |
| Rust | | vibe, implement, complexity |
| TypeScript | | vibe, implement |
| Shell | | vibe, implement |
| YAML | | vibe |
| JSON | | vibe |
| Markdown | | vibe, doc |
How It Works
工作原理
Skills declare as a dependency:
standardsyaml
skills:
- standardsThen load the appropriate reference based on file type:
python
undefined技能需声明作为依赖:
standardsyaml
skills:
- standards然后根据文件类型加载对应的参考文件:
python
undefinedPseudo-code for standard loading
标准加载伪代码
if file.endswith('.py'):
load('standards/references/python.md')
elif file.endswith('.go'):
load('standards/references/go.md')
elif file.endswith('.rs'):
load('standards/references/rust.md')
if file.endswith('.py'):
load('standards/references/python.md')
elif file.endswith('.go'):
load('standards/references/go.md')
elif file.endswith('.rs'):
load('standards/references/rust.md')
etc.
其他语言以此类推
undefinedundefinedDeep Standards
深度标准
For comprehensive audits, skills can load extended standards from
which contain full compliance catalogs.
vibe/references/*-standards.md| Standard | Size | Use Case |
|---|---|---|
| Tier 1 (this skill) | ~5KB each | Normal validation |
| Tier 2 (vibe/references) | ~15-20KB each | Deep audits, |
如需全面审计,技能可从加载扩展标准,其中包含完整的合规目录。
vibe/references/*-standards.md| 标准层级 | 大小 | 使用场景 |
|---|---|---|
| 第一层(本Skill) | 每个约5KB | 常规验证 |
| 第二层(vibe/references) | 每个约15-20KB | 深度审计、 |
Integration
集成情况
Skills that use standards:
- - Loads based on changed file types
/vibe - - Loads for files being modified
/implement - - Loads markdown standards
/doc - - Loads for root cause analysis
/bug-hunt - - Loads for refactoring recommendations
/complexity
使用本标准的技能:
- - 根据变更的文件类型加载
/vibe - - 针对正在修改的文件加载
/implement - - 加载Markdown标准
/doc - - 用于根本原因分析
/bug-hunt - - 用于重构建议
/complexity