一键导入
code-quality
Use this skill when analyzing or refactoring code for readability, simplicity, and maintainability.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use this skill when analyzing or refactoring code for readability, simplicity, and maintainability.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | code-quality |
| title | Code Quality Refactor |
| description | Use this skill when analyzing or refactoring code for readability, simplicity, and maintainability. |
| category | engineering |
| applies_to | ["TypeScript","JavaScript","CSS","Astro","refactoring"] |
| triggers | ["refactor","simplify","cleanup","readability","maintainability","dead code"] |
| priority | medium |
| version | 1 |
Use this skill when analyzing or refactoring existing code for simplicity, readability, maintainability, and helpful documentation.
Improve code quality without changing user-facing behavior, visual appearance, routes, content, accessibility, or performance characteristics.
This skill is conservative. Prefer small, obvious improvements over broad rewrites.
Look for:
Comments should be succinct and useful.
Add comments when:
Do not add comments that merely repeat what the code says.
Avoid comments like:
// Set count to 0
const count = 0;
Prefer comments like:
// Keep this inline so the theme is applied before the page paints.
Do not change:
Stop and report instead of guessing when:
Run the most relevant available checks.
Prefer:
pnpm lint
pnpm build
If the project has a focused analysis script such as pnpm fallow, use it as an advisory signal, not as an automatic rewrite instruction.
If pnpm fallow reports issues:
After changes, report:
Use this skill when adding, changing, or reviewing UI for keyboard, screen reader, semantic, motion, and contrast accessibility.
Use this skill for every implementation task to keep changes small, safe, and scoped.
Use this skill when editing Astro pages, layouts, components, and static output.
Use this skill when editing styles, spacing, typography, layout, or component appearance.
Use this skill when implementing or modifying static site search with Pagefind.
Use this skill when adding dependencies, scripts, images, embeds, search, analytics, or interactive UI.