AgentSkillsCN

standards

针对不同编程语言制定专属的编码规范与校验规则。提供 Python、Go、TypeScript、Shell、YAML、JSON 以及 Markdown 等语言的标准规范。根据文件类型,由 /vibe、/implement、/doc、/bug-hunt、/complexity 自动加载适用规则。

SKILL.md
--- frontmatter
name: standards
description: 'Language-specific coding standards and validation rules. Provides Python, Go, TypeScript, Shell, YAML, JSON, and Markdown standards. Auto-loaded by /vibe, /implement, /doc, /bug-hunt, /complexity based on file types.'

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

Standards Available

LanguageReferenceLoaded By
Pythonreferences/python.mdvibe, implement, complexity
Goreferences/go.mdvibe, implement, complexity
TypeScriptreferences/typescript.mdvibe, implement
Shellreferences/shell.mdvibe, implement
YAMLreferences/yaml.mdvibe
JSONreferences/json.mdvibe
Markdownreferences/markdown.mdvibe, doc

How It Works

Skills declare standards as a dependency:

yaml
skills:
  - standards

Then load the appropriate reference based on file type:

python
# Pseudo-code for standard loading
if file.endswith('.py'):
    load('standards/references/python.md')
elif file.endswith('.go'):
    load('standards/references/go.md')
# etc.

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

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