vault-pull
Skill18 starsChanged 12 days agoApache-2.0View on GitHub
Pulls and synchronizes curated OKF v0.2 architectural patterns and engineering invariants from a shared Git pattern repository into the local knowledge vault ($OBSIDIAN_VAULT_PATH or ~/ObsidianVault). Use when the user invokes /vault-pull or /pull-patterns, asks to pull shared patterns, sync team patterns, or import patterns from a shared repository. Don't use for sharing local vault notes outbound to a shared repository (use vault-share) or for read-only vault queries (use vault-query).
In this repository10 other files it gives its agents.
- rules/AGENTS.mdAGENTS.md
- distill-sessionSkill
- ingestSkill
- knowledge-compilerSkill
- vault-correctSkill
- vault-graphSkill
- vault-lintSkill
- vault-querySkill
- vault-shareSkill
- wikiskillSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Never touches or modifies local private entity dossiers in wiki/entities/, raw sources in raw/, synthesis notes in wiki/synthesis/, or …
- Distinctive: line 20
If a local file has identical contents, it is skipped without modification.
- Very specific: line 62
If the shared patterns repository is not cloned locally yet, sync_patterns.py pull can clone it automatically via --repo-url (or …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
📥 Vault Pattern Pull & Ingestion Skill (/vault-pull)
This skill allows engineers and architects to pull verified architectural patterns, framework concepts, and engineering invariants contributed by teammates from a shared OKF pattern repository (~/shared-okf-patterns or $OKF_PATTERNS_PATH) into their personal Knowledge Compiler Obsidian Vault ($OBSIDIAN_VAULT_PATH, defaults to ~/ObsidianVault).
🛡 Isolation & Local Vault Protection
The pull engine guarantees:
- Target Directory Allowlist:
- Pulled files are strictly written into
wiki/concepts/andwiki/patterns/. - Never touches or modifies local private entity dossiers in
wiki/entities/, raw sources inraw/, synthesis notes inwiki/synthesis/, or tables intables/.
- Pulled files are strictly written into
- Local Overwrite Safeguards:
- If a local file has identical contents, it is skipped without modification.
- Automatic Index & Log Maintenance:
- Newly pulled patterns are indexed in local
index.mdand an entry is logged inlog.md. - Automatically runs
vault_lint --fixto verify graph connectivity.
- Newly pulled patterns are indexed in local
⚡ Execution Workflow
┌─────────────────────────────────────────────────────────────────────────────┐
│ FEDERATED PATTERN PULL PIPELINE │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ [Step 1: Upstream Sync] │
│ Fetch latest changes from shared OKF patterns repository │
│ │ │
│ ▼ │
│ [Step 2: Scoped Ingestion] │
│ Copy `wiki/concepts/` and `wiki/patterns/` into local vault │
│ │ │
│ ▼ │
│ [Step 3: Graph Lint & Auto-Repair] │
│ Run `vault-lint --fix` to update wikilinks and check graph invariants │
│ │ │
│ ▼ │
│ [Step 4: Audit Trail] │
│ Update local `index.md` catalog and append sync entry to `log.md` │
│ │
└─────────────────────────────────────────────────────────────────────────────┘🛠 Command Reference
1. Preview Incoming Patterns (Dry-Run)
python3 <plugin_dir>/scripts/sync_patterns.py pull --dry-run2. Auto-Clone & Pull Patterns into Personal Vault
If the shared patterns repository is not cloned locally yet, sync_patterns.py pull can clone it automatically via --repo-url (or $OKF_PATTERNS_REPO_URL, or the default configured team repository) and fast-forward it on subsequent runs:
python3 <plugin_dir>/scripts/sync_patterns.py pull --vault "${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}"To point at an explicit shared Git repository URL or local directory:
python3 <plugin_dir>/scripts/sync_patterns.py pull --repo-url https://github.com/your-org/shared-okf-patterns.git --vault "${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}"Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

