08-architecture

08-architecture is a cursor rule for Cursor from loonghao/auroraview. It costs 3,113 tokens per session, scanned A, original, MIT.

Project rules for AuroraView, which divides some parts of the application into Git submodules—separate repositories included inside another repository. They describe each module and how to clone, update, and reference them.

In plain words
What is it for?
Use them when initializing submodules or working with AuroraView’s packaging, code protection, signals, or browser-style extension modules.
Why use it?
They help keep independently maintained modules available and prevent setup or dependency errors when working with the project.

Cursor rule for Cursor

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

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/loonghao/auroraview/08-architecture
Clone the repo
git clone --depth 1 https://github.com/loonghao/auroraview

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 08-architecture

README.md
[![agentmods](https://agentmods.dev/badge/rules/loonghao/auroraview/08-architecture.svg)](https://agentmods.dev/rules/loonghao/auroraview/08-architecture)
Your own site
<a href="https://agentmods.dev/rules/loonghao/auroraview/08-architecture"><img src="https://agentmods.dev/badge/rules/loonghao/auroraview/08-architecture.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,113 This file is loaded in full into every session.
When invoked 3,113 The same file — it is already loaded in full.
Security scan A 0 findings. 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.03113 $0.03113
Opus 5 $0.01556 $0.01556
Sonnet 5 $0.00623 $0.00623
Haiku 4.5 $0.00311 $0.00311

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

Security

Grade A, and why

08-architecture 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 6d 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.

.codebuddy/rules/08-architecture.mdc · 307 lines

How it starts

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

项目结构

Submodules(独立仓库)

AuroraView 将部分功能模块拆分为独立的 Git submodules,便于独立维护、版本控制和复用:

submodules/
├── auroraview-pack/        # 应用打包系统
│   └── https://github.com/loonghao/auroraview-pack.git
├── auroraview-protect/     # Python 代码保护(字节码加密)
│   └── https://github.com/loonghao/auroraview-protect.git
├── auroraview-signals/     # 信号/槽系统(类 Qt Signals)
│   └── https://github.com/loonghao/auroraview-signals.git
└── auroraview-extensions/  # 扩展系统(Chrome 风格扩展)
    └── https://github.com/loonghao/auroraview-extensions.git
各 Submodule 职责
Submodule 描述 主要功能
auroraview-pack 应用打包系统 将前端 + Python 后端打包为单一 .exe,支持 overlay 模式、资源压缩、图标设置、Python 依赖收集
auroraview-protect 代码保护 Python 字节码编译 + X25519/AES-256-GCM 加密,保护源代码不被反编译
auroraview-signals 信号系统 信号/槽机制,支持异步事件分发和跨组件通信
auroraview-extensions 扩展系统 Chrome 风格扩展架构,manifest.json 定义、权限管理、扩展生命周期
Submodule 使用规范
  1. 克隆项目:使用 --recurse-submodules 确保 submodules 被正确初始化

    git clone --recurse-submodules https://github.com/loonghao/auroraview.git
    
  2. 更新 Submodules

    git submodule update --init --recursive
    
  3. 在 Cargo.toml 中引用

    [dependencies]
    auroraview-pack = { path = "submodules/auroraview-pack" }
    auroraview-protect = { path = "submodules/auroraview-protect" }
    
  4. 独立开发:每个 submodule 可以独立开发、测试和发布,修改后需要在主仓库提交 submodule 引用更新

主仓库结构

auroraview/
├── crates/                 # Rust crates(本地)
│   ├── auroraview-core/    # 核心功能
│   ├── auroraview-cli/     # CLI 工具
│   ├── auroraview-plugins/ # 插件系统
│   └── ...
├── python/                 # Python 包
│   └── auroraview/
├── packages/               # TypeScript/JavaScript 包
│   └── auroraview-sdk/     # 前端 SDK (@auroraview/sdk)
├── gallery/                # Gallery 演示应用
├── examples/               # 示例代码
├── submodules/             # Git submodules(见上文)
└── docs/                   # 文档

auroraview-pack 打包系统

架构概览

┌─────────────────────────────────────────────────────────────┐
│                      PackManager                            │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐         │
│  │   Plugins   │  │   Packers   │  │   Targets   │         │
│  └─────────────┘  └─────────────┘  └─────────────┘         │
└─────────────────────────────────────────────────────────────┘
                             │
          ┌──────────────────┼──────────────────┐
          ▼                  ▼                  ▼
   ┌─────────────┐    ┌─────────────┐    ┌─────────────┐
   │   Desktop   │    │   Mobile    │    │ MiniProgram │
   │ Win/Mac/Lin │    │  iOS/And    │    │ WX/Ali/Byte │
   └─────────────┘    └─────────────┘    └─────────────┘

Read the full file on GitHub · 307 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. 6d ago First seen · 307 lines · 3,113 tokens per session scan A 0b14b7e8880e

Subscribe to this mod's changes

08-architecture is a cursor rule published in the GitHub repository loonghao/auroraview (44 stars, last pushed 1mo ago), licensed MIT. It adds 3,113 tokens to every session, about $0.0156 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-30.