Borrowing it
Nothing to install: this file belongs to VOD-Studio/violet. 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/VOD-Studio/violet/release/2.0/AGENTS.mdgit clone --depth 1 https://github.com/VOD-Studio/violetWrote 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/vod-studio/violet/agents-md)<a href="https://agentmods.dev/instructions/vod-studio/violet/agents-md"><img src="https://agentmods.dev/badge/instructions/vod-studio/violet/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.
<a href="https://agentmods.dev/instructions/vod-studio/violet/agents-md"><img src="https://agentmods.dev/badge/instructions/vod-studio/violet/agents-md.svg" alt="Reviewed on agentmods" width="80" 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.07792 | $0.07792 |
| Opus 5.5 | $0.03117 | $0.03117 |
| Sonnet 5.5 | $0.01558 | $0.01558 |
| Haiku 4.5 | $0.00779 | $0.00779 |
Grade A, and why
violet 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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 357 lines — stays where its author put it; the contents beside it link to each section on GitHub.
violet (blog-project)
全栈博客平台 monorepo。
架构与代码边界
- 后端 (
api/): Go 1.26, Chi 路由, PostgreSQL 16, Redis 7。- 关键: 后端为 DDD 单一架构:
internal/{domain,application,infrastructure,interfaces,app}(旧 handler/service/repository 分层已移除)。依赖注入为app/下手工容器装配(*Container+container.go聚合,不使用 wire)。
- 关键: 后端为 DDD 单一架构:
- 前端 (
web/): React 19, Vite, Tailwind CSS v4。- 关键: 使用
pnpm作为包管理器,切勿使用npm或yarn。 - 状态管理: Zustand + TanStack Query。
- 关键: 使用
架构耦合约束
本节规定代码归属;commit 边界与依赖顺序统一见「提交流程规范」。
- 前端通用组件与站点公共层各归其位。跨 feature 的通用 React 组件及基础语义 token 在
web/packages/ui/,从@violet/ui根入口使用组件;Tailwind v4 后导入@violet/ui/styles.css。web/src/styles/dialects/保留站点方言;web/src/shared/只放站点级通用能力,以上两层均不夹带posts/comments/editor等 feature 业务逻辑。FSD 分层(shared→entities→features→widgets)不允许向业务层反向依赖。 - 组件库以单元组织并标记成熟度。所有组件在
web/packages/ui/src/components/<name>/,结构、按需 typed recipe、CSS、导出与测试共置;component-manifest.json是公开单元、入口、CSS、文档与 foundation / legacy 状态的事实源。src/legacy.ts仅为兼容 barrel,不放实现副本。基础单元的 React 与 HTML 共用唯一 BEM CSS;其余 legacy 的样式逐个迁移。共享lib/只接收真实复用能力,字体、签名与站点装饰动画留在web/src/styles/site-theme.css。组件库规范以web/packages/ui/docs/architecture.md与component-design.md为权威;web/src/features/ui-docs/展示同一正文与同源组件示例,公开入口为/ui;新增单元按包内规范执行清单同步、源码检查、构建与外部 tarball 消费验收。 - 后端各层各司其职:领域逻辑进
domain,用例编排进application,基础设施细节进infrastructure,HTTP 适配进interfaces;internal/middleware/只放通用横切中间件(auth/cors/csrf/ratelimit 等)。通用基础设施(错误码、observability、通用中间件)不夹带具体业务实体逻辑。 - 判断「是否公共」看真实消费方,不是位置。feature 私有逻辑被第二个 feature 复用时先上提;通用组件进
web/packages/ui/,站点专用基础能力进web/src/shared/,有业务语义的实体逻辑进web/src/entities/(提交顺序见「依赖与迁移」)。
开发流与命令 (Makefile)
所有核心操作都通过根目录的 Makefile 统管:
- 启动本地开发:
make dev(一键启动 Postgres、Redis、API 和 Web) - 数据库迁移:
make migrate(使用 golang-migrate)
后端 (api/) 须知
- 环境依赖: 后端需要 Go 1.26。本机无 Go 时不擅自安装,按
.agents/skills/api-toolchain的流程问用户一次并记住决定(本地安装或容器执行)。 - 测试:
make api-test(本机无 Go 时按上方容器方式执行,下同) - 代码检查:
make api-lint(使用 golangci-lint)
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.
- 9d ago Changed · +1 lines · +75 tokens per session 85942d8873cf
- 25d ago Changed · +1 lines · +214 tokens per session 153cc48adfe3
- 28d ago Changed · +27 lines · +396 tokens per session dbb7eea4d317
- 1mo ago Changed · +1 lines · +210 tokens per session fbd7d7be23b1
- 1mo ago Changed · -5 lines · -44 tokens per session 64749294a798
- 1mo ago Changed · +48 tokens per session 8a86b1f4d5ea
- 1mo ago Changed · +6 lines · +239 tokens per session de154469f8ca
- 1mo ago Changed · +5 lines · +145 tokens per session d9bf13bea60b
- 2mo ago Changed · +8 lines · +151 tokens per session aaa137a02a24
- 2mo ago First seen · 313 lines · 6,358 tokens per session scan A 2e5cef7bdf7c
violet AGENTS.md is an instructions file published in the GitHub repository VOD-Studio/violet (4 stars, last pushed yesterday), licensed MIT. It adds 7,792 tokens to every session, about $0.0312 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-08-31.
violet AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| violet AGENTS.mdVOD-Studio/violet | Instructions file | 4 | yesterday | MIT | A | 7,792 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |