Skip to content
Back to skills

Claude Code Bible

ASecurity

Fetch Claude Code official documentation. Use when updating local reference docs or checking official spec.

  • 43 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
documentationbashnodedocumentation

Works with

  • claude code

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add baekenough/oh-my-customcode --skill claude-code-bible --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Claude Code Bible?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Claude Code Bible
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/baekenough-claude-code-bible/badge)](https://www.skillsdirectory.com/skills/baekenough-claude-code-bible)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: claude-code-bible
description: Fetch Claude Code official documentation. Use when updating local reference docs or checking official spec.
scope: core
disable-model-invocation: true
user-invocable: false
---

# Claude Code Bible

Official documentation reference management for Claude Code.

## Purpose

Maintain up-to-date local copies of Claude Code official documentation.

## Commands

### /claude-code-bible update

Fetch the latest documentation from code.claude.com.

**What it does:**
- Fetches `https://code.claude.com/docs/llms.txt`
- Extracts all documentation URLs from the llms.txt content
- Downloads each documentation page and saves as markdown
- Writes a timestamp file for cache tracking
- Respects a 24-hour cache (skip if fresh, unless `--force` used)

**Usage:**
```bash
# Fetch latest docs (skip if cached < 24h)
node .claude/skills/claude-code-bible/scripts/fetch-docs.js

# Force update even if cache is fresh
node .claude/skills/claude-code-bible/scripts/fetch-docs.js --force

# Custom output directory
node .claude/skills/claude-code-bible/scripts/fetch-docs.js --output /path/to/output
```

**Default output location:**
```
~/.claude/references/claude-code/
├── llms.txt              # Master index
├── last-updated.txt      # ISO timestamp
├── <doc-name>.md         # Individual doc pages
└── ...
```

**Exit codes:**
- `0`: Success (or cache is fresh)
- `1`: Fatal error

## Implementation Notes

### Fetch Script (fetch-docs.js)

**Features:**
- Uses only Node.js built-in modules (https, fs, path)
- Handles HTTP redirects (3xx responses)
- Respects server with 200ms delay between requests
- 24-hour cache to avoid unnecessary fetches
- Comprehensive error reporting

**Cache behavior:**
- Checks `last-updated.txt` timestamp
- Skips fetch if < 24 hours old (unless --force)
- Always updates timestamp on successful fetch

**Error handling:**
- Reports HTTP errors with status codes
- Continues on individual page failures
- Prints summary of successes and failures

## Integration with Other Skills

### update-docs
- Should update local docs first: `/claude-code-bible update`

### dev-review
- Can reference official docs for best practices

## Benefits

1. **Up-to-date**: Always have latest documentation locally
2. **Offline access**: Work with docs even without internet
3. **Learning**: Reference official patterns when creating new components

## Notes

- The fetch script is production-ready and can be used immediately
- Consider running `/claude-code-bible update` weekly to stay current

Files in this skill

  • SKILL.md2.5 KB
  • scripts/fetch-docs.js6.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.