| name | edit-target-prompts |
| description | Read, edit, and diff .claude prompt assets (skills, agents, rules) in the target repo. |
| user_invocable | true |
| arguments | [{"name":"action","description":"Action: list, read <name>, edit <name>, diff <name>","required":true}] |
/edit-target-prompts — Target Prompt Asset Editor
This skill is the only way to read or modify .claude/ files in the target repo. Direct Read/Edit/Write calls to files under the target repo's .claude/ directory are forbidden — use this skill instead.
Why
Every prompt asset change must be:
- Logged — recorded with timestamp, sha1, and diff stats
- Diffed — the full unified diff is shown before and after edits
- Auto-committed — so the change survives
git reset --hard HEAD~1 discards
- Traceable — so the researcher can correlate prompt changes with metric changes
Available Assets
Use pixi run target-dot-claude-list to discover available assets. You can also use paths relative to .claude/ (e.g., rules/some-rule.md, skills/run/SKILL.md).
Actions
List all assets
pixi run target-dot-claude-list
pixi run target-dot-claude-list --json
Read an asset
pixi run target-dot-claude-read skill
pixi run target-dot-claude-read rules/pipeline-structure.md
Edit an asset
To edit, you must:
- Read the current content with
target-dot-claude-read
- Prepare the new content
- Pipe it to
target-dot-claude-edit:
echo "new content" | pixi run target-dot-claude-edit skill
In practice as Claude Code, the workflow is:
Bash("pixi run target-dot-claude-read skill") — read current content
- Make your changes to the content
Bash("pixi run target-dot-claude-edit skill <<'PROMPT_EOF'\n<new content>\nPROMPT_EOF") — write and get diff
Diff without writing
echo "proposed content" | pixi run target-dot-claude-diff skill
This is the same pattern the supervisor uses
The supervisor edits the researcher's .claude/ files via pixi run dot-claude-edit.
The researcher edits the target's .claude/ files via pixi run target-dot-claude-edit.
Both use the same harness_core.prompt_editor functions underneath — logged, diffed, auto-committed.