Back to skills
SkillHub ClubShip Full StackFull Stack

pre-commit

Run code hygiene checks before committing. Use before git commits or when asked to check code quality.

Packaged view

This page reorganizes the original catalog entry around fit, installability, and workflow context first. The original raw source lives below.

Stars
3
Hot score
80
Updated
March 20, 2026
Overall rating
C0.8
Composite score
0.8
Best-practice grade
B84.0

Install command

npx @skill-hub/cli install legacy3-wowlab-pre-commit

Repository

legacy3/wowlab

Skill path: .claude/skills/pre-commit

Run code hygiene checks before committing. Use before git commits or when asked to check code quality.

Open repository

Best for

Primary workflow: Ship Full Stack.

Technical facets: Full Stack.

Target audience: everyone.

License: Unknown.

Original source

Catalog source: SkillHub Club.

Repository owner: legacy3.

This is still a mirrored public skill entry. Review the repository before installing into production workflows.

What it helps with

  • Install pre-commit into Claude Code, Codex CLI, Gemini CLI, or OpenCode workflows
  • Review https://github.com/legacy3/wowlab before adding pre-commit to shared team environments
  • Use pre-commit for development workflows

Works across

Claude CodeCodex CLIGemini CLIOpenCode

Favorites: 0.

Sub-skills: 0.

Aggregator: No.

Original source / Raw SKILL.md

---
name: pre-commit
description: Run code hygiene checks before committing. Use before git commits or when asked to check code quality.
---

# Pre-Commit Checks

Run hygiene checks before committing code.

## Quick Check Commands

```bash
# Type check (don't use pnpm typecheck)
pnpm build

# Lint
pnpm lint

# Tests
pnpm test
```

## Manual Checklist

### Before Every Commit

- [ ] `pnpm build` passes
- [ ] `pnpm lint` passes
- [ ] No `console.log` statements (except in CLI apps)
- [ ] No commented-out code blocks
- [ ] No `// TODO` without issue reference

### For Portal Components

- [ ] Pages are minimal
- [ ] Loading states have skeletons
- [ ] `"use client"` only where needed
- [ ] Barrel exports updated

### For New Files

- [ ] Added to barrel exports
- [ ] Types are exported if public API
- [ ] CLAUDE.md updated if new pattern

## Auto-Fix Common Issues

### Unused imports

```bash
pnpm lint --fix
```

### Sort imports/objects

ESLint perfectionist plugin handles this automatically.

## Instructions

1. Run `pnpm build` to check types
2. Run `pnpm lint` to check style
3. Review staged changes with `git diff --staged`
4. Flag any issues from checklist above
5. Suggest fixes for problems found
pre-commit | SkillHub