code-hardcode-audit

Community

Eliminate magic numbers & duplicates, boost code quality.

Authorterrylica
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Hardcoded values, magic numbers, and duplicate code blocks introduce maintenance debt, bugs, and security risks. This skill automates the detection of these issues, ensuring cleaner, more maintainable, and secure codebases.

Core Features & Use Cases

  • Multi-Tool Audit: Orchestrates Ruff (Python magic numbers), Semgrep (URLs, ports, credentials), and jscpd (duplicate code) for comprehensive detection.
  • Actionable Findings: Provides detailed reports in JSON or text format, including suggested fixes and severity levels.
  • Customizable Rules: Allows for rule tuning and exclusion patterns to minimize false positives and focus on critical issues.
  • Use Case: Before a major release or during a refactoring sprint, run this skill to automatically identify and prioritize hardcoded values and code duplication, significantly improving code quality and reducing future bugs.

Quick Start

Run a full hardcode audit on the 'src/' directory. Output the findings in both text and JSON formats.

Dependency Matrix

Required Modules

None required

Components

scriptsreferencesassets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: code-hardcode-audit
Download link: https://github.com/terrylica/cc-skills/archive/main.zip#code-hardcode-audit

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.