agentsclimarketplace

Neversight skills feed javascript best practices 1.0.2

Skill VRIL-LABS/skill-jam/skills/web-frontend/neversight-skills_feed-javascript-best-practices-1.0.2

Modern JavaScript best practices and performance optimization guidelines. Use when writing, reviewing, or refactoring JavaScript code to ensure optimal performance, maintainability, and modern patterns.From its SKILL.md

Install
npx -y skills add VRIL-LABS/skill-jam --skill neversight-skills_feed-javascript-best-practices-1.0.2

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

3.0 KB, 669 tokens by cl100k_base, as published. Nobody here has run it

JavaScript Best Practices

Comprehensive guide for modern JavaScript development covering performance, code quality, and best practices.

When to Apply

Reference these guidelines when:

  • Writing new JavaScript code
  • Reviewing code for performance or quality issues
  • Refactoring existing JavaScript code
  • Optimizing application performance
  • Ensuring code maintainability

Rule Categories by Priority

PriorityCategoryImpactPrefix
1PerformanceCRITICALperf-
2Async PatternsHIGHasync-
3Error HandlingHIGHerror-
4Code QualityHIGHquality-
5Modern SyntaxMEDIUMmodern-
6ArraysMEDIUMarray-

Quick Reference

1. Performance (CRITICAL)

  • perf-avoid-memory-leaks - Always cleanup event listeners, timers, intervals, subscriptions, and observers

2. Async Patterns (HIGH)

  • async-promise-chains - Prefer async/await over .then()/.catch() chains for better readability

3. Error Handling (HIGH)

  • error-defensive-programming - Use guard clauses and validate input at system boundaries
  • error-explicit-validation - Don't hide data errors with optional chaining - validate explicitly

4. Code Quality (HIGH)

  • quality-strict-equality - Use === instead of == (except for null checks)
  • quality-explicit-boolean-checks - Don't rely on truthy/falsy for non-boolean values
  • quality-small-functions - Keep functions focused on one task (5-15 lines ideal)
  • quality-no-magic-numbers - Extract numbers to named constants
  • quality-immutability - Prefer creating new objects/arrays over mutating existing ones
  • quality-pure-functions - Write functions with no side effects when possible
  • quality-naming-conventions - Use meaningful, consistent names (camelCase, PascalCase, UPPER_SNAKE_CASE)
  • quality-commenting - Comments explain "why", not "what" - code should be self-documenting
  • quality-avoid-console-log - Use structured logging with levels in production

5. Modern Syntax (MEDIUM)

  • modern-const-let-no-var - Never use var; prefer const, use let only when reassignment is needed

6. Arrays (MEDIUM)

  • array-mutation-safety - Avoid in-place mutations (push, sort, reverse) on shared arrays

How to Use

Read individual rule files for detailed explanations and code examples:

rules/perf-avoid-memory-leaks.md
rules/async-promise-chains.md
rules/error-defensive-programming.md
rules/quality-strict-equality.md

Each rule file contains:

  • Brief explanation of why it matters
  • Incorrect code example with explanation
  • Correct code example with explanation
  • Additional context and references

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

What ships with it: 11 files

2.7 KB alongside SKILL.md

Keep looking

Skills are one crate of 326,852. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.