ai-furniture-hub: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from ONE8943/ai-furniture-hub. It costs 935 tokens per session, scanned A, original, MIT.

A set of Cursor coding rules for an MCP hub that helps AI agents search furniture and storage products. MCP is a standard way for AI tools to call external services.

In plain words
What is it for?
Guiding TypeScript and Zod schemas, product-search tool definitions, analytics and conversion logs, privacy handling, platform adapters, and affiliate-link management.
Why use it?
It keeps development decisions aligned with the project’s purpose and sets requirements for intent collection, privacy, logging, data units, schemas, and affiliate links.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

This is ONE8943/ai-furniture-hub's own configuration. It tells Cursor how to work on ai-furniture-hub itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-furniture-hub configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ONE8943/ai-furniture-hub. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ONE8943/ai-furniture-hub/master/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/ONE8943/ai-furniture-hub

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 cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/one8943/ai-furniture-hub/cursorrules/github.svg)](https://agentmods.dev/rules/one8943/ai-furniture-hub/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/one8943/ai-furniture-hub/cursorrules"><img src="https://agentmods.dev/badge/rules/one8943/ai-furniture-hub/cursorrules/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 cursorrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/one8943/ai-furniture-hub/cursorrules"><img src="https://agentmods.dev/badge/rules/one8943/ai-furniture-hub/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 935 This file is loaded in full into every session.
When invoked 935 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.00935 $0.00935
Opus 5 $0.00467 $0.00467
Sonnet 5 $0.00187 $0.00187
Haiku 4.5 $0.00093 $0.00093

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

Security

Grade A, and why

cursorrules 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 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.

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.

.cursorrules · 65 lines

What it actually says

MCP Hub Project Rules (v1.5)

詳細ルールは Rules/ フォルダの各MDファイルを参照すること。


コアプリンシパル

  • このプロジェクトは「家具・収納商品のAIエージェント向けMCPハブ」である
  • 単なる情報提供に留まらず、需要調査機として機能させることが目的
  • 全設計判断はこの目的に沿って行うこと

必須ルール(常に遵守)

インサイト収集

  • 全MCPツールの引数に intent(ユーザーの目的・背景)を必須または推奨で含めること
  • ツール定義のdescriptionに「intentにユーザーの具体的な目的を詳細に記述せよ」と明記すること
  • 詳細: Rules/insight-collection.md

ログ記録

  • 全検索・問い合わせを logs/analytics.jsonl に記録すること
  • 記録項目: 検索条件・推測意図・ヒット件数・ミス(適合なし)フラグ
  • 詳細: Rules/logging.md

プライバシー

  • 個人を特定する情報は一切記録しないこと
  • あくまで「ニーズの統計」として扱うこと
  • 詳細: Rules/privacy.md

アーキテクチャ

  • レイヤー構成・スキーマ定義・ツール設計の方針を遵守すること
  • 詳細: Rules/architecture.md

TypeScript開発

  • Zodによるスキーマ定義を必ず行うこと
  • 単位はmm(ミリメートル)で統一すること
  • 詳細: Rules/typescript.md

収益化・アフィリエイト(v1.5追加)

  • Product スキーマに affiliate_url フィールドを含めること(検索結果に必ず付与する)
  • アフィリエイトIDは必ず環境変数(.env)で管理し、コードにハードコードしないこと
  • 各プラットフォーム(Nitori/Rakuten/Amazon)のアダプターを adapters/ に分離すること
  • AIエージェントへの description に「ユーザーに提示する際は必ず affiliate_url を使用せよ」と明記すること
  • logs/conversions.jsonl にアフィリエイトリンク生成イベントを記録すること
  • .env は絶対にコミットしないこと(.gitignore で除外済み)
  • 詳細: Rules/affiliate.md

自己進化ループ(v1.4追加)

  • requirement_gaps.jsonl を集計し、高頻度ギャップを proposals/pending/ にJSONで自動出力すること
  • AIは提案を生成するだけで、スキーマの自動書き換えは行わないこと(管理者承認が必要)
  • スクレイピングを行う場合は必ず robots.txt を確認し、レートリミット(最低3秒/リクエスト)を守ること
  • 詳細: Rules/self-evolution.md

需要ギャップ検知(v1.3追加)

  • 検索ツールは intent テキストを必ずスキャンし、既存スキーマにない属性需要を logs/requirement_gaps.jsonl に記録すること
  • ギャップ検知時はレスポンスに「ニーズを受け付けた」旨のメッセージを含めること
  • 不足項目は detected_attributefrequency で追跡し、将来のスキーマ拡張判断に使うこと
  • 詳細: Rules/gap-detection.md

細かいルールはすべて Rules/ フォルダを参照すること

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 · 65 lines · 935 tokens per session scan A 0cc0fad1dbb0

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository ONE8943/ai-furniture-hub (1 stars, last pushed 4mo ago), licensed MIT. It adds 935 tokens to every session, about $0.0047 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-31.