ai-instructions: Skill for Claude Code

.github/skills/add-content-to-file/SKILL.md

add-content-to-file is a skill for Claude Code from lsampaioweb/ai-instructions. It costs 20 tokens per session (439 once invoked), scanned A, original, MIT.

A file-editing helper for Markdown and plain-text files. It adds, updates, or removes duplicate content while keeping the file’s existing structure and formatting.

In plain words
What is it for?
Use it to insert or merge supplied content into a specific file, update an existing matching passage, or identify a suitable section when there is no exact heading match.
Why use it?
It reduces the risk of placing text in the wrong section, adding duplicates, or making unrelated formatting changes. It stops when the target file or content to add is missing.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

This is lsampaioweb/ai-instructions's own configuration. It tells Claude Code how to work on ai-instructions itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-instructions configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/lsampaioweb/ai-instructions/main/.github/skills/add-content-to-file/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/lsampaioweb/ai-instructions

Made for: Claude Code.

Wrote 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.

agentmods badge for add-content-to-file

README.md
[![agentmods](https://agentmods.dev/badge/skills/lsampaioweb/ai-instructions/add-content-to-file/github.svg)](https://agentmods.dev/skills/lsampaioweb/ai-instructions/add-content-to-file)
Your own site
<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.

agentmods 80×15 button for add-content-to-file

Your own site · 80×15
<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>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 439 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 12d ago against content hash 56b792077d2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.github/skills/add-content-to-file/SKILL.md · 53 lines

What it actually says

Add Content to a File

1. Inspect the File

  1. Read the target file.
  2. Identify its headings, sections, list patterns, and style conventions.
  3. Find an exact heading match for the requested content.
  4. Find an exact content match.
  5. 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
Changes

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.

  1. 12d ago Changed · -3 lines · -43 tokens per session 56b792077d2e
  2. 2mo ago First seen · 56 lines · 63 tokens per session scan A 4370b9bd595d

Subscribe to this mod's changes

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.

Related

add-content-to-file compared with skills from other repositories

add-content-to-file next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-content-to-filelsampaioweb/ai-instructionsSkill15d agoMITA20Claude Code
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143ktodayMITA103Claude Code