Skip to content

chore(tsdoc): ongoing-dev TSDoc skill, auditor agent, and guides#2263

Merged
mariechatfield merged 4 commits into
mainfrom
chore/marie/SDK-1053-tsdoc-skills
Jun 24, 2026
Merged

chore(tsdoc): ongoing-dev TSDoc skill, auditor agent, and guides#2263
mariechatfield merged 4 commits into
mainfrom
chore/marie/SDK-1053-tsdoc-skills

Conversation

@mariechatfield

@mariechatfield mariechatfield commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Replaces the one-time TSDoc backfill tooling with primitives for ongoing development, restores lint rules lost in a merge, and brings the guidance in line with current main + the doc-generation engine in #2260.

Skill/agent/guides only — no src/ or generated-doc changes.

Commits

  • Replace backfill tooling with ongoing-dev skill + auditor agent — adds the /tsdoc inline writer skill, the tsdoc-auditor agent for batch drift audits, and .claude/tsdoc-guides/ (hooks/components/flows) loaded on demand. Deletes the tsdoc-api-documenter, tsdoc-backfill, sdk-hook-documenter agents and the tsdoc-directory skill.
  • Restore TSDoc coverage lint rules lost in a merge — re-enables require-comment, require-member-comment, require-release-tag (currently 0 errors), needed before autogenerating more comments.
  • Post-refactor!: use interfaces for component props types #2238 props conventions + @group tags — props now extend BaseComponentInterface<'Namespace.Component'>; document only own/narrowed members; @param props - See {@link XxxProps}. convention; the lint-enforced @group valid set.
  • @components tag + GUIDE.md prose slot (feat(docs-site): theme reference diagrams and render @components / GUIDE prose #2260) — documents the new @components block tag (renders the Sub-components table) and notes the colocated GUIDE.md prose slot. GUIDE.md authoring conventions are intentionally left light — they're being set in the follow-up guide-content PRs.

Notes

🤖 Generated with Claude Code

mariechatfield and others added 4 commits June 24, 2026 13:36
…tor agent

Replaces the one-time-backfill tsdoc agents/skills with primitives suited
for regular development:

- Add `tsdoc` skill: inline writer invoked with `/tsdoc` after writing new
  code; loads type-specific guides on demand; knows when to ask for product
  context rather than guessing
- Add `tsdoc-auditor` agent: batch reviewer/fixer for drift detection after
  refactors; handles both missing docs and stale comments
- Add `.claude/tsdoc-guides/` with hooks, components, and flows guides:
  type-specific knowledge (loading/ready branches, events tables, fields.tsx
  patterns) loaded selectively rather than always in context
- Update CLAUDE.md: exports require TSDoc before work is done
- Update migrate-sdk-component-to-hooks: section 11 now uses `/tsdoc`
  instead of the deprecated sdk-hook-documenter agent
- Delete tsdoc-api-documenter, tsdoc-backfill, sdk-hook-documenter agents
- Delete tsdoc-directory skill (tsdoc-auditor handles batch work directly)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Re-enables require-comment, require-member-comment, and require-release-tag
under tsdoc-coverage. These were dropped in a prior merge commit and need to
be enforced before autogenerating more TSDoc. Currently 0 errors.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…tags

Brings the tsdoc skill in line with current main:

- Fix stale skill description: point to the tsdoc-auditor agent (the
  tsdoc-directory skill was deleted) for batch drift audits
- Document @group tags in SKILL.md: optional but expected on @public
  exports, with the lint-enforced valid set (valid-group rule)
- components guide: component props now extend
  BaseComponentInterface<'Namespace.Component'> (#2238). Document only
  own/narrowed members, not inherited base members; cover the
  defaultValues-narrowing exception and the
  `@param props - See {@link XxxProps}.` convention

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Prepares the skill for the doc-generation engine landing in #2260:

- @components block tag: registered TSDoc tag listing a flow's composed
  blocks/hooks as {@link} refs; renders a Sub-components table. Documented
  in SKILL.md (tag order: own group after @remarks, before @param) and in
  the flows guide as the primary user
- GUIDE.md prose slot: note in flows and hooks guides that long-form
  narrative lives in a colocated, Prettier-exempt GUIDE.md slotted into the
  generated reference page, kept distinct from concise @remarks. Flagged
  that GUIDE.md authoring conventions are still being set in follow-up
  guide-content PRs, so don't backfill prose speculatively

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mariechatfield mariechatfield marked this pull request as ready for review June 24, 2026 20:54
@mariechatfield mariechatfield requested a review from a team as a code owner June 24, 2026 20:54
@mariechatfield mariechatfield added this pull request to the merge queue Jun 24, 2026
Merged via the queue into main with commit 45823c2 Jun 24, 2026
35 checks passed
@mariechatfield mariechatfield deleted the chore/marie/SDK-1053-tsdoc-skills branch June 24, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants