Agent Skills
› pydantic/monty
› fastmod
fastmod
GitHub该技能指导使用 fastmod 或 sed 对代码库进行批量文本替换,避免逐行修改。通过正则表达式实现大规模重构,显著提升开发效率并节省 token 消耗。
Trigger Scenarios
需要批量修改代码中的重复模式
执行大规模代码重构
使用 sed 进行文本处理
Install
npx skills add pydantic/monty --skill fastmod -g -y
SKILL.md
Frontmatter
{
"name": "fastmod",
"description": "Use fastmod to make mass code updates to avoid many repetitive changes."
}
fastmod
Instructions
You can occasionally use fastmod or sed to make mass updates to the codebase and avoid wasting tokens changing each case one at a time.
Before making many repetitive changes to the codebase, consider using fastmod --accept-all.
THINK HARD about how best to use fastmod as it can dramatically improve your productivity.
Examples
Example of switching the py_type function to take heap: &Heap instead of a generic H: HeapAccess parameter:
fastmod --accept-all 'fn py_type<H: HeapAccess>\((.+?), heap: &H\b' 'fn py_type($1, heap: &Heap'
Version History
- 026b383 Current 2026-08-20 09:39


