smithery/jamesjfoong

validate-code

Validate code before committing. Use before commits or when fixing linting/type errors.

Installation

$ npx skills add smithery/jamesjfoong --skill validate-code

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,248 B
  • docs SUMMARY.md 108 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Validate Code

When to Use

  • Before committing any changes
  • When fixing linting or type errors
  • When code quality checks fail

Quick Validation

npm run validate

Runs: type-check + lint + format-check

Fix Issues

# Fix linting
npm run lint:fix

# Fix formatting
npm run format

# Re-validate
npm run validate

Individual Checks

npm run type-check    # TypeScript only
npm run lint          # ESLint only
npm run format:check  # Prettier only

Common Type Errors

Error Fix
Implicit any Add explicit type annotations
Type mismatch Verify schema matches type
Missing properties Use optional ? if needed
Optional values Use ? instead of `\ null \ undefined`

Debugging Steps

  1. Run npm run type-check to see all errors
  2. Check Zod schemas match expected structure
  3. Ensure types exported from types.ts
  4. Verify optional properties use ?