weapp-tailwindcss: Instructions file for Codex

AGENTS.md

weapp-tailwindcss AGENTS.md is an instructions file for Codex, OpenCode from sonofmagic/weapp-tailwindcss. It costs 3,194 tokens per session, scanned A, original, MIT.

Repository rules for developing the weapp-tailwindcss project, including package management, supported environments, testing, formatting, comments, and commits. A repository is the project folder containing its code and history.

In plain words
What is it for?
Use them before changing this project, especially when installing dependencies, running tests, updating demos, or preparing a commit.
Why use it?
They prevent inconsistent tools and overlooked project requirements, such as missing regression tests or generated files.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions Codex.

This is sonofmagic/weapp-tailwindcss's own configuration. It tells Codex and OpenCode how to work on weapp-tailwindcss 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 weapp-tailwindcss configures →

About the project

weapp-tailwindcss is a build toolchain that generates and adapts Tailwind CSS for web pages, mini-programs, app webviews, React Native, and Lynx applications. It is for developers who want one Tailwind-based styling workflow to produce CSS and styles for multiple platforms.

sonofmagic/weapp-tailwindcss · 1,864 stars · on GitHub · tw.weapp.dev

Reuse

Borrowing it

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

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 weapp-tailwindcss AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sonofmagic/weapp-tailwindcss/agents-md"><img src="https://agentmods.dev/badge/instructions/sonofmagic/weapp-tailwindcss/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,194 This file is loaded in full into every session.
When invoked 3,194 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.03194 $0.03194
Opus 5.5 $0.01278 $0.01278
Sonnet 5.5 $0.00639 $0.00639
Haiku 4.5 $0.00319 $0.00319

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

Security

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 28d 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 · 102 lines

How it starts

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

Repository Guidelines

适用范围与优先级

  • 本文件维护仓库级安全边界和入口;领域细节放在就近规则,任务闭环见 工程流程。
  • 领域规则由就近 AGENTS.md 补充;不得削弱上级安全边界。规则相互矛盾时先说明冲突并暂停相关写入,不自行选择较宽松解释。
  • 开始改动前,先确认目标目录是否有更近一级 AGENTS.md。
  • 执行任何任务前必须先做“最近规则检查”:从当前目录向上查找最近的 AGENTS.md 并先读取,再开始修改或执行命令。

全局硬规则

  • 统一使用 pnpm,禁止切换 npm/yarn;Node 与 pnpm 版本以根 package.json 的 engines / packageManager 为准。
  • 代码默认 TypeScript + ESM,缩进 2 空格。
  • 文件超过约 300 行优先按目录拆分(如 feature/a.ts),避免 feature.a.ts。
  • 测试默认 Vitest;修复缺陷或改行为必须补回归测试。
  • AI 启动本地全面测试(包括手动编排全仓验收)前,必须完成本轮环境预检:微信 IDE、HBuilderX、iOS/Android/Harmony 模拟器、Web 和当前会话 computer use 全部通过。失败、超时、缺证或状态不明立即阻断并在当前对话通知用户;不得用 skip、optional、旧报告或降级替代放行。入口为 pnpm e2e:preflight prepare,操作与恢复统一见 多端手册。定向单测、预检回归及普通 CI 不要求全端环境。
  • 验证默认优先本地完成:凡是能通过本地 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 等关闭关键词,也不要在 GitHub Development 侧栏建立会随 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@3 PostCSS 插件、@tailwindcss/postcss 或 @tailwindcss/vite 生成样式。
  • HBuilderX / uni-app x 链路必须避免引入会被 CJS 同步 require() 的 Tailwind 纯 ESM 官方插件依赖;Tailwind v4 相关能力应继续经 weapp-tailwindcss/vite、@weapp-tailwindcss/engine 的动态加载链路接入,禁止用 @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 追踪;需要 tailwindcss-patch 的测试与示例必须消费 npm 发布版。

Read the full file on GitHub · 102 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. 28d ago Changed · +1 lines · +97 tokens per session 444c9ab43380
  2. 29d ago Changed · +1 lines · +57 tokens per session 8b38f8572374
  3. 1mo ago Changed · +50 tokens per session be079d6292a9
  4. 1mo ago Changed · +1 lines · +155 tokens per session 0e5a4c58450a
  5. 1mo ago Changed · +1 lines · +101 tokens per session cdf1f740966f
  6. 1mo ago Changed · -583 tokens per session fc746ab83000
  7. 1mo ago First seen · 98 lines · 3,317 tokens per session scan A 143ab7b2bec6

Subscribe to this mod's changes

weapp-tailwindcss AGENTS.md is an instructions file published in the GitHub repository sonofmagic/weapp-tailwindcss (1,864 stars, last pushed 2d ago), licensed MIT. It adds 3,194 tokens to every session, about $0.0128 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-08-30.

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,786 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

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens