waynboot-mobile: Instructions file for Claude Code

CLAUDE.md

waynboot-mobile CLAUDE.md is an instructions file for Claude Code from wayn111/waynboot-mobile. It costs 921 tokens per session, scanned A, original, MIT.

Project instructions for waynboot-mobile, a Vue 3 mobile shopping website that connects to the waynboot-mall backend. They document setup commands, architecture, authentication, state management, and testing.

In plain words
What is it for?
Use them when installing dependencies, running or building the app, linting, testing, changing authentication, editing Vuex state, or working on its shopping features.
Why use it?
They give an agent the repository-specific facts needed to work safely without rediscovering commands, login behavior, or where application state is stored.

Instructions file for Claude Code

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

This is wayn111/waynboot-mobile's own configuration. It tells Claude Code how to work on waynboot-mobile 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 waynboot-mobile configures →

Reuse

Borrowing it

Nothing to install: this file belongs to wayn111/waynboot-mobile. 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/wayn111/waynboot-mobile/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/wayn111/waynboot-mobile

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/wayn111/waynboot-mobile/claude-md.svg)](https://agentmods.dev/instructions/wayn111/waynboot-mobile/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/wayn111/waynboot-mobile/claude-md"><img src="https://agentmods.dev/badge/instructions/wayn111/waynboot-mobile/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 921 This file is loaded in full into every session.
When invoked 921 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.00921 $0.00921
Opus 5 $0.00461 $0.00461
Sonnet 5 $0.00184 $0.00184
Haiku 4.5 $0.00092 $0.00092

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

Security

Grade A, and why

waynboot-mobile 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 8d 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 · 81 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

项目简介

waynboot-mobile 是配套 waynboot-mall 后端的 Vue 3 H5 移动端商城,使用 Vite 6 构建,Vant 4 作为 UI 组件库,Vuex 4 管理状态。

常用命令

# 安装依赖
npm install

# 本地开发(端口 4949)
npm run dev

# 生产打包
npm run build:prod

# 开发环境打包
npm run build:dev

# Lint
npm run lint

# 运行单元测试
npm run test:node

# 压缩 SVG 图标
npm run svgo

核心架构

请求与认证

src/utils/request.js — 全局 Axios 实例。请求拦截器从 cookie 读取 token 注入 Authorization header。响应拦截器统一处理:

  • 401 → 弹窗提示 + 清除 token + 跳转登录,返回 Promise.reject
  • 5001 → 静默 reject(订单结果轮询专用)
  • 50148 → 直接返回 res(优惠券边界场景)
  • 其他非 200 → showToast + reject

src/utils/auth.js — 基于 js-cookie 的 token 读写,有效期 15 天。

src/permission.js — 全局路由守卫。白名单路径(首页、登录、分类、详情、搜索等)无需 token。已登录但 Vuex 无用户信息时(页面刷新场景),自动调用 store.dispatch('user/getInfo') 补充。

状态管理

Vuex 4,模块在 src/store/modules/ 下自动加载:

  • user — token(cookie)+ userInfo,提供 login/logout/getInfo/resetToken action
  • address — 地址列表 + 当前选中地址
  • search — 搜索历史(localStorage)

src/store/getters.js 暴露 tokenidnameuserInfo 等顶层 getter。

组件注册

src/components/ 下四个 setup 函数在 main.js 中统一调用:

  • Vant/index.js — 按需注册所有用到的 Vant 组件,并在 globalProperties 上挂载 $toast$dialog$notify 封装
  • fontAwesome/index.js — 仅注册 faSort/faSortUp/faSortDown 三个图标
  • Wx/index.js — 挂载 wxJsSdkInit,调用后端 /wx/jsSdkInit 获取签名并初始化微信 JS SDK
  • common/ — 全局公共组件

工具函数

  • src/utils/index.jstoDecimal2(保留两位小数)、Valid.checkPhone(手机号校验)、pathMatcher(白名单前缀匹配,** 通配)
  • src/filter/index.jsyuan(金额格式化)、dateFormat(时间戳转日期),挂载到 globalProperties

打包配置

vite.config.jsmanualChunksvue/vue-router/vuexvantweixin-js-sdk 拆成独立 chunk;生产构建启用 terser 并 drop_console

SVG 图标

使用自定义 createSvgIconsPluginbuild/svg-icons-plugin.js),图标放在 src/icons/svg/,通过 <svg-icon name="xxx"> 组件使用,入口通过 virtual:svg-icons-register 注册。

环境变量

使用 VUE_APP_ 前缀(非标准 Vite 的 VITE_ 前缀),在 vite.config.js 中通过 envPrefix 配置同时支持两者。后端接口地址通过 VUE_APP_BASE_API 配置,开发时通过 /dev-api 代理转发。

Read the full file on GitHub · 81 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. 8d ago First seen · 81 lines · 921 tokens per session scan A d2c11df94b95

Subscribe to this mod's changes

waynboot-mobile CLAUDE.md is an instructions file published in the GitHub repository wayn111/waynboot-mobile (231 stars, last pushed 2mo ago), licensed MIT. It adds 921 tokens to every session, about $0.0046 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.

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

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens