一键导入
format-js
Format JavaScript/TypeScript code with Prettier
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Format JavaScript/TypeScript code with Prettier
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
AI Agent code quality check - Use Ruff to check code standards for LangChain, AutoGen, and other AI Agent projects
Dockerfile best practices check - Use hadolint to validate Dockerfile security, performance, and compliance
Structure, validate, and locally manage evolution assets (Gene, Capsule, EvolutionEvent). Use when the user wants to record a solution, document a bug fix, create a Gene or Capsule, capture an evolution process, or compute an asset_id locally. No network connection required. Trigger keywords: Gene, Capsule, EvolutionEvent, evolution asset, asset_id, record solution, save fix, document repair.
Format Python code with Black
Kubernetes YAML validation - Use kube-linter and kubeconform to check K8s config security and best practices
Check JavaScript/TypeScript code quality with ESLint
| name | format-js |
| description | Format JavaScript/TypeScript code with Prettier |
Use Prettier to automatically format JavaScript and TypeScript code:
| Tool | Min Version | Check Command | Installation |
|---|---|---|---|
| Node.js | 16+ | node --version | nodejs.org |
| Prettier | 2.8+ | prettier --version | npm install -g prettier |
"Use format-js to format my JavaScript code"
# Windows
.\.agents\skills\format-js\scripts\format.ps1
# Linux/Mac
./.agents/skills/format-js/scripts/format.sh
# Check without modifying
.\.agents\skills\format-js\scripts\format.ps1 -Check
# Format specific file types
.\.agents\skills\format-js\scripts\format.ps1 -Extensions "js,ts,jsx,tsx"
Safety Gate: By default, this skill skips protected folders (
.agents/,bmad/) andREADME.md.
// .prettierrc
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 80,
"arrowParens": "avoid"
}