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.
npx agentmods add instructions/sonofmagic/weapp-tailwindcss/agents-mdgit clone --depth 1 https://github.com/sonofmagic/weapp-tailwindcssWhat 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 | $0.03317 | $0.03317 |
| Opus 5 | $0.01658 | $0.01658 |
| Sonnet 5 | $0.00663 | $0.00663 |
| Haiku 4.5 | $0.00332 | $0.00332 |
Grade A, and why
weapp-tailwindcss 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.
How it starts
The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Repository Guidelines (Root Short Version)
适用范围与优先级
- 本文件是仓库级“短版总则”。
- 规则优先级:就近目录
AGENTS.md> 上级目录AGENTS.md> 本文件。 - 开始改动前,先确认目标目录是否有更近一级
AGENTS.md。 - 执行任何任务前必须先做“最近规则检查”:从当前目录向上查找最近的
AGENTS.md并先读取,再开始修改或执行命令。
全局硬规则
- 统一使用
pnpm,禁止切换 npm/yarn;Node 版本>=22.12.0。 - 代码默认 TypeScript + ESM,缩进 2 空格。
- 文件超过约 300 行优先按目录拆分(如
feature/a.ts),避免feature.a.ts。 - 测试默认 Vitest;修复缺陷或改行为必须补回归测试。
- 验证默认优先本地完成:凡是能通过本地
pnpm/Vitest/e2e/构建命令确认的问题,必须先在本地验证并记录命令;只有用户明确要求“PR CI/CD 验证”“盯 CI/CD”或远端环境是唯一可验证来源时,才长时间等待远端 CI/CD。 - 新增或调整 demo、issue 复现页、样式输出回归用例时,必须重新生成对应项目的 e2e static 快照/产物基线,并在验证记录中说明对应项目与命令;禁止只改源码或 IDE 用例而遗漏 static 基线。
- 本项目禁止使用 Prettier 做格式化;不要运行
prettier、pnpm format或其它会调用 Prettier 的格式化命令。 - 提交信息遵循 Conventional Commits。
- PR、提交信息和变更说明默认只使用
Refs #<issue>、Related to #<issue>或普通链接关联 Issue;禁止默认使用Fixes、Closes、Resolves等关闭关键词,也不要在 GitHubDevelopment侧栏建立会随 PR 合并关闭 Issue 的关联。只有用户明确要求关闭对应 Issue 时才允许使用关闭型关联。 - 所有新增或修改的 change intent 内容必须使用中文。
- JSDoc 注释必须使用中文;新增行内注释默认中文(术语可保留英文)。
- Node.js、构建器、CLI、测试与脚本默认必须同时支持 Windows、macOS 和 Linux,不得把 POSIX 路径、分隔符、盘符、大小写或 shell 行为当作跨平台默认值。
- 文件系统路径统一优先使用
node:path的resolve、join、relative、normalize等 API,以及fileURLToPath/pathToFileURL处理 URL 转换;禁止通过字符串拼接、固定/、split('/')或单次替换反斜杠来实现通用文件系统路径逻辑。临时目录使用os.tmpdir()/mkdtemp,禁止硬编码/tmp。 - 必须区分文件系统路径与 bundler module id、bundle asset name、URL/route 等逻辑路径:只有后者可在明确边界统一为
/;不得把规范化后的 module id 或 URL 直接当作文件系统路径。涉及路径解析、缓存 key、模块身份或产物归属的改动,至少覆盖 POSIX、Windows 反斜杠、盘符/根目录与相对路径回归用例。 - Tailwind CSS v3/v4 的样式生成统一由
weapp-tailwindcss接管;禁止通过tailwindcss@3PostCSS 插件、@tailwindcss/postcss或@tailwindcss/vite生成样式。 - HBuilderX / uni-app x 链路必须避免引入会被 CJS 同步
require()的 Tailwind 纯 ESM 官方插件依赖;Tailwind v4 相关能力应继续经weapp-tailwindcss/vite、tailwindcss-patch的动态加载链路接入,禁止用@tailwindcss/vite等 ESM-only 插件替代或兜底。 - 构建插件禁止用
fs直接写入或改写构建输出目录;输出变更必须通过对应 bundler 的插件 API、bundle asset、emitFile、loader result 或 stream/file 对象完成,确保产物仍在同一个构建图里。 - 修复构建器问题时必须从 bundler 的生命周期、模块图、产物图与 loader/plugin API 出发;禁止通过硬编码
src、pages等项目布局推导源码路径,也禁止在generateBundle等后置阶段为了弥补状态缺失临时读取源码文件。需要源码内容时,应在load、transform、watchChange、handleHotUpdate等生命周期缓存,或使用ModuleInfo、chunk metadata、loader result、source map、source-candidates 等构建图数据;确需文件系统扫描的入口发现逻辑必须集中在扫描层,并有回归测试覆盖。 submodules/tailwindcss-mangle/只允许作为本地源码参考目录,不得加入pnpm-workspace.yaml、pnpm-lock.yaml、CI/CD checkout、发布流程或仓库 submodule 追踪;weapp-tailwindcss必须消费 npm 发布版tailwindcss-patch。
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.
- 2d ago First seen · 98 lines · 3,317 tokens per session scan A 143ab7b2bec6
weapp-tailwindcss AGENTS.md is an instructions file published in the GitHub repository sonofmagic/weapp-tailwindcss (1,853 stars, last pushed 2d ago), licensed MIT. It adds 3,317 tokens to every session, about $0.0166 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.
Other instructions, from other repositories
weapp-vite CLAUDE.md
Instructions for weapp-vite/weapp-vite, covering claude.md, project overview, vue support, common commands and development.
weapp-vite AGENTS.md
Instructions for weapp-vite/weapp-vite, covering agents guidelines (global baseline), 1. monorepo routing, 2. fast-path commands (prefer smallest verification first), 2.1 dist sync guard (prevent stale cli/runtime) and 3. coding rules.
vital AGENTS.md
Instructions for jvidalv/vital, covering ai agent development guide, quick reference, component creation workflow, step 1: determine component level and step 2: create component files.
vital CLAUDE.md
Instructions for jvidalv/vital, covering claude ai assistant guide, project overview, tech stack, core framework and styling.
magicui AGENTS.md
Instructions for magicuidesign/magicui, covering project context, key principles, before writing code, rules and accessibility (a11y).
supermemory CLAUDE.md
Instructions for supermemoryai/supermemory, covering claude.md, repository structure, applications (apps/), development commands and root level (monorepo).