← Browse

@maxyeh0817/code-style

B

程式碼風格規範。定義命名慣例、格式化規則、import 排序等。 所有開發類 agent 應注入此 skill。

skillclaude

Install

agr install @maxyeh0817/code-style --target claude

Writes 1 file into .claude/skills/, pinned to git-74e47afc.

  • .claude/skills/code-style/SKILL.md

Document


name: code-style description: > 程式碼風格規範。定義命名慣例、格式化規則、import 排序等。 所有開發類 agent 應注入此 skill。

Code Style 規範

命名慣例

  • 變數/函數:camelCase
  • 元件/類型:PascalCase
  • 常數:UPPER_SNAKE_CASE
  • 檔案名:kebab-case(元件檔除外,用 PascalCase)

格式化

  • 縮排:2 spaces
  • 引號:single quotes
  • 分號:不使用
  • 行寬上限:100 字元

Import 排序

  1. 外部套件
  2. 內部模組(@/ 路徑)
  3. 相對路徑

已知注意事項

(由 QA 迭代時追加)

詳細模式參考:references/patterns.md 歷史教訓:references/lessons.md

Trustgrade B

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • warnLicenseno SPDX license detected

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-74e47afcd58c2026-07-31