Guidance for Claude Code when working in this repository.
GitHub Issue Toolkit, a Manifest V3 browser extension (Chromium and Firefox) with no build step. The documentation site in docs/ is served by GitHub Pages; the README embeds images rendered from that site.
- Conventional format:
feat: ...,fix(pins): ...,docs(site): ...,chore: ...,build: .... - The subject is entirely lowercase, product and brand names included: write
rename the extension, notrename to GitHub Issue Toolkit. Only code identifiers keep their case. - Every commit has a title and a body. The body opens with one paragraph saying what the change is and why, followed by one bullet per notable change, each a full statement on a single unwrapped line. The initial commit is the reference shape. Never a subject alone.
- Never put a version or release number in the subject; versions live in the manifests, the changelog and the tag.
- No em dashes or en dashes anywhere, use a plain hyphen.
- Never amend or force-push commits that are already on
origin/mainunless the maintainer explicitly asks for a history rewrite. - Pull requests are squash-merged, and GitHub uses the PR title as the commit subject and the PR description as the body. Write both to the rules above: lowercase subject, one paragraph followed by bullets. Review follow-ups pushed to a contributor's branch end up in that one squashed commit, so the PR description must be updated to cover them before merging.
- Bump
versioninmanifest.jsonandmanifest.firefox.jsonto the same value, and the fallback text of the version chip indocs/index.html(id="version"); the chip reads the latest release from the GitHub API at runtime and only shows the fallback when that fails. - In
CHANGELOG.mdrename theUnreleasedsection to[x.y.z] - YYYY-MM-DD, add a fresh emptyUnreleased, and add the compare and release link lines at the bottom. - Commit, then
git tag vx.y.z && git push origin main vx.y.z. Thereleaseworkflow verifies the tag against the manifests, builds both zips withscripts/package.shand publishes the GitHub release with the changelog section as notes.
Never commit built packages or a signing key.
The repository has GitHub's immutable releases setting on. Once a release is published, its tag name can never be reused, not even after deleting the release or disabling the setting. Never delete a release expecting to recreate it under the same version; move to the next patch version instead.
manifest.jsonandmanifest.firefox.jsondiffer only inbackgroundandbrowser_specific_settings. The Firefox add-on idgithub-issue-toolkit@milospaunovic.github.iomust never change.- Every commit that touches the extension UI, the settings page, the site, the icon, the name or the tagline is preceded by
scripts/render-all.sh. It regenerates all rendered artefacts: the example images indocs/from the mock-ups indocs/index.html, both settings screenshots fromoptions.html(its Badges tab), anddocs/social-preview.png. Commit the regenerated files together with the change; never leave a screenshot or example image behind the code or the mock-up it depicts. - When
render-all.shreports thatdocs/social-preview.pngchanged, upload it again as the repository's social preview (Settings, General; there is no API for it) in the same session. - A change to a feature is finished only when every place that describes it agrees, in the same commit, without being asked. Go through all of them and grep for the old wording before committing:
- the settings page:
options.html(its tab, text, defaults and legend) andoptions.js(the key in both the load and the save lists), plus the Home tab's map when a tab changes; content.jsandbackground.jsdefaults, kept equal to the settings page's;README.md: the feature list, the feature's own section, and the Setup steps that name its tab;- the site,
docs/index.html: the feature card, its mock-up, the Settings section, "How it works", "What is sent" and the FAQ; PRIVACY.md: what is read, what is stored and the permissions;CHANGELOG.md, underUnreleased;- every screenshot, through
scripts/render-all.sh.
- the settings page:
- Requests to GitHub are lazy and kept: nothing is read for a person, issue or view until the user asks for it or a setting they turned on says to, one read answers everything the feature shows, and an answer is held for the life of the tab and shared by everything on the page that needs it, so the same thing is never fetched twice.
- A visual or behavioural change also gets its documentation in the same commit: README,
PRIVACY.md, the site and the settings page describe the same behaviour, and the badge reference in the site's examples lists every badge kind and colour. When a badge, a default or a permission changes, update all of them. - After changing icons, run
python3 scripts/make-icons.py(icons are shared by the manifests, the settings page and the site), thenscripts/render-all.sh.
The maintainer loads this folder as an unpacked extension. Content and background scripts only reload after clicking the reload icon on the extension card in chrome://extensions, then reloading the GitHub tab. Firefox: build the zip and load it through about:debugging.