maintain | 精简 CLAUDE.md:压缩项目上下文注入(1593B→1048B),指向 WIKI-SCHEMA.md 权威规范

This commit is contained in:
AAsige
2026-08-07 05:17:47 +08:00
parent e192ffcd73
commit a5ac6948e7
+12 -24
View File
@@ -1,30 +1,18 @@
# CLAUDE.md # CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. 本仓库是 WikiLLM:一个基于 Markdown 的 LLM 维护型个人知识库(Obsidian 前端)。
## Project Overview ## 目录结构
WikiLLM is a system for building LLM-powered personal knowledge bases. The workflow consists of: - `raw/` — 原始来源与不可变摘编(期货/股票/估值/宏观/量化 等域,见 `raw/期货/README.md`
- `wiki/` — 编译后的可检索知识:`concepts/``practices/``queries/`,入口 `wiki/INDEX.md`
- `tools/``wiki-audit.ps1`(审计)、`wiki-reflect.ps1`(反思)、`wiki-push.ps1`(推送 Gitea
- `wiki/_meta/WIKI-SCHEMA.md`**权威规范**:分层、页面类型、frontmatter、哈希登记、导航、审计与推送流程
1. **Data Ingest**: Source documents (articles, papers, repos, datasets, images) are indexed into a `raw/` directory ## 核心原则
2. **Wiki Compilation**: An LLM incrementally "compiles" the raw data into a wiki of markdown files with summaries, backlinks, categorized concepts, and interlinked articles
3. **IDE**: Obsidian is used as the frontend to view raw data, compiled wiki, and visualizations
4. **Q&A**: The LLM can answer complex questions against the wiki by researching the related data
5. **Output**: Results are rendered as markdown files, Marp slides, or matplotlib images, viewable in Obsidian
6. **Linting**: LLM "health checks" find inconsistencies, impute missing data, suggest new article candidates
7. **Extra Tools**: Additional tools like a naive search engine over the wiki
## Directory Structure - LLM 负责编译与维护 wiki 页面;用户编辑过的 raw 文件视为受保护,不自动改写
- 每个页面有 YAML frontmatter 与 `raw_sources`(指向仓库内真实文件+哈希)
The project will eventually include these key directories: - 新页面须链接到 `wiki/INDEX.md` 与至少一个相关页面
- 每次维护后运行 `pwsh -File tools/wiki-audit.ps1`;推送用 `tools/wiki-push.ps1 -Audit`
- `raw/` - Source documents and unprocessed data - 详情一律以 `wiki/_meta/WIKI-SCHEMA.md` 为准
- `wiki/` - LLM-compiled markdown wiki with articles, summaries, and links
- `tools/` - CLI tools for searching, processing, and enhancing the wiki
## Core Principles
- The LLM writes and maintains all wiki data; manual edits are rare
- User explorations and queries are filed back into the wiki to enhance it
- The system focuses on markdown files and Obsidian-compatible formats
- Images are downloaded locally for easy LLM reference