Best Practices
Modern web best-practices guide covering security headers, browser compatibility, deprecated APIs, and error handling.
- CCM score
- 59 of 100
- skills.sh installs
- 305
- GitHub stars
- 7.2K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers security, browser compatibility, deprecated API avoidance, console and error handling, and production source map configuration
- Includes HTTPS enforcement, CSP and nonce patterns, security headers, npm audit workflows, and XSS-safe input handling with code examples
- Flags unsafe patterns such as
innerHTMLwith user input, synchronous XHR,document.write, and exposed source maps in production - Designed for reviewing web code against Lighthouse best-practices audits, and points accessibility, SEO, and performance work to separate skills
Install
$ npx -y skills add tech-leads-club/agent-skills --skill best-practices -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Best practices
Modern web development standards based on Lighthouse best practices audits. Covers security, browser compatibility, and code quality patterns.
Security
HTTPS everywhere
Enforce HTTPS:
<!-- ❌ Mixed content -->
<img src="http://example.com/image.jpg" />
<script src="http://cdn.example.com/script.js"></script>
<!-- ✅ HTTPS only -->
<img src="https://example.com/image.jpg" />
<script src="https://cdn.example.com/script.js"></script>
<!-- ✅ Protocol-relative (will use page's protocol) -->
<img src="//example.com/image.jpg" />
HSTS Header:
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Content Security Policy (CSP)
<!-- Basic CSP via meta tag -->
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self';
script-src 'self' https://trusted-cdn.com;
style-src 'self' 'unsafe-inline';
img-src 'self' data: https:;
connect-src 'self' https://api.example.com;"
/>
<!-- Better: HTTP header -->
CSP Header (recommended):
Details
- Repository
- github.com/tech-leads-club/agent-skills
- Categories
- Frontend & UI Code, Security, Code Review & Quality
- First seen
- Jun 3, 2026
Questions
What does the best-practices skill check for in web code?
The best-practices skill applies modern web development standards covering security, browser compatibility, and code quality. It is based on Lighthouse best practices audits, and its guidance covers HTTPS, Content Security Policy, security headers, and vulnerable libraries.
When should I use the best-practices skill instead of other audit skills?
Use best-practices when you ask an agent to apply best practices, run a security audit, modernize code, do a code quality review, or check for vulnerabilities. Accessibility, SEO, performance and comprehensive multi-area audits are handled by web-accessibility, seo, core-web-vitals and web-quality-audit instead.
How do I install the best-practices skill?
Run npx -y skills add tech-leads-club/agent-skills --skill best-practices -y in a project. The best-practices skill then lets your agent review web code against those security and quality standards.
Where does the best-practices skill rank in its category?
The best-practices skill is listed in the Frontend and UI Code category on Claude Marketplaces, next to vercel-react-best-practices, web-design-guidelines and design-taste-frontend. It sets itself apart by focusing on security headers, CSP and deprecated APIs.
More from tech-leads-club/agent-skills
All 22- Coupling Analysis305
- Accessibility280
- Jira Assistant278
- Cursor Subagent Creator276
- Excalidraw Studio274
- Seo259
- Figma Implement Design252
- Tlc Spec Driven1.4K
- Subagent Creator983
- Technical Design Doc Creator682
- Security Best Practices417
- Domain Analysis400
- Nestjs Modular Monolith372
- Mermaid Studio368
- Coding Guidelines367
- Perf Lighthouse360
- Decomposition Planning Roadmap333
- Docs Writer329
- Playwright Skill327
- Perf Astro312
- Perf Web Optimization307
Similar to Best Practices
More Frontend & UI Codeweb-securitySkillacademind/ai-config302 installsSet of security rules that guides code toward safe defaults across XSS, auth, CSP, and data handling.
security-headers-configurationSkillaj-geddes/useful-ai-prompts524 installsConfiguration guide for HTTP security headers covering CSP, HSTS, X-Frame-Options, and MIME-sniffing protection across common web stacks.
modern-web-guidancePluginanthropics/claude-plugins-official48.8K starsKeep your coding agent up to date with the latest web best practices
security-best-practicesSkilltech-leads-club/agent-skills417 installsLanguage- and framework-aware security review that flags issues and suggests secure-by-default fixes.
frontend-security-coderSkillsickn33/agentic-awesome-skills735 installsSecure frontend coding guide covering XSS prevention, CSP, clickjacking, redirects, and browser security features.
application-securitySkilltravisjneuman/.claude185 installsPractical application security guide covering OWASP Top 10 fixes, CSP headers, SAST/DAST tooling, and input validation.