nsforge-mcp: Instructions file for Claude Code

CLAUDE.md

nsforge-mcp CLAUDE.md is an instructions file for Claude Code from u9401066/nsforge-mcp. It costs 1,150 tokens per session, scanned A, original, Apache-2.0.

Project instructions for Claude Code, an AI coding assistant, in a template that uses layered rules, shared project notes, and separate software areas.

In plain words
What is it for?
It guides Python setup, domain-driven design (organizing code around business concepts), data access, tests, Git checks, and updates to the project's Memory Bank notes.
Why use it?
It gives the assistant consistent project context and rules to follow, reducing undocumented decisions and architecture drift.

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

Reuse

Borrowing it

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

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 nsforge-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/u9401066/nsforge-mcp/claude-md.svg)](https://agentmods.dev/instructions/u9401066/nsforge-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/u9401066/nsforge-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/u9401066/nsforge-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,150 This file is loaded in full into every session.
When invoked 1,150 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.01150 $0.01150
Opus 5 $0.00575 $0.00575
Sonnet 5 $0.00230 $0.00230
Haiku 4.5 $0.00115 $0.00115

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

Security

Grade A, and why

nsforge-mcp 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 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

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. 6d ago First seen · 130 lines · 1,150 tokens per session scan A a7506e6fffad

Subscribe to this mod's changes

nsforge-mcp CLAUDE.md is an instructions file published in the GitHub repository u9401066/nsforge-mcp (4 stars, last pushed 6d ago), licensed Apache-2.0. It adds 1,150 tokens to every session, about $0.0057 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.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

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 · 6,785 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,296 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,469 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens