Borrowing it
Nothing to install: this file belongs to lsampaioweb/ai-instructions. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/lsampaioweb/ai-instructions/main/.github/skills/add-content-to-file/SKILL.mdgit clone --depth 1 https://github.com/lsampaioweb/ai-instructionsWrote 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/lsampaioweb/ai-instructions/add-content-to-file)<a href="https://agentmods.dev/skills/lsampaioweb/ai-instructions/add-content-to-file"><img src="https://agentmods.dev/badge/skills/lsampaioweb/ai-instructions/add-content-to-file/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/lsampaioweb/ai-instructions/add-content-to-file"><img src="https://agentmods.dev/badge/skills/lsampaioweb/ai-instructions/add-content-to-file.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.00020 | $0.00439 |
| Opus 5.5 | $0.00008 | $0.00176 |
| Sonnet 5.5 | $0.00004 | $0.00088 |
| Haiku 4.5 | $0.00002 | $0.00044 |
Grade A, and why
add-content-to-file 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 12d 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.
What it actually says
Add Content to a File
1. Inspect the File
- Read the target file.
- Identify its headings, sections, list patterns, and style conventions.
- Find an exact heading match for the requested content.
- Find an exact content match.
- If no exact match exists, find the closest heading based on keyword overlap.
2. Resolve the Request
- Choose exactly one insertion target.
- Prefer an exact heading match.
- If no exact heading match exists, use the nearest section based on heading keywords.
- If no suitable section exists, propose a new section.
- Place the new content where it best fits within the target section.
- Append it to the end of the section only when it belongs there.
- Preserve the existing spacing, indentation, and capitalization.
- Do not make unrelated formatting changes.
- If duplicate content exists, update it instead of adding a second copy.
- Correct only clear grammar errors, such as subject-verb agreement or missing articles.
3. Safety Rules
- Execution boundary: Apply the edit only after presenting the plan and receiving the user's explicit confirmation.
- No rephrasing: Never rephrase existing sentences.
- Grammar scope: Limit grammar corrections to those described in the rules above.
4. Review Plan Format
Use this exact markdown schema:
Scope
- Target:
- Mode: <read-only | apply-after-confirmation>
Result
- Summary: <ADDED | UPDATED | SKIPPED>
Evidence
- : -
- Duplicates: <none | item1; item2>
- Improvements: <none | item1; item2>
Next Action
- <single minimal next step or
none>
Verdict
- READY | NEEDS FIXES | BLOCKED
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.
- 12d ago Changed · -3 lines · -43 tokens per session 56b792077d2e
- 2mo ago First seen · 56 lines · 63 tokens per session scan A 4370b9bd595d
add-content-to-file is a skill published in the GitHub repository lsampaioweb/ai-instructions (1 stars, last pushed 5d ago), licensed MIT. It adds 20 tokens to every session and 439 once invoked, about $0.0001 per session on Opus 5.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-08-31.
add-content-to-file compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-content-to-filelsampaioweb/ai-instructions | Skill | 1 | 5d ago | MIT | A | 20 | Claude Code |
| imagegenopenai/codex | Skill | 133k | yesterday | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 99k | yesterday | Apache-2.0 | A | 19 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 79k | 4d ago | MIT | A | 200 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 313k | 3d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 143k | today | MIT | A | 95 | Claude Code |
| next-partial-prefetching-adoptionvercel/next.js | Skill | 143k | today | MIT | A | 103 | Claude Code |