agentleFS
zcorpanzcorpan/web-platform-skills/skills/file-issue/SKILL.md

file-issue

Skill2 starsChanged 44 days agoMITView on GitHub

Use when drafting or filing a spec issue (WHATWG, W3C, or other GitHub-hosted specs) or a browser implementation bug (Chromium, WebKit, Mozilla Bugzilla), including pre-filling the new-issue form, or writing a WHATWG spec PR's description and checklist, or filing several issues or PRs that link to each other (e.g. a spec PR and its wpt PR). Triggers on "file an issue", "spec issue", "file a bug", "report this to Chromium/WebKit/Gecko", "draft an issue", "open the PR", "edit the PR".

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use review-pr.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • DockerSkill

    review-pr

    Review one or more incoming Docker documentation pull requests as a maintainer. Independently validate technical claims, assess editorial fit and information architecture, choose a verdict, and draft exact inline or PR-wide feedback behind a confirmation gate. Use for requests such as "review PR 123", "is this PR correct?", "does this information belong here?", "validate this PR", or "help review backlog PRs". Do not use to maintain or fix a PR you own; use maintain-pr for that.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When suggesting a fix, verify its impact carefully to avoid regressions.

    line 12
  2. Distinctive:

    If the problem is spec-only and no browser distinguishes, omit browsers entirely.

    line 16
  3. Distinctive:

    Never say "all engines" or "all three".

    line 17
  4. Very specific:

    When the user files via --web or a pre-filled form instead, don't guess: pre-fill the second once the first exists, then edit the first.

    line 36

“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “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

file-issue

Content

  • One issue per issue; cut tangents. If a second problem appears, file it separately instead of adding a "Related" paragraph.
  • Problem + evidence, then stop. One hedged sentence suggesting a fix is OK. Keep refs terse: "(Found in #123.)", not a clause.
  • When suggesting a fix, verify its impact carefully to avoid regressions. Prefer the fix that changes the fewest implementations; don't resolve engine disagreement with implementation-defined or optional behavior.
  • Quote the spec as a block quote (colon intro, "...and " continuation), not inline. Introduce the section the issue is about with its bare URL ("https://…#anchor says:").
  • Supporting references that lack GitHub shorthand (comments, tests, other spec sections) are markdown links with short text ("raised here"), not bare URLs.
  • Hedge implementation claims ("appear to run", "seems to") only when inferred from test results alone. If the engine source has also been read, state it with confidence ("runs"). Report observed behavior, not code.
  • If the problem is spec-only and no browser distinguishes, omit browsers entirely. Don't report "couldn't reproduce".
  • Never say "all engines" or "all three". Name the tested browsers/engines, pick one naming scheme, and state the channel. Say "Safari TP" when the tested browser was Safari Technology Preview; plain "Safari" means release.

Implementation bugs

  • Title: for a spec change, the behavior change; for a defect, the observable symptom, not the cause or fix.
  • Link a wpt test, or describe the repro and attach a test file.
  • On non-GitHub trackers (Chromium, WebKit, Bugzilla), use full URLs, not org/repo#N shorthand.

WHATWG PRs

  • The description opens with the commit message. Backtick code there where needed, but not in git commit messages (COMMITTING.md). End it with Tests: <wpt PR URL>., then Fixes #N.
  • Implementer interest: list only Chromium, Gecko, and WebKit. An engine that already implements the behavior (its tests pass) counts as interested. Don't list other engines (e.g. Ladybird, Servo).
  • Implementation bugs: link a bug for each of those engines that fails the tests, and mark the ones that pass as already matching. Don't write "N/A" until every engine passes. If an engine is known to diverge but the tests don't show it, improve the tests first.
  • Skip the spec issue only for an obvious bug fix that implementations agree on; if they disagree, file an issue first.
  • Renaming a <dfn>: keep the old anchor too. Removing one: point the old anchor at a note saying what was there and why it's gone. A removal needs a test that the feature is unsupported.

Items that link to each other

  • When filing directly, fill in cross-links before filing rather than editing afterwards. Right before filing the first item, get the newest number in the second's repo (gh api "repos/<org>/<repo>/issues?state=all&per_page=1" -q '.[0].number'; issues and PRs share numbers) and add 1 (2 if both go in the same repo). File the busier repo first, since only the second number is guessed. Afterwards, check each link points at the intended item; edit if not.
  • When the user files via --web or a pre-filled form instead, don't guess: pre-fill the second once the first exists, then edit the first.

Pre-filling forms

  • Pre-fill the form so the user can review and edit before filing. Encode URL params with Python's urllib.parse.urlencode. Don't paste the URL or repeat the draft in chat. Keep the URL under ~6,000 characters (Bugzilla rejected ~9,000; servers often cap request lines at 8 KB): if it's longer, pbcopy the description, pre-fill the other fields, and ask the user to paste it.
  • GitHub: gh issue create --repo <org>/<repo> --web --title "..." --body-file <file>. For YAML issue forms (.github/ISSUE_TEMPLATE/*.yml; read them from the default branch with gh api repos/<org>/<repo>/contents/<path> -H "Accept: application/vnd.github.raw", since a local checkout may be stale), open /issues/new?template=<file>.yml&title=...&<field id>=...; body= is ignored. If the field has no id, pbcopy the body and ask the user to paste it.
  • Chromium: https://issues.chromium.org/issues/new?noWizard=true&component=<id>&title=...&description=.... The <id> for a component like Blink>Image is buganizer_public.component_id in its DIR_METADATA; in a Chromium checkout: git grep -l 'component: "Blink>Image"' -- '*DIR_METADATA' | head -1 | xargs grep component_id.
  • Mozilla Bugzilla: https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&component=<component>&bug_type=enhancement&short_desc=...&comment=... (defect if the spec didn't change), optionally with see_also=<spec issue URL> and keywords=parity-chrome, parity-safari (for missing features those browsers ship, to help prioritization; omit for minor bugs). Comments render Markdown. Find the component with ./mach file-info bugzilla-component <file> in a Firefox checkout, else from similar bugs: https://bugzilla.mozilla.org/rest/bug?quicksearch=<terms>&include_fields=id,summary,product,component.
  • WebKit: https://bugs.webkit.org/enter_bug.cgi?product=WebKit&component=<component>&short_desc=...&comment=.... No Markdown. Find the component from similar bugs: https://bugs.webkit.org/rest/bug?quicksearch=<terms>&include_fields=id,summary,component. The WAF blocks <input, <iframe, <script, <body, <form, <svg, <textarea, <button, <object, <embed, <frame>; <a, <div, <p, <span, <math pass.

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.