HyperHierarchicalRAG: Instructions file for Claude Code

CLAUDE.md

HyperHierarchicalRAG CLAUDE.md is an instructions file for Claude Code from u9401066/HyperHierarchicalRAG. It costs 1,149 tokens per session, scanned A, a copy of nsforge-mcp CLAUDE.md, Apache-2.0.

A project guide for Claude Code, Anthropic’s AI coding assistant, in the HyperHierarchicalRAG project. It describes the project’s rules, architecture, memory files, Python setup, and Git workflow.

In plain words
What is it for?
Use it when working on this AI-assisted development template, which includes layered rules, reusable Claude skills, a project memory bank, domain-driven design, and a separate data-access layer. It also documents Python setup and pre-commit checks.
Why use it?
It gives the assistant the project context and a defined order of rules to follow. It also keeps progress, current focus, decisions, tests, and development checks in agreed locations.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is u9401066/HyperHierarchicalRAG's own configuration. It tells Claude Code how to work on HyperHierarchicalRAG 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 HyperHierarchicalRAG configures →

Reuse

Borrowing it

Nothing to install: this file belongs to u9401066/HyperHierarchicalRAG. 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/u9401066/HyperHierarchicalRAG/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/u9401066/HyperHierarchicalRAG

Made for: Claude Code.

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 HyperHierarchicalRAG CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/u9401066/hyperhierarchicalrag/claude-md/github.svg)](https://agentmods.dev/instructions/u9401066/hyperhierarchicalrag/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/u9401066/hyperhierarchicalrag/claude-md"><img src="https://agentmods.dev/badge/instructions/u9401066/hyperhierarchicalrag/claude-md/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 HyperHierarchicalRAG CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/u9401066/hyperhierarchicalrag/claude-md"><img src="https://agentmods.dev/badge/instructions/u9401066/hyperhierarchicalrag/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,149 This file is loaded in full into every session.
When invoked 1,149 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 100% 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.01149 $0.01149
Opus 5.5 $0.00460 $0.00460
Sonnet 5.5 $0.00230 $0.00230
Haiku 4.5 $0.00115 $0.00115

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

Security

Grade A, and why

HyperHierarchicalRAG CLAUDE.md 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 1mo 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

100% identical to nsforge-mcp CLAUDE.md — 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.

CLAUDE.md · 130 lines

How it starts

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

CLAUDE.md - Claude Code 專案指引

此文件為 Claude Code(Anthropic 的 AI 編程助手)提供專案上下文。 當使用 Claude Code 時,它會自動讀取此文件以了解專案規範。


專案概述

這是一個 AI 輔助開發專案模板,整合了:

  • 憲法-子法層級規則系統
  • Claude Skills 模組化技能
  • Memory Bank 專案記憶
  • DDD + DAL 獨立架構

法規層級

CONSTITUTION.md          ← 最高原則(不可違反)
  │
  ├── .github/bylaws/    ← 子法(細則規範)
  │     ├── ddd-architecture.md
  │     ├── git-workflow.md
  │     └── memory-bank.md
  │
  └── .claude/skills/    ← 實施細則(操作程序)

核心原則

0. 開發哲學 💡

「想要寫文件的時候,就更新 Memory Bank 吧!」

「想要零散測試的時候,就寫測試檔案進 tests/ 資料夾吧!」

  • 不要另開檔案寫筆記,直接寫進 Memory Bank
  • 今天的零散測試,就是明天的回歸測試

1. DDD 架構

  • Domain Layer 不依賴外部
  • DAL (Data Access Layer) 必須獨立
  • 使用 Repository Pattern
  • 參見:.github/bylaws/ddd-architecture.md

2. Python 環境(uv 優先)

# 初始化
uv venv && uv sync --all-extras

# 安裝依賴
uv add package-name
uv add --dev pytest ruff mypy
  • 參見:.github/bylaws/python-environment.md

3. Memory Bank 同步

每次重要操作必須更新:

  • memory-bank/progress.md - 進度追蹤
  • memory-bank/activeContext.md - 當前焦點
  • memory-bank/decisionLog.md - 重要決策

4. Git 工作流

提交前執行檢查清單:

  1. Memory Bank 同步
  2. README 更新(如需要)
  3. CHANGELOG 更新
  4. ROADMAP 標記

可用 Skills

Skill 用途
git-precommit Git 提交前編排器
ddd-architect DDD 架構輔助
code-refactor 主動重構與模組化
memory-updater Memory Bank 同步
memory-checkpoint 記憶檢查點(Summarize 前外部化)
readme-updater README 智能更新
changelog-updater CHANGELOG 自動更新
roadmap-updater ROADMAP 狀態追蹤
code-reviewer 程式碼審查
test-generator 測試生成(Unit/Integration/E2E)
project-init 專案初始化

💸 Memory Checkpoint 規則

主動觸發時機

  • 對話超過 10 輪 時,主動建議 checkpoint
  • 完成 重大功能 後,主動執行 checkpoint
  • 使用者說要 離開/等等繼續 時,主動執行 checkpoint

Checkpoint 內容必須包含

  • 具體檔案路徑
  • 變更摘要
  • 下一步計畫
  • 重要決策(如有)

觸發指令

「記憶檢查點」 / 「checkpoint」 / 「存檔」
「保存記憶」 / 「sync memory」

常用指令

「準備 commit」       → 執行完整提交流程
「快速 commit」       → 只同步 Memory Bank
「建立新功能 X」      → 生成 DDD 結構
「review 程式碼」     → 程式碼審查
「更新 memory bank」  → 同步專案記憶

Read the full file on GitHub · 130 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. 1mo ago First seen · 130 lines · 1,149 tokens per session scan A 74cf3ef9f5a1

Subscribe to this mod's changes

HyperHierarchicalRAG CLAUDE.md is an instructions file published in the GitHub repository u9401066/HyperHierarchicalRAG (2 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 1,149 tokens to every session, about $0.0046 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to nsforge-mcp CLAUDE.md, differing in 2 lines, and is treated as a copy.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens