Build GitHub Conductor Chrome extension#1
Merged
Conversation
A Manifest V3 Chrome extension that injects a button on every GitHub PR
page. Clicking it opens a Conductor workspace via the conductor:// deep
link, populated with a configurable prompt template that uses PR metadata
placeholders ({prTitle}, {prNumber}, {prUrl}, etc.).
Stack: TypeScript (strict + exactOptionalPropertyTypes), Vite 6 with
@crxjs/vite-plugin, Vitest + jsdom (34 unit tests), ESLint 9 flat config,
Prettier, GitHub Actions CI (typecheck + lint + format + test + build).
Architecture is five pure-TS modules (types, storage, template,
conductor-url, pr-scraper) plus three side-effecting boundaries (content
script, options page, popup). Minimal permissions: storage + github.com
host only.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A Manifest V3 Chrome extension that injects a button on every GitHub PR page. Clicking it opens a Conductor workspace via the
conductor://deep link, populated with a configurable prompt template that uses PR metadata placeholders ({prTitle},{prNumber},{prUrl}, etc.).The button lives next to GitHub's native PR actions (Subscribe / Code / etc.) so it's discoverable in context. There's also a toolbar popup for picking a non-default preset.
Architecture
Side effects live at the boundary (
storage,content,popup). Everything else is pure functions, which is why 34 unit tests run in <1 second.Stack
exactOptionalPropertyTypesdist/artifactConductor URL scheme
From the Conductor changelog v0.36.4, the Linear integration uses
conductor://withpromptandpathquery params. The default URL template is:The URL template is fully configurable in the options page — if the exact route differs (e.g. needs
conductor://vsconductor://new), you can adjust without a release.Test plan
manifest.jsonvalidates (MV3, minimal permissions)dist/viachrome://extensions→ Developer mode → Load unpacked, visit a GitHub PR, click the button, confirm Conductor opens with the prompt prefilledPermissions
Minimal:
storagefor settings + a single host permission for*://github.com/*. No network requests, no background service worker, no other-site access.🤖 Generated with Claude Code