production-code-quality

Validates Python and React Native code changes for compatibility, breaking changes, and feature preservation.

Updated May 20, 2026
One-click install
npx skills add https://github.com/TechCorp25/kingdom --skill production-code-quality-techcorp25
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: production-code-quality
Source: https://github.com/TechCorp25/kingdom/tree/main/.claude/skills/code-quality
Command: npx skills add https://github.com/TechCorp25/kingdom --skill production-code-quality-techcorp25

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @babel/parser, and includes scripts (resource) and references (resource) components.

What problem does it solve? Code modifications often silently break existing APIs, drop functionality, or introduce compatibility issues with the rest of the project. This Skill enforces a mandatory self-assessment workflow that detects breaking changes, verifies feature preservation, and scores code quality before any code is delivered. ## Core Features & Use Cases - Breaking Change Detection: Compares original and modified Python files via AST analysis to flag removed functions, changed signatures, and altered return types, requiring explicit user approval before proceeding. - Compatibility & Preservation Checks: Scores import and integration compatibility against the project (threshold ≥95) and verifies 100% functionality preservation between file versions. - React Native Analysis: Audits React Native, Expo, and NativeWind code for hooks rule violations, untyped navigation, unguarded native module access, and FlatList performance issues using Node.js AST parsing with regex fallback. - Use Case: Before delivering a refactored Python module or a new React Native screen, run the self-assessment to receive a pass/fail report covering compatibility, breaking changes, preservation, and RN quality scores. ## Quick Start Ask the assistant to run the production code quality self-assessment on the file you just modified before delivering the changes.

Frequently Asked Questions about production-code-quality

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

FAQPage Schema
How do I detect breaking changes between two Python files?▼

Run breaking_change_detector.py with the original and modified file paths. It uses AST parsing to compare public functions, classes, methods, and constants, then reports each change with a severity level from CRITICAL to LOW in a JSON report.

How to check React Native code quality automatically?▼

Run rn_analyzer.py on a file or directory to audit hooks rules, navigation typing, native module platform guards, and FlatList performance. It uses Node.js with @babel/parser for AST analysis and falls back to regex matching when Node is unavailable.

What happens when a breaking change is detected in my code?▼

Delivery is halted immediately and a detailed impact analysis is presented listing affected components and risk level. The workflow requires an explicit "yes" approval from the user, which is then documented in code comments before proceeding.

Does the React Native analyzer work without Node.js installed?▼

Yes, it falls back to regex-based pattern matching when Node.js or @babel/parser is unavailable. Regex mode covers the same rules but may be less precise, particularly for conditional hook detection.

Why does the compatibility check fail on my modified file?▼

The compatibility score drops below 95 when imports cannot be resolved against project modules or integration points conflict. Review the JSON report's issue list, fix the flagged imports or signatures, and re-run the checker.

What are the limitations of the functionality preservation check?▼

The preserver compares function, class, method, and constant signatures between file versions but cannot verify runtime behavior or side effects. Signature-identical changes with altered logic require manual review or test suites to confirm preservation.