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
npx skills add b-mendoza/agent-skills --skill rewriting-code-strictly -a claude-codeWhat 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.pywith 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-code2Manually: put the files in place
~/.claude/skills/rewriting-code-strictly/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/rewriting-code-strictly/
1Skills CLI (Vercel)
npx skills add b-mendoza/agent-skills --skill rewriting-code-strictly -a codex2Manually: put the files in place
.agents/skills/rewriting-code-strictly/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add b-mendoza/agent-skills --skill rewriting-code-strictly -a cursor2Manually: put the files in place
.cursor/skills/rewriting-code-strictly/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install b-mendoza/agent-skills skills/rewriting-code-strictly2Manually: put the files in place
.github/skills/rewriting-code-strictly/SKILL.md1Skills CLI (Vercel)
npx skills add b-mendoza/agent-skills --skill rewriting-code-strictly -a gemini-cli2Platform CLI
gemini skills install https://github.com/b-mendoza/agent-skills --path skills/rewriting-code-strictlyManually: put the files in place
.devin/skills/rewriting-code-strictly/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add b-mendoza/agent-skills --skill rewriting-code-strictly -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.