agentleFS
litingyeslitingyes/chrome-skills/AGENTS.md

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.

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
  1. Very specific:

    When adding or changing a skill, work in skills/.

    line 23
  2. Very specific:

    Run matching script under skills/chrome/scripts/.

    line 83
  3. Very specific:

    Default disable-model-invocation: true on chrome — explicit /chrome invocation only.

    line 91
  4. Very specific:

    Keep SKILL.md lean; put depth in references/, examples.md, or scripts/

    line 110
  5. Common:

    No secrets, API keys, or credentials in skill files

    line 111
  6. Very specific:

    Keep skills/chrome/SKILL.md at command-index level (target under 500 lines)

    line 115
  7. Distinctive:

    Every new command needs:

    line 116
  8. Very specific:

    Use references/cdp-patterns.md for agent-browser alignment.

    line 122
  9. Very specific:

    Add or update references/<command>.md and output-schemas.md

    line 162
  10. Very specific:

    Add entry to SKILL.md command index.

    line 163
  11. Very specific:

    Run skills/chrome/scripts/setup then smoke-test CLI

    line 164
  12. Very specific:

    Read bundled skill-creator: .agents/skills/skill-creator/SKILL.md

    line 173
  13. Very specific:

    Create skills/<skill-name>/SKILL.md with frontmatter and instructions

    line 174
  14. Distinctive:

    Test and validate as above

    line 175
  15. Very specific:

    Commit only under skills/ — not under .agents/skills/ or .claude/skills/.

    line 177
  16. Distinctive:

    When editing the site:

    line 183
  17. Very specific:

    When changing commands or recipes, keep SKILL.md → i18n strings → hubCompositions.ts in sync

    line 187
  18. Very specific:

    Follow tone in PRODUCT.md (technical, restrained, architecture-first)

    line 188
  19. Distinctive:

    Do not mix website build steps into skill CLI workflows or skill release paths.

    line 196
  20. Very specific:

    Do not commit .agents/skills/ or .claude/skills/ as canonical skills

    line 221
  21. Distinctive:

    Do not duplicate README content in AGENTS.md — keep this file operational

    line 222
  22. Very specific:

    Do not hand-edit hashes in skills-lock.json

    line 223
  23. Very specific:

    Do not add tests, CI, or package scaffolding under skills/ unless explicitly requested

    line 224
  24. Very specific:

    Do not split every Chrome capability into a separate top-level skill — extend chrome commands instead

    line 225
  25. Very specific:

    Do not pile command details into SKILL.md — use references/

    line 226
  26. Very specific:

    Do not treat website/ as part of skill runtime or agent skill installation

    line 227

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

PathPurpose
skills/<skill-name>/SKILL.mdCanonical, committed, publishable skills — only edit skills here
skills-lock.jsonLocked 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.mdBrand 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.mdHuman-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

PathPurpose
skills/chrome/SKILL.mdCommand router and index — the only skill body that should stay resident
skills/chrome/references/<command>.mdPer-command workflows; load on demand
skills/chrome/references/audit.mdaudit recipe workflow
skills/chrome/references/output-schemas.mdJSON output contracts
skills/chrome/references/cdp-patterns.mdagent-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/setupInstalls Python deps into scripts/vendor/
skills/chrome/examples.mdCopy-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
LayerCommandSessionRole
L1cdp <action>launch creates; others require --sessionBrowser lifecycle and page ops (launch · navigate · wait · evaluate · snapshot · emulate · resize · screenshot · close)
L2extract <mode>Required --sessionStructured extraction from current page (article · serp · layout · a11y)
L3search, fetch, auditInternal (launch→…→close)High-frequency one-shot recipes

Routing (when user invokes /chrome):

  1. Parse first token: cdp | extract | search | fetch | audit
  2. Read only skills/chrome/references/<token>.md
  3. For cdp, second token is the action; for extract, second token is the mode
  4. 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):

  1. CDP can express it → add cdp action
  2. Fixed JSON schema extraction → add extract mode
  3. 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 characters
  • description — 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.md lean; put depth in references/, examples.md, or scripts/
  • No secrets, API keys, or credentials in skill files

chrome-specific conventions

  • Keep skills/chrome/SKILL.md at command-index level (target under 500 lines)
  • Every new command needs:
    • Entry in SKILL.md command table
    • references/<command>.md workflow doc
    • Executable scripts/ entry (or subcommand of cdp / extract)
    • JSON fields in references/output-schemas.md
  • Recipe commands must document equivalent cdp + extract steps in their reference file
  • Use references/cdp-patterns.md for agent-browser alignment; do not add agent-browser CLI as a runtime dependency
  • Sessions live in ~/.cache/chrome-skill/sessions/; always close with cdp close
  • UI verification: prefer audit or extract layout over CSS guesses; use multi-viewport sweeps; treat issues[] as facts

Optional bundled resources (general pattern):

skills/<skill-name>/
├── SKILL.md
├── references/
├── examples.md
└── scripts/

Chrome capability domains

Domainv1 statusLocation
CDP / browser automationImplementedchrome commands (cdp, extract, search, fetch, audit)
Performance & networkFuture chrome commandsextract perf, extract network — see skills/chrome/references/extension-roadmap.md
Extension / Platform APIsNot implementedFuture 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/:

  1. Decide layer: cdp action, extract mode, or recipe command
  2. Implement in scripts/lib/; wire CLI in scripts/
  3. Add or update references/<command>.md and output-schemas.md
  4. Add entry to SKILL.md command index; add example to examples.md if non-obvious
  5. Run skills/chrome/scripts/setup then smoke-test CLI
  6. Validate frontmatter when touching SKILL.md:
python .agents/skills/skill-creator/scripts/quick_validate.py skills/chrome

New top-level skill (exception) — only for an independent domain:

  1. Read bundled skill-creator: .agents/skills/skill-creator/SKILL.md
  2. Create skills/<skill-name>/SKILL.md with frontmatter and instructions
  3. 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.ts must match skills/chrome/references/*.md
  • When changing commands or recipes, keep SKILL.md → i18n strings → hubCompositions.ts in 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 dev

Do 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 chrome commands 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 requested
  • website/ — package.json already exists; run pnpm dev / pnpm build only when changing the landing page

Verification before claiming done

  • SKILL.md has valid name and description frontmatter
  • New commands appear in SKILL.md command index
  • Workflow steps are executable (commands are copy-pasteable)
  • scripts/setup run; CLI smoke tests pass
  • Sessions cleaned up with cdp close in 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.ts stay 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 chrome commands instead
  • Do not pile command details into SKILL.md — use references/
  • Do not treat website/ as part of skill runtime or agent skill installation

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.