SuperAPI AI Directory

chromium-docs

Coding & development

View repository

Updated 10-16 07:28

About this skill

Chromium Documentation Search (integrated from chromium_agents)

Features

From the Chromium source repository's docs/**/*.md and each module's README.md automatically build a documentation index, supporting keyword search and category browsing.

Data source: OpenHarmony-TPC/chromium_src repository (docs/ 183+ md files under it) Tool: skills/chromium-docs/scripts/chromium_docs.py Index generation: automatic scan, completes in about 30 seconds

Usage

First use: build the index

python skills/chromium-docs/scripts/chromium_docs.py --build-index

It needs to be executed in the chromium_src source directory, or specify the path via --src-root .

Search documentation

python skills/chromium-docs/scripts/chromium_docs.py "mojo ipc"
python skills/chromium-docs/scripts/chromium_docs.py "gpu architecture"
python skills/chromium-docs/scripts/chromium_docs.py "threading model"

AI Agent invocation

Inject search results into the task description:

请搜索 Chromium 文档中关于"滚动"的相关内容,
使用 skills/chromium-docs/scripts/chromium_docs.py "scroll"

Documentation categories

Category Description
architecture Architecture design, multi-process model
api Mojo/mojom interfaces
testing Unit tests, browser test
gpu GPU/WebGL/Vulkan
network Network stack/HTTP/QUIC
security Sandbox/permissions/CORS
media Audio and video/codec
ui Views/Aura
build GN/Ninja/compilation
ohos OHOS adaptation (custom category)
blink Blink rendering engine
content Content layer

Relationship with oh-chromium-knowledge

Tool Index content Purpose
chromium-docs Documentation (docs/*.md) Understand architecture, programming patterns, development standards
oh-chromium-knowledge Code paths (routing_table) Locate specific files and code paths

The two are complementary: first understand the architecture through chromium-docs, then locate code through oh-chromium-knowledge.

Index maintenance

  • First useBefore use, you must --build-index
  • It is recommended to rebuild after a major version update of chromium_src
  • The index file is located at data/indexes/(already excluded by .gitignore)

File structure

skills/chromium-docs/
├── SKILL.md              ← 本文件
├── scripts/
│   └── chromium_docs.py  ← 索引生成+搜索脚本
└── data/
    └── configs/
        └── search_config.json  ← 搜索配置