用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/first-fluke/mimic --skill serena-pattern-editor命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | serena-pattern-editor |
| description | Pattern-based code editing using Serena tools - searches for patterns and applies bulk transformations |
| trigger | auto |
| domain | tooling |
| tools | {"serena_search_for_pattern":true,"serena_replace_content":true,"serena_replace_symbol_body":true} |
Automated pattern-based editing for bulk code transformations and migrations.
serena_search_for_pattern to find all occurrencesserena_replace_content with regex modeallow_multiple_occurrences carefully// Old API
oldFunction\((.*?)\)
// New API
newFunction($1, { option: true })
// Find deprecated usage
@deprecated.*\n.*function
// Replace with warning
// TODO: Migrate to new API\n$0
// Migrate from old API to new API
const workflow = [
'serena_search_for_pattern("oldApi\\.call")',
'serena_replace_content("oldApi\\.call\\((.*?)\\)", "newApi.call($1)", "regex")',
];