askill
best-practices

best-practicesSafety 80Repository

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.

510 stars
10.2k downloads
Updated 3/27/2026

Package Files

Loading files...
SKILL.md

Best Practices

Language References

Each file extension maps to a specific reference:

  • .ts, .jsreferences/typescript.md
  • .tsx, .jsxreferences/typescript.md + references/react/react.md
  • .pyreferences/python.md + references/python/INDEX.md
  • .goreferences/go.md
  • .swiftreferences/swift.md

Universal principles are in references/universal.md.

Next.js/React References

For Next.js projects, the references/react/ directory provides:

  1. references/react/rules/INDEX.md — pattern index by impact level
  2. references/react/rules/_sections.md — priorities and categories
  3. 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 or unknown with 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 _vars and 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)

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

72/100Analyzed 3/30/2026

A well-structured best-practices index skill that maps file extensions to language-specific references and outlines code quality standards. Acts as a meta-skill pointing to detailed reference files. Has clear organization, good safety guidelines about preserving behavior, and explicit trigger conditions. Moderate actionability since it references content rather than containing it directly. Internal-only signal is moderate due to repo-specific reference paths, but structure is generic enough for reuse.

80
85
75
60
55

Metadata

Licenseunknown
Version1.3.0
Updated3/27/2026
PublisherFradSer

Tags

llm