用途分类 / 文档处理
Writing For Agents Skill 安全审计
作者说它能做什么(原文)
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
第三方安全检查结论
这次检查未发现明显风险
- 已检查文件
- 3
- 发现的风险
- 0
会不会运行危险命令?检查是否下载程序后直接运行、让他人远程控制电脑,或藏起要运行的命令。未发现风险
会不会泄露文件和密钥?检查是否发送含密码或密钥的文件,以及代码里是否直接写了密钥。未发现风险
会不会删除文件或一直在后台运行?检查是否大范围删除文件、改写磁盘,或设置自动启动。未发现风险
会不会绕过安全保护?检查是否跳过网站安全验证、开放过多文件权限,或取消操作前的确认。未发现风险
会不会误导 AI 或隐藏内容?检查工作说明是否要求 AI 忽略你的指令、干扰检查结果,或夹带看不见的文字。未发现风险
会不会偷偷改推广链接或收款方?检查是否强制替换推广链接或收款对象,同时要求隐瞒更改。未发现风险
Skill 逻辑拆解
该 Skill 是供代理编写或修改 Skill、AGENTS.md、CLAUDE.md 等代理文档时参考的写作指南;提供的内容只有说明文档和界面元数据,没有脚本、安装命令、网络请求或凭据处理逻辑。
查看原文
---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"该指南建议按需将参考资料放到独立文件,并通过明确的“上下文指针”加载;SKILL.md 对技能专属机制的引用在所提供文件中存在。
查看原文
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.它区分模型自动调用与用户手动调用:保留 description 可让模型自主发现技能;设置 disable-model-invocation: true 则要求用户显式调用。该选择会影响代理何时采用此指南,但文中没有要求扩大文件、账户或网络权限。
查看原文
- 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.指南提醒作者避免仅靠否定措辞,但明确保留无法正向表达的硬性护栏,并要求同时写出目标行为;因此该段本身不是绕过安全控制的指令。
查看原文
**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.从这里开始 · 工作说明SKILL.md
writing-for-agents文件引用关系图
2 处引用哪些文件发起引用引用了什么
文件与检查记录3 个文件
检查范围与遗漏
逐文件查看涉及的内容
下方列出本次涉及的原文范围;纳入检查不代表已查清所有问题。
SKILL.md已纳入全文SKILL-MECHANICS.md已纳入全文agents/openai.yaml已纳入全文
这份报告只针对上方版本。我们看了拿到的代码和说明文件,没有实际运行 Skill,也没有检查它另外安装的软件包。因此,这不是“保证安全”的承诺;换了版本或使用环境,结果也可能不同。
SKILL-MECHANICS.md配套文件SKILL.md工作说明agents/openai.yaml配套文件
- 读取了多少行
- 109
- 文件校验值(用于核对版本)
- 3c24f17ca12bbaa0b4a644fa9c9b51a36aed3940132d2fd593c581a861429724