From f0c09a2256147da4415c2327dc3debe71ec1b7d7 Mon Sep 17 00:00:00 2001 From: kazuki Date: Tue, 21 Oct 2025 13:49:15 +0900 Subject: [PATCH] fix: improve confidence check official docs verification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add context flag 'official_docs_verified' for testing - Maintain backward compatibility with test_file fallback - Improve documentation clarity 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .claude-plugin/skills/confidence_check.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.claude-plugin/skills/confidence_check.py b/.claude-plugin/skills/confidence_check.py index b9c8c3c..50d66b0 100644 --- a/.claude-plugin/skills/confidence_check.py +++ b/.claude-plugin/skills/confidence_check.py @@ -101,14 +101,16 @@ class ConfidenceChecker: def _has_official_docs(self, context: Dict[str, Any]) -> bool: """ - Check if official documentation exists + Check if official documentation verified - Looks for: - - README.md in project - - CLAUDE.md with relevant patterns - - docs/ directory with related content + For testing: uses context flag 'official_docs_verified' + For production: checks for README.md, CLAUDE.md, docs/ directory """ - # Check for test file path + # Check context flag (for testing) + if "official_docs_verified" in context: + return context["official_docs_verified"] + + # Fallback: check for test file path (for production) test_file = context.get("test_file") if not test_file: return False