Gather context from Chrome browser tabs (Jira, Figma, docs) and hand off to a workflow skill (brainstorming, planning, debugging, code review)
64
75%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
Fix and improve this skill with Tessl
tessl review fix ./browser-to-code/SKILL.mdOrchestrator skill that extracts context from your live Chrome browser tabs and transitions into the right development workflow. Requires the chrome-cdp skill to be installed.
List Chrome tabs → User selects relevant tabs → Extract content → Summarize → User picks workflow → Invoke skill with full contextRun the chrome-cdp list command:
~/.claude/skills/chrome-cdp/scripts/cdp.mjs listIf this fails:
Read https://github.com/pasky/chrome-cdp-skill and install the chrome-cdp skill"chrome://inspect/#remote-debugging and toggle the switch ON."Present the tab list to the user. Ask them to select which tabs contain relevant context for their task. Use AskUserQuestion with multiSelect: true. Filter the tab list to show only meaningful tabs — skip chrome://, about:blank, auth redirects, and similar noise.
For each selected tab, ask the user to assign a category:
If there are only 1-2 tabs, combine selection and categorization into a single question to avoid over-prompting.
For each selected tab, extract content based on its category:
Design tabs → Take a screenshot:
~/.claude/skills/chrome-cdp/scripts/cdp.mjs shot <target> /tmp/browser-to-code-design.pngThen read the screenshot file so it's in the conversation as visual context.
All other tabs → Get the accessibility tree:
~/.claude/skills/chrome-cdp/scripts/cdp.mjs snap <target>If extraction fails for any tab, skip it with a warning and continue with the rest.
If a snap output is very large (3000+ lines), summarize the key sections (title, description, acceptance criteria, key content) rather than including the full tree.
Compile the extracted content into a structured summary:
## Gathered Context
### Task: [ticket ID] — [title]
- Type: [type] | Priority: [priority] | Sprint: [sprint]
- Description: [extracted from page]
- Acceptance criteria: [extracted if present]
### Design: [page title]
- [screenshot included above]
- [key visual elements described]
### Reference: [page title]
- [key content extracted and summarized]
### General: [page title]
- [relevant content extracted]Ask the user: "Does this context summary look complete? Want to add or remove any tabs?"
If the user wants changes, go back to Step 2.
Once the user confirms the context summary, ask two things:
First, ask which workflow to use via AskUserQuestion:
| Option | Description | Skill |
|---|---|---|
| Brainstorm & Plan | New feature, unclear approach, needs design thinking first | superpowers:brainstorming |
| Write Plan & Build | Well-defined feature, ready to plan and implement | superpowers:writing-plans |
| Debug | Bug report, error, something is broken | superpowers:systematic-debugging |
| Code Review | Review existing code, PR, or implementation | superpowers:requesting-code-review |
Second, ask for any additional instructions:
"Any additional instructions beyond what's in the browser context? (e.g., 'focus on the API layer', 'use the existing auth pattern', 'skip tests for now') — or press Enter to continue with just the browser context."
Invoke the selected skill using the Skill tool. The gathered context and additional instructions are already in the conversation — the downstream skill will see them.
Before invoking, output a short transition message:
"Context gathered. Starting [selected workflow] with the browser context above."
Then invoke the skill:
Skill: superpowers:brainstorming (or whichever was selected)Do NOT pass the context summary as a skill argument. It's already in the conversation history. The downstream skill will have full visibility of everything gathered.
Do NOT try to automate or shortcut the downstream skill's process. Each skill owns its own flow — brainstorming will ask clarifying questions, writing-plans will explore the codebase, debugging will investigate. This skill's job is done after handoff.
list, snap, shot, and html.snap over html, and summarize large outputs.3f469de
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.