Documentation Updater Setup - TODO
✅ Completed Steps
- Workflow file deployed to
.github/workflows/update-docs.yml - CLAUDE.md policy file copied to docs repository root
📋 Remaining Setup Steps
1. Install Claude Code GitHub App
Run this command in Claude Code (in a new session):2. Create Personal Access Token (PAT)
- Go to: https://github.com/settings/tokens/new
-
Configure the token:
- Token name:
Docs Updater Read Token - Expiration: 90 days (or custom)
- Repository access: Select “Selected repositories” and add:
MagnivOrg/prompt-layer-front-endMagnivOrg/prompt-layer-apiMagnivOrg/prompt-layer-libraryMagnivOrg/prompt-layer-js
- Permissions:
- Repository permissions → Contents: Read
- Repository permissions → Metadata: Read (automatically selected)
- Token name:
- Click: “Generate token”
-
IMPORTANT: Copy the token immediately (starts with
ghp_)
3. Add Secrets to GitHub Repository
- Go to: https://github.com/MagnivOrg/prompt-layer-docs/settings/secrets/actions
-
Add Secret #1:
- Click “New repository secret”
- Name:
GH_READ_TOKEN - Value: [Paste your Personal Access Token from step 2]
- Click “Add secret”
-
Add Secret #2:
- Click “New repository secret”
- Name:
ANTHROPIC_API_KEY - Value: [Your Anthropic API key from console.anthropic.com]
- Click “Add secret”
4. Commit and Push the Changes
5. Test the Workflow
Option A: Wait for the daily run- The workflow runs daily at 09:00 UTC
- Go to: https://github.com/MagnivOrg/prompt-layer-docs/actions
- Click “Update Documentation” workflow
- Click “Run workflow” → “Run workflow”
6. Verify the Setup
After the first run, check:- Workflow completes successfully (green checkmark)
- If changes were found, a PR was created
- The PR contains only legitimate user-facing changes
- No internal API endpoints were documented
🔒 Security Checklist
- PAT has minimal permissions (read-only)
- PAT is set to expire (90 days recommended)
- Secrets are stored in GitHub, not in code
- Workflow file doesn’t expose any secrets
🚨 Troubleshooting
If the workflow fails:
- Check Actions tab: https://github.com/MagnivOrg/prompt-layer-docs/actions
- Common issues:
- Missing secrets (GH_READ_TOKEN or ANTHROPIC_API_KEY)
- PAT doesn’t have access to all 4 repos
- Claude Code GitHub app not installed
If no PR is created:
- This is normal if no user-facing changes were found
- Check the workflow logs to see what commits were analyzed
If wrong things are documented:
- Review the CLAUDE.md policy file
- Internal
/api/dashboard/v2/*endpoints should be skipped - UI improvements should be skipped
📞 Support
- Claude Code issues: https://github.com/anthropics/claude-code/issues
- Workflow logs: https://github.com/MagnivOrg/prompt-layer-docs/actions

