code-quality

Code quality standards: warnings-as-errors, no underscore prefixes for unused vars, mandatory test coverage. Apply to any TypeScript, JavaScript, Rust, or Python project. Triggers: code review, linting, writing new functions, refactoring.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "code-quality" with this command: npx skills add developerinlondon/agent-skills/developerinlondon-agent-skills-code-quality

Code Quality Standards

Unused Variables

  • NEVER prefix unused variables with underscore (_) to silence linters
  • Either USE the variable or REMOVE it entirely
  • If a function parameter is required by an interface but unused, restructure to avoid it
  • Exception: destructuring where you need to skip positional elements (rare)

Warnings Are Errors

  • Treat ALL compiler/linter warnings as errors that must be fixed
  • Do not leave warnings for "later" -- fix them now
  • Common warnings to watch: unused imports, unreachable code, implicit any

Test Coverage

  • Every new function or module MUST have corresponding tests
  • Test the happy path AND at least one error/edge case
  • Run existing tests after changes to verify nothing breaks

Type Safety

  • Never use as any, @ts-ignore, or @ts-expect-error to suppress type errors
  • Never use empty catch blocks catch(e) {}
  • Never delete failing tests to make the suite "pass"

Formatting

  • Always run the project's formatter after editing any file
  • Verify formatting before committing

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

autonomous-workflow

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

documentation

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

gitops-master

No summary provided by upstream source.

Repository SourceNeeds Review