Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
306 changes: 282 additions & 24 deletions .claude/skills/doc-feedback.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,300 @@
---
name: reviewing-documentation
description: Reviews documentation for quality, consistency, and style guide adherence. Use when reviewing changed docs or before publishing new content.
updated: 2026-01-28
version: 2.0
---

# Documentation Feedback
# Documentation Review Skill

This skill provides a systematic approach to reviewing documentation for quality, consistency, and adherence to style guidelines.

## When to Use This Skill

Use this skill when you need to:

- Review documentation changes before merging
- Audit existing documentation for quality issues
- Ensure new content follows established guidelines
- Prepare documentation for publication
- Conduct quality assurance on technical writing

## Workflow

1. **Get files to review**
```bash
git diff --name-only HEAD -- '*.mdx'
git diff --name-only master...HEAD -- '*.mdx'
```
If `$ARGUMENTS` provided, review that path instead.
### Step 1: Identify Files to Review

Determine which documentation files need review using one of these methods:

2. **Run linter first**
```bash
node scripts/lint-mdx.js $ARGUMENTS
```
```bash
# Review files changed in current commit
git diff --name-only HEAD -- '*.mdx' '*.md'

3. **Review against style guide** — See [content-instructions.md](../../content-instructions.md)
# Review files changed between branches
git diff --name-only master...HEAD -- '*.mdx' '*.md'
Comment on lines +29 to +33
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

The heading says “Review files changed in current commit”, but git diff --name-only HEAD lists working tree/index changes vs HEAD (not the files changed in the current commit). Consider rewording to “files changed in your working tree” (or use git show --name-only --pretty='' HEAD if you truly mean the latest commit).

Copilot uses AI. Check for mistakes.

4. **Provide feedback** per file:
- What's working well
- Specific suggestions with line references
- Linter issues (if any)
# Review files in a specific directory
find docs/ -name '*.mdx' -o -name '*.md'
```

If specific file paths are provided as arguments, review those files directly.

### Step 2: Run Automated Linting

5. **Offer to fix** issues if requested
Before manual review, run any available linters to catch common issues:

## Review checklist
```bash
# Run MDX linter if available
node scripts/lint-mdx.js $ARGUMENTS

# Run markdown linter
markdownlint '**/*.md' '**/*.mdx'
Comment on lines +49 to +50
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

This suggests running markdownlint, but the repo doesn’t appear to include it as a dependency or script (no package.json and no other references). Either document how to install it (e.g., npx + pinned version) or remove this step to avoid a non-actionable command.

Suggested change
# Run markdown linter
markdownlint '**/*.md' '**/*.mdx'
# Run markdown linter via npx (no local install required)
npx markdownlint-cli@0.41.0 '**/*.md' '**/*.mdx'

Copilot uses AI. Check for mistakes.

# Check for broken links
node scripts/check-links.js
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

node scripts/check-links.js is referenced here, but there is no scripts/check-links.js in the repository (scripts/ only contains lint-mdx.js and README). Please remove/replace this with the actual link-check command used by the project.

Suggested change
node scripts/check-links.js
# (Optional) Run your project's link checker here, for example:
# npx linkinator docs

Copilot uses AI. Check for mistakes.
```
Review Progress:
- [ ] Terminology consistent
- [ ] Code examples complete and runnable

Document any linter errors or warnings for inclusion in the review feedback.

### Step 3: Manual Review Against Style Guide

Review each file against the project's style guide. Reference the content instructions document for specific guidelines:

- [content-instructions.md](../../content-instructions.md)

### Step 4: Provide Structured Feedback

For each file reviewed, provide feedback in this format:

#### Strengths

Highlight what's working well in the documentation.

#### Issues Found

List specific issues with:
- Line references or section names
- Description of the problem
- Severity level (critical, important, minor)

#### Recommendations

Provide actionable suggestions for improvement.

#### Linter Results

Include any automated linting issues discovered.

### Step 5: Offer Remediation

After providing feedback, ask if you should:
- Fix the issues directly
- Provide code snippets for fixes
- Create a pull request with corrections

## Review Checklist

Use this checklist to ensure comprehensive review coverage:

```markdown
### Content Quality
- [ ] Terminology used consistently throughout
- [ ] Technical accuracy verified
- [ ] Information current and up-to-date
- [ ] No outdated references or deprecated content

### Code Examples
- [ ] All code examples are complete
- [ ] Code examples are runnable/testable
- [ ] No placeholder values (foo, bar, example.com)
- [ ] Headings descriptive and keyword-rich
- [ ] Content scannable (headings, lists, white space)
- [ ] Active voice, second person
- [ ] Code examples follow project conventions
- [ ] Error handling demonstrated where appropriate

### Structure and Formatting
- [ ] Headings are descriptive and keyword-rich
- [ ] Heading hierarchy is logical (h2, h3, h4)
- [ ] Content is scannable (headings, lists, white space)
- [ ] Tables and lists formatted correctly
- [ ] Images have alt text
- [ ] Links are descriptive (not "click here")

### Writing Style
- [ ] Active voice used throughout
- [ ] Second person ("you") for instructions
- [ ] Present tense for current functionality
- [ ] Concise sentences (under 25 words when possible)
- [ ] No jargon without explanation
- [ ] Consistent tone and voice

### User Experience
- [ ] Prerequisites clearly stated
- [ ] Step-by-step instructions are numbered
- [ ] Expected outcomes described
- [ ] Troubleshooting included where appropriate
- [ ] Common errors addressed
- [ ] Related content linked

### Technical Requirements
- [ ] API endpoints and parameters accurate
- [ ] Version information included where relevant
- [ ] Compatibility notes provided
- [ ] Security considerations mentioned
- [ ] Performance implications noted

### Accessibility
- [ ] Content readable at 8th grade level or below
- [ ] Complex concepts explained simply
- [ ] Acronyms spelled out on first use
- [ ] Color not the only means of conveying information
- [ ] Transcripts provided for video content
```

## Common Issues to Watch For

### Terminology Inconsistencies

- Using multiple terms for the same concept
- Capitalizing product names inconsistently
- Mixing American and British spelling

### Code Quality Issues

- Incomplete code snippets that won't compile/run
- Using production credentials in examples
- Not showing import statements
- Missing error handling

### Structural Problems

- Skipping heading levels (h2 to h4)
- Walls of text without breaks
- Missing context or prerequisites
- No clear call-to-action

### Style Violations

- Passive voice ("it can be done" vs "you can do")
- Future tense ("this will show" vs "this shows")
- Overly casual or overly formal tone
- Excessive use of exclamation points

## Review Output Format

Present your review using this template:

```markdown
# Documentation Review: [Filename]

## Summary
Brief overview of the documentation and review scope.

## Review Progress
- [x] Terminology consistent
- [x] Code examples complete and runnable
- [ ] No placeholder values (needs fixing)
...

## Strengths
- Clear introduction sets context well
- Step-by-step instructions are easy to follow
- Good use of visual aids

## Issues

### Critical Issues
1. **Line 45**: Code example missing import statement
- Severity: Critical
- Impact: Users cannot run the example
- Fix: Add `import { client } from '@anthropic-ai/sdk'`

### Important Issues
1. **Section "Getting Started"**: Missing prerequisites
- Severity: Important
- Impact: Users may not have required setup
- Fix: Add prerequisites section before instructions

### Minor Issues
1. **Line 12**: Inconsistent capitalization of "API"
- Severity: Minor
- Fix: Change "Api" to "API"

## Linter Results
```
lint-mdx.js: 2 errors, 3 warnings
- Line 23: Heading levels skip from h2 to h4
- Line 67: Code fence not closed
```

## Recommendations

1. Add a troubleshooting section for common errors
2. Include more concrete examples with real-world use cases
3. Link to related API reference documentation
4. Consider adding a video walkthrough

## Next Steps

Would you like me to:
- [ ] Fix the critical and important issues
- [ ] Create updated code examples
- [ ] Improve the troubleshooting section
- [ ] Generate a pull request with all fixes
```

## Best Practices

### For Reviewers

- Focus on user experience, not just correctness
- Provide specific, actionable feedback
- Balance thoroughness with practicality
- Acknowledge good work, not just problems
- Consider the target audience's expertise level

### For Documentation Authors

- Run linters before requesting review
- Provide context about changes made
- Test all code examples before submitting
- Read your own work aloud to catch awkward phrasing
- Use the checklist proactively during writing

## Integration with CI/CD

This skill can be integrated into automated workflows:

```yaml
# Example GitHub Actions workflow
name: Documentation Review
on: [pull_request]
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run linter
Comment on lines +273 to +274
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

Repo workflows pin GitHub Actions by commit SHA (e.g., .github/workflows/chromatic.yml:17 uses checkout@11bd7...). This example uses actions/checkout@v3, which doesn’t match that convention. Consider updating the snippet to a pinned SHA (and, if desired, include the harden-runner step for consistency).

Copilot uses AI. Check for mistakes.
run: npm run lint:mdx
- name: Check links
run: npm run check:links
Comment on lines +275 to +277
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

The workflow example uses npm run lint:mdx / npm run check:links, but this repo doesn’t define any npm scripts (no package.json) and the earlier steps recommend node scripts/lint-mdx.js. Update the example to use the repo’s actual commands (or add the missing scripts if that’s the intent).

Suggested change
run: npm run lint:mdx
- name: Check links
run: npm run check:links
run: node scripts/lint-mdx.js
- name: Check links
run: node scripts/check-links.js

Copilot uses AI. Check for mistakes.
- name: AI review
run: claude review-docs --changed-files
```

## Related Resources

- [Content Style Guide](../../content-instructions.md)
- [Markdown Best Practices](../guides/markdown-best-practices.md)
- [API Documentation Standards](../guides/api-docs.md)
- [Accessibility Guidelines](../guides/accessibility.md)
Comment on lines +285 to +287
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

These “Related Resources” links point to ../guides/... from .claude/skills/, but .claude/guides/ doesn’t exist in this repo and searches don’t find those files. Please remove or replace with valid paths (or add the missing guide files).

Suggested change
- [Markdown Best Practices](../guides/markdown-best-practices.md)
- [API Documentation Standards](../guides/api-docs.md)
- [Accessibility Guidelines](../guides/accessibility.md)
- Markdown Best Practices
- API Documentation Standards
- Accessibility Guidelines

Copilot uses AI. Check for mistakes.

## Changelog

### Version 2.0 (2026-01-28)
- Enhanced checklist with accessibility and UX criteria
- Added structured output template
- Included CI/CD integration examples
- Expanded common issues section
- Added best practices for reviewers and authors

### Version 1.0
- Initial release
- Basic workflow and checklist
Loading