MightyMouse

Playbooks · Browser extension

Cut permissions to the minimum

Fewer scary install warnings and faster store review.

Browser extensionEngineeringpermissionstruststore review

Run it on my project

The number it moves

Installs that stay

Share of installs still installed after 7 days (installs minus uninstalls).

What your AI does

Read manifest.json permissions and host_permissions. Compare against the APIs and sites the code actually uses. Propose removing unused permissions, switching broad host access to activeTab or optional_permissions where possible.

Done when

  1. Every permission asked for is used by the code
  2. Broad site access is replaced by current-tab or optional access where possible

The prompt

Paste this into any AI coding tool, or run it in MightyMouse and your AI works on your own project.

Cut permissions to the minimum (Browser extension)

Read manifest.json permissions and host_permissions. Compare against the APIs and sites the code actually uses. Propose removing unused permissions, switching broad host access to activeTab or optional_permissions where possible.

Done when:
- Every permission asked for is used by the code
- Broad site access is replaced by current-tab or optional access where possible

Read the code first. If it already does this well, change nothing and say so. Otherwise make the smallest change that makes every line above true.

Work with what this project already uses. Do not add a paid tool or service unless I ask for one.

Playbook: https://getmightymouse.com/playbooks/extension-cut-permissions-to-the-minimum/ - published by MightyMouse. Source: Chrome for Developers, https://developer.chrome.com/docs/extensions/develop/concepts/permission-warnings

The skill file

Save this as SKILL.md and Claude Code or Cursor can run the playbook any time you ask.

---
name: extension-cut-permissions-to-the-minimum
description: Fewer scary install warnings and faster store review. Use on a browser extension project to improve "Installs that stay".
---

# Cut permissions to the minimum

Read manifest.json permissions and host_permissions. Compare against the APIs and sites the code actually uses. Propose removing unused permissions, switching broad host access to activeTab or optional_permissions where possible.

## Done when

- [ ] Every permission asked for is used by the code
- [ ] Broad site access is replaced by current-tab or optional access where possible

## How to run it

Read the code first and tick every line that is already true. If all are true, change nothing and say so. Otherwise make the smallest change that makes the rest true, then report each line as done or not done.

Work with what this project already uses. Do not add a paid tool or service unless I ask for one.

Playbook: https://getmightymouse.com/playbooks/extension-cut-permissions-to-the-minimum/ - published by MightyMouse. Source: Chrome for Developers, https://developer.chrome.com/docs/extensions/develop/concepts/permission-warnings

More browser extension playbooks