-
Notifications
You must be signed in to change notification settings - Fork 474
Update doc-feedback.md #991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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' | ||||||||||||||
|
|
||||||||||||||
| 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
|
||||||||||||||
| # Run markdown linter | |
| markdownlint '**/*.md' '**/*.mdx' | |
| # Run markdown linter via npx (no local install required) | |
| npx markdownlint-cli@0.41.0 '**/*.md' '**/*.mdx' |
Copilot
AI
Jan 28, 2026
There was a problem hiding this comment.
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.
| node scripts/check-links.js | |
| # (Optional) Run your project's link checker here, for example: | |
| # npx linkinator docs |
Copilot
AI
Jan 28, 2026
There was a problem hiding this comment.
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
AI
Jan 28, 2026
There was a problem hiding this comment.
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).
| 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
AI
Jan 28, 2026
There was a problem hiding this comment.
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).
| - [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 |
There was a problem hiding this comment.
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 HEADlists working tree/index changes vs HEAD (not the files changed in the current commit). Consider rewording to “files changed in your working tree” (or usegit show --name-only --pretty='' HEADif you truly mean the latest commit).