agentleFS
Google CloudKnown publisherGoogleCloudPlatform/knowledge-compiler/skills/vault-pull/SKILL.md

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).

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
  1. Very specific:

    Never touches or modifies local private entity dossiers in wiki/entities/, raw sources in raw/, synthesis notes in wiki/synthesis/, or …

    line 18
  2. Distinctive:

    If a local file has identical contents, it is skipped without modification.

    line 20
  3. Very specific:

    If the shared patterns repository is not cloned locally yet, sync_patterns.py pull can clone it automatically via --repo-url (or …

    line 62

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

📥 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:

  1. Target Directory Allowlist:
    • Pulled files are strictly written into wiki/concepts/ and wiki/patterns/.
    • Never touches or modifies local private entity dossiers in wiki/entities/, raw sources in raw/, synthesis notes in wiki/synthesis/, or tables in tables/.
  2. Local Overwrite Safeguards:
    • If a local file has identical contents, it is skipped without modification.
  3. Automatic Index & Log Maintenance:
    • Newly pulled patterns are indexed in local index.md and an entry is logged in log.md.
    • Automatically runs vault_lint --fix to verify graph connectivity.

⚡ 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-run

2. 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}"

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.