Skip to content

Conversation

@sergical
Copy link
Member

@sergical sergical commented Jan 31, 2026

Summary

Rewrites scripts/generate-skills.mjs to use doctree.json for complete documentation coverage in SKILL.md files.

Changes

  • Use doctree.json instead of scanning md-exports/
  • Generate .md URLs for raw markdown content (e.g., docs.sentry.io/...logs.md)
  • Proper categorization using sidebar_section frontmatter
  • Deterministic generation ($0 cost, no AI calls)

Stats

  • 114 skills generated
  • 8,870 total documentation URLs
  • Previously missing features now included: logs, crons, profiling, metrics, feature-flags

Future Improvements Considered

Approach Pros Cons
Current (links only) Complete, deterministic, $0 Requires fetching docs
Extract inline content Self-contained, no fetch needed Complex parsing, fragile
AI generation Higher quality, better examples One-time cost, manual updates

The CLI project's SKILL.md is a good reference for self-contained skills with inline examples - could be a future enhancement for popular SDKs.

Test plan

  • node scripts/generate-skills.mjs generates 114 skills
  • Next.js SKILL.md includes logs, crons, profiling (previously missing)
  • .md URLs are fetchable: curl https://docs.sentry.io/platforms/javascript/guides/nextjs/logs.md

🤖 Generated with Claude Code

Changes:
- Use doctree.json instead of scanning md-exports
- Generate .md URLs for raw markdown (e.g., docs.sentry.io/...logs.md)
- Include ALL docs with proper categorization (8,870 URLs across 114 skills)
- Deterministic generation ($0 cost, no AI calls needed)

This fixes incomplete coverage where only first 20 URLs were shown.
Next.js skill now includes 165 docs vs ~30 before.

Future improvements considered:
- Extract inline installation/setup code from docs
- Use AI to generate richer SKILL.md with examples
- Focus on top ~20 popular SDKs with higher quality content

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
develop-docs Ready Ready Preview, Comment Jan 31, 2026 2:15am
sentry-docs Ready Ready Preview, Comment Jan 31, 2026 2:15am

Request Review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@sergical sergical changed the title feat: Rewrite skills generation for complete doc coverage feat: skills generation Jan 31, 2026
The doctree had some duplicate paths which caused the same URL
to appear multiple times in generated SKILL.md files.

Co-Authored-By: Claude <noreply@anthropic.com>
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