deploy-arch-maintenance

deploy-arch-maintenance is a cursor rule for Cursor from TashanGKD/tashan-cursor-skills. It costs 54 tokens per session (2,809 once invoked), scanned A, original, MIT.

A set of rules for keeping deployment and infrastructure documentation current. Deployment means putting software on servers or other systems so people can use it.

In plain words
What is it for?
Use it when deploying, changing servers or containers, assigning ports or domains, modifying external services, or launching a project. It specifies which architecture files and overview sections to update, and requires new projects to use the shared authentication system.
Why use it?
It prevents documentation from drifting away from the real servers, containers, ports, domains, databases, and external services. It also sets a shared account-system rule for new projects.

Cursor rule for Cursor

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

Good fit Use it when deploying, changing servers or containers, assigning ports or domains, modifying external services, or launching a project. It specifies which architecture files and overview sections to update, and requires new projects to use the shared authentication system.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/tashangkd/tashan-cursor-skills/deploy-arch-maintenance
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/TashanGKD/tashan-cursor-skills

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 deploy-arch-maintenance

README.md
[![agentmods](https://agentmods.dev/badge/rules/tashangkd/tashan-cursor-skills/deploy-arch-maintenance/github.svg)](https://agentmods.dev/rules/tashangkd/tashan-cursor-skills/deploy-arch-maintenance)
Your own site
<a href="https://agentmods.dev/rules/tashangkd/tashan-cursor-skills/deploy-arch-maintenance"><img src="https://agentmods.dev/badge/rules/tashangkd/tashan-cursor-skills/deploy-arch-maintenance/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 deploy-arch-maintenance

Your own site · 80×15
<a href="https://agentmods.dev/rules/tashangkd/tashan-cursor-skills/deploy-arch-maintenance"><img src="https://agentmods.dev/badge/rules/tashangkd/tashan-cursor-skills/deploy-arch-maintenance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,809 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00054 $0.02809
Opus 5 $0.00027 $0.01404
Sonnet 5 $0.00011 $0.00562
Haiku 4.5 $0.00005 $0.00281

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

Security

Grade A, and why

deploy-arch-maintenance scanned grade A 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 9d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

□ 前端 auth API 路径与后端接口对齐(先 curl 验证字段,不盲目照抄 TopicLab)
rules/deploy-arch-maintenance.mdc · 243 lines

How it starts

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

部署架构文档维护规则

⚠️ 唯一真源声明

所有部署、服务器、基础设施、技术架构相关任务,必须先读以下文件,再动手:

_内部总控/开发规范/部署与基础设施全景手册.md

部署架构总览.md 已于 2026-03-19 归档,不再维护,请勿读取作为操作依据。


RULE-21:每个项目必须有 DEPLOY_ARCH.md

  • 已部署:如实记录当前生产环境,包含:架构图、文件分布表、端口映射、部署流程、变更记录
  • 未部署:记录「📋 计划部署架构」,标注为计划中

图的格式(三层):

底层:物理服务器/云服务器
中间:每台服务器上的容器/进程/数据库/文件
顶层:前端(哪些页面/域名,依赖哪些后端模块)

外部依赖:用箭头指向「外部」,注明服务名称和用途

RULE-22:部署变动时必须同步更新

触发条件(满足任一即触发):

  • 新增/删除服务器、容器、数据库
  • 端口、域名、路径变更
  • 新增/修改外部服务依赖(API、第三方服务)
  • 新项目首次部署上线
  • 项目下线或迁移

必须更新的文件

  1. 该子项目的 DEPLOY_ARCH.md(变更记录表追加一行)
  2. _内部总控/开发规范/部署与基础设施全景手册.md 第一章架构图 + 第十二章对应项目快照 + 第十六章索引

每次 infra/deploy/ci 类型的 commit 前,检查

□ 子项目 DEPLOY_ARCH.md 是否需要更新?
□ 部署与基础设施全景手册.md 是否需要更新?

RULE-23:全局部署与基础设施全景手册结构

文件:_内部总控/开发规范/部署与基础设施全景手册.md

必须包含(维护时不可删除这些章节):

  • 第一章:当前基础设施总览图(随部署实时同步)
  • 第六章:端口分配表(新项目前必须核对)
  • 第十二章:各项目部署快照(新增/变更后同步)
  • 第十五章:未来规划 Phase 1-4(产品决策驱动,不随日常部署更新)
  • 第十六章:DEPLOY_ARCH.md 索引(新增子项目时追加)
  • 附录 A:凭据速查表(凭据变更时同步)

RULE-24:统一账号体系 — 禁止重复造轮子(前端 + 后端均适用)

核心原则:他山所有产品共享一套账号系统。TopicLab 是账号中心,其他产品通过共享 JWT + 共享 public.users 表接入,不允许在任何新项目中实现独立的认证/注册/登录模块

适用范围:一切新建项目(前端 + 后端)


前端规范

  1. 登录/注册页:直接使用与 TopicLab 相同的 /auth/login/auth/register 接口规范,视觉照抄 TopicLab Login.tsx(仅修改 Router 依赖)
    • 注意:注册流程可能因产品不同而异(SMS vs 邀请码),必须先验证后端接口字段,不可盲目照抄
  2. JWT Token:存 localStorage auth_token,Header 格式 Authorization: Bearer {token}
  3. JWT Secret:共享值 97c24dcb8ccdd9691c795b3a1106781211caa1283f863140caac917d39029776

后端规范

  1. 认证实现方式(这是本规则最核心的约束):

    原则:登录页「直接在服务器上拿来用」,不是复制代码,而是运行时代理同一个服务。

    正确架构:
    用户浏览器 → /api/auth/login → openbrain-backend
                                        ↓ 代理转发(httpx)
                                    topiclab-backend:8000/auth/login
                                        ↓ 返回 token
    openbrain-backend 附加 workspace_id → 返回给前端
    
    • ❌ 禁止:在新项目 backend 中实现自己的 login/register/token 验证逻辑
    • ✅ 必须:/auth/login/auth/me 用 httpx 代理到 AUTH_SERVICE_BASE_URL(topiclab-backend:8000)
    • ✅ 允许:项目可以有 OpenBrain 特有的注册流程(邀请码),但用户创建后必须同步到 public.users(含所有 NOT NULL 字段,含 handle
    • ✅ 允许:代理后可在响应中附加项目特有字段(如 workspace_id

Read the full file on GitHub · 243 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. 9d ago First seen · 243 lines · 54 tokens per session scan A a545b447c00b

Subscribe to this mod's changes

deploy-arch-maintenance is a cursor rule published in the GitHub repository TashanGKD/tashan-cursor-skills (20 stars, last pushed 5mo ago), licensed MIT. It adds 54 tokens to every session and 2,809 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.