uniapp-vue3-template: Instructions file for Claude Code

CLAUDE.md

uniapp-vue3-template CLAUDE.md is an instructions file for Claude Code from oyjt/uniapp-vue3-template. It costs 607 tokens per session, scanned A, original, MIT.

Project instructions for a uni-app application built with Vue 3, Vite, Pinia, TypeScript, and related styling and linting tools.

In plain words
What is it for?
Use them when installing dependencies, finding source files, running development or production builds, checking types, or fixing lint and style issues.
Why use it?
They explain the project layout and approved commands, so coding agents can work in the expected places and verify changes correctly.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

This is oyjt/uniapp-vue3-template's own configuration. It tells Claude Code 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/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/oyjt/uniapp-vue3-template

Made for: Claude Code.

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 CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/oyjt/uniapp-vue3-template/claude-md"><img src="https://agentmods.dev/badge/instructions/oyjt/uniapp-vue3-template/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 607 This file is loaded in full into every session.
When invoked 607 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.00607 $0.00607
Opus 5 $0.00303 $0.00303
Sonnet 5 $0.00121 $0.00121
Haiku 4.5 $0.00061 $0.00061

Measured 6d ago against content hash 050280c07732, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

uniapp-vue3-template CLAUDE.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 6d 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.

CLAUDE.md · 49 lines

What it actually says

CLAUDE.md

技术栈

uni-app(Vue 3 + Composition API)/ Vite 5+ / Pinia / uview-plus 3.4+ / UnoCSS / Scss / TypeScript / ESLint / pnpm

目录结构

├ build/                # Vite 配置与插件
├ env/                  # 环境变量(.env / .env.test / .env.production)
├ scripts/              # 构建脚本(post-upgrade / verify-commit)
├ src/
│  ├ api/               # 接口(模块/index.ts + types.ts)
│  ├ components/        # 公共组件
│  ├ hooks/             # Composables
│  ├ locale/            # i18n
│  ├ pages/             # 页面
│  ├ plugins/           # 插件
│  ├ router/            # 路由(运行时解析 pages.json)
│  ├ static/            # 静态资源
│  ├ store/modules/     # Pinia Store(按模块划分)
│  └ utils/             # 工具函数
├ types/                # 全局 TS 类型
└ uno.config.ts         # UnoCSS 配置

常用命令

pnpm install                 # 安装依赖(必须用 pnpm)
pnpm dev:h5                  # H5 开发
pnpm dev:mp-weixin           # 微信小程序开发
pnpm build:h5-prod           # H5 生产构建
pnpm build:mp-weixin-prod    # 微信小程序生产构建
pnpm eslint:fix              # ESLint 自动修复
pnpm stylelint:fix           # StyleLint 自动修复
pnpm type-check              # TypeScript 类型检查
pnpm cz                      # 引导式 Git 提交

架构要点

  • 条件编译: // #ifdef PLATFORM / // #endif 处理多端差异
  • 路由鉴权: pages.json 中设置 "needLogin": true;TabBar 页面在 onShow 中调用 usePermission()
  • 网络请求: src/utils/request/index.ts,Token 在 header token 字段,custom.auth = false 跳过鉴权,401 自动刷新 Token
  • 状态持久化: pinia-plugin-persistedstate + uni.getStorageSync/setStorageSync
  • 环境变量: VITE_API_BASE_URL / VITE_APP_PROXY / VITE_API_PREFIX / VITE_DROP_CONSOLE
  • Vite 插件: 统一注册在 build/plugins/index.ts,CDN 替换和体积分析默认关闭
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. 6d ago First seen · 49 lines · 607 tokens per session scan A 050280c07732

Subscribe to this mod's changes

uniapp-vue3-template CLAUDE.md is an instructions file published in the GitHub repository oyjt/uniapp-vue3-template (626 stars, last pushed 3mo ago), licensed MIT. It adds 607 tokens to every session, about $0.0030 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-09-03.

Related

Other instructions, from other repositories

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,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

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 · 6,785 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 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,469 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 · 3,735 tokens