setup-cdk-quality

Configure code quality gates for CDK projects with linting, formatting, and pre-commit hooks.

Updated Dec 8, 2025
One-click install
npx skills add https://github.com/auge2u/claude-dev-kit --skill setup-cdk-quality
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-cdk-quality
Source: https://github.com/auge2u/claude-dev-kit/tree/main/skills/quality
Command: npx skills add https://github.com/auge2u/claude-dev-kit --skill setup-cdk-quality

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This setup enables teams to enforce consistent code quality by configuring linting, formatting, pre-commit hooks, and CI workflows with configurable enforcement levels.

Core Features & Use Cases

  • Create a centralized quality config (.cdk-quality.json) to govern lint/format/type checks, tests, and secrets scanning.
  • Install and configure pre-commit hooks (Husky for Node.js, ruff/mypy for Python) and provide templates for CI workflows.
  • Provide a reusable review checklist (.claude/commands/quality-review.md) to standardize code reviews across projects.

Quick Start

Run the setup-cdk-quality skill to initialize quality controls in your project.

Frequently Asked Questions about setup-cdk-quality

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up pre-commit hooks and CI workflows for CDK projects?

To set up pre-commit hooks and CI workflows for CDK projects, configure a centralized .cdk-quality.json file to govern linting, formatting, and tests. This installs hooks like Husky or ruff and provides GitHub Actions templates.

What is a centralized code quality config and how does it enforce linting?

A centralized code quality config is a file like .cdk-quality.json that governs lint, format, type checks, tests, and secrets scanning. It enforces quality by integrating these checks into pre-commit hooks and CI workflows.

Can I apply code quality gates to both Node.js and Python CDK stacks?

Yes, you can apply code quality gates to both Node.js and Python CDK stacks. The setup configures Husky for Node.js environments and uses ruff and mypy for Python stacks to enforce consistent formatting and linting.

Does this work for existing CDK projects or only new ones?

This setup works for both new and existing CDK-based projects. It allows teams adopting linting and formatting to enforce consistent code quality with adjustable enforcement levels across their codebase.

How do I standardize code reviews across multiple development teams?

To standardize code reviews across teams, you can implement a reusable review checklist like the .claude/commands/quality-review.md file, which ensures consistent evaluation alongside automated CI workflows and pre-commit hooks.

Are the enforcement levels for code quality checks adjustable?

Yes, the enforcement levels for code quality checks are adjustable. The .cdk-quality.json configuration allows teams to customize the strictness of lint, format, type checks, tests, and secrets scanning rules.