NoteMeld: Instructions file for Claude Code

CLAUDE.md

NoteMeld CLAUDE.md is an instructions file for Claude Code from Hehejie1/NoteMeld. It costs 766 tokens per session, scanned A, original, MIT.

A set of coding instructions for the NoteMeld project. It emphasizes thinking through the request first, making the smallest necessary edits, preserving existing behavior, and verifying the result.

In plain words
What is it for?
Use it while modifying NoteMeld to guide planning, surgical edits, testing, documentation updates, and checks against existing application entry points.
Why use it?
It reduces unnecessary rewrites and makes assumptions or uncertainties visible before code changes begin. It also requires related system documentation to stay in sync when core behavior changes.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/hehejie1/notemeld/claude-md"><img src="https://agentmods.dev/badge/instructions/hehejie1/notemeld/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 766 This file is loaded in full into every session.
When invoked 766 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.00766 $0.00766
Opus 5 $0.00383 $0.00383
Sonnet 5 $0.00153 $0.00153
Haiku 4.5 $0.00077 $0.00077

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

Security

Grade A, and why

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

CLAUDE.md · 78 lines

What it actually says

CLAUDE.md

LLM 行为准则,减少常见编码错误。

1. 先思考再编码

不假设。不隐藏困惑。暴露权衡。

实现前:

  • 明确陈述假设。不确定就问。
  • 如有多种解读,都列出来——不要默默选一个。
  • 如有更简单的方法,说出来。必要时拒绝需求。
  • 如果不清楚,停下来。指出困惑点。问。
  • 开始任何改动前,先读 docs/system/ 下的系统文档和 AGENTS.md

2. 简洁优先

解决问题的代码越少越好。不想象未来需求。

  • 不写未明确要求的功能。
  • 不抽象单次使用的代码。
  • 不写未被要求的"灵活性"或"可配置性"。
  • 不处理不可能发生的错误场景。
  • 如果写了 200 行但 50 行就够了,重写。
  • 遵循最小改动原则,优先复用现有模块和 helper。

自问:"有经验的工程师会觉得这过度设计吗?" 如果是,简化。

3. 手术式修改

只改必须改的。只清理自己造成的。

编辑已有代码时:

  • 不"改进"相邻代码、注释或格式。
  • 不重构没坏的东西。
  • 匹配现有风格,即使你更喜欢另一种做法。
  • 如果注意到无关的死代码,提出来——但不删除。
  • 不能破坏源码启动、CLI、桌面、MCP、迁移、Wiki、上传、打包发布任一既有入口。

当你的改动造成孤立代码时:

  • 删除被你改动后不再使用的导入、变量、函数。
  • 不删除原本就存在的死代码,除非被明确要求。

测试:每一行改动的代码都应该能追溯到用户的需求。

4. 目标驱动执行

定义成功标准。循环直到验证通过。

把任务转化为可验证目标:

  • "加校验" → "为无效输入写测试,让测试通过"
  • "修 Bug" → "先写复现测试,再修复并验证"
  • "重构 X" → "确保测试在重构前后都通过"

多步骤任务,先给出简要计划:

1. <步骤> → 验证:<检查点>
2. <步骤> → 验证:<检查点>
3. <步骤> → 验证:<检查点>

好的成功标准能独立循环验证。差的标准("让它能用")需要不断追问。

5. 文档同步

改动以下内容时必须同步更新 docs/system/

  • 系统架构、运行入口、部署方式
  • 产品硬规则或 UX 行为
  • SQLite 表、字段、文件结构、状态流转
  • API 路径、请求参数、返回结构
  • MCP 工具
  • Wiki rebuild、任务状态、桌面 sidecar、迁移等核心链路
  • 新发现的坑点和回归防线

这些准则有效衡量标准: diff 中无关改动减少,不会因过度设计而重写,澄清问题出现在实现之前而不是错误之后。

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 · 78 lines · 766 tokens per session scan A c33b0589a34e

Subscribe to this mod's changes

NoteMeld CLAUDE.md is an instructions file published in the GitHub repository Hehejie1/NoteMeld (5 stars, last pushed 1mo ago), licensed MIT. It adds 766 tokens to every session, about $0.0038 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

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

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,153 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

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

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

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,737 tokens