ok-skills: Instructions file for Codex

AGENTS.md

ok-skills AGENTS.md is an instructions file for Codex, OpenCode from mxyhi/ok-skills. It costs 521 tokens per session, scanned A, original, Apache-2.0.

A repository instruction file describing coding practices, task workflow, tool choices, and when to record reusable knowledge. It guides an AI coding assistant working in that repository.

In plain words
What is it for?
Use it to direct repository tasks such as architecture analysis, planning, code-quality work, domain modelling, knowledge sharing, and TypeScript or asynchronous-code conventions.
Why use it?
It gives the assistant consistent rules for checking current code, planning complex work, validating changes, and applying the project's language and documentation conventions.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mxyhi/ok-skills/agents-md"><img src="https://agentmods.dev/badge/instructions/mxyhi/ok-skills/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 521 This file is loaded in full into every session.
When invoked 521 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.00521 $0.00521
Opus 5.5 $0.00208 $0.00208
Sonnet 5.5 $0.00104 $0.00104
Haiku 4.5 $0.00052 $0.00052

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

Security

Grade A, and why

ok-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 29d 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 · 36 lines

What it actually says

核心原则

  • 遵循 KISS,优先选择简单、可维护的方案。
  • 事实优先:先检查当前源码、配置、日志和运行状态,再引用历史结论。
  • 以可验证的性能目标指导优化,避免无测量的过度设计。
  • 所有用户可见回复、方案和任务清单使用中文。

工作流程

  • 复杂任务:调研 → 方案 → 确认 → 分解 → 执行 → 验证。
  • 简单任务:直接执行并完成必要验证。
  • 涉及外部库、API、CLI 或可能变化的行为时,查阅最新文档和源码。
  • 完成任务后自动判断是否产生了可复用的经验、命令、坑点或验证方式;有价值时自动更新 memory,没有新增经验时跳过。
  • 当前源码和运行状态优先于历史 session、memory 或截图。

Skill 使用

  • 涉及 skills、rules、docs、env、知识同步或知识沉淀时,默认使用 teamai 管理。
  • session 产生可复用经验时,使用 teamai-share-learnings 归档。
  • 涉及代码库架构、组件关系、跨模块分析或代码知识库构建时,使用 team-wiki-codebase,不限定仓库数量。
  • 涉及最小实现、文件化计划、代码质量或领域建模时,按任务需要使用 ponytail、planning-with-files、karpathy-guidelines 和 domain-modeling。

代码规范

  • 关键业务逻辑、复杂决策和异常路径必须有必要的注释与结构化日志。
  • IO 密集场景优先异步实现。
  • TypeScript 禁止使用 any 和 as any;公共接口按需要显式声明类型。
  • 代码达到可读性阈值后拆分模块。
  • 默认不保证向后兼容;破坏旧格式时记录迁移边界和影响。
  • 领域概念、边界、状态模型或重要架构决策变化时,使用 domain-modeling,并维护 CONTEXT.md 或 ADR。

工具提示

  • 网络异常时可先执行 source ~/proxy.sh。
  • 可使用 gh、opensrc 和 kimi bridge。
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. 29d ago First seen · 36 lines · 521 tokens per session scan A ca95845a6b91

Subscribe to this mod's changes

ok-skills AGENTS.md is an instructions file published in the GitHub repository mxyhi/ok-skills (505 stars, last pushed 7d ago), licensed Apache-2.0. It adds 521 tokens to every session, about $0.0021 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-09-26.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens