analysis-refactor

Community

Turn messy scripts into modular analyses.

Authorbcmcpher
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill provides a structured blueprint to transform a sprawling, ad-hoc data analysis script into a stable, five-layer modular architecture (constants → data loading → atomic functions → output functions → orchestrator run_one) to improve maintainability, reuse, and robustness.

Core Features & Use Cases

  • Phase-driven refactoring to isolate constants, data loading, and computation, enabling predictable, auditable workflows.
  • Pure, well-scoped functions with clear inputs and outputs; easier testing and reuse.
  • Central orchestration via run_one that handles per-pair iteration, error handling, and consistent outputs.
  • Clear separation of concerns (loading, processing, output) and deterministic results suitable for extension and testing.
  • Guidance for retrofit-testing with /retrofit-tests to validate extracted components.

Quick Start

Begin by mapping your target script to the five-layer structure and use run_one to orchestrate per-pair computations.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: analysis-refactor
Download link: https://github.com/bcmcpher/my-skills/archive/main.zip#analysis-refactor

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 471,000+ vetted skills library on demand.