agents/skills/chromium-docs/README.md
A Claude Code skill that provides intelligent search across Chromium's official documentation.
cd agents/skills/chromium-docs
python scripts/chromium_docs.py --build-index
Ask questions about Chromium development and the SKILL will search official documentation:
agents/skills/chromium-docs/
├── OWNERS # Code ownership
├── SKILL.md # SKILL definition (source)
├── README.md # This file
├── .gitignore # Excludes generated data
├── scripts/
│ └── chromium_docs.py # Main search implementation
└── data/
└── configs/
└── search_config.json # Search configuration
To use this skill, symlink or copy SKILL.md to your agent's skills directory (e.g., .claude/skills/chromium-docs/).
The data/configs/search_config.json file controls search behavior and was manually created
based on Chromium's codebase structure. Key sections:
| Section | Purpose | When to Update |
|---|---|---|
indexing.scan_patterns | Glob patterns for docs to index | New doc locations added |
indexing.excluded_patterns | Directories to skip | New generated/vendor dirs |
categories | Doc classification (api, testing, etc.) | Major component changes |
search.boost_factors | Relevance weighting | Search quality tuning |
search_config.json directlypython scripts/chromium_docs.py --build-indexCategories and patterns should match actual directory structures in the Chromium repo.
cd agents/skills/chromium-docs/scripts
python -m pytest chromium_docs_test.py -v
# Or without pytest:
python chromium_docs_test.py
After making changes, verify the skill works correctly:
# 1. Build the index
python scripts/chromium_docs.py --build-index
# 2. Test search functionality
python scripts/chromium_docs.py "mojo ipc"
python scripts/chromium_docs.py "browser test"
python scripts/chromium_docs.py "gpu architecture"
# 3. Verify results include relevant docs with reasonable scores
Expected behavior: