/aria-knowledge:sync-decisions [<decision-slug>|--all|--since YYYY-MM-DD] [--target <space-or-page>]from aria-knowledge
Mirrors approved decisions from the knowledge folder to connected docs MCPs (Notion, Confluence, Google Docs). Requires explicit per-write confirmation and logs each sync.
Ships in aria-knowledge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read approved decisions from {knowledge_folder}/decisions/ and write them out to a connected ~~docs MCP destination (a Notion page, Confluence space, Google Doc, etc.). The only v2.18.0 skill that writes externally; embeds Rule 22 advisory preamble per ADR-016 ({knowledge_folder}/projects/aria-cowork/decisions/016-rule-22-advisory-preamble-for-external-writes.md).
Canonical resolution: This is the Claude Code variant. When both plugin-claude-code and plugin-claude-cowork are loaded in the same session (most common in Claude Desktop), bare /sync-decisions resolves to this skill — aria-knowledge (Code) is the canonical owner of all 24 dual-port skills per ADR-094 §Part 1. The Cowork variant is namespaced-only: /aria-cowork:sync-decisions.
Before Step 0 — runtime self-correction. Check whether the Bash tool is available in this session. If Bash is NOT available (you are running in Claude Cowork or another non-Code runtime), this invocation reached the wrong variant for the runtime. Do not ask — redirect. Announce it in one line, then use the Skill tool to invoke aria-cowork:sync-decisions with the same arguments the user provided, and do not run this skill's steps:
↪️ Redirecting to
/aria-cowork:sync-decisions— you invoked the aria-knowledge (Code) variant, but you are running in Claude Cowork or another non-Code runtime.This skill requires connected ~~docs WRITE MCPs (Notion, Confluence, Google Docs), which are typically only present in Cowork. The Cowork-native variant has working MCP write access. Use
/aria-cowork:sync-decisions.
⛔ The redirect is unconditional — every mode including auto, and no opt-out. Reaching this variant under that condition is always a mis-invocation, so there is nothing for the user to decide. Design record: docs/superpowers/specs/2026-08-28-runtime-gate-auto-redirect-design.md (D2 auto-redirect, D3 no escape hatch, D6 announce-don't-swap-silently).
If Bash is available, proceed to Step 0.
Read ~/.claude/aria-knowledge.local.md and extract knowledge_folder. If the file doesn't exist, stop: "aria-knowledge is not configured. Run /setup to get started."
Verify {knowledge_folder}/decisions/ exists. If not, stop: "No decisions/ folder found. Nothing to sync."
Lazily create {knowledge_folder}/logs/sync-decisions.md if it doesn't exist (used by Step 7 for sync history).
Check Claude's available tool list for ~~docs MCPs that support WRITE operations:
~~docs (notion, atlassian, box, egnyte, google docs): if connected, check the MCP's exposed tools — ~~docs MCPs that only expose read_page / search_pages are READ-ONLY for this skill's purpose. Need a write surface (create_page, update_page, append_block_children, or equivalent).If NO ~~docs MCP with write capability is connected, output the standard fallback notice and stop:
No required MCPs connected for
/sync-decisions. This skill writes externally — needs a~~docsMCP with write capability (page creation or block append). Connect Notion, Atlassian (Confluence), Box, Egnyte, or Google Docs via Claude Code's MCP config (or Cowork Settings → Connectors). See CONNECTORS.md. Skipping this run.
Per ADR-015 ({knowledge_folder}/projects/aria-cowork/decisions/015-capability-probe-pattern.md).
Determine which decisions are candidates based on args:
| Arg | Candidates |
|---|---|
| (none) | All decisions whose synced_to_~~docs: frontmatter field is absent OR older than file's last-modified time |
<decision-slug> | Just the named decision (e.g., /sync-decisions 069-karpathy-4-line-foundation) |
--all | Every decision in decisions/, regardless of prior sync state |
--since YYYY-MM-DD | Decisions modified or created on/after that date |
Read each candidate decision file from {knowledge_folder}/decisions/. Cache them in working memory.
If zero candidates: report "No decisions need syncing" and stop.
Determine the destination on the ~~docs MCP side. Args + heuristics:
| Source of target | Used when |
|---|---|
--target <space-or-page-url> from args | User specified |
sync_target: frontmatter field on the decision | Decision specifies own target |
default_sync_target from aria-knowledge.local.md (if set) | User has a global default |
| Ask user interactively | None of above resolved |
If target resolution requires asking the user, present:
Which destination?
- (a) Existing page URL: paste the ~~docs page URL where decisions should be appended
- (b) New top-level page: I'll create `aria-knowledge-decisions` (or a name you provide) in the workspace root
- (c) Cancel this sync run
Decision-specific syncs (where decisions/<slug>.md has its own `sync_target:` field) override this; this prompt only fires for decisions without a per-file target.
If no target resolvable + no interactive answer, abort with clear message: "No sync target resolvable. Set default_sync_target in aria-knowledge.local.md or invoke with --target <url>."
For EACH candidate decision, walk through this checklist:
Before each external write — Rule 22 advisory checklist
This skill writes to an external system. aria-knowledge's PreToolUse hook gates Edit/Write but does NOT catch MCP write tools — Rule 22 here is text-only discipline per ADR-016.
1. **State the change in one sentence.** "Writing decision <slug> to <target-url-or-page-title>."
2. **Why this destination?** Is this the right audience for this decision content? Could it leak into a view the user didn't intend (public workspace, wrong project, wrong channel)?
3. **Reversibility check.** Can the user edit/delete the write from <vendor> after it lands? (For Notion / Confluence / Google Docs: YES, user can edit at destination. For Box / Egnyte: depends on workspace permissions. Note any constraint explicitly.)
4. **Surface for explicit go.** Present the full proposed write content + destination. Wait for explicit user `yes` / `go` before calling the write tool.
Concretely: for each decision, surface this block to the user:
Decision: <slug>
Source file: decisions/<slug>.md
Destination: <target-url-or-page-title> on <vendor>
Operation: <create new page | append to existing page | update existing page>
Reversibility: <user can edit at destination: yes/no/constrained>
--- Proposed write content (preview) ---
<the full decision content as it will appear externally — markdown if Notion/Confluence; plaintext if Google Doc; etc.>
--- End preview ---
Ready to write? (yes / no / edit)
Wait for the user's explicit response:
yes / go: proceed to Step 6 for THIS decision.no / skip: mark this decision as skipped in the sync log; move to the next candidate.edit: ask the user what to change in the preview content, regenerate, re-present, ask again.yes to all writes (literal): authorize this AND all remaining decisions in the candidate list without per-decision confirmation. This is the ONLY way to batch — explicit user opt-in per ADR-016. The exact phrase "yes to all writes" must appear in the user's reply; partial forms like "yes to all" or "yes all" do NOT trigger the batch carve-out (per the retro 2026-05-19 finding aligning SKILL.md to ADR-016's literal-phrase requirement).cancel: abort the entire sync run; nothing else gets written.no; re-prompt.Per ADR-016: "Do NOT proceed on implicit consent. Do NOT batch multiple writes behind a single yes unless the user explicitly says 'yes to all writes' in this invocation."
Call the connected ~~docs MCP's write tool with the resolved target + proposed content.
For each MCP:
pages.create (new page) or blocks.children.append (append to existing page). Set parent to the target page; populate properties.title from decision title.confluence.pages.create or confluence.pages.update. Set space + parent per target.documents.batchUpdate with InsertText requests appending to the target doc..md or .txt) at the resolved path; vendor-specific tool name.On success, capture:
On failure, surface the error and ask the user: continue with remaining decisions? Abort?
For each successfully synced decision:
Update the decision file's frontmatter to record the sync — add or update:
synced_to_~~docs:
- target: <destination URL>
vendor: <notion|atlassian|box|egnyte|google docs>
synced_at: <ISO timestamp>
operation: <create|append|update>
This is the only modification to the source file — content is unchanged; only frontmatter records the sync state.
Append to logs/sync-decisions.md:
## <YYYY-MM-DD HH:MM> — <vendor>
- **<decision-slug>** → [<destination URL>](<destination URL>) (<operation>)
Source: `decisions/<slug>.md`
Size: <N> chars
<repeat per synced decision>
If a decision was skipped (no response), log it too with status: skipped for audit traceability.
Summary to user:
Sync complete: <N synced> / <N skipped> / <N failed>
Synced to <vendor> (<target>):
- <slug>: [<destination URL>](<destination URL>) <create|append>
- <slug>: ...
Skipped (user declined):
- <slug>
- <slug>
Failed (MCP errors):
- <slug>: <error message>
Sync log: logs/sync-decisions.md
synced_to_~~docs: frontmatter field changes locally; the markdown body is untouched./sync-decisions <slug> --target <url1> then /sync-decisions <other-slug> --target <url2>.logs/sync-decisions.md for audit traceability.{knowledge_folder}/projects/aria-cowork/decisions/016-rule-22-advisory-preamble-for-external-writes.md). Future write-side skills MUST embed the same preamble.{knowledge_folder}/projects/aria-cowork/decisions/014-bidirectional-feature-flow.md) — aria-cowork v0.4.0 imports byte-faithfully. The advisory preamble template is identical across plugins; the only divergence is the Step 0 config path resolution.{knowledge_folder}/projects/aria-cowork/decisions/013-cowork-modified-skills-schema-identical-outputs.md). Both plugins write to the same shared logs/sync-decisions.md + update the same synced_to_~~docs: frontmatter shape.synced_to_~~docs: frontmatter convention is new in v2.18.0. Documented in CONFIG.md schema section (added in Phase 3a)./audit knowledge — synced decisions are no different from unsynced for audit purposes. The synced_to_~~docs: field is informational, not consumed by audit routing._project-knowledge/ git-based team sharing. That mechanism (v2.13.0) is for per-repo team-mate sharing; /sync-decisions is for org-wide wiki / docs publishing. Both can run in parallel./sync-rules or /sync-references skill could follow the same pattern if external mirroring of other knowledge artifacts is wanted. ADR-016's preamble template ports forward.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
decision-sync, adr-export, knowledge-management, external-docs
40 skills in this plugin
/aria-assistMorning product-management review across all your projects. Use when the user runs /aria-assist, asks for a morning review / daily PM digest / "what should I do today across my products", or when the launchd job fires it headless. Two modes - `generate` (headless: read facts, deep-review ACTIVE projects, apply logged light writes, write the dated digest + per-project PM-REVIEW.md) and `review` (interactive: load today's digest, walk proposals, execute approved ones). Roster comes from projects_list; settings from pm_* keys in aria-knowledge.local.md. (Claude Code variant — full scheduler path. Other ports run manual-only generate/review.)/ask/ask — Query-Driven Knowledge CreationResearch a question, check existing knowledge first, draft a knowledge doc from the answer, and save directly to the appropriate category. Use when user says '/ask', 'ask about', 'research and save', 'I want to learn about', 'what is the pattern for'. Skips backlogs — the user reviews the answer in real-time before saving. (Code port — ADR-094.)/audit/audit — Audit Family DispatcherUmbrella for the audit family — the canonical way to run every sub-audit: '/audit knowledge' (scan memory and plans for extractable knowledge, backlog-to-promotion review), '/audit config' (CLAUDE.md/settings/docs drift and staleness), '/audit style' (mine session-log history for revealed working-style rules), '/audit usage' (value/ROI report over your own corpus), '/audit rules' (mine your distilled corrections for promotable standing rules), or '/audit share' (batch-review personal knowledge for promotion to the team-shared tier). Trigger: '/audit', 'run an audit', 'knowledge audit', 'config audit', 'audit my style', 'audit my rules', 'usage report', 'share knowledge', 'promote to team'.npx claudepluginhub mikeprasad/aria-knowledge --plugin aria-knowledgeOther plugins' skills for the same job