wenyan.skill: Instructions file for Codex

AGENTS.md

wenyan.skill AGENTS.md is an instructions file for Codex, OpenCode from Cerlancism/wenyan.skill. It costs 1,636 tokens per session, scanned A, original, MIT.

A coding skill for Wenyan, a programming language written with Classical Chinese grammar that can compile to JavaScript, Python, or Ruby. It also describes moving existing TypeScript, JavaScript, Python, or Ruby code into Wenyan.

In plain words
What is it for?
Use it to read, write, compile, run, translate, and debug Wenyan programs, or to migrate code between Wenyan and the supported languages.
Why use it?
It helps an agent work with unfamiliar language syntax and compilation targets without needing to infer the language rules from scratch.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 wenyan.skill AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/cerlancism/wenyan.skill/agents-md.svg)](https://agentmods.dev/instructions/cerlancism/wenyan.skill/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/cerlancism/wenyan.skill/agents-md"><img src="https://agentmods.dev/badge/instructions/cerlancism/wenyan.skill/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,636 This file is loaded in full into every session.
When invoked 1,636 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.01636 $0.01636
Opus 5 $0.00818 $0.00818
Sonnet 5 $0.00327 $0.00327
Haiku 4.5 $0.00164 $0.00164

Measured 7d ago against content hash 357a3ec4c7b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

wenyan.skill 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 7d 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 · 121 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

項目

AI agent skill→教agent讀寫調試遷移wenyan-lang(文言)代碼。文言以古漢語文法編程,編譯至JS/Python/Ruby。含既有TS/JS/Python/Ruby代碼庫→文言遷移能力。

命令

npm install                              # 安裝依賴(@wenyan/cli)
npx wenyan file.wy                       # 編譯並執行.wy
npx wenyan -c file.wy                    # 僅編譯→stdout JS
npx wenyan -c -l py file.wy              # 編譯→Python
npx wenyan -c -l rb file.wy              # 編譯→Ruby
npx wenyan -e '吾有一言。曰「「問天地好在」」。書之。'  # 行內求值
npx wenyan -r file.wy                    # 渲染輸出
npx wenyan -c --roman pinyin file.wy     # 羅馬化標識符
npx wenyan -i                            # 交互REPL

架構

skills/wenyan/                  # 已建skill(agent消費端)
  SKILL.md                      # skill主定義——語法速查、遷移指南、編譯指令
  references/
    syntax.md                   # 語法全表 wenyan↔JS對照
    stdlib.md                   # 標準庫函數
    patterns.md                 # 常見模式與慣用法
.agents/skills/humanizer/       # 第三方skill(blader/humanizer)
references/                     # gitignored,僅.keep受版控
  .keep                         # 佔位檔,確保目錄存在
  wenyan.wiki/                  # wenyan-lang wiki全文(語言規範語料)——需手動clone
  wenyan/                       # wenyan-lang repo文檔+示例——需手動clone
package.json                    # devDep: @wenyan/cli用於編譯驗證
skills-lock.json                # 第三方skill版本鎖

核心交付物為skills/wenyan/SKILL.md——agent靠此檔學文言語法、編譯流程、代碼遷移。references/為原始語料(gitignored),SKILL.md為精煉後agent可消費之速查。

設置

npm install                                                          # 安裝依賴
git clone https://github.com/wenyan-lang/wenyan.wiki.git references/wenyan.wiki  # clone wiki
git clone https://github.com/wenyan-lang/wenyan.git references/wenyan            # clone repo

references/下除.keep外皆被gitignore,clone後不會影響版控。

參考文檔

文言語言文檔在references/wenyan.wiki/。要文:

  • Syntax-Cheatsheet.md — 語法全表,wenyan↔JS對照
  • Variables.md — 型(數/言/爻/列/物/元)、宣告、賦值
  • Function-Call.md — 棧式嵌套調用、自動柯里化
  • Error-Handling.md — try/catch(姑妄行此/如事不諧/乃作罷)
  • Importing.md — 模塊(吾嘗觀…之書/今有=導出/吾有=私有)
  • Macros.md — 語法糖(或云/蓋謂)
  • Standard-Library-Cheatsheet.md — 標準庫
  • Compiler-API.md@wenyan/core compile()/execute() API

Read the full file on GitHub · 121 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. 7d ago First seen · 121 lines · 1,636 tokens per session scan A 357a3ec4c7b9

Subscribe to this mod's changes

wenyan.skill AGENTS.md is an instructions file published in the GitHub repository Cerlancism/wenyan.skill (2 stars, last pushed 4mo ago), licensed MIT. It adds 1,636 tokens to every session, about $0.0082 per session on Opus 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

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

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 · 6,785 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,296 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,469 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens