| name | ariadne:global-discovery |
| description | Register existing Markdown knowledge vaults for machine-level discovery so cold agents can find long-term knowledge from any workspace. Use when checking, adding, updating, repairing, or removing global vault discovery. |
Ariadne Global Discovery
Use this skill when a user already has a Markdown knowledge vault created or maintained with Ariadne and wants future cold agents to find it from outside the vault. The vault may use Obsidian as a frontend, but discovery operates on filesystem paths and agent-readable entrypoints. Also use this skill to inspect, update, or repair existing global registry files and marker-managed adapter blocks when Ariadne ships newer discovery rules.
Typical requests:
- "Make this vault discoverable to agents."
- "Register my existing vault globally."
- "Make agents find my vault from anywhere."
- "Check whether this vault is registered."
- "Run Ariadne discovery doctor."
- "Repair Ariadne global discovery."
- "Update Ariadne global discovery rules."
- "Change my primary registered vault."
This skill manages machine-level discovery. It does not create the vault. Use ariadne:vault to bootstrap a new vault.
It also does not own workspace-level AGENTS.md, CLAUDE.md, or GEMINI.md files. Use ariadne:workspace-instructions when a code repository or ordinary folder needs local instruction files or a small Ariadne vault-link block.
Core Model
The vault remains the source of truth. Global discovery only creates a small local signpost:
~/.ariadne/vaults.json - machine-readable registry.
~/.ariadne/vaults.md - agent-readable registry.
- Optional marker-managed blocks in global agent instruction files.
The global blocks point to ~/.ariadne/vaults.md; they should never duplicate long vault instructions. Updating an existing registration should refresh stale marker-managed blocks in place instead of adding another global block.
Post-Discovery Routing
This skill gets agents to the right vault. It should not take over feature execution.
After a vault is selected:
- For navigation, routing, registration, or marker repair, continue with this skill.
- For new vault bootstrap, use
ariadne:vault.
- For scope creation or promotion, use
ariadne:scope.
Global discovery remains a signpost.
Workspace instruction files are also signposts when they connect to Ariadne. They may point agents toward registered vault discovery or a confirmed vault/scope, but they should not duplicate global discovery blocks or copy vault instructions into a repository.
Start Workflow
- Determine the vault path.
- Confirm the path looks like an agent-readable Markdown knowledge vault by checking for
00 Global Index.md, 00 Index.md, another root 00 *Index.md, AGENTS.md, or Agent/00 Agent Navigation.md.
- Determine the vault name and short purpose. Infer from the detected root index when obvious; otherwise ask.
- Ask which adapters to update, or use the default
codex,claude,gemini when the user does not care.
- Offer
--dry-run when the user wants to preview changes.
- Run the registration script.
- Run the doctor to audit the result against
references/discovery-rules.md.
- Report the registry and adapter files touched, plus the audit attestation.
When updating an already registered vault, treat the workflow as an idempotent refresh/repair. The goal is to bring registry entries and marker-managed global blocks up to the current Ariadne discovery wording while preserving all user-maintained instructions outside Ariadne markers.
Registration Command
Use the shared registration script from ariadne:vault:
node /path/to/skills/vault/scripts/register_vault.js \
--vault "/path/to/vault" \
--name "Vault Name" \
--purpose "Short purpose statement." \
--agents codex,claude,gemini \
--primary
Use --agents none to update only the registry files.
Use --agents all only when the user explicitly wants all supported adapters.
Use --dry-run before writing if the user is cautious or if existing global instruction files are complex.
Check Discovery
Use --check or --doctor when the user wants to verify global discovery without changing files:
node /path/to/skills/vault/scripts/register_vault.js \
--agents codex,claude,gemini \
--doctor
The doctor checks:
~/.ariadne/vaults.json exists and parses.
~/.ariadne/vaults.md matches the JSON registry.
- registered vault paths exist.
- registered entrypoints exist in each vault.
- detected root entrypoints are registered.
- selected global adapter files have Ariadne marker blocks.
- adapter blocks point to
~/.ariadne/vaults.md and include current discovery rules for listed cold-start entry order, action prompts, multiple vault matches, and target-scope confirmation.
- adapter blocks remain small signposts (block size is bounded; oversized blocks are flagged).
- each adapter file has exactly one discovery block; duplicate blocks are flagged.
If doctor reports issues, re-run registration for the affected vault to repair registry and adapter blocks.
When doctor reports issues during a broader task, do not only say that discovery failed. Tell the user:
- which registry, entrypoint, or adapter check failed,
- why cold agents may be affected,
- the repair command or
ariadne:global-discovery action to use,
- whether the repair touches global agent files and therefore needs approval.
Audit and Attestation
When registering a new vault or repairing existing discovery, audit the result against references/discovery-rules.md and attest the outcome in the completion report. The rubric groups the rules the doctor enforces (registry integrity, block freshness, signpost size, no duplicate blocks) with the judgment rules the doctor cannot decide (the block has not become a navigation dump; each vault has a meaningful name and specific purpose).
Run the audit like this:
- Run the doctor (
--check / --doctor) and read the mechanical findings.
- Assess the judgment rules by reading
~/.ariadne/vaults.md and the adapter blocks: purpose statements are specific enough to disambiguate multiple vaults, and no block has grown into a copied cold-start entry order or scope catalog.
- Fix mechanical findings by re-running registration for the affected vault — it is idempotent and marker-scoped, and regenerates the registry Markdown and adapter block in place. Report judgment findings for the user to decide; do not rewrite a user-edited block beyond the marker region.
- Attest in the report only. Do not write attestation markers or audit metadata into the registry or adapter blocks — those blocks load into every agent session, so any extra content is paid per invocation and read as instructions.
Apply this to new registrations (audit before reporting done) and to older registrations (audit on every repair, then report what was fixed versus left for the user).
Multiple-Match Policy
If discovery produces multiple plausible vault matches for a request, do not guess. Show the top matches with short reasons, then ask which vault to use before creating, updating, or filing artifacts.
Target-Scope Confirmation Policy
After a vault is selected, write actions still need a current-turn explicit target in multi-scope vaults. A target is explicit only when the current prompt names the target scope, domain, customer, project, or workstream, or the user confirms one after the agent asks. Search hits, a single likely match, existing matching cards, prior conversation, current working directory, and active skills are not confirmation.
Remove Discovery
Use --remove when the user wants to unregister a vault:
node /path/to/skills/vault/scripts/register_vault.js \
--vault "/path/to/vault" \
--agents codex,claude,gemini \
--remove
When the removed vault is the last registered vault, selected adapter blocks are removed from global agent files. Existing user instructions outside Ariadne marker blocks are preserved.
Supported Adapters
codex - ~/.codex/AGENTS.md
claude - ~/.claude/CLAUDE.md
gemini - ~/.gemini/GEMINI.md
copilot - ~/.copilot/copilot-instructions.md
opencode - ~/.config/opencode/AGENTS.md
roo - ~/.roo/rules/ariadne-vault-discovery.md
cline - ~/Documents/Cline/Rules/ariadne-vault-discovery.md
Safety Rules
- Registration is opt-in. Do not silently write global agent files.
- Preserve existing global instructions.
- Update only between Ariadne markers:
<!-- ariadne:vault-discovery:start -->
<!-- ariadne:vault-discovery:end -->
- Re-running registration for the same vault must update, not duplicate.
- Use this workflow for stale global discovery blocks as well as first registration.
- Keep global blocks tiny. They point to the registry; the vault handles navigation.
Check Existing Discovery
To inspect current state, read:
~/.ariadne/vaults.md
~/.ariadne/vaults.json
- The selected adapter files, if needed.
If the registry exists but adapter blocks are missing, offer to repair adapters.
If adapter blocks exist but the registry path is missing, offer to recreate the registry from the vault path.
Related Skills
- Use
ariadne:vault to create a new vault.
- Use
ariadne:workspace-instructions to create or update workspace instruction files that connect a workspace to registered Ariadne context.
- Use
ariadne:maintenance to check vault health after registration.
- Use
ariadne:scope when the user wants to make a new domain inside an existing vault discoverable through vault navigation.