Naming Gen for Openclaw

Naming Gen is an AI-powered CLI tool that analyzes your code to replace cryptic variable and function names with clear, descriptive alternatives.

lxgicstudios
v1.0.1
Jan 29, 2026
0
0
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install naming-gen

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install naming-gen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Naming Gen?

Naming Gen is a specialized utility designed to solve one of the most persistent challenges in software engineering: naming things. By integrating this capability into your development workflow through Openclaw Skills, you can transform legacy code or hurried prototypes into self-documenting source code. The tool evaluates the specific context of how a variable or function is used to suggest names that accurately reflect intent, data types, and logical purpose.

Whether you are refactoring a complex enterprise application or simply cleaning up a script, Naming Gen ensures your project remains readable and maintainable. This tool is a zero-config solution within the Openclaw Skills ecosystem, allowing developers to improve their codebase quality without the overhead of manual renaming or complex setup processes.

Naming Gen Use Cases

  • Refactoring legacy codebases that contain cryptic or non-descriptive naming conventions like data1 or temp.
  • Preparing for code reviews to ensure high readability and maintain standard compliance.
  • Improving code clarity during the migration of experimental prototypes to production-ready modules.
  • Teaching junior developers better naming habits by providing immediate, AI-driven feedback on their code structure.

How Naming Gen Works

  1. The tool parses the provided source code file or directory to build an abstract representation of the logic.
  2. It identifies all variable declarations and function definitions within the specified scope.
  3. Using AI analysis, it examines the usage context of each identifier to determine its actual functional purpose.
  4. The system compares current names against a library of best practices and project-specific conventions.
  5. It generates a detailed report of suggestions, highlighting the most vague names and providing context for the proposed changes.

Naming Gen Setup

Naming Gen requires no permanent installation and can be executed directly using npx. Ensure you have Node.js 18 or higher installed on your system.

# Run the tool on a specific file to get suggestions
npx ai-naming ./src/utils.ts

# Analyze an entire directory for inconsistent naming
npx ai-naming ./src/

# Access the help menu to see all configuration flags
npx ai-naming --help

Naming Gen Data Schema & Taxonomy

The tool processes source files locally and generates suggestions based on its analysis. It categorizes its findings using the following schema to help you prioritize refactoring within your Openclaw Skills workflow:

Attribute Description
Current Name The existing variable or function identifier identified as vague.
Usage Context A snippet of the surrounding code that informs the AI's suggestion.
Severity Score A numerical threshold (e.g., --threshold 3) used to flag the most ambiguous names.
Suggested Name The AI-generated alternative that better describes the logic.
Output Format Options include standard text, checklist format, or JSON for automated pipelines.

Naming Gen Advanced Features

  • Threshold-based filtering to focus exclusively on the most cryptic and problematic variable names.
  • Multiple output formats including checklist mode, making it easy to track refactoring progress.
  • Recursive directory analysis for bulk refactoring across large, multi-module repositories.
  • Intelligent context awareness that respects existing project naming conventions to ensure consistency.
  • Direct integration into CI/CD pipelines as part of your broader Openclaw Skills automation suite.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*