Writing For Agents Skill Security Audit
What the author says it does (original text)
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
No obvious risks found in this check
- Files checked
- 3
- Risks found
- 0
Inside this skill
This Skill is a writing guide for agents creating or modifying Skills, AGENTS.md, CLAUDE.md, and related agent-facing documents. The provided source contains documentation and interface metadata only, with no scripts, installation commands, network requests, or credential-handling logic.
View source
---name: writing-for-agentsdescription: Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.---interface: display_name: "Writing for Agents" short_description: "Write documents agents consume"The guide recommends moving conditional reference material into separate files reached through explicit context pointers. The referenced skill-mechanics document is present in the supplied source.
View source
When the document you're writing is a skill, read [`SKILL-MECHANICS.md`](SKILL-MECHANICS.md) for frontmatter, invocation choice, and router skills.2. **In-file reference** is consulted on demand. Often a legitimately flat peer-set (every rule of a review on one rung), which is a fine arrangement, not a smell.3. **Disclosed reference** is pushed out into a separate file, reached by a context pointer, loaded only when the pointer fires. Spans a sibling file in the same folder through fully external reference that lives anywhere and any document can point at.It distinguishes model-invoked from user-invoked skills: retaining a description permits autonomous discovery, while disable-model-invocation: true requires explicit user invocation. This affects when an agent adopts the guide, but the text does not request broader file, account, or network permissions.
View source
- A **model-invoked** skill keeps a `description`, so the agent can fire it autonomously, and other skills can reach it. You can still type its name: model-invocation always _includes_ user reach; a description only ever adds agent discovery, never removes the human's. The description is the skill's top-level context pointer, forced to stay loaded at all times: permanent context load in exchange for discoverability. A model-invoked skill whose content is all reference is also one home for shared reference: another skill can invoke it, so reference needed by several skills lives in one place. Mechanics: omit `disable-model-invocation`, and write a model-facing description carrying the trigger branches (the pointer-writing rules in `SKILL.md` apply in full).- A **user-invoked** skill strips the description from the agent's reach: only the human typing its name can invoke it, and no other skill can. Zero context load, but it spends cognitive load: you are the index that must remember it exists. Mechanics: set `disable-model-invocation: true`; the `description` becomes human-facing: a one-line summary, trigger lists stripped.The guide cautions against relying only on negative phrasing, but explicitly preserves hard guardrails that cannot be expressed positively and says to pair them with the desired behavior. The passage itself therefore does not instruct agents to bypass safety controls.
View source
**Negation** is the failure mode beside this lever: steering by prohibition drags the forbidden behaviour into context and makes it _more_ available, not less. _Don't think of an elephant_, and the elephant is all there is; the negation is a weak modifier the strongly-activated concept overruns, so the ban half-reads as an instruction to do the thing. Prompt the **positive**: state the target behaviour ("write one-line comments") so the banned one is never spoken. A prohibition earns its place only as a hard guardrail you cannot phrase positively; even then, pair it with the positive target so attention lands on what to do.File reference map
References: 2Files and check records3 files
Coverage and gaps
Content covered in each file
These are the source ranges included in this check, not a guarantee that every issue has been resolved.
SKILL.mdFull text includedSKILL-MECHANICS.mdFull text includedagents/openai.yamlFull text included
This report is for the version above. We read the available code and instructions without running the skill or checking extra packages it installs. This is not a promise of safety: a different version or setup may behave differently.
SKILL-MECHANICS.mdSupporting fileSKILL.mdInstructionsagents/openai.yamlSupporting file
- Lines read
- 109
- File checksum (to compare versions)
- 3c24f17ca12bbaa0b4a644fa9c9b51a36aed3940132d2fd593c581a861429724