ワンクリックで
document-to-vault
Write documentation to Obsidian knowledge vault using MCP with proper frontmatter and structure
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Write documentation to Obsidian knowledge vault using MCP with proper frontmatter and structure
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when asked to document work, record decisions, create session records, write ADRs or RFCs, or update knowledge notes in ~/knowledge. Also use when confused about who a person is, what a company is, what situation the user is referring to, or any personal or professional context — read the vault before asking.
Use when creating or editing notes in an Obsidian vault, writing to ~/knowledge, or using Obsidian-specific syntax (wikilinks, callouts, embeds, frontmatter properties).
Use when reviewing any implementation. Replaces fixed spec+quality two-step with category-driven parallel specialists: an assessor picks relevant categories for the specific artifact, one specialist per category reviews in parallel, controller aggregates. Use after implementer completes a task in subagent-driven-development.
Use when dispatching work to background agents, defining custom subagents, or choosing between local agent dispatch and VM-based workers (claude-ctl).
Use when working with Kubernetes clusters, GitOps deployments, Flux reconciliation, Helm releases, or cluster troubleshooting. Guides declarative cluster management and GitOps workflows. Not for secrets encryption or SOPS operations — route those to secrets-management.
Use when sending a notification to ntfy from a homelab service, loop, or agent. Covers the canonical in-cluster publish pattern and the silent-failure trap of posting to the Authentik-gated public URL.
| name | document-to-vault |
| description | Write documentation to Obsidian knowledge vault using MCP with proper frontmatter and structure |
Write documentation to the Obsidian knowledge vault with proper frontmatter, categorization, and linking.
CRITICAL: Always sync vault first
cd ~/Documents/knowledge-vault
just sync
Domains:
Infrastructure - NixOS, system config, deploymentHomelab - Kubernetes, GitOps, cluster opsDevelopment - Dev tools, workflows, AI agentsDocument Types:
concept - How something works, mental modelsarchitecture - System design, component relationshipsrunbook - Step-by-step operational proceduresplan - Implementation plans, project planningdecision - ADRs, architectural decisionscd ~/Documents/knowledge-vault
just draft <topic-name> <template-type>
# Examples:
just draft nix-flakes concept
just draft k3s-cluster architecture
just draft deploy-app runbook
This creates Drafts/<topic-name>/<topic-name>.md with proper template.
Use the Obsidian MCP to write/edit the draft:
Use mcp__obsidian__write_note to write content to:
path: "Drafts/<topic-name>/<topic-name>.md"
mode: "overwrite"
content: <full markdown with frontmatter>
Frontmatter Requirements:
---
title: "Human Readable Title"
domain: infrastructure|homelab|development
type: concept|architecture|runbook|plan|decision
tags: [tag1, tag2]
created: YYYY-MM-DD
updated: YYYY-MM-DD
status: draft
related: ["[[Related Doc]]"]
---
Content Guidelines:
[[wikilinks]]After writing, validate frontmatter:
cd ~/Documents/knowledge-vault
just validate
cd ~/Documents/knowledge-vault
git add Drafts/<topic-name>/
git commit -m "docs: draft <topic-name>"
git push
Use the promote command to create a PR:
just promote <topic-name> <domain> <subdomain>
# Examples:
just promote nix-flakes Infrastructure Concepts
just promote k3s-cluster Homelab Architecture
just promote deploy-app Homelab Runbooks
This creates a PR to move the draft to its final location with status changed to published.
1. Sync vault:
cd ~/Documents/knowledge-vault && just sync
2. Create draft:
just draft nix-specialisations concept
3. Write content via MCP:
Use mcp__obsidian__write_note with:
path: "Drafts/nix-specialisations/nix-specialisations.md"
content: |
---
title: "NixOS Specialisations"
domain: infrastructure
type: concept
tags: [nixos, nix, system-config]
created: 2026-02-20
updated: 2026-02-20
status: draft
related: ["[[NixOS Modules]]", "[[System Configuration]]"]
---
# NixOS Specialisations
## Overview
Specialisations allow multiple system configurations in a single NixOS build...
[... content ...]
4. Validate:
just validate
5. Commit:
git add Drafts/nix-specialisations/
git commit -m "docs: draft nix-specialisations concept"
git push
6. Promote (when ready):
just promote nix-specialisations Infrastructure Concepts
1. Sync: just sync
2. Create draft:
just draft deploy-k3s runbook
3. Write via MCP with procedure flowchart:
---
title: "Deploy k3s Cluster"
domain: homelab
type: runbook
[...]
---
# Deploy k3s Cluster
## Purpose
Deploy a fresh k3s cluster with Flux GitOps
## Procedure
```mermaid
graph TD
A[Prepare Nodes] --> B[Install k3s]
B --> C[Configure kubectl]
C --> D[Bootstrap Flux]
...
## Tips
- **Use MCP for all vault operations** - Don't manually edit files
- **Always sync first** - Prevents conflicts
- **Use wikilinks** - Connect related concepts with `[[wikilinks]]`
- **Add diagrams** - Use Mermaid for architecture/runbooks
- **Validate before committing** - Run `just validate`
- **Draft first, promote later** - Don't write directly to final locations
## Integration
This skill works with:
- `mcp__obsidian__*` tools for vault operations
- `just` commands for vault management
- Git workflow for version control
- GitHub PRs for review process
## Troubleshooting
**Vault not synced:**
```bash
cd ~/Documents/knowledge-vault
just sync
Frontmatter validation fails: Check required fields: title, domain, type, created, updated, status
MCP write fails:
Ensure path is relative to vault root: Drafts/topic/file.md
Can't promote draft:
Ensure draft exists in Drafts/ and has valid frontmatter