skills: Instructions file for Codex

AGENTS.md

skills AGENTS.md is an instructions file for Codex, OpenCode from ogromwang/skills. It costs 590 tokens per session, scanned A, original, MIT.

Repository instructions for creating and checking Claude skills, which are reusable sets of agent guidance and tools.

In plain words
What is it for?
Use them when adding a skill under `claude-skills/`, writing its `SKILL.md`, adding scripts or reference files, updating the README, and running validation.
Why use it?
They give contributors a consistent folder layout, required metadata, script rules, and validation steps. This reduces missing files and incorrectly formatted skills.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: positional $N argument; mentions AGENTS.md.

This is ogromwang/skills's own configuration. It tells Codex and OpenCode how to work on skills 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 skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ogromwang/skills. 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/ogromwang/skills/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/ogromwang/skills

Made for: Codex, OpenCode.

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 skills AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ogromwang/skills/agents-md/github.svg)](https://agentmods.dev/instructions/ogromwang/skills/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/ogromwang/skills/agents-md"><img src="https://agentmods.dev/badge/instructions/ogromwang/skills/agents-md/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 skills AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ogromwang/skills/agents-md"><img src="https://agentmods.dev/badge/instructions/ogromwang/skills/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 590 This file is loaded in full into every session.
When invoked 590 The same file — it is already loaded in full.
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.00590 $0.00590
Opus 5.5 $0.00236 $0.00236
Sonnet 5.5 $0.00118 $0.00118
Haiku 4.5 $0.00059 $0.00059

Measured 2mo ago against content hash dea8f670b9eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

skills AGENTS.md 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 2mo 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.

AGENTS.md · 108 lines

What it actually says

AGENTS.md

当您需要为本项目添加新的 Claude Skill 时,请遵循以下规范。

项目结构

claude-skills/
├── skill-name/
│   ├── SKILL.md              # 必需:技能定义
│   ├── scripts/              # 可选:执行脚本
│   ├── references/           # 可选:参考资料
│   └── assets/               # 可选:模板资源
└── AGENTS.md                 # 本文件

创建新 Skill 步骤

  1. 在 claude-skills/ 下创建目录
  2. 创建 SKILL.md,包含 YAML frontmatter 和说明
  3. 如需要,在 scripts/ 添加执行脚本
  4. 更新 README.md 的 Skills 表格

SKILL.md 格式

必须包含 YAML frontmatter:

---
name: skill-name              # 小写字母+连字符,1-64字符
description: 技能描述...       # 1-1024字符,说明做什么和何时使用
---

建议的正文结构:

# 技能标题

## 使用场景

- 用户可能说的话...
- 触发条件...

## 工作流程

**始终使用脚本执行**:
```bash
bash scripts/script.sh <参数>

详细说明

[Claude 如何执行此任务]

注意事项

[边界情况和错误处理]


## 脚本规范

### 必须使用 `set -e`:

```bash
#!/bin/bash
set -e

使用颜色输出:

RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m'

info() { echo -e "${GREEN}→${NC} $1"; }
warn() { echo -e "${YELLOW}⚠${NC} $1"; }
error() { echo -e "${RED}✗${NC} $1" >&2; }

必须包含:

  • -h 或 --help 参数
  • 危险操作的用户确认
  • 清晰的错误信息

参考示例

参考现有 skill 结构:

  • git-merge - 完整的 SKILL.md + scripts 示例

验证

使用 skills-ref 验证:

skills-ref validate ./skill-name

添加到项目

  1. 创建 skill 目录和文件
  2. 确保脚本有执行权限:chmod +x scripts/*.sh
  3. 更新 README.md 的 Skills 表格
  4. 运行验证工具检查
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. 2mo ago First seen · 108 lines · 590 tokens per session scan A dea8f670b9eb

Subscribe to this mod's changes

skills AGENTS.md is an instructions file published in the GitHub repository ogromwang/skills (3 stars, last pushed 7mo ago), licensed MIT. It adds 590 tokens to every session, about $0.0024 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

skills AGENTS.md compared with instructions from other repositories

skills AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
skills AGENTS.mdogromwang/skillsInstructions file37mo agoMITA590Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot