conventions

conventions is a cursor rule for Cursor from ChenyCHENYU/wl-skills-design. It costs 32 tokens per session (720 once invoked), scanned C, original, Apache-2.0.

A routing guide for selecting product-design agent skills for tasks such as requirements, prototypes, databases, APIs, terminology, reviews, and change analysis. It chooses released skills based on the requested action and design area.

In plain words
What is it for?
Use it to decide which design skill to run, enforce read-only review and validation boundaries, check shared design models, and report standards, outputs, verification results, and pending items.
Why use it?
It prevents unrelated or unreleased procedures from being loaded into a task. It also requires missing business facts to be marked as missing rather than invented.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Install

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.

agentmods
npx agentmods add rules/chenychenyu/wl-skills-design/conventions
Clone the repo
git clone --depth 1 https://github.com/ChenyCHENYU/wl-skills-design

Made for: Cursor.

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 conventions

README.md
[![agentmods](https://agentmods.dev/badge/rules/chenychenyu/wl-skills-design/conventions.svg)](https://agentmods.dev/rules/chenychenyu/wl-skills-design/conventions)
Your own site
<a href="https://agentmods.dev/rules/chenychenyu/wl-skills-design/conventions"><img src="https://agentmods.dev/badge/rules/chenychenyu/wl-skills-design/conventions.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 720 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
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.00032 $0.00720
Opus 5 $0.00016 $0.00360
Sonnet 5 $0.00006 $0.00144
Haiku 4.5 $0.00003 $0.00072

Measured 5d ago against content hash 259086e9f4a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade C, and why

conventions scanned grade C with 1 finding 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 5d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- 源文件:.github/copilot-instructions.md -->
files/.cursor/rules/conventions.mdc · 47 lines

What it actually says


wl-skills-design 产品设计调度说明

版本:v0.11.1。详细能力按需从 Agent Skill 加载,不要把全部规范注入无关任务。

调度入口

  1. 读取 .github/skills/_manifest.json,只选择 status=released 的能力。
  2. 先判定动作意图:impactreviewvalidaterepairmaintaincreate
  3. 再判定领域;普通代码 review、PR review 和代码重构不得进入产品设计评审。
  4. 应用 manifest 中的精确词、负向词、优先级和最小领先分差。并列或信息不足时只追问一个关键问题。
  5. 选定后读取对应 SKILL.md;详细标准、模板和样例只在该 Skill 要求时加载。

执行约束

  • validatereview 默认只读,只输出规则编号、位置、证据和建议。
  • 只有用户明确要求修复,或正在修复本轮新生成产物时,才可进入 repair
  • 标准文件是规则事实源;Skill 只定义工作流,Prompt 只定义人工快捷入口。
  • 缺失业务事实使用 【待补充:说明】,不得编造客户、系统、字段或审批结论。
  • 模板不得包含组织名称、项目标识、地点、业务单号或线上业务数据。
  • 工作区存在 docs/design-model.json 时,优先用稳定 ID 做跨文档集合校验;冲突先报告,不静默覆盖。
  • 各包必须独立可用;WL 兼容协议是内置约定而非包依赖。没有 design-model 时不得阻断前后端契约建立。
  • 输出必须说明所用 Skill、标准、产物路径、验证结果和暂挂项。

能力索引

  • requirements-flowchart:draw.io 泳道流程图
  • requirements-prototype:D1–D3 页面与交互标注
  • requirements-spec-doc:需求设计说明书与 IPO
  • data-database-design:ER、数据字典、DDL
  • api-interface-design:集成报文与 RESTful 接口
  • cross-glossary:术语、字段、枚举与编码注册
  • cross-design-review:跨文档评审和追溯矩阵
  • cross-change-impact:增量变更影响矩阵和补丁计划
  • doc-intake:半成品文档接入、差距分析和补全任务
  • code-architecture:模块边界、分层依赖、契约和质量门设计

人读索引见 .github/skills/_registry.md,使用说明见 .github/guides/usage.md

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. 5d ago First seen · 47 lines · 32 tokens per session scan C 259086e9f4a4

Subscribe to this mod's changes

conventions is a cursor rule published in the GitHub repository ChenyCHENYU/wl-skills-design (5 stars, last pushed 21d ago), licensed Apache-2.0. It adds 32 tokens to every session and 720 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.