一键导入
code-editor
Efficient code editing workflow with parallel strategies. Invoke when user needs to edit multiple files, refactor code, or perform batch modifications.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Efficient code editing workflow with parallel strategies. Invoke when user needs to edit multiple files, refactor code, or perform batch modifications.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Rebuild the AVG-AdventurerTavern Docker image and push to NyaaDockerHUB private registry. Use this whenever the project needs a Docker rebuild (e.g., after Dockerfile, docker-compose.yml, vite.config.ts, config.ts, or any source change that affects the bundled frontend image). Runs rebuild.py which builds, tags, pushes to private registry, and cleans old tags.
Handles git commit and push workflow with optimized command execution. Invoke when user wants to commit, push, or sync code changes to remote repository.
Writes comprehensive unit tests using multi-agent team mode. Invoke when user needs to create/update tests for modified modules, verify data flow, interfaces, or after code changes.
Orchestrates multiple agents in parallel for complex analysis and problem solving. Invoke when user presents design requirements or bug reports requiring multi-module analysis.
MUST invoke after ANY modification to BattleScene.tsx or BattleSceneModules/*. Syncs UI changes to battle-preview.html for visual preview.
Guides save/load system design following unified data flow patterns. Invoke when designing new features that need data persistence or save/load functionality.
| name | code-editor |
| description | Efficient code editing workflow with parallel strategies. Invoke when user needs to edit multiple files, refactor code, or perform batch modifications. |
This skill provides an efficient code editing workflow with parallel strategies for handling multiple file modifications.
ALWAYS read multiple files in a single tool call batch:
✅ CORRECT: Send one message with multiple Read tool calls
❌ WRONG: Send multiple messages, each with one Read call
Example:
<function_calls>
<Read file_path="path/to/file1.ts" />
<Read file_path="path/to/file2.ts" />
<Read file_path="path/to/file3.ts" />
</function_calls>
Group related edits and apply them efficiently:
SearchReplace for targeted modificationsAfter completing edits:
npm run buildnpx tsc --noEmitRead ALL relevant files in ONE batch:
Read file1.ts, file2.ts, file3.ts, file4.ts (parallel)
For independent files:
For dependent files:
old_str to uniquely identify the targetold_str and new_str concise but completeFor large-scale refactoring:
If build/typecheck fails:
After completing edits, provide:
## Edit Summary
| File | Changes | Status |
|------|---------|--------|
| file1.ts | Description | ✅ |
| file2.ts | Description | ✅ |
## Verification
- Build: ✅ Passed
- TypeCheck: ✅ Passed (or list errors)
When running commands in PowerShell:
; as command separator, NOT &&npm run build; npm run test