best-practices
Language-specific best practices, code quality standards, and framework detection rules. Use when executing refactoring workflows, applying code quality rules, detecting frameworks, or checking language-specific patterns for TypeScript, Python, Go, Swift, or React.
How do I install this agent skill?
npx skills add https://github.com/fradser/dotclaude --skill best-practicesIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides a comprehensive library of coding standards, best practices, and performance optimization patterns for multiple languages (TypeScript/React, Python, Go, and Swift). It is designed to be used by an AI agent as a reference for code quality and refactoring tasks. No security issues were detected.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
111 files scanned · No issues
What does this agent skill do?
Best Practices
Language References
Each file extension maps to a specific reference:
.ts,.js—references/typescript.md.tsx,.jsx—references/typescript.md+references/react/react.md.py—references/python.md+references/python/INDEX.md.go—references/go.md.swift—references/swift.md
Universal principles are in references/universal.md.
Next.js/React References
For Next.js projects, the references/react/ directory provides:
references/react/rules/INDEX.md— pattern index by impact levelreferences/react/rules/_sections.md— priorities and categories- Specific rule files matching observed patterns
Rule Application
- Framework-specific rules (e.g., Next.js) apply only when that framework is detected
- CRITICAL rules have highest priority: waterfalls, bundle size, hydration
- All refactoring MUST preserve behavior and public interfaces
Code Quality Standards
- Comments: Only for complex business logic; code-restating comments are unnecessary
- Error Handling: Try-catch only where recoverable; no defensive checks in trusted paths
- Type Safety: No
any; proper types orunknownwith guards are required - Style: Existing code style and CLAUDE.md conventions take precedence
- Cleanup: Unused imports, variables, functions, and types are removed
- No compat hacks: Unused
_varsand re-exports of deleted code are deleted - Renaming: Descriptive names are preferred over marking as unused
- Dead code: Dead code is deleted, never commented out
- File Organization: Single Responsibility applies at file level; files with multiple concerns are candidates for splitting (see
references/universal.md)
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/fradser/dotclaude/best-practices">View best-practices on skillZs</a>