oh-story-claudecode: Instructions file for Codex

AGENTS.md

oh-story-claudecode AGENTS.md is an instructions file for Codex, OpenCode from zenstory-ai/oh-story-claudecode. It costs 1,190 tokens per session, scanned A, original, MIT.

Repository-specific instructions for coding agents maintaining the oh-story-claudecode writing-skill collection. They describe the repository, its file rules, validation checks, generated files, and required notes for important changes.

In plain words
What is it for?
Use them before editing skills, references, agent templates, scripts, or workflow numbering in this repository. They guide validation and explain which generated files and documentation must be updated.
Why use it?
They prevent an agent from confusing the repository's own instructions with instructions generated for users, or from making changes that break its checks and generated integrations.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is zenstory-ai/oh-story-claudecode's own configuration. It tells Codex and OpenCode how to work on oh-story-claudecode 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 oh-story-claudecode configures →

About the project

oh-story-claudecode is a skill package for planning, analyzing, and writing Chinese web fiction, covering both short and long novels. It is intended for writers using Claude Code, Codex, OpenClaw, and other supported AI-agent environments, with workflows for market research, story breakdowns, drafting, editing, and cover creation. The catalogue entries are the package's skills, commands, agents, and plugin.

zenstory-ai/oh-story-claudecode · 7,970 stars · on GitHub · zenstory.ai

Reuse

Borrowing it

Nothing to install: this file belongs to zenstory-ai/oh-story-claudecode. 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/zenstory-ai/oh-story-claudecode/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/zenstory-ai/oh-story-claudecode

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 oh-story-claudecode AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/zenstory-ai/oh-story-claudecode/agents-md"><img src="https://agentmods.dev/badge/instructions/zenstory-ai/oh-story-claudecode/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,190 This file is loaded in full into every session.
When invoked 1,190 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.01190 $0.01190
Opus 5.5 $0.00476 $0.00476
Sonnet 5.5 $0.00238 $0.00238
Haiku 4.5 $0.00119 $0.00119

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

Security

Grade A, and why

oh-story-claudecode 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 27d 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 · 34 lines

How it starts

The opening of the file, as written. The whole thing — 34 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

本文件是 oh-story-claudecode 仓库自身的开发指引,给维护这个 skill 套件的 coding agent 读。它不是部署到用户写作项目里的那份 AGENTS.md;用户项目的 AGENTS.md / CLAUDE.md 由 story-setup 按 skills/story-setup/references/*/AGENTS.md.tmpl 生成,与本文件无关。

这个仓库是什么

一个网文写作 skill 套件:13 个 skill(skills/<name>/SKILL.md + references/),加上面向 Claude Code、Codex、OpenCode、OpenClaw、Antigravity、ZCode、Reasonix 七个编程 Agent(宿主)的适配层。产品是写在 Markdown 里的写作方法与工作流契约,不是运行时程序。scripts/ 下是仓库自己的守卫、测试和代码生成脚本(索引见 scripts/README.md),不是 skill 运行时脚本。

改动前必须知道的规矩

  • frontmatter 单行键值:description 不用 |/> 块,metadata 是单行 JSON,OpenClaw 依赖这一点。
  • 不跨 skill 引用文件:除基础组件 browser-cdp 外,一个 skill 的 SKILL.md / references 不得引用另一个 skill 的文件;共享内容走 scripts/shared-references.json / scripts/shared-assets.json 登记。
  • 热路径有字数预算:SKILL.md、references 和 agent 模板受 scripts/doc-budget.json 约束,加正文要么删等量旧文本,要么显式调高预算并说明。每个角色每次调用(含条件分支与会同时发生的叠加组合)的加载硬上限 35K(去空白字符,path_ceiling),豁免只能列进 path_ceiling.exempt 并写明原因;条件读取默认互斥,会叠加的要登记进 stacking,腾字数优先把少见时刻的规则搬进按时刻读的 reference。
  • 工作流编号是契约:Step / Phase / Stage 编号与引用绑定由 skill-numbering.py 守卫,重排要跑它的级联而不是手改。
  • 改 agent 模板或 CLAUDE.md.tmpl 后必须重新生成适配层(OpenCode、Codex、Antigravity 等)并提交生成结果,否则适配层 CI 红。
  • skill 文档禁止裸调 python3,须走 python3 → python → py 探测。
  • 改名或移动任一 scripts/ 脚本,要同步 .github/workflows/*.yml、CONTRIBUTING.md、scripts/README.md 和调用它的兄弟脚本。
  • 本文件不得出现 story-setup 用来识别已部署项目的标记文本(各端 AGENTS.md.tmpl 的标题行),否则在仓库根运行 story-setup 会把仓库误判为已部署项目。

完整规则、各编程 Agent 适配维护步骤与提交流程见 CONTRIBUTING.md。

验证

强制清单以 .github/workflows/cross-platform.yml 为准;提交前按 CONTRIBUTING.md「CI 检查」里的本地命令跑一遍与改动相关的守卫,至少 bash scripts/static-check.sh、python3 scripts/skill-numbering.py check、bash scripts/check-doc-budget.sh、bash scripts/check-shared-files.sh。

重要改动必须留笔记

决策笔记放在 .agents/notes/{proposed,implemented,rejected}/{feature,bug-fix,simplification,architecture,process,testing}/yyyy-mm-dd-topic.md,沿用 DeepSeek Harness 的 agent-notes 约定(方法见 https://github.com/czm15053/write-notes-like-deepseek)。正文中文,小节标题保留英文。

Read the full file on GitHub · 34 lines

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. 27d ago Changed · +99 tokens per session 011a9ebd815e
  2. 1mo ago First seen · 34 lines · 1,091 tokens per session scan A 09888d607304

Subscribe to this mod's changes

oh-story-claudecode AGENTS.md is an instructions file published in the GitHub repository zenstory-ai/oh-story-claudecode (7,970 stars, last pushed 2d ago), licensed MIT. It adds 1,190 tokens to every session, about $0.0048 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-19.

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