com um clique
improve-review-bot
// Analyze feedback on bk-docsbot suggestions to identify rejection patterns and draft prompt improvements that increase accuracy. Run this periodically to close the feedback loop.
// Analyze feedback on bk-docsbot suggestions to identify rejection patterns and draft prompt improvements that increase accuracy. Run this periodically to close the feedback loop.
| name | improve-review-bot |
| description | Analyze feedback on bk-docsbot suggestions to identify rejection patterns and draft prompt improvements that increase accuracy. Run this periodically to close the feedback loop. |
You are analyzing feedback on the bk-docsbot — an AI-powered documentation style reviewer — to improve its accuracy.
This skill lives inside the docs repo. Derive all paths from the skill directory:
REPO_ROOT="${CLAUDE_SKILL_DIR}/../../.."
Key files relative to ${REPO_ROOT}:
scripts/measure-bot-accuracy.shtools/pr-review-agent/main.goAGENTS.mdbuildPrompt() function in main.go (search for func buildPrompt)The bk-docsbot is a Go program (tools/pr-review-agent/main.go) that uses Claude to review documentation PRs against the style guide in AGENTS.md. When it finds violations, it posts GitHub suggestion comments on the PR.
The bot's prompt has two parts:
AGENTS.md at the repo rootbuildPrompt() function in main.go — this includes the "Critical Rules" that control behaviorRun the measurement script with the --feedback flag to get detailed data:
cd "${REPO_ROOT}"
bash scripts/measure-bot-accuracy.sh --feedback 2>&1 | tee /tmp/bot-feedback.txt
This outputs every bot suggestion along with:
Focus on items classified as REJECTED or NOT APPLIED. Look for patterns:
Group rejections by category. For each category, determine:
Also review highly-accepted patterns (COMMITTED suggestions) to understand what the bot does well. This helps avoid accidentally weakening good behavior when fixing bad behavior.
Based on the analysis, draft specific changes. There are two places changes can go:
buildPrompt() in main.goThe "Critical Rules" section controls the bot's behavior. Add rules like:
These are behavioral guardrails. Keep them concise and specific.
AGENTS.mdIf the style guide itself is ambiguous or missing a rule that caused confusion, propose a clarification there instead.
Create a branch and commit the changes:
cd "${REPO_ROOT}"
git checkout main && git pull
git checkout -b improve-review-bot-prompt
# ... make edits ...
git add -A && git commit -m "Improve review bot prompt based on feedback analysis"
git push -u origin improve-review-bot-prompt
Then provide a PR description that includes:
</tr> tags in HTML tables" is better than "Be more careful with HTML"