Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/opentiny/tiny-vue/agents-mdgit clone --depth 1 https://github.com/opentiny/tiny-vueWhat 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 | $0.02171 | $0.02171 |
| Opus 5 | $0.01086 | $0.01086 |
| Sonnet 5 | $0.00434 | $0.00434 |
| Haiku 4.5 | $0.00217 | $0.00217 |
Grade A, and why
tiny-vue 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 2d 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 — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
面向 AI 编码代理(Copilot、Cursor、Aider、Claude Code 等)的项目指南。 这是一份机器可读的文档,帮助 AI 助手理解本仓库的结构、规范和约束。
项目概述
TinyVue 是 OpenTiny 开源生态的核心组件库,具备以下特征:
- 同时支持 Vue 2.6 / Vue 2.7 / Vue 3(通过分包发布,一套源码跨框架复用)
- 支持 PC 端与移动端两种终端形态
- 采用 Renderless(无渲染层) 与 视图层分离架构:业务逻辑写在
packages/renderless,视图写在packages/vue - 支持主题切换:Aurora / SAAS 主题,样式代码在
packages/theme与packages/theme-saas - Monorepo 结构,使用 pnpm Workspaces 管理
关键目录结构
tiny-vue/
├── packages/
│ ├── vue/ # Vue 组件视图层(.vue 文件)
│ ├── renderless/ # 无渲染逻辑层(纯 JS/TS,框架无关)
│ ├── vue-common/ # 跨框架公共适配层
│ ├── vue-hooks/ # 自定义 Vue Hooks
│ ├── vue-locale/ # 国际化
│ ├── vue-icon/ # 图标组件
│ ├── utils/ # 通用工具函数
│ ├── theme/ # Aurora 主题(Less)
│ └── theme-saas/ # SAAS 主题(Less)
├── examples/
│ ├── vue3/ # Vue 3 开发示例与单元/E2E 测试
│ ├── vue2/ # Vue 2 开发示例
│ └── sites/ # 官方文档站点
├── internals/
│ └── cli/ # 构建脚本与 CLI 工具
└── .github/ # CI/CD 工作流配置
环境要求
| 工具 | 版本要求 |
|---|---|
| Node | >= 18 |
| pnpm | >= 9.5(必须,禁止使用 npm 或 yarn) |
核心命令
# 安装依赖(只能用 pnpm)
pnpm i
# 启动 Vue 3 开发示例(默认)
pnpm dev # → http://127.0.0.1:7130/
# 启动 Vue 2 开发示例
pnpm dev2
# 运行单元测试
pnpm test:unit # Vue 3
pnpm test:unit2 # Vue 2
# 运行 E2E 测试
pnpm test:e2e # Vue 3(Chromium)
pnpm test:e2e2 # Vue 2(Chromium)
# 格式化代码
pnpm format
# ESLint 检查与修复
pnpm lint
# 构建组件库
pnpm build:ui
架构约定
Renderless 模式(重要)
TinyVue 使用 Renderless 无渲染架构。修改或新增组件时,必须遵守:
- 业务逻辑 → 写在
packages/renderless/<component-name>/index.ts,不依赖任何 UI 框架 - 视图模板 → 写在
packages/vue/<component-name>/index.vue,通过setup调用 renderless 层 - 不得在
.vue文件中直接写业务逻辑(data 处理、状态计算等)
跨版本兼容
- 一份 renderless 逻辑同时服务 Vue 2 和 Vue 3
- 若需判断框架版本,使用
packages/vue-common中的适配工具,不要直接写if (vue3) - 不得在 renderless 层导入任何 Vue 特定 API(
ref、reactive等)
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.
- 2d ago First seen · 207 lines · 2,171 tokens per session scan A ffb02c2aaedc
tiny-vue AGENTS.md is an instructions file published in the GitHub repository opentiny/tiny-vue (2,273 stars, last pushed 5d ago), licensed MIT. It adds 2,171 tokens to every session, about $0.0109 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
KLineChartQuant AGENTS.md
Instructions for 363045841/KLineChartQuant, covering trellis instructions, klinechartquant — agent guide, 代码要求, pr 作者要求 and quick search.
heroui CLAUDE.md
Claude Code instructions for heroui-inc/heroui, covering claude.md, repository overview, key technical stack, development commands and core development commands.
tiptap tiptap.instructions.md
Instructions for ueberdosis/tiptap, covering tiptap, what is tiptap, repository layout, npm scripts and linting & formatting.
tiptap AGENTS.md
Instructions for ueberdosis/tiptap, covering tiptap, rules, before opening a pr, code style and files.
scalar AGENTS.md
Instructions for scalar/scalar, covering agents.md - ai agent guide for scalar, project overview, prerequisites, first-time setup and commands.
ui AGENTS.md
AGENTS.md instructions for nuxt/ui, covering agents.md, project overview, project structure, commands and cli for scaffolding.