# Run lint and typecheck to verify code quality before committing

> Run verification checks in sequence. Stop and report on first failure.

- Skill: `tools-only/run-lint-and-typecheck-to-verify-code-quality-before` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add tools-only/run-lint-and-typecheck-to-verify-code-quality-before`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tools-only/run-lint-and-typecheck-to-verify-code-quality-before/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tools-only (https://skillmd.com/u/tools-only)
- Updated: 2026-09-29
- Page: https://skillmd.com/skills/tools-only/run-lint-and-typecheck-to-verify-code-quality-before

---


Run verification checks in sequence. Stop and report on first failure.

## Steps

1. **Lint check**
   ```bash
   pnpm lint
   ```
   If this fails, summarize the errors and stop.

2. **Type check**
   ```bash
   pnpm typecheck || pnpm tsc --noEmit
   ```
   If this fails, summarize the type errors and stop.

## Output

Report results clearly:

**All passed:**
```
✅ Lint: passed
✅ Types: passed

Ready to commit.
```

**On failure:**
```
❌ [Check] failed

[Brief summary of errors - not full output unless requested]

Fix these issues before committing.
```

## Notes

- Don't fix issues automatically. Just report them.
- If neither `pnpm lint` nor `pnpm typecheck` exist, try common alternatives (`npm run lint`, `npx tsc --noEmit`).
- If no lint/typecheck scripts found, inform the user.

