Skip to content

Commit ecaeb4c

Browse files
docs: add official Anthropic docs tracker commands (MCP v1.1.0)
- Add 5 new /ccguide commands to ultimate-guide.md slash commands section (init-docs, refresh-docs, diff-docs, search-docs, daily) - Add .claude/commands/ccguide/ with 5 command files for project-level access - Document typical daily workflow: init once, then /ccguide:daily every day Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4049d41 commit ecaeb4c

File tree

6 files changed

+121
-1
lines changed

6 files changed

+121
-1
lines changed

.claude/commands/ccguide/daily.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
description: Daily update check — official Anthropic docs diff + guide/CC releases digest
3+
---
4+
5+
Run this sequence in order. Present results as one consolidated report.
6+
7+
## Step 1 — Refresh official docs
8+
9+
Call `refresh_official_docs` MCP tool to fetch the latest Anthropic docs and update the current snapshot.
10+
11+
If it fails (no baseline), tell the user to run /ccguide:init-docs once first, then stop.
12+
13+
## Step 2 — Diff official docs
14+
15+
Call `diff_official_docs` MCP tool to compare baseline vs refreshed current.
16+
17+
## Step 3 — Guide + CC releases digest
18+
19+
Call `get_digest` MCP tool with period: "day"
20+
21+
---
22+
23+
## Output format
24+
25+
Present everything as a single daily briefing:
26+
27+
```
28+
# Daily Claude Code Update — {today's date}
29+
30+
## Official Anthropic Docs
31+
{diff results — added/removed/modified sections, or "No changes"}
32+
33+
## Guide + CC CLI
34+
{digest results — guide CHANGELOG entries + CC releases from last 24h, or "No changes"}
35+
36+
---
37+
Docs snapshot: {baseline date} → {current date}
38+
```
39+
40+
Rules:
41+
- If no changes anywhere: say so clearly in one line, no padding
42+
- Reproduce ALL URLs verbatim (source URLs, GitHub links)
43+
- If official docs unchanged AND no guide/CC updates: "Nothing changed in the last 24h."
44+
- Keep it dense — this is a daily briefing, not a report
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
description: Compare official Anthropic docs baseline vs current snapshot (no network — instant)
3+
---
4+
5+
Use the `diff_official_docs` MCP tool.
6+
7+
No network call — reads local index files only (~50KB each). Instant.
8+
9+
Present the results clearly:
10+
- Added sections (new pages in the official docs)
11+
- Removed sections
12+
- Modified sections with line delta and first changed line
13+
- Unchanged count
14+
15+
If no baseline exists, tell the user to run /ccguide:init-docs first.
16+
If no current snapshot exists, tell the user to run /ccguide:refresh-docs first.
17+
If no changes, confirm everything is in sync and suggest running /ccguide:refresh-docs to update.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
description: Fetch official Anthropic Claude Code docs and store as local baseline snapshot
3+
---
4+
5+
Use the `init_official_docs` MCP tool.
6+
7+
This fetches ~1.2MB from Anthropic (takes ~5s) and stores 4 local cache files in ~/.cache/claude-code-guide/.
8+
Both the baseline and current snapshots are set to this version.
9+
10+
After success, tell the user:
11+
- How many sections were found
12+
- The snapshot path
13+
- That they can now run /ccguide:diff-docs after /ccguide:refresh-docs to see what changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
description: Re-fetch official Anthropic Claude Code docs and update current snapshot (baseline unchanged)
3+
---
4+
5+
Use the `refresh_official_docs` MCP tool.
6+
7+
This fetches ~1.2MB from Anthropic (takes ~5s) and updates only the "current" snapshot.
8+
The baseline (set by init_official_docs) is never touched.
9+
10+
After success, show the quick diff preview against the baseline that the tool returns.
11+
Remind the user to run /ccguide:diff-docs for the full detailed diff.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
description: Search official Anthropic Claude Code docs by keyword
3+
---
4+
5+
Use the `search_official_docs` MCP tool with query: $ARGUMENTS
6+
7+
If no query is given, ask the user what they want to search for.
8+
9+
Default limit: 5 results.
10+
11+
Present each result with:
12+
- Section title
13+
- Source URL (reproduce verbatim)
14+
- Excerpt showing the relevant content
15+
16+
If no snapshot exists, tell the user to run /ccguide:init-docs first.

guide/ultimate-guide.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11586,17 +11586,36 @@ Install the companion slash commands for one-keystroke access (stored in `~/.cla
1158611586
# Copy or symlink to ~/.claude/commands/ccguide/ to install globally
1158711587
```
1158811588

11589+
**Guide commands:**
11590+
1158911591
| Command | Example | Description |
1159011592
|---------|---------|-------------|
1159111593
| `/ccguide:search` | `/ccguide:search hooks` | Search by keyword |
1159211594
| `/ccguide:cheatsheet` | `/ccguide:cheatsheet hooks` | Cheatsheet (full or section) |
11593-
| `/ccguide:digest` | `/ccguide:digest week` | What changed this week |
11595+
| `/ccguide:digest` | `/ccguide:digest week` | What changed this week (guide + CC releases) |
1159411596
| `/ccguide:example` | `/ccguide:example code-reviewer` | Fetch a template |
1159511597
| `/ccguide:examples` | `/ccguide:examples agents` | List templates by category |
1159611598
| `/ccguide:release` | `/ccguide:release 2.1.59` | Release details |
1159711599
| `/ccguide:changelog` | `/ccguide:changelog 10` | Recent guide CHANGELOG |
1159811600
| `/ccguide:topics` | `/ccguide:topics` | Browse all categories |
1159911601

11602+
**Official Anthropic docs tracker** (MCP v1.1.0+):
11603+
11604+
| Command | Description |
11605+
|---------|-------------|
11606+
| `/ccguide:init-docs` | Fetch official docs + store as local baseline (run once) |
11607+
| `/ccguide:refresh-docs` | Re-fetch latest docs, update current snapshot (baseline unchanged) |
11608+
| `/ccguide:diff-docs` | Compare baseline vs current — added/removed/modified pages, 0 network |
11609+
| `/ccguide:search-docs <query>` | Search official Anthropic docs from local cache |
11610+
| `/ccguide:daily` | **Daily briefing**: refresh + diff official docs + guide/CC digest |
11611+
11612+
Typical workflow:
11613+
```bash
11614+
/ccguide:init-docs # once — stores baseline + current in ~/.cache/claude-code-guide/
11615+
# days later...
11616+
/ccguide:daily # every day — refresh + diff + digest in one shot
11617+
```
11618+
1160011619
#### Custom agent
1160111620

1160211621
A `claude-code-guide` agent is included in `.claude/agents/claude-code-guide.md`. It uses Haiku (fast, cheap) and automatically searches the guide before answering any Claude Code question.

0 commit comments

Comments
 (0)