agentleFS
Aias00Aias00/agent-skills/chrome-extension-e2e-automation/SKILL.md

chrome-extension-e2e-automation

Skill2 starsChanged 8 months agoApache-2.0View on GitHub

End-to-end Chrome extension automation skill. Use when a user wants one-command workflow from dev validation to Chrome Web Store release artifacts: manifest/JS checks, privacy-policy/.gitignore baseline, permission audit, deterministic ZIP packaging, store assets generation+validation, and bilingual (ZH/EN) CWS draft output.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user asks for one-command automation across development checks and publish readiness.

    line 10
  2. Very specific:

    If --icon-source is not provided, it auto-tries manifest icons (icons, action.default_icon).

    line 53
  3. Very specific:

    If extension icons are missing, it auto-generates icons/icon16.png, icons/icon48.png, icons/icon128.png, and patches manifest.json.

    line 54
  4. Very specific:

    If assets are enabled and no --inputs are provided, it auto-runs screenshot capture with Playwright first (preferred path).

    line 55
  5. Distinctive:

    If Playwright is missing and no image input is provided, it fails with install instructions.

    line 59
  6. Very specific:

    Do not pass --root/--manifest as forwarded flags.

    line 97
  7. Very specific:

    Default packaging mode is manifest with transitive local dependency inclusion.

    line 119
  8. Distinctive:

    If pipeline fails, read references/troubleshooting.md.

    line 131

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
SKILL.md

Chrome Extension E2E Automation

Overview

Use this skill when the user asks for one-command automation across development checks and publish readiness. This skill orchestrates existing Chrome extension skills into a single deterministic pipeline.

When To Use

Trigger this skill when user intent matches:

  • "全链路自动化"
  • "一键发布准备"
  • "开发完直接出发布包"
  • "端到端生成发布物料"
  • "one command pipeline for chrome extension release"

Typical targets:

  • Any MV3 extension directory with manifest.json
  • First release or update release preparation
  • Teams that need repeatable outputs in release/

Core Command

Run from anywhere:

python3 scripts/run_e2e_extension_pipeline.py \
  --root /abs/path/to/extension \
  --icon-source /abs/path/to/icon.png \
  --include-marquee

This command performs:

  1. Extension icon bootstrap (icons/icon16|48|128 + manifest mapping)
  2. Dev checks (manifest JSON + JS syntax)
  3. Popup UI audit (width guardrail, media reset check, icon quality)
  4. Publish baseline prep (privacy-policy.md, .gitignore)
  5. Permission audit
  6. Deterministic ZIP packaging
  7. Store assets generation + validation
  8. Bilingual CWS listing draft generation
  9. Pipeline summary output
  10. Optional popup preview capture (--capture-popup-preview)
  11. Optional Playwright dashboard submission (--submit-playwright)

Auto Behavior

  • If --icon-source is not provided, it auto-tries manifest icons (icons, action.default_icon).
  • If extension icons are missing, it auto-generates icons/icon16.png, icons/icon48.png, icons/icon128.png, and patches manifest.json.
  • If assets are enabled and no --inputs are provided, it auto-runs screenshot capture with Playwright first (preferred path).
  • This auto-capture priority applies even if old screenshots already exist under release/store-assets/screenshots.
  • It runs popup UI quality audit by default and fails fast when popup width is too small or icon remains fallback style.
  • Popup preview capture is optional and only runs when --capture-popup-preview is set.
  • If Playwright is missing and no image input is provided, it fails with install instructions.

Pass-Through Flags

Any unknown flags are forwarded to:

chrome-extension-publish/scripts/run_full_release_pipeline.py

Useful forwarded flags:

  • --inputs ...
  • --capture-screenshots
  • --skip-assets
  • --skip-docs
  • --mode source
  • --zip-out ...
  • --listing-out ...
  • --submit-playwright
  • --submit-item-id ...
  • --submit-item-name ...
  • --submit-locale zh|en
  • --submit-privacy-policy-url ...
  • --submit-for-review

Wrapper-only flags:

  • --skip-icon-bootstrap
  • --skip-dev-checks
  • --skip-manifest-check
  • --skip-js-check
  • --no-auto-capture-if-no-inputs
  • --skip-ui-audit
  • --popup-audit-out ...
  • --min-popup-width ...
  • --capture-popup-preview
  • --skip-popup-preview (deprecated compatibility flag)
  • --popup-preview-out ...
  • --popup-preview-size ...
  • --popup-preview-headless

Do not pass --root/--manifest as forwarded flags; use wrapper flags instead.

Output Contract

Expected artifacts under extension root:

  • release/chrome-webstore.zip
  • release/permission-audit.md
  • release/popup-ui-audit.md
  • release/store-assets/*
  • release/cws-listing.zh-en.md
  • release/full-release-summary.md
  • root privacy-policy.md

Optional artifact (only when --capture-popup-preview is used):

  • release/store-assets/screenshots/popup-preview-620x760.png

Optional artifact (only when --submit-playwright is used):

  • release/cws-submit-proof.png

Guardrails

  • Privacy policy canonical path is fixed: privacy-policy.md (root).
  • Default packaging mode is manifest with transitive local dependency inclusion.
  • Store icon must not silently degrade to screenshot-derived icon; explicit icon source is preferred.
  • Listing content must contain both Chinese and English blocks.

Scripts

  • scripts/run_e2e_extension_pipeline.py: unified entrypoint.
  • scripts/audit_popup_ui.py: popup width/icon/style guardrail checks.
  • scripts/capture_popup_preview.py: optional real popup preview capture.

References

  • If pipeline fails, read references/troubleshooting.md.

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.