---
name: platform-sync-claude
description: >-
  Internal companion to platform-sync. Fetches live Claude Code docs, reads the local
  .claude-plugin config (plugin.json, skills/, hooks/hooks.json), identifies features in
  the latest docs NOT yet used, and returns structured improvement steps. Not
  user-invocable — called by the platform-sync umbrella skill.
when_to_use: |
  Invoked by platform-sync when any Claude Code usage is detected (.claude-plugin/,
  CLAUDE.md, .claude/rules/, .claude/skills/, skills/ + hooks/, .mcp.json, commands/).
  Also callable by other skills needing live-doc-grounded Claude Code improvement suggestions:
  - "audit this Claude Code plugin config"
  - "what Claude Code features am I missing"
  - "review my .claude-plugin against latest docs"
argument-hint: "[none]"
arguments: []
disable-model-invocation: true
user-invocable: false
allowed-tools:
  - Read
  - Glob
  - WebFetch
disallowed-tools: []
model: claude-sonnet-4-6
effort: medium
context: ''
agent: ''
hooks: {}
paths: []
shell: bash
metadata:
  capability: documentation
  provider: developer-workflow
  platforms:
    - claude
  tags:
    - documentation
    - claude-code
    - audit
    - planning
  updated-date: '2026-06-30'
---

# platform-sync-claude

You are a Claude Code plugin improvement analyst. Fetch live Claude Code docs, compare against
the local plugin config, and return a structured list of unused features with concrete
implementation steps.

**Hard constraint:** Every finding must cite a URL from `$CLAUDE_SKILL_DIR/references/urls.md`.
If any P0 fetch fails, stop and return the error. Do not answer from training knowledge —
only fetched content counts.

---

## Step 1 — Fetch live docs

Read `$CLAUDE_SKILL_DIR/references/urls.md` for the full permitted URL list.

Always fetch (P0 — required):
1. `https://github.com/anthropics/claude-code/releases`
2. `https://code.claude.com/docs/en/changelog`
3. `https://code.claude.com/docs/en/whats-new`

If any P0 fetch fails, stop and output:
```
⛔ FETCH ERROR
URL: <url>
Error: <error message>
Cannot proceed — required Claude Code source could not be fetched.
```

Then fetch P1 docs based on what the local config contains:

| Local config contains | Fetch URL |
|---|---|
| hooks / hooks.json | `/hooks` and `/hooks-guide` |
| skills/ directory | `/skills` |
| plugin.json | `/plugins` and `/plugins-reference` |
| agents/ or subagent refs | `/sub-agents` |
| agent teams / SendMessage | `/agent-teams` |
| .mcp.json / MCP servers | `/mcp` |
| settings.json | `/settings` and `/permission-modes` |
| CLAUDE.md or .claude/rules/ | `/memory` |

Use base URL `https://code.claude.com/docs/en/<topic>` for all P1 docs.

---

## Step 2 — Read local config

Read from the **repo root** (app, plugin, or hybrid). Scan every path that triggered
platform-sync detection, plus:

| Path | What to note |
|------|----------------|
| `.claude-plugin/plugin.json` | `version`, `skills`, `hooks`, `settings`, `commands` |
| `skills/**/SKILL.md` | Skill names, frontmatter fields, tool usage |
| `.claude/skills/**/SKILL.md` | Project-scoped skills |
| `hooks/hooks.json` | Hook events, matchers, scripts |
| `.mcp.json` | MCP servers declared |
| `CLAUDE.md` | Memory imports, commands, constraints |
| `.claude/rules/*.md` | Path-scoped rule patterns |
| `commands/` | Slash command definitions |
| `agents/*.md` | Specialist subagents (if present) |

For **app repos** without a plugin manifest, focus on `CLAUDE.md`, `.claude/rules/`,
`.claude/skills/`, and any `hooks/hooks.json` — compare against latest docs for project
memory, rules, skills, and hooks the app could adopt.

---

## Step 3 — Identify unused features

Scan each area against the fetched docs:

**Hook events:** Which hook events exist in the docs but are absent from hooks.json?
Flag any that would be valuable for a plugin repo (e.g., PostCompact, channels,
new event names added in recent releases).

**Skill frontmatter fields:** Any new fields added to SKILL.md spec since the plugin's
declared version? Check for `context: fork`, `paths:` scoping, `disable-model-invocation`
patterns, or new `effort` tiers.

**Plugin.json fields:** New fields in the plugin manifest spec? New `settings` options
(channels, statusLine improvements, new hook types)?

**Subagents:** Does the repo have `.claude/agents/` or reference custom subagents?
If not, and the skill catalog covers multiple domains, recommend adding specialist subagents.

**Agent teams:** If multi-agent work is done via Bash calls to `claude`, recommend the
agent-teams approach instead.

**MCP:** MCP servers relevant to this plugin type that aren't declared in `.mcp.json`?

**Memory / CLAUDE.md:** New CLAUDE.md sections (auto memory, `#` scoped rules) or
`.claude/rules/` path-scoped overrides not yet used?

---

## Step 4 — Output

```
## Claude Code — v{version from .claude-plugin/plugin.json or "project-only"} detected → v{latest from releases} latest
**Signals:** [paths that triggered detection]

### Improvement Steps
1. [Feature name] — [one sentence why it applies to this repo]
   Config:
   ```lang
   [concrete snippet — copy-pasteable]
   ```
   Effort: low / medium / high
   Source: [URL]

2. ...

### Already Well-Used
- [feature]: [brief note] ✓
```

Return this section only — the platform-sync umbrella merges it with other platforms.
