p-design-tech-solution

p-design-tech-solution is a cursor rule for Cursor from xyzbit/AI-Coding. It costs 9 tokens per session (398 once invoked), scanned A, original, Apache-2.0.

A set of rules for writing technical solution documents in a project's docs folder. The template covers requirements, purpose, design, diagrams, database and API changes, rollout notes, and task breakdowns.

In plain words
What is it for?
Use it to document a feature or system change, compare implementation options, describe database or API designs, and record release steps.
Why use it?
It gives technical decisions a consistent written structure and makes complex or unfinished areas explicit.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it to document a feature or system change, compare implementation options, describe database or API designs, and record release steps.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/xyzbit/ai-coding/p-design-tech-solution
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/xyzbit/AI-Coding

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 p-design-tech-solution

README.md
[![agentmods](https://agentmods.dev/badge/rules/xyzbit/ai-coding/p-design-tech-solution/github.svg)](https://agentmods.dev/rules/xyzbit/ai-coding/p-design-tech-solution)
Your own site
<a href="https://agentmods.dev/rules/xyzbit/ai-coding/p-design-tech-solution"><img src="https://agentmods.dev/badge/rules/xyzbit/ai-coding/p-design-tech-solution/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 p-design-tech-solution

Your own site · 80×15
<a href="https://agentmods.dev/rules/xyzbit/ai-coding/p-design-tech-solution"><img src="https://agentmods.dev/badge/rules/xyzbit/ai-coding/p-design-tech-solution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 398 The whole file, excluding the scripts and references it only reads on demand.
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.00009 $0.00398
Opus 5.5 $0.00004 $0.00159
Sonnet 5.5 $0.00002 $0.00080
Haiku 4.5 $0.00001 $0.00040

Measured 1mo ago against content hash 4d8da7cfd5c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

p-design-tech-solution 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 1mo 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/plan/p-design-tech-solution.mdc · 88 lines

What it actually says

技术方案编写规则

整体要求

  1. 如果判断某个部分内容较多、较复杂,建议简单描述+功能标注 '//TODO 需要后续补充'
  2. 对应复杂功能给出多个实现方案+建议方案

文档交付内容要求

交付形式:在当前项目的 docs 文件夹下建立 xxx.md 保存 文档模版如下:

## 需求详情

## 需求目的

> 介绍需求背景,让大家了解相关上下文信息。

## 需求涉及历史业务逻辑

> 如果需要

## 技术方案

业务逻辑

主要逻辑描述:

> 介绍技术方案,包括但不限于以下章节。

> 如果有多个可选方案,需要增加方案对比。

### 流程图

### (如果需要)上下游服务,子模块关系等。

技术实现

**方案流程图 / 描述**

> 抽象和描述业

**数据库表设计(如果有)**

**接口设计(如果有)**



// 参考如下:

service AdAutoRuleLog { rpc GetList (GetListRequest) returns (GetListResp) { option (google.api.http) = { post: "/v1/marketing/ad-auto-rule-log/list", body: "*" };

  option (openapi.v3.operation) = {
    summary: "列表",
    operation\_id: "列表",
  };

}

}


## 上线注意事项

确认历史数据迁移是否成功

确认调整是否生效

## 任务拆解

> 任务拆解与排期

## 项目脚本执行入口及参数说明(如果有)

## 上线文档
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. 1mo ago First seen · 88 lines · 9 tokens per session scan A 4d8da7cfd5c5

Subscribe to this mod's changes

p-design-tech-solution is a cursor rule published in the GitHub repository xyzbit/AI-Coding (21 stars, last pushed 12mo ago), licensed Apache-2.0. It adds 9 tokens to every session and 398 once invoked, about $0.0000 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.