nightmend: Instructions file for Claude Code

CLAUDE.md

nightmend CLAUDE.md is an instructions file for Claude Code from LinChuang2008/nightmend. It costs 1,271 tokens per session, scanned A, original, Apache-2.0.

A project instruction file that tells a coding agent how to follow NightMend’s design system, choose specialized skills, and understand the project structure.

In plain words
What is it for?
It guides UI work, bug investigations, deployments, code reviews, testing, architecture planning, progress checkpoints, and documentation updates.
Why use it?
It keeps visual decisions consistent and routes common requests, such as bug fixing or deployment, through the project’s preferred workflows.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

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

Reuse

Borrowing it

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/linchuang2008/nightmend/claude-md.svg)](https://agentmods.dev/instructions/linchuang2008/nightmend/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/linchuang2008/nightmend/claude-md"><img src="https://agentmods.dev/badge/instructions/linchuang2008/nightmend/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,271 This file is loaded in full into every session.
When invoked 1,271 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.01271 $0.01271
Opus 5 $0.00635 $0.00635
Sonnet 5 $0.00254 $0.00254
Haiku 4.5 $0.00127 $0.00127

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

Security

Grade A, and why

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

CLAUDE.md · 104 lines

How it starts

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

NightMend — Project Instructions

Design System

Always read DESIGN.md before making any visual or UI decisions. All font choices, colors, spacing, and aesthetic direction are defined there. Do not deviate without explicit user approval. In QA mode, flag any code that doesn't match DESIGN.md.

Skill routing

When the user's request matches an available skill, ALWAYS invoke it using the Skill tool as your FIRST action. Do NOT answer directly, do NOT use other tools first. The skill has specialized workflows that produce better results than ad-hoc answers.

Key routing rules:

  • Product ideas, "is this worth building", brainstorming → invoke office-hours
  • Bugs, errors, "why is this broken", 500 errors → invoke investigate
  • Ship, deploy, push, create PR → invoke ship
  • QA, test the site, find bugs → invoke qa
  • Code review, check my diff → invoke review
  • Update docs after shipping → invoke document-release
  • Weekly retro → invoke retro
  • Design system, brand → invoke design-consultation
  • Visual audit, design polish → invoke design-review
  • Architecture review → invoke plan-eng-review
  • Save progress, checkpoint, resume → invoke checkpoint
  • Code quality, health check → invoke health

Overview

NightMend (vigilops) — AI 驱动的智能运维监控平台。接收告警 → AI 分析 → 自动修复。

Tech Stack

  • 后端: Python 3, FastAPI, SQLAlchemy (async), PostgreSQL, Redis, Alembic migrations
  • 前端: React 19, TypeScript, Vite 7, Ant Design 6, ECharts, i18n
  • Agent: Python, asyncssh, 独立部署到被监控主机
  • 部署: Docker Compose (dev/demo/prod/ssl 四套), ClickHouse (时序数据)
  • AI: DeepSeek API, MCP 集成, fastmcp

Project Structure

vigilops/
├── backend/              # FastAPI 后端
│   ├── app/
│   │   ├── api/          # REST API 路由
│   │   ├── models/       # SQLAlchemy 模型
│   │   ├── services/     # 业务逻辑
│   │   ├── remediation/  # 自动修复引擎
│   │   ├── mcp/          # MCP 集成
│   │   └── tasks/        # 后台任务
│   ├── alembic/          # 数据库迁移
│   └── tests/            # 后端测试
├── frontend/             # React 前端
│   └── src/
│       ├── pages/        # 页面
│       ├── components/   # 组件
│       ├── services/     # API 调用
│       └── stores/       # 状态管理
├── agent/                # 被监控主机 Agent
│   └── nightmend_agent/  # Agent 核心代码
├── charts/               # Helm charts
├── deploy/               # 部署脚本
└── docker-compose*.yml   # 多环境部署

Read the full file on GitHub · 104 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 · 104 lines · 1,271 tokens per session scan A 15c34357e2e9

Subscribe to this mod's changes

nightmend CLAUDE.md is an instructions file published in the GitHub repository LinChuang2008/nightmend (19 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 1,271 tokens to every session, about $0.0064 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-30.

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

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

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