Skip to content
Back to skills

Fast Anything

ASecurity

Speed up a slow Python, Node.js/TypeScript, Ruby, Java, Kotlin, Go, PHP, C, C++, C#, R or PowerShell app by porting its hottest pure functions to Rust and proving each port gives the same results on real recorded calls. Use when the user wants their Python code faster, asks about hot paths or profiling, or says "rewrite the slow part in Rust".

  • 24 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added December 2, 2026
developmentjavascripttypescriptpythonrustgojavarubyphpkotlinc++

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill fast-anything --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fast Anything?

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

Security grade badge for Fast Anything
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-fast-anything/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-fast-anything)

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-anything
description: Speed up a slow Python, Node.js/TypeScript, Ruby, Java, Kotlin, Go, PHP, C, C++, C#, R or PowerShell app by porting its hottest pure functions to Rust and proving each port gives the same results on real recorded calls. Use when the user wants their Python code faster, asks about hot paths or profiling, or says "rewrite the slow part in Rust".
---

# fast-anything

The `fast-anything` CLI measures, records, builds, checks and swaps. You write the Rust.
(The same steps are MCP tools: `fast_scan`, `fast_port`, `fast_verify`, `fast_enable`, `fast_bench`, `fast_report`; `fast_languages` and `fast_doctor` say what it speaks and what is installed.)

## Loop

1. **Scan**: `fast-anything scan -- python app.py`, using the command the user runs their app with
   (a representative workload, not the test suite). Pick the top function marked "port it".
   Skip anything under 2% of the run: porting it can't make a visible difference.
2. **Port**: `fast-anything port <id>`. It re-runs the app, records up to 500 real calls, and creates
   `.fast/ports/<id>/` with a stub and a `TASK.md`. Read TASK.md fully: it names the editable file and can
   contain real argument and return values from the workload. If the workload has sensitive data, record with a
   representative workload using synthetic or sanitized values.
3. **Write the Rust** in the editable file TASK.md names (`src/lib.rs`, or `src/port.rs` for Ruby, Java, Kotlin, Go, PHP, C, C++, C#, R, PowerShell; the other file is generated glue):
   - Same semantics: Unicode code points (`.chars()`; JavaScript compares UTF-16 units), integer ranges, float operation order, error cases.
   - Fast: borrow, no needless allocation, ASCII fast paths, `with_capacity`.
   - Keep the function and module names. Run `cargo check` in the crate.
4. **Verify**: `fast-anything verify <id>` builds in release mode and replays every recorded call.
   On mismatch, read the failing call, fix, verify again. Never edit the recordings.
5. **Enable**: `fast-anything enable <id>`, then `fast-anything bench` and `fast-anything report`.
6. Tell the user the end-to-end speedup, the per-call speedup, and how to undo
   (`fast-anything disable <id>`, or `FAST_ANYTHING_DISABLE=1` for a single run).

## Don't

- Don't edit the original Python function: the block appended to its module does the swap.
- Don't enable a port that hasn't passed verify.
- If a function shows ✗ (I/O, randomness, globals, lives in the entry script), say why it can't be ported yet.
  Suggest moving pure logic into its own module when that's the blocker.

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 development →

Comments

Loading comments…

Newsletter

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