chrome-skills
AGENTS.md0 starsChanged 5 months agoApache-2.0View on GitHub
chrome-skills extracts, normalizes, and maintains agent skills from Chrome capabilities. The goal is to give coding agents reliable workflows for browser automation, DevTools, and Chrome platform APIs. This repo contains skills (the published catalog) and a marketing website — not a Chrome extension or MCP server implementation. The website is a standalone landing page; it is not part of skill runtime. The published catalog currently centers on a single hub skill, chrome. Capabilities are internal commands (cdp, extract, search, fetch,…
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- chromeSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
26 rules. About 1 is common, 5 are distinctive, and 20 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
20
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
When adding or changing a skill, work in skills/.
- Very specific: line 83
Run matching script under skills/chrome/scripts/.
- Very specific: line 91
Default disable-model-invocation: true on chrome — explicit /chrome invocation only.
- Very specific: line 110
Keep SKILL.md lean; put depth in references/, examples.md, or scripts/
- Common: line 111
No secrets, API keys, or credentials in skill files
- Very specific: line 115
Keep skills/chrome/SKILL.md at command-index level (target under 500 lines)
- Distinctive: line 116
Every new command needs:
- Very specific: line 122
Use references/cdp-patterns.md for agent-browser alignment.
- Very specific: line 162
Add or update references/<command>.md and output-schemas.md
- Very specific: line 163
Add entry to SKILL.md command index.
- Very specific: line 164
Run skills/chrome/scripts/setup then smoke-test CLI
- Very specific: line 173
Read bundled skill-creator: .agents/skills/skill-creator/SKILL.md
- Very specific: line 174
Create skills/<skill-name>/SKILL.md with frontmatter and instructions
- Distinctive: line 175
Test and validate as above
- Very specific: line 177
Commit only under skills/ — not under .agents/skills/ or .claude/skills/.
- Distinctive: line 183
When editing the site:
- Very specific: line 187
When changing commands or recipes, keep SKILL.md → i18n strings → hubCompositions.ts in sync
- Very specific: line 188
Follow tone in PRODUCT.md (technical, restrained, architecture-first)
- Distinctive: line 196
Do not mix website build steps into skill CLI workflows or skill release paths.
- Very specific: line 221
Do not commit .agents/skills/ or .claude/skills/ as canonical skills
- Distinctive: line 222
Do not duplicate README content in AGENTS.md — keep this file operational
- Very specific: line 223
Do not hand-edit hashes in skills-lock.json
- Very specific: line 224
Do not add tests, CI, or package scaffolding under skills/ unless explicitly requested
- Very specific: line 225
Do not split every Chrome capability into a separate top-level skill — extend chrome commands instead
- Very specific: line 226
Do not pile command details into SKILL.md — use references/
- Very specific: line 227
Do not treat website/ as part of skill runtime or agent skill installation
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Instructions
Project overview
chrome-skills extracts, normalizes, and maintains agent skills from Chrome capabilities. The goal is to give coding agents reliable workflows for browser automation, DevTools, and Chrome platform APIs.
This repo contains skills (the published catalog) and a marketing website — not a Chrome extension or MCP server implementation. The website is a standalone landing page; it is not part of skill runtime.
The published catalog currently centers on a single hub skill, chrome. Capabilities are internal commands (cdp, extract, search, fetch, audit) composed in layers, not separate top-level skills. extract modes include article, serp, layout, and a11y. This reduces context overhead while keeping workflows atomic and composable.
Repository map
| Path | Purpose |
skills/<skill-name>/SKILL.md | Canonical, committed, publishable skills — only edit skills here |
skills-lock.json | Locked references to vendored tooling skills (e.g. skill-creator); do not hand-edit hashes |
website/ | Marketing landing page source; edit when changing site UI or copy |
PRODUCT.md | Brand and product principles; website copy should align with this |
.agents/skills/ | Local Cursor/runtime copies — gitignored, not source of truth |
.claude/skills/ | Local Claude Code copies — gitignored, not source of truth |
README.md | Human-facing overview; link here instead of duplicating marketing copy |
When adding or changing a skill, work in skills/. Never treat .agents/skills/ or .claude/skills/ as the canonical location.
chrome hub paths
| Path | Purpose |
skills/chrome/SKILL.md | Command router and index — the only skill body that should stay resident |
skills/chrome/references/<command>.md | Per-command workflows; load on demand |
skills/chrome/references/audit.md | audit recipe workflow |
skills/chrome/references/output-schemas.md | JSON output contracts |
skills/chrome/references/cdp-patterns.md | agent-browser concept mapping (reference only) |
skills/chrome/scripts/ | CLI entrypoints (cdp, extract, search, fetch, audit) |
skills/chrome/scripts/lib/ | CDP client, extractors, recipes — edit implementation here |
skills/chrome/scripts/setup | Installs Python deps into scripts/vendor/ |
skills/chrome/examples.md | Copy-paste composition examples |
Edit command logic under skills/chrome/scripts/lib/. Do not edit .agents/skills/chrome/ as canonical source.
Hub skill command architecture
flowchart TB
subgraph L1 [L1 cdp atoms]
launch[launch]
navigate[navigate]
wait[wait]
evaluate[evaluate]
snapshot[snapshot]
emulate[emulate]
resize[resize]
screenshot[screenshot]
close[close]
end
subgraph L2 [L2 extract compose]
article[article]
serp[serp]
layout[layout]
a11y[a11y]
end
subgraph L3 [L3 recipes]
search[search]
fetch[fetch]
audit[audit]
end
L1 --> L2
L2 --> L3
L1 -.->|"agent custom flows"| L3| Layer | Command | Session | Role |
| L1 | cdp <action> | launch creates; others require --session | Browser lifecycle and page ops (launch · navigate · wait · evaluate · snapshot · emulate · resize · screenshot · close) |
| L2 | extract <mode> | Required --session | Structured extraction from current page (article · serp · layout · a11y) |
| L3 | search, fetch, audit | Internal (launch→…→close) | High-frequency one-shot recipes |
Routing (when user invokes /chrome):
- Parse first token:
cdp|extract|search|fetch|audit - Read only
skills/chrome/references/<token>.md - For
cdp, second token is the action; forextract, second token is the mode - Run matching script under
skills/chrome/scripts/; scripts emit JSON to stdout
Extension priority (do not create a new top-level skill for each capability):
- CDP can express it → add
cdpaction - Fixed JSON schema extraction → add
extractmode - High-frequency end-to-end task → add recipe command (composes existing layers)
Default disable-model-invocation: true on chrome — explicit /chrome invocation only.
Skill authoring conventions
Each skill lives at skills/<skill-name>/SKILL.md with required YAML frontmatter:
---
name: skill-name
description: Third-person WHAT + WHEN triggers (max ~1024 chars)
disable-model-invocation: true
---Rules:
name— lowercase letters, numbers, hyphens only; max 64 charactersdescription— third person; include both capabilities and trigger terms (agents under-trigger skills without explicit WHEN clauses)disable-model-invocation: true— default unless ambient auto-trigger is intentional- Keep
SKILL.mdlean; put depth inreferences/,examples.md, orscripts/ - No secrets, API keys, or credentials in skill files
chrome-specific conventions
- Keep
skills/chrome/SKILL.mdat command-index level (target under 500 lines) - Every new command needs:
- Entry in
SKILL.mdcommand table references/<command>.mdworkflow doc- Executable
scripts/entry (or subcommand ofcdp/extract) - JSON fields in
references/output-schemas.md
- Entry in
- Recipe commands must document equivalent
cdp+extractsteps in their reference file - Use
references/cdp-patterns.mdfor agent-browser alignment; do not add agent-browser CLI as a runtime dependency - Sessions live in
~/.cache/chrome-skill/sessions/; always close withcdp close - UI verification: prefer
auditorextract layoutover CSS guesses; use multi-viewport sweeps; treatissues[]as facts
Optional bundled resources (general pattern):
skills/<skill-name>/
├── SKILL.md
├── references/
├── examples.md
└── scripts/Chrome capability domains
| Domain | v1 status | Location |
| CDP / browser automation | Implemented | chrome commands (cdp, extract, search, fetch, audit) |
| Performance & network | Future chrome commands | extract perf, extract network — see skills/chrome/references/extension-roadmap.md |
| Extension / Platform APIs | Not implemented | Future skill or chrome command |
CDP / browser automation
Navigation, extraction, search, fetch, and UI layout verification (audit, extract layout, extract a11y). Implemented via Python CDP scripts in skills/chrome/scripts/. Prefer composable cdp atoms over one-off shell. For UI work, use multi-viewport audit and fix from issues[] rather than trusting CSS alone. List Chrome/Chromium and scripts/setup prerequisites in references.
Performance & network
Core Web Vitals (FCP, LCP, CLS), network debugging, trace analysis. Extend the chrome hub — do not add external MCP dependencies. See skills/chrome/references/extension-roadmap.md for planned commands.
Extension / Platform APIs
Distill official Chrome documentation into agent workflows. Put Chrome doc URLs in references/, not in the SKILL.md body. Do not invent APIs — verify against Chrome for Developers or Context7 before writing.
Creating or editing skills
Default workflow — extend skills/chrome/:
- Decide layer:
cdpaction,extractmode, or recipe command - Implement in
scripts/lib/; wire CLI inscripts/ - Add or update
references/<command>.mdandoutput-schemas.md - Add entry to
SKILL.mdcommand index; add example toexamples.mdif non-obvious - Run
skills/chrome/scripts/setupthen smoke-test CLI - Validate frontmatter when touching
SKILL.md:
python .agents/skills/skill-creator/scripts/quick_validate.py skills/chromeNew top-level skill (exception) — only for an independent domain:
- Read bundled
skill-creator:.agents/skills/skill-creator/SKILL.md - Create
skills/<skill-name>/SKILL.mdwith frontmatter and instructions - Test and validate as above
Commit only under skills/ — not under .agents/skills/ or .claude/skills/.
Website
The website/ directory is a Vite + React landing page (en / zh-CN). It is separate from skill publishing.
When editing the site:
- Copy and i18n:
website/src/i18n/en.ts,website/src/i18n/zh-CN.ts - Recipe composition data:
website/src/lib/hubCompositions.tsmust matchskills/chrome/references/*.md - When changing commands or recipes, keep
SKILL.md→ i18n strings →hubCompositions.tsin sync - Follow tone in
PRODUCT.md(technical, restrained, architecture-first)
Local dev (only when the task involves the landing page):
cd website && pnpm install && pnpm devDo not mix website build steps into skill CLI workflows or skill release paths.
Code change principles
- Smallest correct diff; no unrelated refactors
- Match structure and tone of existing
chromecommands when extending - Comments only for non-obvious Chrome, CDP, or MCP behavior
skills/— do not add CI, test scaffolding, or unrelated build tooling unless explicitly requestedwebsite/—package.jsonalready exists; runpnpm dev/pnpm buildonly when changing the landing page
Verification before claiming done
SKILL.mdhas validnameanddescriptionfrontmatter- New commands appear in
SKILL.mdcommand index - Workflow steps are executable (commands are copy-pasteable)
scripts/setuprun; CLI smoke tests pass- Sessions cleaned up with
cdp closein tests - Prerequisites listed (Chrome/Chromium, Python,
scripts/setup) - No invented APIs — verified against official or Context7 docs
- Changes under
skills/, not gitignored runtime directories scripts/vendor/and__pycache__/not committed- If commands or recipes changed:
README.md,SKILL.md, and website i18n /hubCompositions.tsstay aligned (update website only when the task includes it)
What not to do
- Do not commit
.agents/skills/or.claude/skills/as canonical skills - Do not duplicate README content in AGENTS.md — keep this file operational
- Do not hand-edit hashes in
skills-lock.json - Do not add tests, CI, or package scaffolding under
skills/unless explicitly requested - Do not split every Chrome capability into a separate top-level skill — extend
chromecommands instead - Do not pile command details into
SKILL.md— usereferences/ - Do not treat
website/as part of skill runtime or agent skill installation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

