agentleFS
sandsowersandsower/memento-vault/skills/orra-init/SKILL.md

orra-init

Skill13 starsChanged 5 months agoMITView on GitHub

Initialize orra in the current repo. Runs orra_setup, installs all stock directives, and adds vault-bridge when memento-vault is available. Use when Vic says "init orra", "orra setup", "set up orra here", or invokes /orra-init.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 2 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Load deferred tools if needed: If orra_setup, orra_directive, and memento_status are not already loaded, load them in one batch:

    line 24
  2. Very specific:

    Install all stock directives: Call orra_directive({action: "install-all"}).

    line 32
  3. Very specific:

    Check memento availability: Call memento_status. A healthy response (returns vault_exists: true or a positive note_count) means memento is …

    line 34
  4. Very specific:

    If .orra/directives/vault-bridge.md already exists: leave it alone and note that the user has a local copy (possibly customized).

    line 37
  5. Distinctive:

    If it does not exist: copy the template.

    line 38
  6. Very specific:

    If the file already contains Memory routing: if \vault-bridge.md\``, skip (idempotent).

    line 53
  7. Very specific:

    Never overwrite .orra/directives/*.md files that already exist.

    line 67
  8. Distinctive:

    If memento is unavailable, that is a normal outcome, not an error.

    line 68
  9. Very specific:

    Do not run orra_setup outside a git repo.

    line 69
  10. Very specific:

    After this skill runs, start an orchestrator session: claude --agent orchestrator.

    line 74

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

orra-init

Scaffold orra in the current repo: run setup, install the stock directive set, and wire up memento integration via vault-bridge when memento is live.

This skill is shipped by memento-vault as an experimental integration, gated behind ./install.sh --experimental. It brings two systems together without either becoming a hard dependency of the other: orra continues to work without memento, memento continues to work without orra, and the vault-bridge directive is the only coupling surface.

When to use

  • User invokes /orra-init
  • User says "init orra", "set up orra in this repo", "bootstrap orra", or similar
  • User has cloned a new repo and wants orra ready to orchestrate

Preflight

Orra requires a git repo. Run git rev-parse --git-dir from the current working directory. If it fails, tell the user orra needs a git repo (offer git init if they want one) and stop. Do not call orra_setup outside a repo.

Steps

  1. Load deferred tools if needed. If orra_setup, orra_directive, and memento_status are not already loaded, load them in one batch:

    ToolSearch("select:mcp__orra__orra_setup,mcp__orra__orra_directive,mcp__memento-vault__memento_status")
  2. Run orra_setup. Creates .orra/config.json, installs the orchestrator persona to .claude/agents/orchestrator.md, adds .orra/ to .gitignore, scaffolds .orra/memory/. Idempotent; safe on repos that already have .orra/.
  3. Install all stock directives. Call orra_directive({action: "install-all"}). Existing customized directives are preserved (the tool skips them explicitly).
  4. Check memento availability. Call memento_status. A healthy response (returns vault_exists: true or a positive note_count) means memento is live. Error or unhealthy response means memento is not set up; skip vault-bridge silently, that's a supported configuration.
  5. Install vault-bridge (if memento is live).
    • If .orra/directives/vault-bridge.md already exists: leave it alone and note that the user has a local copy (possibly customized).
    • If it does not exist: copy the template.
      cp ~/.claude/skills/orra-init/templates/vault-bridge.md .orra/directives/vault-bridge.md
  6. Patch anchor lines into the four memory-using directives (if vault-bridge is installed). This step is what actually lets vault-bridge intercept memory operations; without it, stock directives write to .orra/memory/ and ignore memento. Orra's install-all pulls stock templates from the npm package that have no anchor, so the patch must be re-applied every time fresh directives land.

    The exact anchor text to insert (copy verbatim):

    > **Memory routing:** if `vault-bridge.md` is present in `.orra/directives/`, follow its routing table for memory reads and writes. The `.orra/memory/*` paths described below are the default when vault-bridge is not installed.

    For each of morning-briefing.md, shutdown-ritual.md, memory-recall.md, linear-deadline-tracker.md in .orra/directives/:

    • If the file already contains **Memory routing:** if \vault-bridge.md``, skip (idempotent).
    • Otherwise, find the FIRST ### heading in the file and insert the anchor blockquote plus a blank line immediately BEFORE that heading. This places the anchor after the directive's intro paragraph and before its first section, giving the model the routing hint before it follows any storage instructions.

    This step is idempotent and safe to re-run after every install-all that might have refreshed stock directives.

  7. Report. One-screen summary:
    • Orra scaffolded at .orra/ (or "already present, no-op")
    • N directives installed, M skipped
    • Vault-bridge: installed | already present | skipped (memento unavailable)
    • Memento status: note count, project count, fleeting count (if healthy)
    • Next step: claude --agent orchestrator to start an orchestrator session in this repo

Rules

  • Never overwrite .orra/directives/*.md files that already exist. Both orra_directive install-all and the vault-bridge copy respect local customizations.
  • If memento is unavailable, that is a normal outcome, not an error. The user may be in a repo where they intentionally want orra without memento coupling.
  • Do not run orra_setup outside a git repo. The tool will error with fatal: not a git repository. Preflight catches this.
  • The only modification to stock directives is the Step 6 anchor-line patch for the four memory-using directives, and only when vault-bridge is installed. Do not make other edits to stock directives. If orra's package ships updated templates via install-all, re-running /orra-init is the path to re-apply the anchor.

Related skills and next steps

  • After this skill runs, start an orchestrator session: claude --agent orchestrator. Morning-briefing will fire on session start.
  • To customize which directives get installed in this repo, use orra_directive({action: "remove", name: "..."}) or install individual ones by name.
  • To refresh vault-bridge from the canonical template, rm .orra/directives/vault-bridge.md first, then re-run /orra-init.

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.