Borrowing it
Nothing to install: this file belongs to rehiy/isrvd. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/rehiy/isrvd/master/AGENTS.mdgit clone --depth 1 https://github.com/rehiy/isrvdWrote 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.
[](https://agentmods.dev/instructions/rehiy/isrvd/agents-md)<a href="https://agentmods.dev/instructions/rehiy/isrvd/agents-md"><img src="https://agentmods.dev/badge/instructions/rehiy/isrvd/agents-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.05213 | $0.05213 |
| Opus 5 | $0.02606 | $0.02606 |
| Sonnet 5 | $0.01043 | $0.01043 |
| Haiku 4.5 | $0.00521 | $0.00521 |
Grade A, and why
isrvd 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 303 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — isrvd Agent 操作指南
本文件是
isrvd仓库根规范入口。子目录可有专项AGENTS.md,目标:可执行、可验证、低歧义。
1) 指令优先级
冲突时:用户明确需求 → 安全稳定性 → 本规范 → 现有代码风格 无法消解时:不泄露敏感信息、不引入破坏性变更、不修改需求范围外逻辑
2) 工作流
- 先理解再改动:定位模块、调用链、类型与边界,不基于猜测修改
- 小步提交:最小可行改动,每步可解释"为什么改、改了什么、如何验证"
- 变更后验证:执行相关静态检查;无法完整验证时说明风险
- 同步更新文档:外部可观察的 API、配置、数据结构、工作流或脚本用法发生变化时同步文档;纯重构、格式整理和内部并发封装无需制造无意义文档差异
3) 项目架构
实际依赖方向
仓库不是单一线性依赖链,当前 import 边界为:
cmd/server ───────────────→ config + internal/registry + internal/server
config ───────────────────→ pkgs/cstore
internal/registry ────────→ config + pkgs/{apisix,caddy,docker,swarm}
internal/service/* ───────→ config / internal/registry / pkgs/*
internal/service/{docker,webssh} → internal/service/shell(终端桥接复用)
internal/server ──────────→ config + internal/registry + internal/service/* + pkgs/* + public
pkgs/:底层客户端、存储适配和 SDK 类型转换;不依赖internal/internal/registry/:根据config创建 APISIX、Caddy、Docker、Swarm 底层实例internal/service/:业务组合、参数校验、稳定 API 类型转换;不得依赖internal/serverinternal/server/:Gin HTTP/WebSocket 入口、路由索引、中间件、服务生命周期与响应封装cmd/server/:仅执行config.Init → registry.Init → server.StartApp
禁止
pkgs/依赖internal/handler中堆叠业务逻辑service/handler直接从配置创建外部客户端;外部客户端统一由registry初始化并注入/引用
内聚与耦合
- 同领域功能聚合同包(
pkgs/docker/、pkgs/swarm/、pkgs/caddy/),类型就近定义,不集中types.go - 层间通过接口或注入解耦;前端全局状态通过 Pinia
usePortal()聚合访问 - 判定:改一个功能只需改一处;若需同时改多个包同名函数,说明内聚不足
4) 代码变更同步文档规范
外部行为变化时必须同步相关说明文档,确保文档与代码一致。仅移动代码、抽取辅助函数、修复缩进、返回对象快照化等不改变外部契约的修改,不要求更新 API 文档。
适用范围
所有涉及以下外部可观察变更的场景:
- 新增/修改/删除 API 路由或参数
- 新增/修改/删除 数据结构(Request/Response 字段)
- 新增/修改/删除 业务逻辑或工作流
- 新增/修改/删除 配置项或环境变量
- 新增/修改/删除 Shell 脚本中的命令或参数
Docs 文件结构
docs/
├── SKILL.md ← 索引 + 决策树 + 常见工作流
├── scripts/
│ ├── api.sh ← Bash API 调用封装
│ ├── api.js ← JavaScript API 调用封装
│ └── api.py ← Python API 调用封装
└── references/
├── docker/{containers,images,networks,volumes,registries}.md
├── swarm/{info,services,tasks}.md
├── apisix/{routes,upstreams,consumers,ssl}.md
├── caddy/{routes,certs,config,basic-auth}.md
├── system/{config,account,filer,cron,ssh}.md
├── ssh/{hosts,sftp}.md
├── agent.md
├── overview.md
├── compose.md
├── shell.md
└── ...
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.
- yesterday Changed · +1 tokens per session 6c27c0875b82
- 7d ago First seen · 303 lines · 5,212 tokens per session scan A e5538e18edcc
isrvd AGENTS.md is an instructions file published in the GitHub repository rehiy/isrvd (22 stars, last pushed yesterday), licensed Apache-2.0. It adds 5,213 tokens to every session, about $0.0261 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.
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.
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).
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.
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.
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).
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.