Portable Obsidian documentation system installer for AI agents. Drop this folder into any repo. AI reads the instructions, analyzes your codebase, and builds a documentation brain automatically.
This is not a traditional installer. It is a set of Markdown instructions that AI agents (Claude Code, Copilot, Cursor, etc.) read to:
- Analyze your repo structure
- Design a documentation tree tailored to your codebase
- Create interconnected Markdown docs optimized for Obsidian graph view
- Optimize link structure to remove duplicate/valueless links for cleaner graph + lower token use
The result: your repo gains a living knowledge base that both humans and AI can navigate.
This project uses a hybrid approach:
- Core (install-obsidian, non-negotiable): phase-based installer flow, stable rules, migration safety, and practical completion gates
- Inspired layer (llm-wiki style): smaller knowledge units, high-signal cross-links, living docs, and rationale-first writing
The inspired layer is an enhancement, not a replacement for the installer core.
# 1. Clone this repository
git clone https://github.com/Piyabordee/install-obsidian.git
# 2. Copy this folder into your repo root
# macOS / Linux:
cp -r install-obsidian/ /path/to/your-repo/
# Windows (PowerShell):
Copy-Item -Recurse install-obsidian\ C:\path\to\your-repo\
# 3. Open Claude Code in your repo
cd /path/to/your-repo
claude
# 4. Tell Claude:
> Read install-obsidian/INSTALL.md and follow the instructionsOpen INSTALL.md and follow the phases. Feed each phase file to your AI agent sequentially.
Before Phase 2, explicitly choose mode: strict (default) or adaptive.
This installer supports two output modes.
CLAUDE.mdas the project operational hubdocs/_index.mdas the documentation navigation hub./.claude/rules/stable-rules.mdand./.claude/rules/security-rules.mdfor stable/non-negotiable constraintsdecisions.mdfor persistent design decisions across sessions
Creates a full standardized documentation skeleton:
your-repo/
├── CLAUDE.md # Project hub (AI reads this first)
├── docs/
│ ├── _index.md # Documentation navigation hub
│ ├── project/ # Project-level knowledge
│ ├── architecture/ # Structure and subsystem docs
│ ├── features/ # Feature workflow docs
│ ├── integrations/ # External dependency docs (if applicable)
│ ├── build/ # Build/packaging docs (if applicable)
│ ├── testing/ # Testing knowledge
│ └── reference/ # Stable reference docs
Creates only categories justified by repo analysis (example):
your-repo/
├── CLAUDE.md
├── docs/
│ ├── _index.md
│ ├── project/
│ ├── architecture/
│ └── features/
In both modes, files must contain real content. No empty placeholders.
- Flex, not static — AI analyzes YOUR repo, creates docs that match YOUR structure
- Hub-and-spoke — CLAUDE.md is the front door, docs/ are the rooms
- Graph-friendly — Wiki links between docs make Obsidian graph useful
- Minimal — Only creates docs where real knowledge exists, no empty placeholders
- Context-first — explain why decisions and workflows exist, not only where files are
| File | Purpose |
|---|---|
| [[INSTALL]] | Step-by-step instructions for AI agents |
| [[PRINCIPLES]] | Design principles and decision framework |
| [[CONTRIBUTING]] | Contributor guidelines |
| [[CHANGELOG]] | Version tracking |
CLAUDE.md |
Operational hub used by AI agents |
decisions.md |
Persistent design decision log |
.claude/rules/ |
Stable project and security rules |
TEMPLATES/ |
Document structure templates, including migration mapping |
PHASES/ |
Sequential execution phases (Analyze → Design → Implement → Cleanup → Optimize Links) |
- Open your repo in Obsidian
- Enable "Detect all file types" in Obsidian settings
- Ensure "Use [[Wikilinks]]" is enabled in Settings > Files & Links
- The graph view should now show meaningful connections between docs
- When you add new features, AI will follow the Doc Workflow in CLAUDE.md to create new docs automatically
- An AI agent capable of reading files and exploring a codebase
- The target repo must have identifiable structure (any language, any framework)
- Obsidian (optional, for graph view)
Public domain. Use freely in any project.