questioning-hardcoded-values

Community

Justify every literal value in your code.

Authorcassamajor
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the ambiguity and potential for bugs introduced by unexplained hardcoded strings, numbers, and assumptions in code, ensuring clarity and maintainability.

Core Features & Use Cases

  • Code Review Enhancement: Provides a systematic approach to questioning literals during code reviews.
  • Documentation Improvement: Guides developers on documenting conventions, defining constants, and verifying assumptions.
  • Use Case: When reviewing code, you encounter if len(data) < 37. This Skill prompts you to ask "What is 37?", leading to the creation of a constant like const ipv6EventSize = 37 with an explanation of its calculation.

Quick Start

Use the questioning-hardcoded-values skill to review the provided code snippet for unexplained literals.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: questioning-hardcoded-values
Download link: https://github.com/cassamajor/xcnf/archive/main.zip#questioning-hardcoded-values

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.