Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add PracticalSwan/agent-skills --skill file-edit-in-placegit clone --depth 1 https://github.com/PracticalSwan/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/practicalswan/agent-skills/file-edit-in-place)<a href="https://agentmods.dev/skills/practicalswan/agent-skills/file-edit-in-place"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/file-edit-in-place/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/file-edit-in-place"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/file-edit-in-place.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00043 | $0.01487 |
| Opus 5 | $0.00022 | $0.00744 |
| Sonnet 5 | $0.00009 | $0.00297 |
| Haiku 4.5 | $0.00004 | $0.00149 |
Grade A, and why
file-edit-in-place scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.
File Edit In Place
Edit a named file according to the original ../avoid-ai-writing/SKILL.md edit mode.
For cross-Skill work, follow ../avoid-ai-writing-router/references/handoff-contract.md and ../avoid-ai-writing-router/references/skill-graph.json.
Connection contract
Incoming
Accept mutation work from:
avoid-ai-writing-routerviaROUTEwhen a named file and explicit mutation request are present.ai-writing-detectorviaFEEDonly when the user requested a named-file fix after an audit.preservation-verifiervia boundedREPAIRwhen the named file failed a preservation check.
A detector result never authorizes a write by itself. User mutation intent must already be explicit.
Required handoff state
Before mutation, preserve:
- source file reference,
- relevant original content or before snapshot,
- requested scope,
- context mode and voice constraints,
- protected semantic constraints,
- detector evidence when already available,
- representation-sensitive guard state when applicable.
Set execution_evidence.mutation: executed only after a real host write/patch succeeds.
Outgoing
VERIFYtopreservation-verifierafter a successful edit when before/after material is available.- Return to the router if the user changes from named-file mutation to returned-text rewriting.
- Return to the router for consequential authorship interpretation rather than answering it locally.
Senior-developer implementation lens
Apply the agency-senior-developer lens encoded in ../avoid-ai-writing-router/references/agency-role-lenses.md:
- read before writing,
- use the narrowest available edit or patch mechanism,
- retain a before snapshot for verification,
- propagate write failures instead of reporting success,
- re-read the changed region,
- keep mutation and verification evidence distinct.
Do not claim a file was edited because a patch was merely proposed.
Conditional representation guard
If the named file contains an image/video prompt, storyboard, shot description, or creative brief that describes people, preserve identity-sensitive details using the agency-inclusive-visuals-specialist lens.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago Changed 98cb53e2fa88
- 6d ago First seen · 153 lines · 43 tokens per session scan A 8a798dbf18fa
file-edit-in-place is a skill published in the GitHub repository PracticalSwan/agent-skills (14 stars, last pushed 4d ago), licensed MIT. It adds 43 tokens to every session and 1,487 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.
Other skills, from other repositories
pre-edit-safety-gate
Prepare a safe, current, and maintainable code change before editing. Use before a cohesive code or workflow change to assess the request and existing structure, then choose a local change, reuse, extension, or necessary refactor with clear ownership. Do not use to block ordinary TDD or authorized refactors.
inno-figure-gen
Generate/edit images with Nano Banana Pro (Gemini 3 Pro Image).
file-manager
A file and folder management helper for organizing files on a computer.
File Organizer
Organize and rename files based on content analysis.
curl-recipes
Targeted curl patterns for debugging HTTP services, testing API endpoints, inspecting TLS, and measuring request timing. Micro-skill — composable with network, ssl-tls, api, and webhook debugging workflows.
doc_typeset
A document layout tool that turns content and design settings into styled HTML. It includes templates for contracts, academic papers, official documents, business reports, meeting notes, research reports, and annual reports.