Manage project documentation and export to NotebookLM using the Orion CLI.
Install
mkdir -p .claude/skills/orion-cli && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15815" && unzip -o skill.zip -d .claude/skills/orion-cli && rm skill.zipInstalls to .claude/skills/orion-cli
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Orion CLI dokümantasyon pipeline komutlarını öğretir, tree veya şemaKey capabilities
- →Generate Markdown documentation from source code
- →Combine generated documentation into a Master MD file
- →Upload documentation to NotebookLM
- →Create directory tree structures
- →Install pre-commit hooks for automatic documentation
- →Update documentation for changed files via Git diff
How it works
It processes source code files to generate Markdown documentation, consolidates them into a master document, and uploads them to NotebookLM.
Inputs & outputs
When to use orion-cli
- →Generate project documentation
- →Create directory tree structures
- →Sync code to notebooklm
- →Initialize orion documentation
About this skill
Orion CLI Dokümantasyon Pipeline
Bu yetenek (Skill), projedeki kaynak koddan Markdown dokümantasyon üretir, bunları tek bir Master MD'de birleştirir ve otonom olarak NotebookLM'e yükler. Tüm dokümantasyon ve hafıza iş akışı orion CLI komutları üzerinden yürütülür.
Ön Koşullar
pip install -e orion-ai(veyapip install orion-ai) kurulmuş olmalıOPENROUTER_API_KEY~/.orion/.env.keys veya ortam değişkeninde tanımlı olmalı- Tree-sitter dil paketleri:
pip install tree-sitter-javascript tree-sitter-typescript(JS/TS projeleri için)
Proje Kurulumu (Yeni Proje)
Yeni bir projede Orion CLI kullanmak için:
orion doc init
Bu komut:
.cc_docs.yamloluşturur (proje config).git/hooks/pre-commitkurar (otomatik doc üretimi)- Bu skill'i
.agent/skills/orion-cli/altına kopyalar
Manuel Kurulum (init yoksa)
- Proje kökünde
.cc_docs.yamloluştur:
source_dirs: [src] # Taranacak kaynak dizinler
master_md: "docs/proje_adi_master.md" # Ana master MD dosyası
notebook_id: "" # NLM defter ID (ilk sync'te doldurulur)
standalone_files: [README.md, CONTEXT.md] # Master'a DAHİL EDİLMEYEN ayrı dosyalar
skip_dirs: [__pycache__, .git, .agent, .venv, node_modules, dist, build, .next]
skip_files: [proje_adi_master.md, system_tree.md]
# Opsiyonel: ek master'lar (farklı kaynak dizinlerinden)
extra_masters:
- name: "supabase_functions_master.md"
source_dirs: "supabase/functions"
output: "docs/supabase_functions_master.md"
- Hook kur:
orion doc install-hook
Komutlar
orion doc all
Tüm projeyi tarar, her kod dosyası için .md üretir.
orion doc all # Sadece yeni/değişen dosyalar (hash kontrolü)
orion doc all --changed-only # Sadece son commit'ten beri değişenler
orion doc all --force # Tümünü sıfırdan üret (yavaş)
orion doc all --workers 20 # Paralel worker sayısı (Xiaomi mimoV2 planı gereği varsayılan: 20)
orion doc batch
Belirli bir dizindeki dosyaları işler.
orion doc batch --batch-dir supabase/functions # Dizin belirt
orion doc batch --batch-dir supabase/functions --force # Sıfırdan üret
orion doc single
Tek dosya için .md üretir.
orion doc single --py-file src/components/Header.tsx --force
orion doc schema
Supabase DB şemasını parse eder → docs/database_schema_master.md üretir.
orion doc schema
Supabase olmayan projelerde bu komutu kullanma.
orion doc tree
Sistem ağacı oluşturur. NLM sync yapar.
orion doc tree # Sadece system_tree.md oluştur
orion doc tree --nlm-sync # + NLM'e yükle
orion doc tree --nlm-sync --force-sync # + format hatalarını atla
orion doc changed
Git diff'teki değişen dosyaları tespit edip doc günceller.
orion doc changed
orion doc install-hook
Pre-commit hook kurar. Her commit'te değişen dosyalar otomatik dokümante edilir.
orion doc install-hook # Mevcut dizin
orion doc install-hook --workspace C:/Users/alize/venthub-hvac # Başka proje
Tam Sync Workflow (NLM Güncelleme)
Mimari değişiklik sonrası NotebookLM'i güncellemek için sırayla:
# 1. NLM CLI güncelle
pip install --upgrade notebooklm-mcp-cli
# 2. Kaynak koddan MD üret
orion doc all --changed-only --workers 20
# 3. Extra master'lar varsa (supabase vb.)
orion doc batch --batch-dir supabase/functions --workers 20
# 4. DB şeması varsa
orion doc schema
# 5. Master derle + NLM'e yükle
orion doc tree --nlm-sync --force-sync
Dikkat Edilmesi Gerekenler
YAPMA
orion doc treeyerine kendi master derleme scriptin yazma — mevcut komut tüm filtreleri uygular--forceolmadan ilk çalıştırma yapma (hash olmadığı için hiçbir şey üretmez)source_dirsdışındaki dizinleri elle master'a ekleme
YAP
- Her zaman
.cc_docs.yamlüzerinden config yönet standalone_files'ı basename olarak yaz (docs/schema.mddeğilschema.md— NLM basename kaydeder)- Hook'u
orion doc install-hookile kur, elle.git/hooks/pre-commitdüzenleme --no-verifyile commit yapıldığında sonraorion doc changedçalıştır
Hata Durumları
| Hata | Çözüm |
|---|---|
| LLM rate limit | --force olmadan tekrar çalıştır (tamamlananları atlar) |
| Auth expired (NLM) | nlm login çalıştır, sonra tekrar dene |
| 0 dosya derlendi | .cc_docs.yaml source_dirs kontrol et |
| Mükerrer NLM kaynağı | nlm source list <notebook_id> --json ile kontrol et, fazlaları sil |
| system_tree encoding bozuk | PowerShell değil Python ile oku, dosya UTF-8 |
AXIOMS (Değiştirilemez Kurallar)
A1 — SSOT
Tek Doğru Kaynak (SSOT) koddur. MD dosyaları koddan türetilir, elle yazılmaz.
A2 — Proje Bağımsızlığı
Her proje kendi .cc_docs.yaml'ına sahiptir. Config başka projeden kopyalanmaz.
A3 — Master Derleyici
orion doc tree master derleyicisidir. Kendi derleme scripti yazma.
A4 — Standalone Ayrımı
standalone_files master'a DAHİL EDİLMEZ. Çift bilgi (duplicate) oluşmasını önler.
A5 — Hardcoded Yasağı
Hiçbir kaynak dosyada, skill'de, script'te veya dokümanda:
- Absolute path (
C:\Users\...,/home/...) kullanılmaz - Hardcoded notebook_id, API key veya proje-spesifik ID kullanılmaz
- Hardcoded kullanıcı adı kullanılmaz
| Değer | Doğru Kaynak |
|---|---|
| Proje kökü | git rev-parse --show-toplevel veya Path.cwd() |
| Notebook ID | .cc_docs.yaml → notebook_id |
| Source dirs | .cc_docs.yaml → source_dirs |
| API keys | Ortam değişkeni (OPENROUTER_API_KEY vb.) |
| Kullanıcı dizini | Path.home() veya os.path.expanduser("~") |
Pre-commit hook bu kuralı otomatik denetler: hardcoded tespit ederse uyarı verir.
A6 — Hook Yönetimi
Hook kurulumu orion doc install-hook veya orion doc init ile yapılır. Elle .git/hooks/ düzenleme.
A7 — Araç Zincirleme (Orion Memory Engine kullanan projeler)
Aşağıdaki araçlar, belirtilen ÖN KOŞUL aracı çağrılmadan kullanılmamalıdır:
orion memory remember ← ÖN KOŞUL: orion memory search
orion memory update-node ← ÖN KOŞUL: orion memory read-node
orion memory forget ← ÖN KOŞUL: orion memory read-node
orion memory synapse ← ÖN KOŞUL: orion memory search
A8 — Skill Önceliği
orion need komutu skill_ref döndürdüğünde:
- İlgili skill'i oku (
.agent/skills/<skill_ref>/SKILL.md) - Skill talimatlarını uygula — chain'i DEĞİL
- Skill talimatları chain'den ÖNCE gelir
When not to use it
- →Kullanıcı sadece kod yazmak, debug yapmak, test çalıştırmak veya veritabanı/git işlemleri yapmak istediğinde ASLA tetiklemeyin.
Prerequisites
Limitations
- →Supabase olmayan projelerde `orion doc schema` komutunu kullanma.
- →Kendi master derleme scriptin yazma , mevcut komut tüm filtreleri uygular
- →`--force` olmadan ilk çalıştırma yapma (hash olmadığı için hiçbir şey üretmez)
How it compares
This skill automates the entire documentation pipeline from source code to a knowledge base, unlike manual documentation creation.
Compared to similar skills
orion-cli side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| orion-cli (this skill) | 0 | 2mo | Review | Intermediate |
| slack-memory-store | 1 | 5mo | Review | Intermediate |
| discovery-step-7-prd-authoring | 0 | 4mo | No flags | Intermediate |
| wiki | 0 | 3mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
slack-memory-store
krafton-ai
Comprehensive memory storage system for AI employees in IT companies who communicate via Slack. Automatically classifies and stores diverse information types (Slack messages, Confluence docs, emails, meetings, projects, decisions, feedback) in an organized folder structure with efficient indexing and retrieval. Use when managing or searching employee memory, storing conversations, documenting decisions, tracking projects, or organizing any work-related information.
discovery-step-7-prd-authoring
nakamura1201
製品要求仕様書(PRD)を作成するスキル。背景と目的、ユーザーストーリー、機能要件、非機能要件、成功指標に加えて事業性(獲得チャネル・収益仮説・主要リスク)を統合する。開発着手前の最終仕様化依頼時に使う。
wiki
jmstar85
>
adr
landphieran
Record an Architecture Decision Record (ADR). Produces an immutable docs/architecture/ADR-[NNN]-[title].md capturing the context, options considered, decision made, and consequences. Use when making any significant technical decision about architecture, technology choice, or design pattern.
notion-knowledge-capture
makenotion
Transforms conversations and discussions into structured documentation pages in Notion. Captures insights, decisions, and knowledge from chat context, formats appropriately, and saves to wikis or databases with proper organization and linking for easy discovery.
internal-comms
anthropics
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).