Files
personal-wiki/CLAUDE.md
Daniel 98c0eeb3e6 fix: 13 skill review issues in /canvas
Critical:
- find precedence bug fixed: added \( -name '*.png' -o -name '*.jpg' \) grouping
  so -newer applies to BOTH extensions, not just .jpg
- Auto-positioning row y-detection: replaced broken right-half heuristic with
  min(n.y for all inside) — matches canvas-spec.md pseudocode
- WIKI.md canvas color table corrected: 1=red,2=orange,3=yellow,4=green,5=cyan,6=purple
  (was wrong mapping 1=blue etc from the graph CSS scheme, not canvas colors)

High:
- ID generation: full Unix timestamp (10 digits) instead of last-4-digits
  + added collision fallback (-2, -3 suffix)
- README: added /canvas add text and /canvas add pdf to commands table
- Aspect ratio: removed duplicate partial table from SKILL.md — now defers
  to canvas-spec.md as single source of truth
- new op: writes to wiki/overview.md not wiki/index.md (index has fixed schema)
- from banana: added explicit note that /banana is an optional external skill

Medium:
- add note: clarified 'type: file' vs 'type: link' — .md files use file nodes
- zone fallback y: changed from -140 (overlaps starter) to 280 (safe below all content)
- CLAUDE.md: added /save, /autoresearch, /canvas to Plugin Skills table

Low:
- allowed-tools: removed Grep (unused by any documented operation)
- Frontmatter: flattened description to single-line quoted string (fixes IDE
  YAML block scalar parsing diagnostic on lines 4-9)
2026-04-07 13:30:31 +03:00

65 lines
2.1 KiB
Markdown

# cosmic-brain — Claude + Obsidian Wiki Vault
This folder is both a Claude Code plugin and an Obsidian vault.
**Plugin name:** `cosmic-brain`
**Skills:** `/wiki`, `/wiki-ingest`, `/wiki-query`, `/wiki-lint`
**Vault path:** This directory (open in Obsidian directly)
## What This Vault Is For
[Fill this in when you first scaffold the vault. One sentence describing your purpose.]
## Vault Structure
```
.raw/ source documents — immutable, Claude reads but never modifies
wiki/ Claude-generated knowledge base
_templates/ Obsidian Templater templates
_attachments/ images and PDFs referenced by wiki pages
```
## How to Use
Drop a source file into `.raw/`, then tell Claude: "ingest [filename]".
Ask any question. Claude reads the index first, then drills into relevant pages.
Run `/wiki` to scaffold a new vault or check setup status.
Run "lint the wiki" every 10-15 ingests to catch orphans and gaps.
## Cross-Project Access
To reference this wiki from another Claude Code project, add to that project's CLAUDE.md:
```markdown
## Wiki Knowledge Base
Path: /path/to/this/vault
When you need context not already in this project:
1. Read wiki/hot.md first (recent context, ~500 words)
2. If not enough, read wiki/index.md
3. If you need domain specifics, read wiki/<domain>/_index.md
4. Only then read individual wiki pages
Do NOT read the wiki for general coding questions or things already in this project.
```
## Plugin Skills
| Skill | Trigger |
|-------|---------|
| `/wiki` | Setup, scaffold, route to sub-skills |
| `ingest [source]` | Single or batch source ingestion |
| `query: [question]` | Answer from wiki content |
| `lint the wiki` | Health check |
| `/save` | File the current conversation as a structured wiki note |
| `/autoresearch [topic]` | Autonomous research loop: search, fetch, synthesize, file |
| `/canvas` | Visual layer: add images, PDFs, notes to Obsidian canvas |
## MCP (Optional)
If you configured the MCP server, Claude can read and write vault notes directly.
See `skills/wiki/references/mcp-setup.md` for setup instructions.