Skip to content
Skill

Typed holes refactor

Refactor codebases using Design by Typed Holes methodology - iterative, test-driven refactoring with formal hole resolution, constraint prop

Install
Scripts
Python
Platforms
Claude Code, Codex, Cursor
GitHub stars
191
Last commit
9 months ago
License
MIT
Listing updated
today

When your agent uses it

Refactor codebases using Design by Typed Holes methodology - iterative, test-driven refactoring with formal hole resolution, constraint propagation, and continuous validation. Use when refactoring existing code, optimizing architecture, or consolidating technical debt through systematic hole-driven development.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 18 files (189 KB) on GitHub on 17 November 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Install

This skill ships in the cc-polymath plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add rand/cc-polymath
/plugin install cc-polymath@cc-polymath-marketplace

Or copy only this skill to ~/.claude/skills/typed-holes-refactor:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rand/cc-polymath.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/typed-holes-refactor &&
cp -R "$tmp/skills/typed-holes-refactor" ~/.claude/skills/typed-holes-refactor &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/typed-holes-refactor inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/typed-holes-refactor to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rand/cc-polymath.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/typed-holes-refactor &&
cp -R "$tmp/skills/typed-holes-refactor" ~/.agents/skills/typed-holes-refactor &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/typed-holes-refactor inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/typed-holes-refactor to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rand/cc-polymath.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/typed-holes-refactor &&
cp -R "$tmp/skills/typed-holes-refactor" ~/.cursor/skills/typed-holes-refactor &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/typed-holes-refactor inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/rand/cc-polymath.git --path skills/typed-holes-refactor

Or copy the folder to ~/.gemini/skills/typed-holes-refactor yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/typed-holes-refactor:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rand/cc-polymath.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/typed-holes-refactor &&
cp -R "$tmp/skills/typed-holes-refactor" ~/.copilot/skills/typed-holes-refactor &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/typed-holes-refactor inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/rand/cc-polymath.git

Then copy cc-polymath/skills/typed-holes-refactor into your agent's skills folder as typed-holes-refactor. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

Typed holes refactor FAQ

How do I install Typed holes refactor in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/typed-holes-refactor to use it in all your projects, or to .claude/skills/typed-holes-refactor in one project. Or install the cc-polymath plugin, which includes it: /plugin marketplace add rand/cc-polymath, then /plugin install cc-polymath@cc-polymath-marketplace.

Does Typed holes refactor run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Typed holes refactor?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

More from rand/cc-polymath

  1. Comprehensive toolkit for detecting and eliminating "AI slop" - generic, low-quality AI-generated patterns in natural language, code, and de

    • Open source
    • 191 GitHub stars
  2. Automatically discover agentic workflow skills when building AI agents, implementing tool use patterns, managing context windows, decomposin

    • Open source
    • 191 GitHub stars
  3. Automatically discover API design skills when working with REST APIs, GraphQL schemas, API authentication, OAuth, JWT, rate limiting, API ve

    • Open source
    • 191 GitHub stars
  4. Automatically discover CI/CD and automation skills when working with GitHub Actions, Jenkins, GitLab CI, pipelines, continuous integration,

    • Open source
    • 191 GitHub stars
    • Developer tools
  5. Automatically discover cryptography skills when working with encryption, TLS, certificates, PKI, and security

    • Open source
    • 191 GitHub stars
  6. Automatically discover data pipeline and ETL skills when working with ETL, data pipelines, streaming, batch processing, data validation, or

    • Open source
    • 191 GitHub stars