add-check

Add a new code quality check to CI, justfile, and pre-commit hooks. Use when adding linters, formatters, type checkers, or other code quality tools to the project.

181 stars

Best use case

add-check is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Add a new code quality check to CI, justfile, and pre-commit hooks. Use when adding linters, formatters, type checkers, or other code quality tools to the project.

Teams using add-check should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/add-check/SKILL.md --create-dirs "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/data/add-check/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/add-check/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How add-check Compares

Feature / Agentadd-checkStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Add a new code quality check to CI, justfile, and pre-commit hooks. Use when adding linters, formatters, type checkers, or other code quality tools to the project.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Adding a New Check

When adding a new code quality check (linter, formatter, type checker, etc.), update these three locations:

## 1. justfile

Add a new recipe and include it in the `default` target:

```just
default: lint format typecheck your-check

your-check:
    uv run YOUR_COMMAND
```

## 2. .github/workflows/ci.yaml

Add a step to the `verify` job after the existing checks:

```yaml
- name: Run YOUR_CHECK
  run: uv run YOUR_COMMAND
```

## 3. lefthook.yml

Add a job to the `pre-commit.jobs` list:

```yaml
- name: YOUR_CHECK
  glob: "*.py"
  run: YOUR_COMMAND {staged_files}
```

If the tool can auto-fix issues, add `stage_fixed: true`.

## Checklist

- [ ] Add dev dependency to `pyproject.toml` if needed
- [ ] Add justfile recipe and update `default` target
- [ ] Add CI workflow step
- [ ] Add lefthook pre-commit job
- [ ] Run `just` to verify all checks pass

Related Skills

adr-check

181
from majiayu000/claude-skill-registry

Validate code changes against Architecture Decision Records (ADRs)

add-strict-checks

181
from majiayu000/claude-skill-registry

Enable stricter TypeScript and linting checks to catch bugs early, especially useful when iterating with AI assistance.

accessibility-design-checklist

181
from majiayu000/claude-skill-registry

Эксперт по accessibility дизайну. Используй для WCAG, a11y чеклистов и inclusive design.

accessibility-design-checker

181
from majiayu000/claude-skill-registry

Ensures designs meet accessibility requirements including WCAG compliance, color contrast, keyboard navigation, screen reader support, and focus management. Reviews designs for accessibility issues and provides recommendations.

accessibility-checklist

181
from majiayu000/claude-skill-registry

When building UI components, forms, or any user-facing interface. Check before every frontend PR.

accessibility-checker

181
from majiayu000/claude-skill-registry

Validate WCAG 2.1 Level AA compliance and accessibility best practices. Use when performing accessibility audits and WCAG certification.

accessibility-check

181
from majiayu000/claude-skill-registry

Run accessibility audit on frontend components for WCAG 2.1 AA compliance

accessibility-basic-check

181
from majiayu000/claude-skill-registry

Run a basic accessibility checklist for UI changes. Use when a junior developer needs quick a11y guidance.

acc-check-leaky-abstractions

181
from majiayu000/claude-skill-registry

Detects leaky abstractions in PHP code. Identifies implementation details exposed in interfaces, concrete returns from abstract methods, framework leakage into domain, and infrastructure concerns in application layer.

acc-check-immutability

181
from majiayu000/claude-skill-registry

Analyzes PHP code for immutability violations. Checks Value Objects, Events, DTOs for readonly properties, no setters, final classes, and wither patterns. Ensures domain objects maintain invariants.

acc-check-encapsulation

181
from majiayu000/claude-skill-registry

Analyzes PHP code for encapsulation violations. Detects public mutable state, exposed internals, Tell Don't Ask violations, getter/setter abuse, and information hiding breaches.

acc-check-bounded-contexts

181
from majiayu000/claude-skill-registry

Analyzes bounded context boundaries in DDD projects. Detects cross-context coupling, shared kernel violations, context mapping issues, and ubiquitous language inconsistencies. Generates context map diagrams and boundary recommendations.