Skip to content

Conversation

@critesjosh
Copy link
Collaborator

Summary

  • Adds a nightly job that scans aztec-packages for source code changes and generates suggestions for documentation updates using Claude
  • All code lives in the dev-rel repo - no changes to aztec-packages required
  • Reports are designed to be fed directly to Claude Code for making the actual documentation updates

How It Works

  1. GitHub Scanner - Fetches recent commits from the configured branch (default: next)
  2. Reference Analyzer - Identifies docs with references: frontmatter pointing to changed files
  3. Claude Analysis - Reviews source diff + doc content to suggest updates with priority levels
  4. Report Generator - Creates markdown reports grouped by priority

Files Added

File Purpose
tooling/doc-suggestions/src/index.ts Main entry point
tooling/doc-suggestions/src/github-scanner.ts Scans aztec-packages commits
tooling/doc-suggestions/src/reference-analyzer.ts Finds stale doc references
tooling/doc-suggestions/src/claude-client.ts Claude API wrapper
tooling/doc-suggestions/src/report-generator.ts Generates markdown reports
.github/workflows/doc-suggestions.yml Nightly cron workflow

Configuration

Variable Required Default Description
GITHUB_TOKEN Yes - GitHub API token
ANTHROPIC_API_KEY Yes - Claude API key
BRANCH No next Branch to scan
LOOKBACK_DAYS No 7 Days to look back

Secrets Required

  • ANTHROPIC_API_KEY needs to be added to the repo secrets

Test plan

  • Run locally with valid tokens to verify it scans aztec-packages
  • Verify reports are generated correctly
  • Test the GitHub Action workflow via manual dispatch

🤖 Generated with Claude Code

Adds a nightly job that scans aztec-packages for source code changes
and generates suggestions for documentation updates using Claude.

Features:
- Scans recent commits for file changes on the configured branch
- Identifies docs with `references:` frontmatter pointing to changed files
- Uses Claude to analyze changes and suggest documentation updates
- Generates prioritized markdown reports for DevRel review
- Reports can be fed directly to Claude Code for making updates

Configuration:
- GITHUB_TOKEN: Required for GitHub API access
- ANTHROPIC_API_KEY: Required for Claude API
- BRANCH: Target branch (default: next for aztec-packages)
- LOOKBACK_DAYS: Days to scan (default: 7)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@critesjosh critesjosh force-pushed the jc/docs-source-reviewer branch from 3421c0c to 7d59bff Compare January 8, 2026 21:46
@critesjosh critesjosh requested a review from sklppy88 January 8, 2026 22:07
inputs:
lookback_days:
description: 'Number of days to look back for changes'
default: '7'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

maybe this should be 1. or we could run it twice a week?

Copy link

@sklppy88 sklppy88 left a comment

Choose a reason for hiding this comment

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

looks good, you can merge this is you want because i think as per our meet i will just build on top of this

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.

3 participants