Skip to main content
skill CX Codex

rewriting-code-strictly — Claude Code skill for strict typing

rewriting-code-strictly is a Claude Code skill that rewrites Python, TypeScript/JavaScript, or Go with stricter typing and boundary checks. It runs on requests to harden code or align it with static analysis tools.

no license 122 installs ★ 3 updated 2026-10-25

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add b-mendoza/agent-skills --skill rewriting-code-strictly -a claude-code
Open on GitHub

What rewriting-code-strictly does

The skill coordinates a staged rewrite while preserving the program’s behavior. It maps the existing code, develops a plan, waits for approval before edits, then sends the result for a separate review. Subagents handle the stages, and the matching language guide loads once the language is known.

A target file or pasted code is required. If the language is unclear, the skill asks one focused question before dispatching subagents. By default, changes stay within the target and direct compilation, typing, import, or test consequences. Work beyond that scope requires clarification or expanded approval.

What it helps with

  • Add strict typing to existing code
  • Validate data at program boundaries
  • Align code with mypy, Pyright, tsc, go vet, or Staticcheck
  • Remove unsafe escapes from the type system

Example prompts for the agent

  • Rewrite src/api/users.py with strict typing while preserving its behavior.
  • Add input validation to this TypeScript code and align it with tsc.
  • Harden this Go code and check it with go vet.

How to install rewriting-code-strictly

1Skills CLI (Vercel)

npx skills add b-mendoza/agent-skills --skill rewriting-code-strictly -a claude-code

2Manually: put the files in place

~/.claude/skills/rewriting-code-strictly/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/rewriting-code-strictly/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about rewriting-code-strictly

How do I install rewriting-code-strictly in Claude Code?

Run npx skills add b-mendoza/agent-skills --skill rewriting-code-strictly -a claude-code. The skill file is at ~/.claude/skills/rewriting-code-strictly/SKILL.md.

What does rewriting-code-strictly do?

It coordinates behavior-preserving rewrites of Python, TypeScript/JavaScript, or Go for stricter typing and boundary validation. The workflow requires strategy approval before edits and includes a separate review stage.

What does rewriting-code-strictly need to start?

It needs the target code, either as a file path or pasted text. If the language is unclear, it asks one focused question before dispatch.

Similar skills

All skills for Code review and refactoring →

From the same set12

The whole set →
review-pull-request review-pull-request audits a single GitHub pull request across isolated stages, drafts a local Markdown report, and posts comments only when confirmed. CX Codex +1 161installs committing-scoped-changes committing-scoped-changes splits an explicit list of files or folders into separate git commits and leaves the rest of the working tree alone. CX Codex +1 153installs responding-to-pr-review-comments The responding-to-pr-review-comments skill gathers pull request comments, assesses the feedback, and drafts replies. With confirmation, it can post approved text to supported GitHub comment threads. CX Codex +1 144installs clarifying-assumptions clarifying-assumptions — a skill that runs the conversational layer for plan verification. Asks critical questions upfront or before individual tasks, delegates artifact analysis to subagents. CX Codex +1 129installs refactoring-code refactoring-code is a Claude Code skill that stages simplification refactors: approve the plan before edits, then check that behaviour stays the same. CX Codex +1 124installs diagnosing-root-causes The diagnosing-root-causes skill traces bugs, regressions, and CI/CD failures from supplied evidence, then produces a reviewed root-cause report. Use it when a problem report needs investigation rather than guesswork. CX Codex +1 122installs improving-test-suites improving-test-suites is a Claude Code skill that reviews test suites and focuses them on important behavior. It activates for requests to trim, rewrite, review, or strengthen tests. CX Codex +1 119installs planning-codebase-restructuring planning-codebase-restructuring is a Claude Code skill that maps a codebase and prepares a restructuring plan without changing files. It produces an evidence-backed report for a later implementation pass. CX Codex +1 100installs

Project sponsors

Companies that keep this analytics open