Skip to content
Back to skills

Fast Code Edits

ASecurity

Local, millisecond code edits with no LLM call: deterministic codemods (hooks_codemod) and snippet merges into large files (hooks_fast-apply, agent-booster). Use when: mechanical transforms across many files (var-to-const, remove-console, add-logging), or merging a rewritten function into a big file. Skip when: the change needs reasoning (types, error handling, refactors).

  • 82,861 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 9, 2026
ai-agentstypescriptbash

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add ruvnet/ruflo --skill fast-code-edits --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fast Code Edits?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fast Code Edits
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ruvnet-fast-code-edits-52b69f12/badge)](https://www.skillsdirectory.com/skills/ruvnet-fast-code-edits-52b69f12)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fast-code-edits
description: >
  Local, millisecond code edits with no LLM call: deterministic codemods (hooks_codemod) and snippet merges into large files (hooks_fast-apply, agent-booster).
  Use when: mechanical transforms across many files (var-to-const, remove-console, add-logging), or merging a rewritten function into a big file.
  Skip when: the change needs reasoning (types, error handling, refactors).
---

# Fast Code Edits Skill

## Purpose
Two engines for two jobs. `hooks_codemod` applies fixed-rule transforms with the TypeScript compiler and keeps formatting. `hooks_fast-apply` merges a code snippet you already have into a file with agent-booster (Morph-style fast apply).

## When to Trigger
- the same mechanical change across many files
- you have the new code for one function and the file is large

## When to Skip
- anything that needs judgement: route it to a model

## Commands

### Deterministic codemod (dry run first)
```bash
npx @claude-flow/cli mcp exec -t hooks_codemod -p '{"intent":"remove-console","glob":"src/**/*.ts","dryRun":true}'
```

### Merge a snippet
```bash
npx @claude-flow/cli mcp exec -t hooks_fast-apply -p '{"file":"src/math.ts","edit":"export function add(a: number, b: number): number {\n  return a + b;\n}","dryRun":true}'
```
`edit` must be code. An instruction such as "make add typed" returns `success: false`. Nothing is written below `minConfidence` (default 0.5).

### Check whether a codemod fits
```bash
npx @claude-flow/cli hooks model-route -t "convert var to const in src/"
```
Look for `[CODEMOD_AVAILABLE]` in the output.

## Best Practices
1. Always dry-run, then apply
2. Run tests after a batch codemod

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.