AGENTS.mdA

AGENTS.md from suink/diana is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add suink/diana/AGENTS.md@git:20261101.0873d0d

Pins git:20261101.0873d0d in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
suink/diana
Path
AGENTS.md
Versions recorded
5
Latest version
git:20261101.0873d0d, committed Nov 1, 2026
First version recorded
Oct 28, 2026
Size
10,458 bytes
Repository stars
34
License
a license file GitHub does not identify

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Diana Agent Instructions

## 语言

始终用中文回复用户,长任务中的进度更新和最终总结也一样。代码、标识符、提交消息和 PR 标题沿用各自已有的语言惯例。

## 提交与 PR

### 提交

- 提交消息正文不得包含 `Co-Authored-By`、`Claude-Session` 等任何代理署名尾注。
- 只暂存自己改过的文件(`git add <路径>`,不用 `git add -A`)。同一仓库可能有别的 Claude 会话在工作;提交前先看 `git status`,不碰与本次改动无关的已暂存内容。

### PR 标题与正文

- PR 标题与正文描述改动本身,不署代理名。
- PR 标题必须描述实际改动,不能只写版本号或编号。
- PR 正文开头必须是一段说明,并包含 `## Why` 小节,否则 PR 正文的 CI 检查会失败。
- PR 正文必须包含:改了什么、为什么改、用户或开发者影响、Bug 根因(修复类 PR)、验证方式。
- 在对话、Release 或其他文档中引用 PR 时,不能只放裸编号,例如只写 `#4`;必须同时给出该 PR 的改动标题或一句话摘要。

### 合并流程

用户说「合并」或要求合并时:

1. rebase 到最新的 `origin/main` 并解决冲突。
2. 推送后等待所有 CI 检查跑完。等待后重新查一次状态,不得拿过期的运行结果报告「CI 通过」。
3. 用 `gh pr merge --squash --delete-branch` 压缩合并。
4. 清理本地分支和 worktree。

无法开启自动合并时,等 CI 跑完后手动合并。CI 全绿后不再二次确认,也不反复复查。

## 排查与诊断

- 读过相关代码或查过 miku(SSH)上的生产日志/trace 之前,不得断言根因。不确定就直说并继续查;QQ API 变更这类外部平台行为用网页搜索核实。
- 之前任务里的只读限制不沿用到新任务。用户要求时,可以在 miku 上做端到端测试。

## 测试

- Go:本地用 `scripts/test-serial.sh` 跑改动涉及的包(不传参数时自动按相对 `origin/main` 的改动挑包,也可以传包路径),默认跑一遍普通测试(本机时区),改了并发代码时用 `DIANA_TEST_RACE=1` 打开 `-race`。PR 的 CI 跑全仓库 `go test ./...`(UTC),本地不再每次跑全量。全仓库 `go test -race ./...` 只在打 `v*` 标签发版时由 Go Race Test 跑一次,挡在 Docker 发布和 GitHub Release 前面;PR 和 Canary 不跑。
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add suink/diana/AGENTS.md@sha256:5538f984bb2a4bf8

The line at the top of this page pins the label git:20261101.0873d0d, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_2vhhbsixzdh4gcsu.svg)](https://markdownregistry.com/a/art_2vhhbsixzdh4gcsu)

0 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Oct 28, 2026 and Nov 1, 2026, more than one a day.

versioncommittedcommitsizeaudit
git:20261101.0873d0d latest2026-11-01 0873d0d 10,458 BA view · diff
git:20261030.456e6fc2026-10-30 456e6fc 10,142 BA view · diff
git:20261030.75f97d92026-10-30 75f97d9 9,545 BA view · diff
git:20261030.7fc009f2026-10-30 7fc009f 9,455 BA view · diff
git:20261028.f3293252026-10-28 f329325 9,169 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (10458 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

suink/diana · 34 stars · license a license file GitHub does not identify · pushed 2026-11-08 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_2vhhbsixzdh4gcsu
GET https://markdownregistry.com/api/v1/resolve?ref=suink/diana/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/5538f984bb2a4bf840fd62d7a31426f92eb21d20ce02fbb51fcf76c00f688e87

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from suink/diana

hello-plugin SKILL.md skill
suink/diana · examples/plugin-template/SKILL.md · 示例插件的 Skill 定义,说明插件在对话中如何工作。
git:20260919.1f904ce · audit A · 34 stars
skill-bundle SKILL.md skill
suink/diana · examples/skill-bundle-plugin/SKILL.md · 演示通过插件包使用 Skills 和固定脚本入口。
git:20261003.17c4bef · audit A · 34 stars
hello SKILL.md skill
suink/diana · examples/skill-bundle-plugin/skills/hello/SKILL.md · 用户要测试插件脚本、或要求用示例脚本问候某人时使用。
git:20261003.17c4bef · audit A · 34 stars
bot-protocol SKILL.md skill
suink/diana · skills/bot-protocol/SKILL.md · Choose the current platform's supported protocol tools for group information and moderation, or Diana's configuration…
git:20261105.c4f1b61 · audit A · 34 stars
diana-install SKILL.md skill
suink/diana · skills/diana-install/SKILL.md · 安装或升级 Diana 服务端,支持 Linux、macOS、Windows、安卓 Termux 和 Docker。用于用户要求在目标机器部署 Diana 的场景,不用于配置机器人业务或发布 Diana 版本。
git:20261101.0873d0d · audit A · 34 stars
platform SKILL.md skill
suink/diana · skills/platform/SKILL.md · Read group information and members across platforms, recall the bot's own recently sent messages, and perform…
git:20261028.d0401be · audit A · 34 stars

Every file in suink/diana

Other files named AGENTS.md

AGENTS.md AGENTS.md file
morluto/rea · AGENTS.md
git:20261102.920d634 · audit A · 433,876 stars
AGENTS.md AGENTS.md file
obra/superpowers · AGENTS.md
git:20261020.b739a8a · audit A · 314,583 stars
AGENTS.md AGENTS.md file
affaan-m/ecc · AGENTS.md
git:20261030.f29e332 · audit A · 299,696 stars
AGENTS.md AGENTS.md file
firecrawl/firecrawl · AGENTS.md
git:20261008.5a75dca · audit A · 199,595 stars
AGENTS.md AGENTS.md file
dietrichgebert/ponytail · AGENTS.md
git:20261008.2a1fe84 · audit A · 185,249 stars
AGENTS.md AGENTS.md file
graphify-labs/graphify · AGENTS.md
git:20260926.98d73fe · audit A · 144,492 stars
AGENTS.md AGENTS.md file
garrytan/gstack · AGENTS.md
git:20261107.ef99eb5 · audit A · 140,694 stars
AGENTS.md AGENTS.md file
juliusbrussee/caveman · AGENTS.md
git:20261106.e45976c · audit A · 118,366 stars

Browse by kind, by grade A, or by owner.