Typed Holes Refactor
CheckedAutomatically refactors code to replace generic type parameters with concrete types where possible.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add rand/cc-polymath --skill typed-holes-refactor -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
rand
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
This skill passed all 6 checks. We read its files at one commit and looked for the things that make a skill dangerous to run — not for whether it works.
Declares what it does: passed
SKILL.md parses and declares a name and a description.
SKILL.md exists, its frontmatter parses, and it declares a name and a description.
No undeclared network calls: passed
Makes no network calls.
Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.
No obfuscated payloads: passed
No encoded or obfuscated payloads.
No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.
No credential access: passed
Reads no keys, tokens, keychains or credential files.
Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.
No pipe-to-shell installers: passed
No pipe-to-shell or download-and-run installers.
No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.
Pinned to a commit: passed
Scanned rand/cc-polymath at baa2df1144.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- baa2df1144
- Scanned
- 18 files, 6,373 lines
About this skill
What it does
The typed-holes-refactor skill refactors code to eliminate "typed holes," which are instances where type information is missing or incomplete, leading to potential errors. It analyzes existing code and automatically inserts appropriate type annotations based on context and usage. This improves code clarity, maintainability, and reduces the likelihood of runtime type errors.
When to use it
- Legacy Codebases: Refactor older projects lacking comprehensive type annotations.
- Complex Functions: Improve understanding and reduce errors in functions with intricate logic.
- Collaborative Projects: Ensure consistent typing across a team's codebase.
- Before Unit Testing: Type safety can catch issues before tests are even run.
Key capabilities
- Automatic type annotation insertion
- Analysis of code context for accurate typing
- Support for various programming languages (implied, not explicitly stated)
- Improved code clarity and maintainability
Example prompts
- "Refactor this function to add missing type annotations: [code snippet]"
- "Analyze this file and suggest type improvements: [file path]"
- "Can you identify any typed holes in this module? [module name]"
Tips & gotchas
The skill's effectiveness relies on the quality of the existing code. While it automates much of the process, reviewing its suggestions is recommended to ensure accuracy and avoid unintended consequences.