code-care

Automates code quality checks, type fixes, and Prisma migrations via Git hooks.

1|Updated Oct 27, 2025
One-click install
npx skills add https://github.com/langcore-org/united-productions-web --skill code-care
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-care
Source: https://github.com/langcore-org/united-productions-web/tree/main/.claude/skills/code-care
Command: npx skills add https://github.com/langcore-org/united-productions-web --skill code-care

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires knip, typescript, prisma, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses issues related to code quality, type safety, and database schema management, ensuring a more robust and maintainable codebase.

Core Features & Use Cases

  • Code Health Checks: Identifies unused code, type errors, and "as any" usage.
  • Type Safety Improvement: Provides strategies and tools to eliminate "as any" and enhance type safety.
  • Database Migration Management: Assists in planning, creating, and managing database migrations.
  • Use Case: Before committing code, run a health check to catch potential issues like type errors or unused variables, ensuring higher code quality.

Quick Start

Run a comprehensive health check on your codebase.

Frequently Asked Questions about code-care

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

FAQPage Schema
How do I remove "as any" declarations and fix TypeScript type errors in my codebase?

To remove "as any" declarations and fix TypeScript type errors, run a comprehensive code health check. This identifies type errors and unsafe casting, then provides refactoring strategies to enforce strict type safety across your project.

What is the best way to detect and clean up unused code before committing?

Detecting and cleaning up unused code before committing is best handled by integrating Knip into Git pre-commit hooks. This automated validation identifies dead code and unused variables, preventing quality issues from reaching your repository.

How do I manage database migrations using Prisma during refactoring?

Managing database migrations using Prisma during refactoring involves planning, creating, and applying schema changes safely. Automated checks assist in generating migration files and validating schema updates to maintain database integrity.

Can I run automated code quality checks through Git pre-commit hooks?

Yes, you can run automated code quality checks through Git pre-commit hooks. Integrating validation scripts into the hook catches type errors, unused code, and unsafe declarations locally before changes are committed to version control.

Does Knip work with TypeScript to identify unused variables and dead code?

Yes, Knip works directly with TypeScript to identify unused variables and dead code. It analyzes your project structure and dependencies to detect unreachable files, unused exports, and obsolete modules, ensuring a maintainable codebase.