JavaScript Best Practices
Idiomatic JavaScript patterns and conventions for maintainable code.
Skill by fierzone
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/fierzone-javascript-best-practices
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/javascript-best-practices
What's inside
- Skill name
JavaScript Best Practices- Description
- Idiomatic JavaScript patterns and conventions for maintainable code.
- License
- Apache-2.0
- Instructions
- 56 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- name: only lowercase letters, digits and single hyphens allowed
- name: "JavaScript Best Practices" does not match folder "best-practices"
Files (2)
- SKILL.md
- REFERENCE.md · references/
SKILL.md (first lines)
# JavaScript Best Practices
## **Priority: P1 (OPERATIONAL)**
Conventions and patterns for writing maintainable JavaScript.
## Implementation Guidelines
- **Naming**: `camelCase` (vars/funcs), `PascalCase` (classes), `UPPER_SNAKE` (constants).
- **Errors**: Throw `Error` objects only. Handle all async errors.
- **Comments**: JSDoc for APIs. Explain "why" not "what".
- **Files**: One entity per file. `index.js` for exports.
- **Modules**: Named exports only. Order: Ext -> Int -> Rel.
## Anti-Patterns
- **No Globals**: Encapsulate state.
- **No Magic Numbers**: Use `const`.
- **No Nesting**: Guard clauses/early returns.
- **No Defaults**: Use named exports.
- **No Side Effects**: Keep functions pure.
## Code
```javascript
// Constants
const STATUS = { OK: 200, ERROR: 500 };
// Errors
class APIError extends Error {
constructor(msg, code) {
super(msg);
this.code = code;
}
}
// Async + JDoc
/** @throws {APIError} */
export async function getData(id) {
if (!id) throw new APIError('Missing ID', 400);
const res = await fetch(`/api/${id}`);
if (!res.ok) throw new APIError('Failed', res.status);
return res.json();
}
```
## Reference & Examples
For module patterns and project structure:
See [references/REFERENCE.md](references/REFERENCE.md).
## Related Topics
language | toolingFrom fierzone/agent-skills-standard, Apache-2.0.
More from fierzone/agent-skills-standard
- 0.448score
tdd
fierzone
Enforces Test-Driven Development (Red-Green-Refactor) for rigorous code quality.
SkillDFreshness: D★ 3Claude Code +9 - 0.443score
Mobile Animation
fierzone
Motion design principles for mobile apps.
SkillDFreshness: D★ 3Claude Code +9 - 0.440score
Debugging Expert
fierzone
Systematic troubleshooting using the Scientific Method (Observe, Hypothesize, Experiment, Fix).
SkillDFreshness: D★ 3Claude Code +9 - 0.440score
AI Feedback Reporter
fierzone
CRITICAL - Before ANY file write, audit loaded skills for violations.
SkillDFreshness: D★ 3Claude Code +9 - 0.440score
Git & Collaboration Standards
fierzone
Universal standards for version control, branching, and team collaboration.
SkillDFreshness: D★ 3Claude Code +9 - 0.440score
TypeScript Language Patterns
fierzone
Modern TypeScript standards for type safety, performance, and maintainability.
SkillDFreshness: D★ 3Claude Code +9 - 0.440score
Code Review Expert
fierzone
Standards for performing high-quality, readable code reviews.
SkillDFreshness: D★ 3Claude Code +9 - 0.440score
Quality Assurance Standards
fierzone
Standards for maintaining code hygiene, automated checks, and testing integrity.
SkillDFreshness: D★ 3Claude Code +9 - 0.440score
Security Standards
fierzone
Universal security protocols for building safe and resilient software.
SkillDFreshness: D★ 3Claude Code +9 - 0.440score
JavaScript Language Patterns
fierzone
Modern JavaScript (ES2022+) patterns for clean, maintainable code.
SkillDFreshness: D★ 3Claude Code +9 - 0.440score
JavaScript Tooling
fierzone
Development tools, linting, and testing for JavaScript projects.
SkillDFreshness: D★ 3Claude Code +9 - 0.440score
Skill Creator
fierzone
Standards for creating new High-Density Agent Skills with optimal token economy.
SkillDFreshness: D★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Feb 4, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from fierzone
- 0.448score
tdd
fierzone
Enforces Test-Driven Development (Red-Green-Refactor) for rigorous code quality.
SkillDFreshness: D★ 3Claude Code +9 - 0.443score
Mobile Animation
fierzone
Motion design principles for mobile apps.
SkillDFreshness: D★ 3Claude Code +9 - 0.440score
Debugging Expert
fierzone
Systematic troubleshooting using the Scientific Method (Observe, Hypothesize, Experiment, Fix).
SkillDFreshness: D★ 3Claude Code +9 - 0.440score
AI Feedback Reporter
fierzone
CRITICAL - Before ANY file write, audit loaded skills for violations.
SkillDFreshness: D★ 3Claude Code +9 - 0.440score
Git & Collaboration Standards
fierzone
Universal standards for version control, branching, and team collaboration.
SkillDFreshness: D★ 3Claude Code +9 - 0.440score
Code Review Expert
fierzone
Standards for performing high-quality, readable code reviews.
SkillDFreshness: D★ 3Claude Code +9
Cite this page
JavaScript Best Practices skill. Agent Mart. https://agentmart.dev/skills/fierzone-javascript-best-practices (last updated 2026-10-24)