Open Bug 2089016 Opened 24 days ago Updated 23 days ago

Add agent skills for type-checking Firefox JS with TypeScript

Categories

(Developer Infrastructure :: AI for Development, task)

task

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: dao, Assigned: dao)

References

(Blocks 1 open bug)

Details

Attachments

(2 external files)

Add four agent skills under .claude/skills/ (mirrored in .agents/skills/) for working with TypeScript checkJs projects:

  • typescript-rollout: measure a directory's tsc errors, bucket them by cause, enable a project and wire the CI check.
  • typescript-fix-errors: what an individual tsc error means and which JSDoc annotation fixes it.
  • typescript-element-types: give tsc a type for a custom element it cannot see, such as one loaded with loadSubScript.
  • typescript-verify-patch: check whether a patch actually type-checks, which a green typescript lint does not prove when a project's exclude list covers the changed file.

The skills cite the docs under docs/code-quality/typescript/ that bug 2088821 corrects and extends, so they land after it. The patch also adds a review-context.toml rule that loads typescript-verify-patch for patches touching a tsconfig.json, a types/*.ts file or tools/@types.

Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Attachment #9675245 - Attachment description: Bug 2089016 - Add agent skills for enabling TypeScript, fixing type errors and typing custom elements. r?#ai4dev-reviewers DONTBUILD → Bug 2089016 - Add agent skills for enabling TypeScript, fixing type errors and typing custom elements. r?#ai4dev-reviewers!,Standard8! DONTBUILD
Attachment #9675246 - Attachment description: Bug 2089016 - Add an agent skill for checking whether a patch type-checks. r?#ai4dev-reviewers DONTBUILD → Bug 2089016 - Add an agent skill for checking whether a patch type-checks. r?#ai4dev-reviewers!,Standard8! DONTBUILD
Attachment #9675245 - Attachment description: Bug 2089016 - Add agent skills for enabling TypeScript, fixing type errors and typing custom elements. r?#ai4dev-reviewers!,Standard8! DONTBUILD → Bug 2089016 - Add agent skills for enabling TypeScript, fixing type errors and typing custom elements. r?Standard8,#ai4dev-reviewers DONTBUILD
Attachment #9675246 - Attachment description: Bug 2089016 - Add an agent skill for checking whether a patch type-checks. r?#ai4dev-reviewers!,Standard8! DONTBUILD → Bug 2089016 - Add an agent skill for checking whether a patch type-checks. r?Standard8,#ai4dev-reviewers DONTBUILD
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: