uniapp-vue3-template: Instructions file for Codex

AGENTS.md

uniapp-vue3-template AGENTS.md is an instructions file for Codex, OpenCode from oyjt/uniapp-vue3-template. It costs 2,154 tokens per session, scanned A, original, MIT.

Project instructions for AI coding tools working in a uni-app, Vue 3 and TypeScript repository. They define where rules live, how changes should be checked and which operations need user approval.

In plain words
What is it for?
Guiding repository changes, locating project rules and skills, checking code and tests, preserving local edits, and requiring confirmation for destructive or production-affecting actions.
Why use it?
They give coding agents a consistent way to inspect, modify and report on the project while protecting existing work and sensitive data.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions AGENTS.md.

This is oyjt/uniapp-vue3-template's own configuration. It tells Codex and OpenCode how to work on uniapp-vue3-template 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 uniapp-vue3-template configures →

Reuse

Borrowing it

Nothing to install: this file belongs to oyjt/uniapp-vue3-template. 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/oyjt/uniapp-vue3-template/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/oyjt/uniapp-vue3-template

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 uniapp-vue3-template AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/oyjt/uniapp-vue3-template/agents-md/github.svg)](https://agentmods.dev/instructions/oyjt/uniapp-vue3-template/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/oyjt/uniapp-vue3-template/agents-md"><img src="https://agentmods.dev/badge/instructions/oyjt/uniapp-vue3-template/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 uniapp-vue3-template AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/oyjt/uniapp-vue3-template/agents-md"><img src="https://agentmods.dev/badge/instructions/oyjt/uniapp-vue3-template/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,154 This file is loaded in full into every session.
When invoked 2,154 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.02154 $0.02154
Opus 5.5 $0.00862 $0.00862
Sonnet 5.5 $0.00431 $0.00431
Haiku 4.5 $0.00215 $0.00215

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

Security

Grade A, and why

uniapp-vue3-template 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 10d 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 · 132 lines

How it starts

The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

权威入口与维护方式

本文件是项目级 AI 协作的权威入口。所有工具遵循同一套约定:

  • 项目说明、协作流程和规则索引维护在本文件。
  • 开发规则正文只维护在 .agents/rules/,技能只维护在 .agents/skills/。
  • CLAUDE.md 仅引用本文件;Claude、Cursor、Trae 的规则与技能入口通过相对软链接复用 .agents/。
  • .agents/adapters/ 只存放工具所需的轻量入口,不复制开发规则。
  • 项目内发生约定冲突时,以本文件为准;细分规则补充本文件,技能提供任务相关指导,不覆盖明确的项目约束。平台及系统指令仍优先。
  • 保留各工具专属配置(例如 .claude/settings.json、.cursor/mcp.json),不要将工具根目录整体链接到 .agents/。

角色与沟通

作为熟悉 uni-app、Vue 3 和 TypeScript 的软件工程师,始终使用简体中文,技术导向、简洁明确。基于代码和验证结果回答,不把推测描述成事实。注释沿用所在文件的语言和风格。

遵循 KISS、DRY、YAGNI 和 SOLID:优先现有组件、工具函数与依赖,以最小完整改动解决当前问题;不增加无需求的抽象、配置、兼容层或未来功能。

工作流程与安全边界

  1. 先检查工作区状态,保留用户已有修改;先读后写,确认调用方、类型、配置和验证范围。
  2. 按任务读取下方规则及技能;只加载相关参考文件,不批量读取全部技能。
  3. 若仓库存在 .codegraph/,理解或定位代码时优先使用 CodeGraph;否则使用 rg 等本地搜索,不自动创建索引。
  4. 优先修复共享代码中的根因,保持原有校验、错误处理、安全性与多端兼容性。
  5. 运行与修改相关的检查;新增非平凡逻辑应有最小测试或可重复自检。纯文档及软链接调整验证引用、目标与差异即可。
  6. 汇报改动、验证结果、未检查项及风险,不声称未执行的检查已经通过。

命令中的文件路径使用双引号,优先正斜杠。不得输出密钥、Token 或其他敏感数据。

未经用户明确要求,不计划或执行 Git 提交、推送、分支创建或切换。删除文件/目录、批量修改、破坏性 Git 操作、系统配置或权限变更、数据库删除/结构变更/批量更新、发送敏感数据或调用生产 API、全局安装/卸载及更新核心依赖前,必须说明影响并取得明确确认:

⚠️ 危险操作检测!
操作类型:[具体操作]
影响范围:[详细说明]
风险评估:[潜在后果]

请确认是否继续?[需要明确的“是”、“确认”、“继续”]

项目上下文

技术栈:uni-app、Vue 3 Composition API、TypeScript、Vite、Pinia、uview-plus、UnoCSS、SCSS、ESLint、Stylelint、pnpm。依赖版本以 package.json 和 pnpm-lock.yaml 为准,不在提示词中维护版本副本。

.agents/
├ rules/                 # 统一开发规则
├ skills/                # 统一技能及其参考资料
└ adapters/              # Cursor、Trae 轻量规则入口
build/                   # Vite 配置与插件
env/                     # 环境配置
scripts/                 # 构建、小程序 CI、提交校验脚本
src/
├ api/                   # 接口模块及类型
├ components/            # 公共组件
├ hooks/                 # Composables
├ locales/               # 国际化
├ pages/                 # 页面
├ plugins/               # 插件
├ router/                # 基于 pages.json 的路由工具
├ static/                # 静态资源
├ store/modules/         # 按模块划分的 Pinia Store
└ utils/                 # 请求、鉴权、存储等工具
types/                   # 全局 TypeScript 类型
  • @ 指向 src;API 模块使用 index.ts 和 types.ts,统一从 src/api/index.ts 导出。
  • Vue 组件使用 <script setup lang="ts">,复用现有公共组件、hooks、Store 和工具函数。
  • 平台差异使用 uni-app #ifdef / #endif 条件编译;不要假设小程序或 App 具备浏览器 DOM API。
  • 页面鉴权由 pages.json 的 needLogin 标识;TabBar 页面在 onShow 中调用 usePermission()。
  • 请求复用 src/utils/request/:请求头 token,custom.auth = false 跳过 Token 注入,业务响应 code === 401 触发重新登录与重试。
  • Pinia 持久化使用 uni.getStorageSync / uni.setStorageSync;插件统一在 build/plugins/index.ts 注册。
  • 环境配置在 env/,请求相关变量包括 VITE_API_BASE_URL、VITE_APP_PROXY、VITE_API_PREFIX。
  • 使用 ESLint 与 Stylelint;不引入 Prettier,不顺手格式化无关文件。

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

Subscribe to this mod's changes

uniapp-vue3-template AGENTS.md is an instructions file published in the GitHub repository oyjt/uniapp-vue3-template (628 stars, last pushed 11d ago), licensed MIT. It adds 2,154 tokens to every session, about $0.0086 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-10-15.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens