cognitive-principle-check

cognitive-principle-check is a cursor rule for Cursor from TashanGKD/cognitive-os. It costs 57 tokens per session (723 once invoked), scanned A, a copy of cognitive-principle-check, MIT.

A writing check for new entries in an L1 knowledge document, comparing them with confirmed principles stored in the L1.5 principles layer.

In plain words
What is it for?
It checks new text against principles such as giving verification priority over feelings and explaining how a broad rule was derived from a small example.
Why use it?
It helps catch unsupported generalisations or statements that conflict with established principles before they become part of the knowledge base. Warnings are optional and do not block writing.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit It checks new text against principles such as giving verification priority over feelings and explaining how a broad rule was derived from a small example.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/tashangkd/cognitive-os/cognitive-principle-check
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/cognitive-os

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 cognitive-principle-check

README.md
[![agentmods](https://agentmods.dev/badge/rules/tashangkd/cognitive-os/cognitive-principle-check/github.svg)](https://agentmods.dev/rules/tashangkd/cognitive-os/cognitive-principle-check)
Your own site
<a href="https://agentmods.dev/rules/tashangkd/cognitive-os/cognitive-principle-check"><img src="https://agentmods.dev/badge/rules/tashangkd/cognitive-os/cognitive-principle-check/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 cognitive-principle-check

Your own site · 80×15
<a href="https://agentmods.dev/rules/tashangkd/cognitive-os/cognitive-principle-check"><img src="https://agentmods.dev/badge/rules/tashangkd/cognitive-os/cognitive-principle-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 723 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 92% copy Near-identical to another mod 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.00057 $0.00723
Opus 5.5 $0.00023 $0.00289
Sonnet 5.5 $0.00011 $0.00145
Haiku 4.5 $0.00006 $0.00072

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

Security

Grade A, and why

cognitive-principle-check 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 3mo 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.

Origin

This is a copy

92% identical to cognitive-principle-check — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursor/rules/cognitive-principle-check.mdc · 65 lines

What it actually says

新知识原则校验规则(Principle Check on New Knowledge)

核心原则

L1.5 底层原则是认知体系的「操作系统」,所有L1文档的内容都应该与其相容。

每次向L1文档写入新内容时,AI 应该快速检查是否与已确认的L1.5原则有张力。


触发条件

当 AI 刚完成对 cognitive/L1_knowledge/ 下任何文件的 Write 操作后,自动执行检查。


检查流程

Step 1:读取 L1.5/底层原则库.md 中「已确认原则」部分(P1/P2 等)

Step 2:对刚写入的内容,快速判断:

  • 是否与 P1(验证优先于感受) 有张力? → 警惕:「感觉」「直觉上」「应该」等未经验证的表述被写成了规律
  • 是否与 P2(从小点切入升维到底层规律) 有张力? → 警惕:从单一场景直接推导出了宽泛的通用规律而未说明推导路径

Step 3:根据检查结果决定是否提示:

  • 无张力 → 无需提示,静默通过,正常写入
  • 有张力(轻微):
    ⚠️ 注意:刚写入的内容可能与P[N]「[原则表述]」有轻微张力。
    「[有张力的具体句子]」
    建议:可以加一个前提条件,或在括号中说明适用场景。
    [忽略,保持原文] [帮我加前提说明]
    
  • 有张力(明显):
    ⚠️ 注意:刚写入的内容与P[N]「[原则表述]」存在明显张力。
    「[有张力的具体句子]」
    原则说:[P?的核心表述]
    这段内容隐含:[隐含的相反前提]
    建议处理方式:[具体建议]
    [忽略] [修改这段内容] [更新原则以包容这个例外]
    

说明

  • 这个检查是辅助性的,不是阻断性的 用户说「忽略」就忽略,AI 不强制阻止写入

  • 只检查「已确认原则」(✅ 状态),不检查候选原则(🟡 状态)

  • 不要过度敏感:只有明确的逻辑张力才提示,不要为了「鸡蛋里挑骨头」而提示

  • 如果用户说「更新原则以包容这个例外」:触发 cognitive-extract-principle Skill,看是否需要修订 P1/P2 的边界条件

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. 3mo ago First seen · 65 lines · 57 tokens per session scan A 9def50aa605c

Subscribe to this mod's changes

cognitive-principle-check is a cursor rule published in the GitHub repository TashanGKD/cognitive-os (13 stars, last pushed 8mo ago), licensed MIT. It adds 57 tokens to every session and 723 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to cognitive-principle-check, differing in 2 lines, and is treated as a copy.

Related

cognitive-principle-check compared with cursor rules from other repositories

cognitive-principle-check next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cognitive-principle-checkTashanGKD/cognitive-osCursor rule138mo agoMITA57Cursor
cognitive-l3-auto-logTashanGKD/tashan-cursor-skillsCursor rule258mo agoMITA1,083Cursor
cognitive-principle-checkTashanGKD/tashan-cursor-skillsCursor rule258mo agoMITA57Cursor
profile-collectorTashanGKD/tashan-cursor-skillsCursor rule258mo agoMITA34Cursor
fragment-before-direct-editTashanGKD/tashan-cursor-skillsCursor rule258mo agoMITA71Cursor
memory-bankleshchenko1979/fast-mcp-telegramCursor rule509d agoMITA1,623Cursor
00-workflowJkudjo/oh-my-cursorCursor rule118d agoMITA957Cursor