standards

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Standards 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

支持的标准

LanguageReferenceLoaded By
Python
references/python.md
vibe, implement, complexity
Go
references/go.md
vibe, implement, complexity
Rust
references/rust.md
vibe, implement, complexity
TypeScript
references/typescript.md
vibe, implement
Shell
references/shell.md
vibe, implement
YAML
references/yaml.md
vibe
JSON
references/json.md
vibe
Markdown
references/markdown.md
vibe, doc
语言参考文件加载方
Python
references/python.md
vibe, implement, complexity
Go
references/go.md
vibe, implement, complexity
Rust
references/rust.md
vibe, implement, complexity
TypeScript
references/typescript.md
vibe, implement
Shell
references/shell.md
vibe, implement
YAML
references/yaml.md
vibe
JSON
references/json.md
vibe
Markdown
references/markdown.md
vibe, doc

How It Works

工作原理

Skills declare
standards
as a dependency:
yaml
skills:
  - standards
Then load the appropriate reference based on file type:
python
undefined
技能需声明
standards
作为依赖:
yaml
skills:
  - standards
然后根据文件类型加载对应的参考文件:
python
undefined

Pseudo-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.

其他语言以此类推

undefined
undefined

Deep Standards

深度标准

For comprehensive audits, skills can load extended standards from
vibe/references/*-standards.md
which contain full compliance catalogs.
StandardSizeUse Case
Tier 1 (this skill)~5KB eachNormal validation
Tier 2 (vibe/references)~15-20KB eachDeep audits,
--deep
flag
如需全面审计,技能可从
vibe/references/*-standards.md
加载扩展标准,其中包含完整的合规目录。
标准层级大小使用场景
第一层(本Skill)每个约5KB常规验证
第二层(vibe/references)每个约15-20KB深度审计、
--deep
参数

Integration

集成情况

Skills that use standards:
  • /vibe
    - Loads based on changed file types
  • /implement
    - Loads for files being modified
  • /doc
    - Loads markdown standards
  • /bug-hunt
    - Loads for root cause analysis
  • /complexity
    - Loads for refactoring recommendations
使用本标准的技能:
  • /vibe
    - 根据变更的文件类型加载
  • /implement
    - 针对正在修改的文件加载
  • /doc
    - 加载Markdown标准
  • /bug-hunt
    - 用于根本原因分析
  • /complexity
    - 用于重构建议