TinyVue is a UI component library for building web interfaces with Vue.js 2 or Vue.js 3 on desktop and mobile. It is intended for developers creating applications with reusable interface components, and its catalogue add-ons help coding agents understand and use TinyVue.
Borrowing it
Nothing to install: this file belongs to opentiny/tiny-vue. 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/opentiny/tiny-vue/dev/AGENTS.mdgit clone --depth 1 https://github.com/opentiny/tiny-vueWrote 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/opentiny/tiny-vue/agents-md)<a href="https://agentmods.dev/instructions/opentiny/tiny-vue/agents-md"><img src="https://agentmods.dev/badge/instructions/opentiny/tiny-vue/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/opentiny/tiny-vue/agents-md"><img src="https://agentmods.dev/badge/instructions/opentiny/tiny-vue/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.02171 | $0.02171 |
| Opus 5.5 | $0.00868 | $0.00868 |
| Sonnet 5.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 2mo 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.
- 2mo 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 7d ago), licensed MIT. It adds 2,171 tokens to every session, about $0.0087 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-30.
tiny-vue AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tiny-vue AGENTS.mdopentiny/tiny-vue | Instructions file | 2.3k | 7d ago | MIT | A | 2,171 | 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 | today | 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 |