| name | kb-grooming-setup |
| description | Interactive setup wizard for kb-grooming plugin. Creates or updates configuration for documentation health checks: model, scope, checks, output options, and GitHub integration. Keywords: kb-grooming setup, configure doc checks, documentation audit config.
|
KB Grooming Setup
Configure documentation health analysis for your project.
Steps
1. Show current configuration
Check both config locations and display current state:
- Project (
.claude-plugin/kb-grooming.json in repo root): show enabled checks and scope
- Global (
~/.claude/kb-grooming.json): show enabled checks and scope
- If neither exists, say "No configuration found. Let's create one."
2. Model selection
Use AskUserQuestion:
- Sonnet (Recommended) โ Best balance of quality and speed for documentation analysis
- Haiku โ Faster and cheaper, good for large codebases
- Inherit โ Use the same model as the parent session
3. Scope โ include patterns
Use AskUserQuestion with multiSelect: true:
- README.md โ Root README file
- CLAUDE.md โ Claude Code instructions
- docs/ โ Documentation directory
- *.md โ All markdown files in project
Question: "Which documentation areas should be analyzed?"
All options selected by default (or pre-selected from existing config).
4. Scope โ exclude patterns
Use AskUserQuestion with multiSelect: true:
- node_modules/ โ Node.js dependencies
- vendor/ โ Vendored dependencies
- dist/ โ Build output
- build/ โ Build output
Question: "Which directories should be excluded from analysis?"
Pre-select from existing config or default all.
5. Checks to enable
Use AskUserQuestion with multiSelect: true. List all 9 checks with descriptions:
- brokenLinks โ Find broken internal documentation links
- orphanDocs โ Find markdown files with no incoming references
- duplicateContent โ Detect similar content across files
- claudemdOverflow โ Warn if CLAUDE.md exceeds recommended size
- mandatoryDocs โ Check for required files (README.md, CLAUDE.md)
- readmeCompliance โ Validate README structure and content quality
- terminologyConsistency โ Find inconsistent naming across docs
- adrCompleteness โ Validate ADR document structure
- contentActuality โ Find outdated dates, versions, and TODO markers
Question: "Which documentation checks should be enabled?"
Header: "Checks"
6. Output options
Use AskUserQuestion with multiSelect: true:
- GitHub issues โ Create GitHub epic with linked issues for findings
- Report file โ Save full report to docs/audit/
Question: "Which output options should be enabled?"
7. GitHub integration (conditional)
Only ask if "GitHub issues" was enabled in step 6.
Detect current user: gh api user -q .login (skip if gh not available).
Use AskUserQuestion:
- Default labels (
documentation, kb-grooming) โ Use standard labels
- Custom labels โ Specify custom label set
If custom: ask for comma-separated label list.
Ask about assignee:
- Auto-assign to me (
<detected_login>) โ Assign issues to current user
- No assignee โ Leave unassigned
8. Config level
Use AskUserQuestion:
- Project (
.claude-plugin/kb-grooming.json) โ Committed to git, applies to this project only
- Global (
~/.claude/kb-grooming.json) โ Applies to all projects by default
9. Write config
Assemble the JSON config from all selections and write to the chosen location.
Display:
- Config file path written
- Summary of enabled checks (count)
- Model selected
- Reminder: "Run
/kb-groom to analyze your documentation."