violet: Instructions file for Codex

AGENTS.md

violet AGENTS.md is an instructions file for Codex, OpenCode from VOD-Studio/violet. It costs 7,792 tokens per session, scanned A, original, MIT.

Repository instructions for Violet, a full-stack blog platform organized as a monorepo, meaning one repository containing several related applications. They describe its Go backend, React frontend, architecture boundaries, and Makefile-based workflow.

In plain words
What is it for?
Use them when changing the API or web application, especially when deciding where shared code, domain logic, feature code, middleware, or development commands belong.
Why use it?
They clarify where backend and frontend logic belongs and which tools and package manager the project expects, reducing architectural mistakes.

Instructions file for CodexOpenCode

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

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

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/VOD-Studio/violet/release/2.0/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/VOD-Studio/violet

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 violet AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/vod-studio/violet/agents-md/github.svg)](https://agentmods.dev/instructions/vod-studio/violet/agents-md)
Your own site
<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.

agentmods 80×15 button for violet AGENTS.md

Your own site · 80×15
<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>
Per session 7,792 This file is loaded in full into every session.
When invoked 7,792 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.07792 $0.07792
Opus 5.5 $0.03117 $0.03117
Sonnet 5.5 $0.01558 $0.01558
Haiku 4.5 $0.00779 $0.00779

Measured 9d ago against content hash 85942d8873cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

AGENTS.md · 357 lines

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)。
  • 前端 (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)

Read the full file on GitHub · 357 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. 9d ago Changed · +1 lines · +75 tokens per session 85942d8873cf
  2. 25d ago Changed · +1 lines · +214 tokens per session 153cc48adfe3
  3. 28d ago Changed · +27 lines · +396 tokens per session dbb7eea4d317
  4. 1mo ago Changed · +1 lines · +210 tokens per session fbd7d7be23b1
  5. 1mo ago Changed · -5 lines · -44 tokens per session 64749294a798
  6. 1mo ago Changed · +48 tokens per session 8a86b1f4d5ea
  7. 1mo ago Changed · +6 lines · +239 tokens per session de154469f8ca
  8. 1mo ago Changed · +5 lines · +145 tokens per session d9bf13bea60b
  9. 2mo ago Changed · +8 lines · +151 tokens per session aaa137a02a24
  10. 2mo ago First seen · 313 lines · 6,358 tokens per session scan A 2e5cef7bdf7c

Subscribe to this mod's changes

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.

Related

violet AGENTS.md compared with instructions from other repositories

violet AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
violet AGENTS.mdVOD-Studio/violetInstructions file4yesterdayMITA7,792Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode