tiny-vue AGENTS.md

Repository instructions for TinyVue, a component library that supports Vue 2 and Vue 3 on desktop and mobile, organized as a monorepo—a single repository containing multiple related packages.

In plain words
What is it for?
Use them when developing TinyVue components, shared logic, themes, examples, documentation, builds, or tests with pnpm workspaces.
Why use it?
They explain the package layout, shared rendering logic, themes, required tools, and project commands so changes follow the repository’s structure.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/opentiny/tiny-vue/agents-md
Clone the repo
git clone --depth 1 https://github.com/opentiny/tiny-vue

Made for: Codex, OpenCode.

Per session 2,171 This file is loaded in full into every session.
When invoked 2,171 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02171 $0.02171
Opus 5 $0.01086 $0.01086
Sonnet 5 $0.00434 $0.00434
Haiku 4.5 $0.00217 $0.00217

Measured 2d ago against content hash ffb02c2aaedc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

AGENTS.md · 207 lines

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/themepackages/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(refreactive 等)

Read the full file on GitHub · 207 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. 2d ago First seen · 207 lines · 2,171 tokens per session scan A ffb02c2aaedc

Subscribe to this mod's changes

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.