agent-coordination
Agent assignment matrix, blocker escalation, and TDM coordination patterns. Use when assigning work to specialists, managing blockers, or coordinating…
Detect and repair drift between an OKF knowledge vault and the code it describes. Use after merging significant changes (schema, routes, workflows, agent config), when a staleness review is due, or when the user asks to sync, refresh, or update the knowledge vault or Obsidian
$ npx -y skills add bybren-llc/safe-agentic-workflow --skill vault-sync --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/vault-syncContext preview
The summary Claude sees to decide when to auto-load this skill.
Detect and repair drift between an OKF knowledge vault and the code it describes. Use after merging significant changes (schema, routes, workflows, agent config), when a staleness review is due, or when the user asks to sync, refresh, or update the knowledge vault or Obsidian
name: vault-sync description: Detect and repair drift between an OKF knowledge vault and the code it describes. Use after merging significant changes (schema, routes, workflows, agent config), when a staleness review is due, or when the user asks to sync, refresh, or update the knowledge vault or Obsidian vault. user-invocable: true allowed-tools: Read, Grep, Glob, Bash
> **📋 TEMPLATE**: This skill uses `{{TICKET_PREFIX}}` and `{{MAIN_BRANCH}}` as placeholders, and > assumes a vault created from `knowledge-vault/templates/starter-bundle`.
Keep an OKF knowledge vault honest as the code evolves. The vault is a map of the system; this skill detects drift between map and territory, regenerates **only** the affected concepts, and records the sync.
Invoke this skill when:
| Path | Role | | --- | --- | | `<vault>/_meta/vault-config.json` | Machine-readable constitution — types, tags, frontmatter contract | | `<vault>/_meta/CONVENTIONS.md` | The human-readable rules | | `<vault>/_meta/manifest.json` | ID registry, reverse index, and `baseline_sha` drift watermark | | `<vault>/_meta/templates/` | Per-type skeletons | | `<vault>/log.md` | Dated changelog | | `knowledge-vault/scripts/validate-vault.mjs` | The gate |
Read the baseline and diff it to HEAD across the watch-list — **the source paths your concepts claim to describe**. Configure this list for your project; the example below is illustrative.
BASELINE=$(node -e "console.log(require('./<vault>/_meta/manifest.json').baseline_sha)")
git diff --name-only "$BASELINE"..HEAD -- \
'src/**' 'lib/**' 'config/**' '.github/workflows/**' 'docs/**'A concept is **stale** if and only if a changed path matches its `resource` or an entry in its `sources`. Check the manifest first (it is the reverse index); grep concept frontmatter as backup.
This is file-level truth. Do not substitute a time-based heuristic — "older than N days" flags everything and teaches people to ignore the flag.
Re-enumerate your source globs and diff against the manifest.
the registry before anything links to it.
links must be cleaned first, in a follow-up change; the backlinks pane or the validator's orphan report shows them.
For a handful of concepts, update inline. For larger sets, fan out generation agents batched by area. **Every generation prompt must carry exactly four things:**
1. The type template from `_meta/templates/` 2. A **golden example** — a real, already-accepted concept of the same type 3. The hard rules from `_meta/CONVENTIONS.md`, inline 4. The manifest **ID registry** — links may target only IDs listed there
Every touched concept gets `timestamp:` = today and `verified_against:` = the current short SHA.
**Re-derive facts from the source files. Never patch prose without re-reading the code it describes.** Editing a concept to match a changed interface without opening the file is how a vault becomes fiction.
node knowledge-vault/scripts/validate-vault.mjs --vault <vault>
Must exit 0. Markdown lint must pass. Neither is optional.
Prepend a dated entry to `log.md`: what changed, why (ticket), and the source SHA. Then bump `baseline_sha` and `generated` in the manifest.
Ship on a `{{TICKET_PREFIX}}-XXX-vault-sync-<topic>` branch with a `docs(vault): …` commit to `{{MAIN_BRANCH}}`. The pull request should name the code changes that triggered the sync.
as a suggestion — never invent a link
`timestamp` and `verified_against`
Bumping timestamps on a docs-only pass (that is laundering, not verification) Deleting a concept when its source dies (deprecate; clean inbound links first) Regenerating the whole vault on drift (regenerate only what the diff implicates) Patching prose without reading the code (the one habit that makes a vault untrustworthy) Skipping the validator because "it is just docs" (drift is invisible without the gate)
SAW — SAFe Agentic Workflow AI Agent Harness for Multi-Agent Team Workflows Built on SAFe methodology (Scaled Agile Framework), adapted for AI agent teams (Now With AI-DLC!) Works for any team with repeatable processes: Software, Marketing, Research, Legal, Operations.
Agent assignment matrix, blocker escalation, and TDM coordination patterns. Use when assigning work to specialists, managing blockers, or coordinating…
API route implementation patterns with RLS, Zod validation, and error handling. Use when creating API routes, implementing endpoints, or adding server-side…
Documentation templates for ADRs, runbooks, and architecture docs. Use when creating architectural decision records, operational runbooks, or technical…
Deployment workflows, pre-deploy validation, and smoke testing patterns. Use when deploying to staging or production, running smoke tests, or validating…
Frontend patterns for Next.js App Router, Clerk auth, shadcn/Radix UI, and PostHog analytics. Use when building UI components, creating pages, implementing…
Advanced git operations including rebase, bisect, cherry-pick, and conflict resolution. Use when rebasing branches, debugging with bisect, cherry-picking…