md2wechat-lite: Instructions file for Codex

AGENTS.md

md2wechat-lite AGENTS.md is an instructions file for Codex, OpenCode from geekjourneyx/md2wechat-lite. It costs 1,032 tokens per session, scanned A, original, MIT.

A set of project instructions for md2wechat-lite, a Go command-line tool that turns Markdown into WeChat article drafts and uploads media. It describes the project layout, configuration, image rules, and checks before submitting changes.

In plain words
What is it for?
Building, testing, configuring, and extending the CLI, including article covers, news images, batch uploads, JSON output, and required compilation checks.
Why use it?
It gives coding agents the project-specific constraints they need to avoid invalid inputs and incomplete releases.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 md2wechat-lite AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/geekjourneyx/md2wechat-lite/agents-md.svg)](https://agentmods.dev/instructions/geekjourneyx/md2wechat-lite/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/geekjourneyx/md2wechat-lite/agents-md"><img src="https://agentmods.dev/badge/instructions/geekjourneyx/md2wechat-lite/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,032 This file is loaded in full into every session.
When invoked 1,032 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.01032 $0.01032
Opus 5 $0.00516 $0.00516
Sonnet 5 $0.00206 $0.00206
Haiku 4.5 $0.00103 $0.00103

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

Security

Grade A, and why

md2wechat-lite 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 8d 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 · 116 lines

How it starts

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

md2wechat-lite - Agent 工作规范

本文件面向在本仓库内工作的代码智能体(Agent),用于统一开发、测试、文档与发布流程。

1. 项目概述

  • 项目名:md2wechat-lite
  • CLI 名:md2wx
  • 仓库:https://github.com/geekjourneyx/md2wechat-lite
  • 语言:Go 1.24+
  • CLI 框架:cobra

2. 项目结构

md2wechat-lite/
├── cli/
│   ├── main.go
│   ├── article-draft.go
│   ├── newspic-draft.go
│   ├── batch-upload.go
│   ├── config.go
│   ├── themes.go
│   ├── pkg/
│   │   ├── api/
│   │   ├── config/
│   │   ├── themes/
│   │   └── output/
│   └── scripts/
├── skills/
│   └── md2wechat-lite/
│       └── SKILL.md
├── AGENTS.md
├── CLAUDE.md
├── CHANGELOG.md
└── README.md

3. 开发前置认知

  1. 本项目是“薄命令层 + API 客户端”架构,核心业务在服务端,CLI 负责参数校验、请求组装、结果输出。
  2. 配置文件路径为 ~/.md2wx/config.yaml,但文件内容是 key=value 形式(不是 YAML 结构化对象)。
  3. 输出格式以 JSON 为主(cli/pkg/output)。

4. 图片与封面约束(必须遵守)

  1. article-draft --cover-imagenewspic-draft --imagesbatch-upload --images 仅支持公网 URL。
  2. 不支持本地图片路径(如 ./a.jpg)与通配符(如 *.jpg)。
  3. article-draft 不支持通过 stdin 管道直接读取 Markdown(如 cat a.md | md2wx article-draft ...)。
  4. 为避免服务端 invalid media_id 等错误,article-draft 建议始终传 --cover-image

5. 提交前检查清单

按顺序执行:

  1. 编译检查
go build -o md2wx ./cli
  1. 单元测试与静态检查
go test ./cli/pkg/...
go vet ./cli/...
  1. 文档一致性检查
  • 代码变更与 skills/md2wechat-lite/SKILL.md 一致。
  • README.md 示例命令与当前实现一致。
  • 涉及图片参数时仅使用 URL 示例,不出现本地路径/通配符误导。
  1. SKILL 规范检查(skills/md2wechat-lite/SKILL.md
  • 包含 YAML frontmatter(name + description)。
  • name 为小写连字符格式,长度小于 64。
  • description 使用第三人称并覆盖功能与场景。
  • 主体内容控制在 500 行内,使用渐进式披露。

6. 安全与示例数据规范

  1. 文档、帮助文案、安装脚本、测试样例中不得使用疑似真实凭据。
  2. 示例统一使用占位值,例如:
  • wx_appid_example
  • api_key_example
  • wx_test_appid_example
  1. 不提交真实 AppID/AppSecret/API Key

7. Commit 规范

提交格式:

<type>(<scope>): <subject>

常用 type

  • feat
  • fix
  • docs
  • style
  • refactor
  • test
  • chore

8. 版本与发版

  1. 修改功能或文档后,按需更新 CHANGELOG.md[Unreleased]
  2. 发版前确认构建、测试、文档一致性全部通过。
  3. Tag 与 release 版本号保持一致(示例:v1.0.x)。

9. 参考链接

  • API 文档:https://md2wechat.app/api-docs
  • 主题预览:https://md2wechat.app/theme-gallery
  • 项目仓库:https://github.com/geekjourneyx/md2wechat-lite
  • Skill 仓库:https://github.com/geekjourneyx/md2wechat-skill

Read the full file on GitHub · 116 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. 8d ago First seen · 116 lines · 1,032 tokens per session scan A 18906b25f9b8

Subscribe to this mod's changes

md2wechat-lite AGENTS.md is an instructions file published in the GitHub repository geekjourneyx/md2wechat-lite (87 stars, last pushed 6mo ago), licensed MIT. It adds 1,032 tokens to every session, about $0.0052 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-30.

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,153 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