Skip to content
Back to skills

Code Quality 15

ASecurity

Code quality guidelines. ALWAYS use skill for ANY code changes.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
documentationtypescript

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill code-quality-15 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Quality 15?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Quality 15
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-code-quality-15/badge)](https://www.skillsdirectory.com/skills/david-li0406-code-quality-15)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-quality
description: Code quality guidelines. ALWAYS use skill for ANY code changes.
---

# Code Quality Guidelines

## Don't write forgiving code

- Don't permit multiple input formats
  - In TypeScript, this means avoiding Union Type (the `|` in types)
- Use preconditions
  - Use schema libraries
  - Assert that inputs match expected formats
  - When expectations are violated, throw, don't log
- Don't add defensive try/catch blocks
  - Usually we let exceptions propagate out
- Don't keep legacy code paths as fallbacks
  - Remove old code instead of keeping it around for compatibility

## Naming Conventions

- Don't use abbreviations or acronyms
  - Choose `number` instead of `num` and `greaterThan` instead of `gt`

## File Management

- Prefer editing an existing file to creating a new one
- Confirm with the user before creating any new markdown files

## Style

- Emoji and unicode characters are welcome
  - Use them at the beginning of comments, commit messages, and in headers in docs

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…