zzatpku/agentfactory/modify-subagent
Claude Code and agent skill by zzatpku/agentfactory
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Edit an existing subagent file by replacing specific code snippets. Supports both workspace files and saved skills.
Install
npx vskill@latest install zzatpku/agentfactory/modify-subagentSKILL.md
Modify Subagent
Edit an existing subagent file by replacing specific code snippets. Supports two modes:
- Workspace file (default): Modify a file in the current workspace.
- Saved skill: Provide
skill_nameto modify a previously saved skill. The skill's code is copied to workspace and modified there.
After modifying, use run_subagent to test — it will automatically run the modified version.
Usage
Modify a workspace file
Modify a saved skill
You can also specify filename to target a specific file within the saved skill (defaults to the skill's entry_file):
Parameters
| Parameter | Type | Default | Description | |
|---|---|---|---|---|
| filename | str | entry_file or "subagent.py" | Name of the file to modify. When used with skill_name, defaults to the skill's entry_file. | |
| skill_name | str | "" | (Optional) Name of a saved skill to modify. | |
| old_content | str | required | Exact code snippet to find and replace | |
| new_content | str | required | New code to replace with |
Returns
On success:
On failure:
Important Notes
- The
old_contentmust be an exact match of text in the source file - This modifies your SOURCE CODE, not the subagent's output
- After modifying, use
run_subagentto test the changes — it will run the modified version - When modifying a saved skill, use
run_subagentwith the sameskill_nameto test - When to modify vs. create new: Only use
modify_subagenton a saved skill when the skill itself has problems — e.g. it contains hardcoded values, lacks generality, has bugs, or otherwise cannot be reused as-is. If the saved skill is fine but you simply want to borrow ideas or patterns from it for a similar but different task, you shouldview_subagent_codeto study its code, then usecreate_subagentto build a new one. Do NOT modify a working, general-purpose skill just to adapt it to a different task. - `modify_subagent` vs. `supersedes` in `finish`: These serve different purposes:
- `modify_subagent` with `skill_name`: For small, surgical fixes (bug fixes, selector updates, minor logic changes). The skill name and file name stay the same. Changes are saved back to the original skill directory at
finishtime. - `create_subagent` (new file) + `supersedes` in `finish`: For major rewrites where the architecture, approach, or file name changes significantly. This creates a new skill and removes the old one. Use this when
modify_subagentwould require replacing most of the code.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/meta/modify_subagent/SKILL.md
Popularity
- Repository stars
- 58
- Repository forks
- 6
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zzatpku/agentfactory/modify-subagent)