‹ 首页

lang-js

@dragoscirjan · 收录于 1 周前 · 上游提交 1 个月前

JavaScript development standards, Google JS Style, and tooling.

适合你,如果需要在 JavaScript 项目中统一代码风格并提升质量。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add dragoscirjan/opencode-config/lang-js
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- dragoscirjan/opencode-config/lang-js
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify dragoscirjan/opencode-config/lang-js
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
0GitHub stars
~137上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 f561928 · 表述以原文为准
它做什么

Claude 会按照 Google JS 风格指南编写 JavaScript 代码,使用 ESM 模块、const/let、箭头函数等现代语法,并推荐 Prettier、ESLint、Vitest/Jest 等工具。

什么时候触发

当你要求编写或审查 JavaScript 代码时,Claude 会自动应用这些标准。

装好后可以这样说
Claude 会生成符合规范的代码。
Claude 会指出不符合规范的地方。
技能原文 SKILL.md作者撰写 · MIT · f561928

JS Standards

  • Style: Google JS Style Guide.
  • Tooling: Prettier, ESLint, Vitest/Jest.
  • Modern JS: ESM only (import/export). Node 22+.
  • Idioms: const by default, let if mutating. Never use var. Prefer arrow functions, destructuring, and spread operators.
  • Async: Use async/await over raw Promises.
  • Docs: JSDoc for public APIs and complex logic.

Always load clean-code alongside this skill.

按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。