touchpad-shield-build

touchpad-shield-build is a cursor rule for Cursor from ZiMiaoWorkshop/Touchpad-Shield. It costs 928 tokens per session, scanned A, original, Apache-2.0.

Build and versioning rules for the Touchpad Shield Windows application. They define semantic versions, automatically increased build numbers, debug/beta/release labels, output folders, and when each build type may be created.

In plain words
What is it for?
Use them when changing Touchpad Shield code, creating a debug build, or explicitly preparing beta or release installers.
Why use it?
They keep version information and build outputs consistent while preventing beta or release packages from being created without an explicit request.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use them when changing Touchpad Shield code, creating a debug build, or explicitly preparing beta or release installers.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/zimiaoworkshop/touchpad-shield/touchpad-shield-build
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.

Clone the repo
git clone --depth 1 https://github.com/ZiMiaoWorkshop/Touchpad-Shield

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 touchpad-shield-build

README.md
[![agentmods](https://agentmods.dev/badge/rules/zimiaoworkshop/touchpad-shield/touchpad-shield-build.svg)](https://agentmods.dev/rules/zimiaoworkshop/touchpad-shield/touchpad-shield-build)
Your own site
<a href="https://agentmods.dev/rules/zimiaoworkshop/touchpad-shield/touchpad-shield-build"><img src="https://agentmods.dev/badge/rules/zimiaoworkshop/touchpad-shield/touchpad-shield-build.svg" alt="Measured on agentmods" height="20"></a>
Per session 928 This file is loaded in full into every session.
When invoked 928 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.00928 $0.00928
Opus 5 $0.00464 $0.00464
Sonnet 5 $0.00186 $0.00186
Haiku 4.5 $0.00093 $0.00093

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

Security

Grade A, and why

touchpad-shield-build 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 3d 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.

.cursor/rules/touchpad-shield-build.mdc · 58 lines

What it actually says

Touchpad Shield 版本与编译规范

版本号

  • 语义化版本号(人工维护):MAJOR.MINOR.PATCH,定义于 version/Version.props
  • 构建号(源码变动时自动递增):4 位数字 BUILD,与版本号分开维护
  • 展示格式:MAJOR.MINOR.PATCH build BUILD(例如 1.0.0 build 0006
  • 渠道后缀(仅展示字符串,不影响 BUILD 数字与 assembly 版本):
    • build-debug.ps1 (alpha),例如 1.1.0 build 0101 (alpha)
    • build-beta.ps1 (beta)
    • build-release.ps1 → 无后缀
  • Windows 资源字符串(.rc)与 UI 使用展示格式;app.manifestassemblyIdentity 使用四段数字 MAJOR.MINOR.PATCH.buildInt

产物目录

  • Touchpad Shield App/debug/:Debug 可执行文件,启用 debug 日志
  • Touchpad Shield App/beta/:NSIS 打包的 debug 版安装包(仅用户指令时编译)
  • Touchpad Shield App/release/:正式发布 NSIS 安装包(仅用户指令时编译)

编译策略

  • 每次修改源码后:自动编译 debug 版本并输出到 Touchpad Shield App/debug/
  • beta / release:仅在用户明确指令时编译与打包
  • 技术栈:WinUI 3 unpackaged + C++/WinRT + NSIS

需求变更

  • 需求理解阶段有疑问必须与用户确认,不可自行决定解决方案

版本号与文档同步(发布前必查)

版本号或 BUILD 变更后(含 bump-build.ps1、改 Version.props、打 Release/Beta 包),必须同步并复查以下位置是否与 version/Version.props 一致:

检查项 路径 / 位置
对外版本行 README.md 文首「当前版本」、下载表安装包文件名
版本规则示例 README.md §版本号规则表
开发指导基线 PRD/Touchpad_Shield_开发指导.md 文首、§5.1 当前基线、§5.2 产物示例、§7.1 标题
Patch 变更说明 PRD/Touchpad_Shield_v1.0.0_to_v1.1.0_变更说明.md 对应 §七附 / §七附2
安装包文件名 Touchpad Shield App/release/TouchpadShield-{semver}-build{BUILD}-setup.exe 与 NSIS 脚本
Git tag / Release v{MAJOR.MINOR.PATCH}-build{BUILD}

提交 git / push / 打 tag 前:grep 或全文搜索旧 BUILD 号(如 0109),确认文档与 Version.props 无遗漏。

GitHub Release 发布规范

  • 使用 scripts/publish-github-release.ps1;Release 简介正文来自 scripts/release-notes-body.template.md(或 -ReleaseNotesFile 指定 UTF-8 文件)
  • Windows 上 gh --notes-file 必须 UTF-8 BOM(脚本 Write-Utf8BomFile 会校验 BOM);禁止直接用系统 ANSI 编码的临时文件
  • 发布后立即执行 gh release view <tag> --repo ZiMiaoWorkshop/Touchpad-Shield,确认网页简介中文正常、无乱码(如 姝e紡 类 mojibake)
  • 若 Release 已存在但简介乱码:gh release edit <tag> --notes-file <UTF-8 BOM 文件> 或重跑 publish-github-release.ps1 -SkipTagPush
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. 3d ago Changed · +22 lines · +496 tokens per session b06bf202e4eb
  2. 8d ago First seen · 36 lines · 432 tokens per session scan A f5ef2c98414e

Subscribe to this mod's changes

touchpad-shield-build is a cursor rule published in the GitHub repository ZiMiaoWorkshop/Touchpad-Shield (8 stars, last pushed 3d ago), licensed Apache-2.0. It adds 928 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-31.