liye-ai: Instructions file for Claude Code

CLAUDE.md

liye-ai CLAUDE.md is an instructions file for Claude Code from liyecom/liye-ai. It costs 2,156 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for LiYe AI, a governance and contract project that defines rules for other software systems. They act as a short navigation guide to its contracts, validation scripts and automation.

In plain words
What is it for?
Use them when changing contracts, governance rules, validation checks or the project's controlled automation.
Why use it?
They help an assistant find the authoritative project rules and avoid putting business logic in a repository intended to define shared agreements.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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 liye-ai CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/liyecom/liye-ai/claude-md.svg)](https://agentmods.dev/instructions/liyecom/liye-ai/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/liyecom/liye-ai/claude-md"><img src="https://agentmods.dev/badge/instructions/liyecom/liye-ai/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,156 This file is loaded in full into every session.
When invoked 2,156 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.02156 $0.02156
Opus 5 $0.01078 $0.01078
Sonnet 5 $0.00431 $0.00431
Haiku 4.5 $0.00216 $0.00216

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

Security

Grade A, and why

liye-ai 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 8d 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 · 81 lines

How it starts

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

CLAUDE.md (Kernel)

本文件是 liye_os(GitHub repo liyecom/liye-ai)的启动路牌 + 最小常驻 context。 只放导航、命令、纪律;不放 SOP/协议/skill 全文。 本文件受机器门保护:guardrail ≤10,000 chars(node .claude/scripts/guardrail.mjs); 改动本文件的 PR 标题须 kernel:/governance: 前缀或 kernel-change label(Kernel Guard CI)。

System Role

  • Layer: 0(制度底座)——LiYe Systems 的 governance / contract compiler + 窄控制面工具;语义入宪、实现下沉,不拥有预建通用 agent runtime。
  • 系统级 SSOT: _meta/portfolio/SYSTEMS.md(生态分层、BGHS 四分法、D0-D3 成熟度、依赖方向)。
  • 项目级 SSOT: _meta/contracts/。讨论生态角色/层级以 SYSTEMS.md 为准;讨论本仓治理以 contracts 为准。
  • 本仓不做具体业务逻辑:向 domain engines(AGE/UGE/chaming)和按需执行体输出合约;常驻 runtime 必须重新满足 demand-pull 或 risk-pull。

治理面导航(2026-07 现状;计数会漂移,以命令重数为准)

资产 路径 一句话
契约 SSOT(22-schema gate) _meta/contracts/ learning×13 · engine×2(v1+v2)· governance×3 · loop×1 · execution×1 · playbook×1 · proactive×1;其中 16 个注册在 validate-contracts.mjs schemaFiles[],6 个由专用校验器覆盖
loop contract v2(C1-C13) _meta/contracts/loop/ governed work loop 契约语言层:schema + template + fixtures,两层校验(ajv 结构 + 语义派生);v2 增 stop_condition/kill_switch/evidence_package/词表收紧;contract_status: schema_validated_only,背后无 runner
execution contract v0 _meta/contracts/execution/ 受治理执行的 schema + template + fixtures:approval/resume/receipt/readback/verdict/rollback-ref;contract_status: schema_validated_only,不隐含 runner/runtime
政策 _meta/policies/ DEFAULT_SKILL_POLICY.md(9 条,Policy 9=Surgical Scope)+ BACKLOG_INTAKE_POLICY.md(agent 只 propose、operator 翻牌)
ADR _meta/adr/ 22 份;新决策先查重再增
SPEC _meta/specs/ 跨仓 SPEC(含 user-growth-engine)
学习管线 .claude/scripts/learning/ import_facts → pattern_detector → crystallizer → promotion → heartbeat → metrics → phase4_entry_gate;全部 operator/CI 触发,无调度器
学习源注册表 .claude/config/learning_sources.yaml 写门之一:enabled + expected_manifest_hash 双字段;arm 只授权 import 信任,不授权 emit/平台写
外源引入 tools/source-intake/ URL→artifact 受控轨道 S0-S6 七阶三门;tools/github-scout/ 只读探查
skill 工厂 _meta/skill-factory/ SFC v0.2 契约 + 单一 SSOT frontmatter 解析器 + sfc-ci.yml
台账 _meta/contracts/ledger/ manifest reality 每日 append-only 记录(Band B 时钟证据)
改革蓝图 _meta/reform/ v1.1
Portfolio disposition evidence _meta/portfolio/decommission/ 主轴 B 与 websites 的 inventory;只记录证据/目标处置,不授权迁移、关停或逐仓定级

Read the full file on GitHub · 81 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. 8d ago First seen · 81 lines · 2,156 tokens per session scan A 3b7a1a151397

Subscribe to this mod's changes

liye-ai CLAUDE.md is an instructions file published in the GitHub repository liyecom/liye-ai (33 stars, last pushed today), licensed Apache-2.0. It adds 2,156 tokens to every session, about $0.0108 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,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

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