Undefined: Instructions file for Claude Code

CLAUDE.md

Undefined CLAUDE.md is an instructions file for Claude Code from 69gg/Undefined. It costs 4,195 tokens per session, scanned A, original, MIT.

Project instructions for Undefined, a Python platform for QQ chat bots that communicates through the OneBot V11 protocol and includes web, desktop, and Android management tools.

In plain words
What is it for?
They are for developing, testing, formatting, type-checking, building, and running Undefined and its related front ends.
Why use it?
They explain how to install dependencies, start the bot or management interface, and run the required checks across the project.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/69gg/undefined/claude-md"><img src="https://agentmods.dev/badge/instructions/69gg/undefined/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,195 This file is loaded in full into every session.
When invoked 4,195 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.04195 $0.04195
Opus 5.5 $0.01678 $0.01678
Sonnet 5.5 $0.00839 $0.00839
Haiku 4.5 $0.00419 $0.00419

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

Security

Grade A, and why

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

CLAUDE.md · 176 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

项目概述

Undefined 是基于 Python asyncio 的高性能 QQ 机器人平台,通过 OneBot V11 协议(NapCat/Lagrange.Core)与 QQ 通信,搭载认知记忆架构、自研 Skills 系统、本地知识库、全局表情包库,以及 Management-first WebUI / Desktop / Android 管理端。

开发命令

# 依赖安装 / 初始化
uv sync
uv run playwright install       # 页面截图等能力依赖的浏览器运行时

# 启动
uv run Undefined-webui          # 启动 Management-first WebUI(推荐入口)
uv run Undefined                # 直接启动 Bot

# WebUI 自动启动 Bot
# 配置 [webui].autostart_bot = true 后,运行 uv run Undefined-webui 会自动拉起 bot 进程
# 默认为 false,保持传统手动启动行为
# 注意:该配置仅在 WebUI 启动时生效,运行时修改需重启 WebUI

# 代码质量(提交前必须全部通过)
uv run ruff format .
uv run ruff check .
uv run mypy .                   # strict=true
uv run pytest tests/
uv run pytest tests/test_xxx.py
uv run pytest tests/test_xxx.py::test_func -v
uv build --wheel                # 校验打包与资源包含

# 前端 / 桌面端(仅改动 apps/undefined-console/ 或 apps/undefined-chat/ 或 webui/static/js/ 时需要)
cd apps/undefined-console && npm ci && npm run check
cd apps/undefined-console && npm run dev
cd apps/undefined-console && npm run tauri:dev

cd apps/undefined-chat && npm ci && npm run check
cd apps/undefined-chat && npm run tauri:dev

# Git hooks 安装
bash scripts/install_git_hooks.sh
# pre-commit 自动执行:ruff format --check + ruff check + mypy
# 含 JS/Tauri 改动时额外执行:Biome + TypeScript + cargo fmt/check

代码规范

  • 类型注释:所有 Python 代码必须有完整类型注释,mypy strict 模式
  • 异步 IO:磁盘读写必须走 utils/io.py(asyncio.to_thread + 跨平台文件锁 + 原子写入),禁止在事件循环中直接阻塞 IO
  • Python 版本:>=3.11, <3.14(推荐 3.12)
  • 测试:pytest + pytest-asyncio,asyncio_mode = "auto"
  • 前端格式化:src/Undefined/webui/static/js/ 由根目录 biome.json 管理;apps/undefined-console/ 和 apps/undefined-chat/ 走 Biome + TypeScript + Cargo 检查
  • 版本号同步:发布版本时优先使用 uv run python scripts/bump_version.py <version>,统一同步 Python 包、console、chat 与 Tauri 版本号
  • Git hooks:优先通过 scripts/install_git_hooks.sh 安装,不要手动维护 core.hooksPath

架构分层

核心源码位于 src/Undefined/,主要模块如下(目录级事实来源是 docs/development.md 的目录树,本表只做职责概览):

Read the full file on GitHub · 176 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 Changed · +1 lines · +41 tokens per session f6a26fe625ba
  2. 1mo ago Changed · +2 lines · +292 tokens per session 5cbca8f75126
  3. 1mo ago Changed · +1 lines · +152 tokens per session 5ad8ec6bf311
  4. 1mo ago Changed · +139 tokens per session d7bf6296bbb6
  5. 2mo ago First seen · 172 lines · 3,571 tokens per session scan A 323997fd5c3c

Subscribe to this mod's changes

Undefined CLAUDE.md is an instructions file published in the GitHub repository 69gg/Undefined (256 stars, last pushed 13d ago), licensed MIT. It adds 4,195 tokens to every session, about $0.0168 per session on Opus 5.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

Undefined CLAUDE.md compared with instructions from other repositories

Undefined CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Undefined CLAUDE.md69gg/UndefinedInstructions file25613d agoMITA4,195Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode