style-spec-entry

style-spec-entry is a cursor rule for Cursor from cty12356541/galide. It costs 463 tokens per session, scanned A, original, MIT.

A project-specific style guide rule for the Galide project, with principles, reading guidance, and rule priorities.

In plain words
What is it for?
It is for guiding code and other project work according to Galide's documented style rules.
Why use it?
It helps coding tools apply the project's conventions consistently instead of making unrelated style decisions.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit It is for guiding code and other project work according to Galide's documented style rules.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/cty12356541/galide/style-spec-entry
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/cty12356541/galide

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 style-spec-entry

README.md
[![agentmods](https://agentmods.dev/badge/rules/cty12356541/galide/style-spec-entry/github.svg)](https://agentmods.dev/rules/cty12356541/galide/style-spec-entry)
Your own site
<a href="https://agentmods.dev/rules/cty12356541/galide/style-spec-entry"><img src="https://agentmods.dev/badge/rules/cty12356541/galide/style-spec-entry/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 style-spec-entry

Your own site · 80×15
<a href="https://agentmods.dev/rules/cty12356541/galide/style-spec-entry"><img src="https://agentmods.dev/badge/rules/cty12356541/galide/style-spec-entry.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 463 This file is loaded in full into every session.
When invoked 463 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.00463 $0.00463
Opus 5.5 $0.00185 $0.00185
Sonnet 5.5 $0.00093 $0.00093
Haiku 4.5 $0.00046 $0.00046

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

Security

Grade A, and why

style-spec-entry 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 2mo 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/style-spec-entry.mdc · 47 lines

What it actually says

galide 项目风格规约

本项目使用 .style-spec/ 渐进式语义规约系统。

核心原则

处理本项目任何代码前,必须先阅读 .style-spec/core/ 下的所有文件:

按需读取

任务涉及 额外阅读
剧本编辑器 / 分支预览 .style-spec/domain/script-editor/naming.yaml
角色系统 / 立绘 .style-spec/domain/character/naming.yaml
场景 / 背景 / BGM .style-spec/domain/scene/naming.yaml
语音 / TTS .style-spec/domain/voice/naming.yaml
导出功能 .style-spec/domain/export/naming.yaml
React 组件 / UI .style-spec/layers/renderer/conventions.yaml
Electron 主进程 / IPC .style-spec/layers/main-process/conventions.yaml
gal DSL 解析器 .style-spec/layers/dsl/conventions.yaml

本项目核心哲学

文字游戏 = 语言意义选项的决策树

  • .gal 文件是 Canonical artifact,所有导出从它派生
  • 项目根目录即 Git 仓库根目录
  • SQLite 仅存 UI 临时状态,不存决策树
  • AI 是工作流的一等公民

规则优先级

core/ > layers/ > languages/,冲突时以 core/ 为准。

发现新模式

发现反复出现的模式,提案到 .auto-update/pending-proposals/。

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. 2mo ago First seen · 47 lines · 463 tokens per session scan A 0f83a4dac1cd

Subscribe to this mod's changes

style-spec-entry is a cursor rule published in the GitHub repository cty12356541/galide (2 stars, last pushed 5d ago), licensed MIT. It adds 463 tokens to every session, about $0.0019 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-31.