金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

tooling

tooling 是面向测试与安全、效率工具、软件开发的 Agent Skill,来自 HoangNguyen0403/agent-skills-standard。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

Development tools, linting, and testing for JavaScript projects.

SKILL.md

下载 MD ↓
nameJavaScript Tooling
descriptionDevelopment tools, linting, and testing for JavaScript projects.
metadata{"labels": ["tooling", "javascript", "eslint", "prettier", "testing"], "triggers": {"files": [".eslintrc.*", "jest.config.*", "package.json"], "keywords": ["eslint", "prettier", "jest", "test", "lint", "build"]}}

JavaScript Tooling

Priority: P1 (OPERATIONAL)

Essential tooling for JavaScript development.

Implementation Guidelines

  • Linting: ESLint (Rec + Prettier). Fix on save.
  • Formatting: Prettier. Run on save/commit.
  • Testing: Jest/Vitest. Co-locate tests. >80% cov.
  • Build: Vite (Apps), Rollup (Libs).
  • Pkg Manager: Sync versions (npm/yarn/pnpm).

Anti-Patterns

  • No Formatting Wars: Prettier rules.
  • No Untested Code: TDD/Post-code tests.
  • No Dirty Commits: Lint before push.

Configuration

// .eslintrc.js
module.exports = {
  extends: ['eslint:recommended', 'prettier'],
  rules: { 'no-console': 'warn', 'prefer-const': 'error' },
};
// .prettierrc
{ "semi": true, "singleQuote": true, "printWidth": 80 }
// jest.config.js
export default {
  coverageThreshold: { global: { lines: 80 } },
};

Reference & Examples

For testing patterns and CI/CD: See references/REFERENCE.md.

Related Topics

best-practices | language

来源:HoangNguyen0403/agent-skills-standard · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本