.claude/skills/audit-js/SKILL.md
Enforce JavaScript and TypeScript conventions
npx skillsauth add kevwhuang/dev .claude/skills/audit-jsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Audit .js, .ts, .tsx files and frontmatter and <script> blocks in .astro files.
Skip paths in .gitignore.
Sort all identifiers lexicographically, case-sensitive, uppercase before lowercase. This applies to variable declarations, object properties, interface properties, type properties, destructured bindings, and nested properties at all levels.
Reorder top-level declarations in this sequence:
export and export default at the very endOrder test cases by rendering order, not alphabetically.
console.log or debugger.then() chains. Use async/await.const over let when never reassignedfunction declarations over arrows unless inline callbacks or this-bindingfor and while loops always use braces and multiple lines<script> content inside the tag in .astro files.catch blocks must log or re-throw.=== and !==At most one <script> block per .astro file.
bun run lint after all changes are applieddevelopment
Bump version, update packages, lint, test, build, and commit
development
Enforce web project standards for structure, visuals, performance, security, and more
development
Enforce HTML and Astro markup conventions
development
Enforce CSS and Tailwind conventions