agent-teams-command
Use when work has genuinely independent streams or distinct builder, evaluator, domain, and integration roles that require…
Use when an Obsidian knowledge system needs classification, deduplication, retrieval, synchronization, debt queues, or governed Agent/Wiki promotion.
$ npx -y skills add Mark393295827/third-brain-v7-skills --skill knowledge-ops --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/knowledge-opsContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when an Obsidian knowledge system needs classification, deduplication, retrieval, synchronization, debt queues, or governed Agent/Wiki promotion.
name: knowledge-ops description: Use when an Obsidian knowledge system needs classification, deduplication, retrieval, synchronization, debt queues, or governed Agent/Wiki promotion. metadata: version: "8.1.0" updated: "2026-08-18" profile: "stateful" assumes: "A durable Markdown knowledge base exists and its configured paths can be discovered or supplied." conflicts_with: "Treating vector search as canonical storage, silently merging provenance, or promoting one-off wiki signals into rules."
<skill_contract> <input>Vault root, operation, scope, canonical-store rules, permissions, destination, and execution budget.</input> <output>Verified classification, retrieval, deduplication, synchronization, audit, or governed promotion changes with receipts.</output> <done>Canonical Markdown remains authoritative, provenance and immutability are preserved, and representative checks pass.</done> <non_goals>Using vectors as canonical storage, silent provenance merges, automatic semantic rewrites, or one-signal rule promotion.</non_goals>
Operate the wiki as durable disk and governance layer. Markdown pages hold understanding and provenance; indexes, memory, vectors, and dashboards are replaceable access paths.
Provide: vault root, operation (`organize`, `deduplicate`, `retrieve`, `sync`, `audit`, `promote`), scope, destination, permissions, and budget. Load `references/storage-governance.md` only when designing layers or promotion queues.
<intake>
Resolve configured paths and identify the canonical store, immutable sources, active execution truth, optional retrieval indexes, and governance queues. Record file counts, scope, and write authority before mutation.
</intake>
<unknowns_gate>
If canonical ownership, vault identity, or merge authority is ambiguous, return `NEEDS_INPUT`. Treat semantic similarity as a review signal, not proof that two notes or sources are equivalent.
</unknowns_gate>
<execute>
`knowledge-ops` owns cross-corpus organization, identity reconciliation, retrieval/index state, promotion queues, and knowledge-debt governance. It does not replace `wiki-ingest` as the owner of a single source-to-candidate transaction, and it does not replace `wiki-lint` as the read-only health auditor.
1. **Classify:** assign each item to execution state, quick memory, durable wiki, optional retrieval index, or governance state. 2. **Search first:** exact path/title, wikilinks, canonical URL/source id, and lexical search before semantic retrieval. 3. **Deduplicate:** compare source identity, normalized URL, hash when available, claims, and provenance; merge compiled notes only with traceable reasons. Under concurrent writers, stage the candidate, acquire or verify one source identity key, and recheck immediately before and after promotion. 4. **Store:** write to the canonical Markdown layer, update indexes/maps, preserve immutable sources, and queue unresolved debt. 5. **Retrieve:** return paths and match reasons; load only the top evidence-bearing pages within context budget. 6. **Sync:** update optional indexes from canonical files and record indexed, skipped, removed, or failed items. 7. **Verify:** read after write, check links/source refs, rerun exact-identity search, and run representative retrieval queries. If a race produced two candidates, keep one canonical source, repoint derived locators, and emit a reconciliation receipt without rewriting prior evidence. 8. **Promote:** require two durable supports or one strong source plus local verification, a bounded execution contract, preserved approvals/provenance, and a cheap objective check.
Use idempotency keys for machine append operations: derive the key from operation, canonical source identity, target, and run/batch id; append only when the key is absent. Repeated schedules and retries must converge to the same canonical files and one logical receipt.
Automate deterministic counts and index refreshes only. Semantic rewrites, contradiction resolution, and rule promotion remain supervised.
</execute>
<evaluate>
Compare pre/post counts, inspect merge samples, replay retrieval queries, and verify no immutable source changed. A sync is partial if any canonical file is unindexed; retrieval quality is unproven without representative queries.
</evaluate>
<state_contract>
Persist `{run_id, status, attempt, budget, evidence, unknowns, last_error, next_action}` plus canonical paths, operation scope, source identity/idempotency keys, writer lease or compare-and-set evidence, file ledger, merge/reconciliation decisions, debt queues, index receipts, retrieval tests, and promotion candidates. Keep source and merge history append-only.
</state_contract>
Return `status`, `result` (organized/retrieved/synced items and decisions), `evidence` (counts, paths, receipts, queries), `unknowns`, and `next_action` with owner and check.
recheck identity at commit, choose one canonical path, repoint derived links, and record the race; do not leave two canonical sources.
Verification-first Agent Skills for Codex OS, with optional compatibility adapters for Claude Code, Gemini, Cursor, and Windsurf.
Use when work has genuinely independent streams or distinct builder, evaluator, domain, and integration roles that require…
Use when designing or refactoring a model-native engineering workflow with bounded autonomy, probes, custom evaluation, durable…
Use when property-service operations need an AI plus ontology plus DMAIC design for work orders, dispatch, quotes, evidence, CTQ…
Use when a personal or team operating system needs a bounded redesign using Four-C, closed-loop controls, 70/30 allocation, 3B…
Use when a goal must be converted into a repeatable behavior, cue, SOP, review cadence, and identity-aligned reinforcement.
Use when source material must be transformed into a compact, evidence-aware model for learning, decisions, or an Obsidian concept…