[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C20RFDQM5QBCXNT2XDQA6D":3,"skill-same:01M6C20RFDQM5QBCXNT2XDQA6D":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":13,"ownerHtmlUrl":41,"ownerBlogUrl":13,"ownerDescription":13,"updatedAt":42,"install":43,"resources":56},"01M6C20RFDQM5QBCXNT2XDQA6D","commentcheck","代码注释检查","\u002Fcommentcheck Command","\u002Fcommentcheck 命令","jleechanorg\u002Fjleechan-skills","jleechanorg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F221404966?v=4","01M6C1VJ99XG950X1DWPEBCBGX",null,"01M6C1VJDK5YVDNT3362RT5WSB",6,"MIT","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcommentcheck\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8CBEPE1MJTS9ARYEK7J8BH4","代码解析与结构分析","SCENARIO","使用场景",[5,30],"command","2026-11-10 10:12:30",false,"---\nname: commentcheck\ndescription: \u002Fcommentcheck Command\n---\n\n## ⚡ EXECUTION INSTRUCTIONS FOR CLAUDE\n**When this command is invoked, YOU (Claude) must execute these steps immediately:**\n**This is NOT documentation - these are COMMANDS to execute right now.**\n**Use TodoWrite to track progress through multi-phase workflows.**\n\n## ? EXECUTION WORKFLOW\n\n### Phase 1: Step 1: Load ALL Individual Comments (ORCHESTRATED)\n\n**Action Steps:**\n? **MANDATORY**: Use `\u002Fcommentfetch` for comprehensive comment data instead of duplicating API calls:\n\n```bash\n\n### Phase 2: Step 2: Individual Comment Threading Verification (JSON-BASED)\n\n**Action Steps:**\n? **MANDATORY**: Use commentfetch JSON data for threading analysis instead of duplicate API calls:\n\n```bash\n\n### Phase 3: Step 3: Quality Assessment & Fake Comment Detection (JSON-BASED)\n\n**Action Steps:**\n? **CRITICAL**: Use commentfetch data for response quality analysis instead of duplicate API calls:\n\n```bash\necho \"=== QUALITY ASSESSMENT & FAKE COMMENT DETECTION (JSON-BASED) ===\"\n\n### Phase 4: Step 4: Final Coverage Report (COMPREHENSIVE)\n\n**Action Steps:**\n? **CRITICAL**: Generate final coverage report using commentfetch comprehensive data:\n\n```bash\necho \"==================================================================\"\necho \"? COMPREHENSIVE COMMENT COVERAGE REPORT (COMMENTFETCH-BASED)\"\necho \"==================================================================\"\n\n### Phase 5: Integration with Workflow\n\n**Action Steps:**\n1. Review the reference documentation below and execute the detailed steps.\n\n### Phase 6: Actions on Failure\n\n**Action Steps:**\nIf `\u002Fcommentcheck` finds issues:\n1. **Report specific problems** - List missing\u002Fpoor responses\n2. **Suggest fixes** - Indicate what needs improvement\n3. **Prevent completion** - Workflow should not proceed until fixed\n4. **Re-run commentreply** - Address missing\u002Fpoor responses\n\n## ? REFERENCE DOCUMENTATION\n\n# \u002Fcommentcheck Command\n\n**Usage**: `\u002Fcommentcheck [PR_NUMBER] [--verify-urls]`\n\n? **CRITICAL PURPOSE**: Verify comment coverage after the reply process using original comment IDs and attributable response or consolidated-summary receipts. Semantic response quality remains a model judgment.\n\n? **CRITICAL CLARIFICATION - Bot Comments Must Be Addressed**:\n- ✅ **\"ALL comments\" includes bot and human comments**: coverage is checked by each original comment ID.\n- ✅ A response entry or refreshed consolidated summary must identify the original comment ID.\n- ? **Do not infer response quality from keywords, character counts, or author labels**; model judgment handles technical adequacy.\n\n? **Security**: Uses safe jq --arg parameter passing to prevent command injection vulnerabilities and explicit variable validation.\n\n## Universal Composition Integration\n\n**Enhanced with \u002Fexecute**: `\u002Fcommentcheck` benefits from universal composition when called through `\u002Fexecute`, which automatically provides intelligent optimization for large-scale comment verification while preserving systematic coverage analysis.\n\n## ? INDIVIDUAL COMMENT VERIFICATION MANDATE\n\n**MANDATORY**: This command MUST compare original comment IDs with attributable response IDs:\n- **Bot and human comments are both in scope**; original IDs, not author classification, define coverage.\n- **Response evidence** comes from structured `responses.json` entries or a refreshed consolidated-summary receipt.\n- **Evidence requirement** - list any missing original IDs.\n- **Semantic response quality** is judged by the model after the mechanical coverage gate; this shell command must not use keyword or length heuristics.\n\n## Description\n\nPure markdown command (no Python executable) that systematically verifies all PR comments have been properly addressed with appropriate responses. **ORCHESTRATES \u002Fcommentfetch for data source** instead of duplicating GitHub API calls. This command runs AFTER `\u002Fcommentreply` to ensure nothing was missed.\n\n## ? COPILOT INTEGRATION REQUIREMENTS\n\n### FAILURE ESCALATION (MANDATORY EXIT CODES):\n\n- **EXIT CODE 1**: Unresponded comments detected - HALT copilot execution immediately\n- **EXIT CODE 2**: GitHub API failures - HALT with diagnostic information\n- **EXIT CODE 0**: Only when 100% coverage verified - ALLOW copilot to continue\n\n### COPILOT INTEGRATION PROTOCOL:\n\n- **PRE-PUSH GATE**: Must run before any push operations in copilot workflow\n- **HARD STOP ENFORCEMENT**: Non-zero exit codes must halt copilot execution\n- **NO BYPASS ALLOWED**: Cannot be skipped or ignored in copilot automation\n- **COVERAGE THRESHOLD**: Every original comment ID must have attributable response evidence before success\n\n## What It Does\n\n1. **Orchestrates \u002Fcommentfetch** for comprehensive comment data (eliminates duplicate API calls)\n2. **Analyzes JSON output** from commentfetch for coverage verification\n3. **Cross-references** original comments with posted responses using structured data\n4. **Verifies coverage** - ensures every original comment ID has attributable response evidence\n5. **Delegates quality judgment** - does not score response prose mechanically\n6. **Reports status** with detailed breakdown using commentfetch metadata\n\n## Individual Comment Verification Process (ORCHESTRATED)\n\n# 1. Get PR number and validate\n\nPR_NUMBER=${1:-$(gh pr view --json number --jq .number)}\nif [ -z \"$PR_NUMBER\" ]; then\n  echo \"❌ ERROR: Could not determine PR number. Please specify PR number or run from PR branch.\"\n  echo \"EXIT CODE: 2 (API_FAILURE - Copilot execution must halt)\"\n  exit 2\nfi\n\nFETCH_STARTED_AT=$(date -u +%Y-%m-%dT%H:%M:%S)\nFETCH_STARTED_EPOCH=$(date +%s)\n\necho \"? ORCHESTRATING: Fetching comprehensive comment data via \u002Fcommentfetch...\"\necho \"? COMPREHENSIVE COMMENT ANALYSIS FOR PR #$PR_NUMBER\"\necho \"==================================================================\"\n\n# 2. Execute the canonical command installation independently of the target cwd.\n# The target repository remains the caller's cwd so repo\u002Fbranch provenance stays correct.\n\nCOMMANDS_DIR=\"${COMMENT_COMMANDS_DIR:-${CLAUDE_HOME:-$HOME\u002F.claude}\u002Fcommands}\"\nif [ ! -f \"$COMMANDS_DIR\u002F_copilot_modules\u002Fcommentfetch.py\" ]; then\n  echo \"? CRITICAL: canonical commentfetch installation unavailable at $COMMANDS_DIR\" >&2\n  exit 2\nfi\nPYTHONPATH=\"$COMMANDS_DIR${PYTHONPATH:+:$PYTHONPATH}\" python3 -c \"\nfrom _copilot_modules.commentfetch import CommentFetch\nimport sys\nfetch = CommentFetch(sys.argv[1])\nresult = fetch.execute()\nraise SystemExit(0 if result.get('success') else 1)\n\" \"$PR_NUMBER\" || {\n  echo \"? CRITICAL: FRESH COMMENT FETCH FAILED; cached data will not be consumed\" >&2\n  echo \"EXIT CODE: 2 (API_FAILURE - Copilot execution must halt)\" >&2\n  exit 2\n}\n\n# 3. Use structured JSON output from commentfetch\n\nBRANCH_NAME=$(git branch --show-current | tr -cd '[:alnum:]._-')\nREPO_NAME=$(basename \"$(git rev-parse --show-toplevel)\" | tr -cd '[:alnum:]._-')\n# Use copilot subdirectory for all copilot workflow files (see ~\u002F.claude\u002Fskills\u002Fscratch-space\u002FSKILL.md)\nSCRATCH_ROOT=\"$(~\u002F.claude\u002Fskills\u002Fscratch-space\u002Fscripts\u002Fscratch-dir.sh)\" || {\n  echo \"? CRITICAL: Scratch resolver unavailable; refusing comment cache path\" >&2\n  exit 2\n}\nif [ -z \"$SCRATCH_ROOT\" ]; then\n  echo \"? CRITICAL: Scratch resolver returned no path; refusing comment cache path\" >&2\n  exit 2\nfi\nCOPILOT_DIR=\"$SCRATCH_ROOT\u002F$REPO_NAME\u002F$BRANCH_NAME\u002Fcopilot\"\nCOMMENTS_FILE=\"$COPILOT_DIR\u002Fcomments.json\"\n# REV-qcu3t-counting: Also read responses.json for standardized counts\nRESPONSES_FILE=\"$COPILOT_DIR\u002Fresponses.json\"\n\nif [ ! -f \"$COMMENTS_FILE\" ]; then\n  echo \"? CRITICAL: COPILOT EXECUTION HALTED\" >&2\n  echo \"? REASON: commentfetch failed to provide structured data at $COMMENTS_FILE\" >&2\n  echo \"This indicates commentfetch execution failure or missing output file.\" >&2\n  echo \"EXIT CODE: 2 (API_FAILURE - Copilot execution must halt)\" >&2\n  exit 2\nfi\n\nFETCHED_PR=$(jq -r '.pr \u002F\u002F empty' \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || true)\nFETCHED_AT=$(jq -r '.fetched_at \u002F\u002F empty' \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || true)\nif [ \"$FETCHED_PR\" != \"$PR_NUMBER\" ] || [ -z \"$FETCHED_AT\" ] || [[ \"$FETCHED_AT\" \u003C \"$FETCH_STARTED_AT\" ]]; then\n  echo \"? CRITICAL: commentfetch output is stale or belongs to another PR\" >&2\n  echo \"EXIT CODE: 2 (API_FAILURE - Copilot execution must halt)\" >&2\n  exit 2\nfi\nCOMMENTS_MTIME=$(stat -c %Y \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || stat -f %m \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || echo 0)\nif [ \"$COMMENTS_MTIME\" -lt \"$FETCH_STARTED_EPOCH\" ]; then\n  echo \"? CRITICAL: commentfetch did not refresh comments.json\" >&2\n  echo \"EXIT CODE: 2 (API_FAILURE - Copilot execution must halt)\" >&2\n  exit 2\nfi\n\necho \"✅ DATA SOURCE: Using commentfetch structured output from $COMMENTS_FILE\"\n\n# REV-qcu3t-counting: Read responses.json for standardized count stages\nif [ -f \"$RESPONSES_FILE\" ]; then\n  echo \"✅ STANDARDIZED COUNTS: Using responses.json for metrics (single source of truth)\"\n\n  # Compute metrics from responses.json (matches compute_metrics\u002Fget_all_issues in commentreply.py)\n  # Handles both single-issue (.response on entry) and multi-issue (.issues[] array) formats\n  TOTAL_ISSUES=$(jq '[.responses[] | if (.issues and .analysis) then .issues[] else . end] | length' \"$RESPONSES_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\n  FIXED_COUNT=$(jq '[.responses[] | if (.issues and .analysis) then .issues[] else . end | select(.response == \"FIXED\" or .response == \"ALREADY_IMPLEMENTED\")] | length' \"$RESPONSES_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\n  ACKNOWLEDGED_COUNT=$(jq '[.responses[] | if (.issues and .analysis) then .issues[] else . end | select((.response \u002F\u002F \"\") as $r | $r == \"ACKNOWLEDGED\" or $r == \"SKIPPED\" or ($r != \"FIXED\" and $r != \"ALREADY_IMPLEMENTED\" and $r != \"DEFERRED\" and $r != \"NOT_DONE\"))] | length' \"$RESPONSES_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\n  DEFERRED_COUNT=$(jq '[.responses[] | if (.issues and .analysis) then .issues[] else . end | select(.response == \"DEFERRED\")] | length' \"$RESPONSES_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\n  NOT_DONE_COUNT=$(jq '[.responses[] | if (.issues and .analysis) then .issues[] else . end | select(.response == \"NOT_DONE\")] | length' \"$RESPONSES_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\n\n  echo \"? STANDARDIZED METRICS (from responses.json):\"\n  echo \"   Total issues: $TOTAL_ISSUES\"\n  echo \"   Fixed: $FIXED_COUNT\"\n  echo \"   Acknowledged: $ACKNOWLEDGED_COUNT\"\n  echo \"   Deferred: $DEFERRED_COUNT\"\n  echo \"   Not Done: $NOT_DONE_COUNT\"\nelse\n  echo \"⚠️ WARNING: responses.json not found - cannot compute standardized metrics\"\nfi\n\n# 4. Extract comprehensive comment statistics from commentfetch JSON\n\nTOTAL_COMMENTS=$(jq '.metadata.total' \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\nINLINE_COUNT=$(jq '.metadata.by_type.inline' \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\nGENERAL_COUNT=$(jq '.metadata.by_type.general' \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\nREVIEW_COUNT=$(jq '.metadata.by_type.review' \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\nCOPILOT_COUNT=$(jq '.metadata.by_type.copilot' \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\n\necho \"? COMPREHENSIVE COMMENT BREAKDOWN (via commentfetch):\"\necho \"   Total comments detected: $TOTAL_COMMENTS\"\necho \"   Inline review comments: $INLINE_COUNT\"\necho \"   General PR comments: $GENERAL_COUNT\"\necho \"   Review summary comments: $REVIEW_COUNT\"\necho \"   Copilot comments: $COPILOT_COUNT\"\n\n# 5. Validate commentfetch data quality\n\nif [ \"$TOTAL_COMMENTS\" -eq 0 ]; then\n  echo \"⚠️ WARNING: No comments detected by commentfetch\"\n  echo \"This may indicate API access issues or an empty PR\"\nfi\n\necho \"? COMMENTFETCH ORCHESTRATION: Successfully loaded $TOTAL_COMMENTS comments\"\necho \"? ID ANALYSIS: coverage is determined below from original IDs and attributable receipts\"\n```\n\n# Enhanced threading verification using commentfetch structured data\n\necho \"=== THREADING VERIFICATION ANALYSIS (JSON-BASED) ===\"\n\n# Use commentfetch JSON output instead of making new API calls\n\nset -o pipefail\ncoverage_fail() {\n  echo \"? CRITICAL: COPILOT EXECUTION HALTED\" >&2\n  echo \"? REASON: $1\" >&2\n  echo \"EXIT CODE: 2 (COVERAGE_INPUT_FAILURE - Copilot execution must halt)\" >&2\n  exit 2\n}\n\nif ! ALL_COMMENTS=$(jq -e '.comments' \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull); then\n  coverage_fail \"commentfetch JSON is missing or malformed\"\nfi\nif ! jq -e '\n  type == \"array\" and length > 0 and\n  all(.[];\n    type == \"object\" and\n    ((.id | type) == \"number\" or (.id | type) == \"string\") and\n    ((.id | tostring) | test(\"^[1-9][0-9]*$\")) and\n    (.body | type) == \"string\" and\n    (.author | type) == \"string\" and\n    (.type | type) == \"string\" and\n    ((.in_reply_to_id == null) or\n      (((.in_reply_to_id | type) == \"number\" or (.in_reply_to_id | type) == \"string\") and\n       ((.in_reply_to_id | tostring) | test(\"^[1-9][0-9]*$\"))))\n  )' \u003C\u003C\u003C\"$ALL_COMMENTS\" >\u002Fdev\u002Fnull; then\n  coverage_fail \"commentfetch records are malformed\"\nfi\nif [ \"$(echo \"$ALL_COMMENTS\" | jq length)\" -eq 0 ]; then\n  echo \"? CRITICAL: COPILOT EXECUTION HALTED\" >&2\n  echo \"? REASON: No comment data available from commentfetch JSON\" >&2\n  echo \"EXIT CODE: 2 (API_FAILURE - Copilot execution must halt)\" >&2\n  exit 2\nfi\n\necho \"✅ USING COMMENTFETCH DATA: $(echo \"$ALL_COMMENTS\" | jq length) comments loaded\"\n\n# Step 2A: Analyze threading status for ALL comments (from commentfetch data)\n\necho \"? THREADING STATUS ANALYSIS:\"\necho \"$ALL_COMMENTS\" | jq -r '.[] | \"ID: \\(.id) | Author: \\(.author) | Type: \\(.type) | Replied: \\(.already_replied)\"'\n\n# Step 2B: Count threading success rates (using commentfetch metadata)\n\nTOTAL_COMMENTS=$(echo \"$ALL_COMMENTS\" | jq length)\nALREADY_REPLIED=$(echo \"$ALL_COMMENTS\" | jq '[.[] | select(.already_replied == true)] | length')\nREQUIRES_RESPONSE=$(echo \"$ALL_COMMENTS\" | jq '[.[] | select(.requires_response == true)] | length')\n\necho \"\"\necho \"? THREADING STATISTICS (from commentfetch):\"\necho \"   Total comments: $TOTAL_COMMENTS\"\necho \"   Already replied: $ALREADY_REPLIED\"\necho \"   Requires response: $REQUIRES_RESPONSE\"\n\nif [ \"$TOTAL_COMMENTS\" -gt 0 ]; then\n  RESPONSE_PERCENTAGE=$(( (ALREADY_REPLIED * 100) \u002F TOTAL_COMMENTS ))\n  echo \"   Response rate: $RESPONSE_PERCENTAGE%\"\nfi\n\n# Step 2C: Mechanical original-ID coverage (no semantic heuristics)\n\necho \"\"\necho \"? ORIGINAL COMMENT ID COVERAGE (MECHANICAL ONLY):\"\n\n# Coverage is bound to original comment IDs read back from GitHub.  The cached\n# response file is generated intent only; it cannot prove that a reply was\n# posted.  `already_replied` is deliberately ignored because it is derived by\n# heuristic code.  Direct replies require an exact GitHub in_reply_to_id and\n# the verified current responder login.  Consolidated summaries are accepted\n# only when the same verified responder authored the producer's structured\n# summary marker and its linked references; arbitrary or quoted body mentions\n# are not receipts. Semantic response quality remains model-owned.\nif [ -n \"${COPILOT_RESPONDER_LOGIN:-}\" ]; then\n  # The caller must source this value from the verified GitHub actor; tests use\n  # the same explicit binding without making a network call.\n  RESPONDER_LOGIN=\"$COPILOT_RESPONDER_LOGIN\"\nelif ! RESPONDER_LOGIN=$(gh api user --jq '.login' 2>\u002Fdev\u002Fnull); then\n  coverage_fail \"unable to verify the current GitHub responder identity\"\nfi\n[ -n \"$RESPONDER_LOGIN\" ] || coverage_fail \"verified responder identity is empty\"\n\nEXPECTED_REPO=$(jq -r '.metadata.repo \u002F\u002F empty' \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || true)\nif [[ ! \"$EXPECTED_REPO\" =~ ^[^\u002F[:space:]]+\u002F[^\u002F[:space:]]+$ ]]; then\n  coverage_fail \"commentfetch metadata does not contain a valid repository identity\"\nfi\n\nif ! ORIGINAL_IDS=$(echo \"$ALL_COMMENTS\" | jq -r --arg responder \"$RESPONDER_LOGIN\" '.[] | select((.author != $responder) or ((((.body \u002F\u002F \"\") | startswith(\"[AI responder]\")) or ((.body \u002F\u002F \"\") | startswith(\"## ? [AI responder] Consolidated Comment Response Summary\"))) | not)) | .id | tostring' | sort -u); then\n  coverage_fail \"failed to extract original comment IDs\"\nfi\nif ! POSTED_REPLY_IDS=$(echo \"$ALL_COMMENTS\" | jq -r --arg responder \"$RESPONDER_LOGIN\" '.[] | select(.author == $responder) | select(.in_reply_to_id != null) | .in_reply_to_id | tostring' | sort -u); then\n  coverage_fail \"failed to extract posted reply relationships\"\nfi\nif ! POSTED_SUMMARY_IDS=$(\n  echo \"$ALL_COMMENTS\" | jq -r --arg responder \"$RESPONDER_LOGIN\" --arg repo \"$EXPECTED_REPO\" --arg pr \"$PR_NUMBER\" '\n    . as $all\n    | [ $all[]\n        | select((.author != $responder) or ((((.body \u002F\u002F \"\") | startswith(\"[AI responder]\")) or ((.body \u002F\u002F \"\") | startswith(\"## ? [AI responder] Consolidated Comment Response Summary\"))) | not))\n        | {id: (.id | tostring), url: (.html_url \u002F\u002F \"\")}\n      ] as $originals\n    | [ $all[]\n        | select(.author == $responder)\n        | (.body \u002F\u002F \"\")\n        | split(\"\\n\")\n        | map(select(length > 0))\n        | last\n        | select(startswith(\"\u003C!-- COPILOT_COVERAGE_V1 \"))\n        | sub(\"^\u003C!-- COPILOT_COVERAGE_V1 \"; \"\")\n        | sub(\" -->$\"; \"\")\n        | fromjson\n      ] as $footers\n    | $footers[]\n    | select(.schema == \"copilot-coverage\u002Fv1\" and .repo == $repo and (.pr | tostring) == $pr and (.responses | type) == \"array\")\n    | .responses[]\n    | select((.comment_id | tostring | test(\"^[1-9][0-9]*$\")) and (.url | type) == \"string\")\n    | . as $response\n    | $originals[]\n    | select(.id == ($response.comment_id | tostring) and .url == $response.url)\n    | .id\n  ' | sort -u\n); then\n  coverage_fail \"failed to parse or verify structured responder coverage footer\"\nfi\nATTRIBUTED_IDS=$(printf '%s\\n%s\\n' \"$POSTED_REPLY_IDS\" \"$POSTED_SUMMARY_IDS\" | sed '\u002F^$\u002Fd' | sort -u)\nMISSING_IDS=$(comm -23 \u003C(printf '%s\\n' \"$ORIGINAL_IDS\") \u003C(printf '%s\\n' \"$ATTRIBUTED_IDS\"))\n\necho \"   Original comment IDs: $(printf '%s\\n' \"$ORIGINAL_IDS\" | sed '\u002F^$\u002Fd' | wc -l | tr -d ' ')\"\necho \"   Attributable response IDs: $(printf '%s\\n' \"$ATTRIBUTED_IDS\" | sed '\u002F^$\u002Fd' | wc -l | tr -d ' ')\"\n\nif [ -n \"$MISSING_IDS\" ]; then\n  echo \"? CRITICAL: COPILOT EXECUTION HALTED\"\n  echo \"? REASON: original comment IDs lack an attributable response or summary receipt\"\n  printf '❌ Missing original comment ID: %s\\n' $MISSING_IDS\n  echo \"EXIT CODE: 1 (COVERAGE_FAILURE - Copilot execution must halt)\"\n  exit 1\nfi\n\necho \"✅ Every original comment ID has an attributable posted relationship or verified responder summary receipt\"\necho \"ℹ️ Semantic response quality is an LLM judgment; this gate performs no keyword or length scoring\"\n```\n\n## Individual Comment Success Criteria (ZERO TOLERANCE)\n\n? **✅ PASS REQUIREMENTS**:\n- Every original comment ID has a posted\u002Fread-back reply relationship or refreshed consolidated-summary receipt; generated response intent alone is insufficient.\n- Missing IDs are listed and cause a non-zero exit.\n- Bot and human comments are treated identically for mechanical coverage.\n- Semantic adequacy, resolution state, and professional tone are judged by the model from the actual response text.\n\n? **❌ FAIL CONDITIONS**:\n- Any original comment ID lacks attributable response evidence.\n- The fetched data or response receipt is missing, malformed, or stale.\n- The model determines that a response does not address the comment's technical substance.\n\nThe shell gate deliberately performs no character-count, keyword, template, or author-label quality scoring.\n\n### When to Run\n\n- **After** `\u002Fcommentreply` completes\n- **Before** final `\u002Fpushl` in copilot workflow\n- **Verify** comment coverage is complete\n\n## Command Flow Integration\n\n```\n\u002Fcommentfetch → \u002Ffixpr → \u002Fpushl → \u002Fcommentreply → \u002Fcommentcheck → \u002Fpushl (final)\n                                                        ↓\n                                               [100% coverage verified]\n```\n\n## Architectural Benefits\n\n- **Orchestration over Duplication** - Follows CLAUDE.md principles\n- **Single source of truth** - commentfetch is authoritative for comment data\n- **Consistent data format** - Both commands use same JSON structure\n- **Reduced maintenance** - Bug fixes in commentfetch benefit both commands\n- **Clear separation** - commentfetch fetches, commentcheck verifies\n- **Performance** - No duplicate API calls or processing\n\n## Error Handling\n\n- **commentfetch failures**: Clear error with diagnostic information\n- **JSON parsing issues**: Graceful fallback with error reporting\n- **Missing data files**: Explicit error messages with remediation steps\n- **API access problems**: Delegated to commentfetch for handling\n\n## Benefits\n\n- **Quality assurance** - Ensures responses meet professional standards\n- **Complete coverage** - Guarantees no comments are missed (via commentfetch)\n- **Audit trail** - Provides detailed verification report\n- **Process improvement** - Identifies patterns in response quality\n- **User confidence** - Confirms all feedback was properly addressed\n- **Architectural compliance** - Eliminates code duplication\n\n## Example Usage\n\n```bash\n\n# After running \u002Fcommentreply\n\n\u002Fcommentcheck 1603\n\n# Will orchestrate commentfetch and verify:\n\n# ✅ Every original comment ID has attributable response evidence\n\n# ✅ Semantic response quality is reviewed from the actual text by the model\n\n# ? Generate detailed coverage report\n\n```\n\nThis command ensures the comment response process maintains high quality and complete coverage for professional PR management, with proper orchestration of commentfetch eliminating code duplication.\n","## ⚡ EXECUTION INSTRUCTIONS FOR CLAUDE\n**When this command is invoked, YOU (Claude) must execute these steps immediately:**\n**This is NOT documentation - these are COMMANDS to execute right now.**\n**Use TodoWrite to track progress through multi-phase workflows.**\n\n## ? EXECUTION WORKFLOW\n\n### Phase 1: Step 1: Load ALL Individual Comments (ORCHESTRATED)\n\n**Action Steps:**\n? **MANDATORY**: Use `\u002Fcommentfetch` for comprehensive comment data instead of duplicating API calls:\n\n```bash\n\n### Phase 2: Step 2: Individual Comment Threading Verification (JSON-BASED)\n\n**Action Steps:**\n? **MANDATORY**: Use commentfetch JSON data for threading analysis instead of duplicate API calls:\n\n```bash\n\n### Phase 3: Step 3: Quality Assessment & Fake Comment Detection (JSON-BASED)\n\n**Action Steps:**\n? **CRITICAL**: Use commentfetch data for response quality analysis instead of duplicate API calls:\n\n```bash\necho \"=== QUALITY ASSESSMENT & FAKE COMMENT DETECTION (JSON-BASED) ===\"\n\n### Phase 4: Step 4: Final Coverage Report (COMPREHENSIVE)\n\n**Action Steps:**\n? **CRITICAL**: Generate final coverage report using commentfetch comprehensive data:\n\n```bash\necho \"==================================================================\"\necho \"? COMPREHENSIVE COMMENT COVERAGE REPORT (COMMENTFETCH-BASED)\"\necho \"==================================================================\"\n\n### Phase 5: Integration with Workflow\n\n**Action Steps:**\n1. Review the reference documentation below and execute the detailed steps.\n\n### Phase 6: Actions on Failure\n\n**Action Steps:**\nIf `\u002Fcommentcheck` finds issues:\n1. **Report specific problems** - List missing\u002Fpoor responses\n2. **Suggest fixes** - Indicate what needs improvement\n3. **Prevent completion** - Workflow should not proceed until fixed\n4. **Re-run commentreply** - Address missing\u002Fpoor responses\n\n## ? REFERENCE DOCUMENTATION\n\n# \u002Fcommentcheck Command\n\n**Usage**: `\u002Fcommentcheck [PR_NUMBER] [--verify-urls]`\n\n? **CRITICAL PURPOSE**: Verify comment coverage after the reply process using original comment IDs and attributable response or consolidated-summary receipts. Semantic response quality remains a model judgment.\n\n? **CRITICAL CLARIFICATION - Bot Comments Must Be Addressed**:\n- ✅ **\"ALL comments\" includes bot and human comments**: coverage is checked by each original comment ID.\n- ✅ A response entry or refreshed consolidated summary must identify the original comment ID.\n- ? **Do not infer response quality from keywords, character counts, or author labels**; model judgment handles technical adequacy.\n\n? **Security**: Uses safe jq --arg parameter passing to prevent command injection vulnerabilities and explicit variable validation.\n\n## Universal Composition Integration\n\n**Enhanced with \u002Fexecute**: `\u002Fcommentcheck` benefits from universal composition when called through `\u002Fexecute`, which automatically provides intelligent optimization for large-scale comment verification while preserving systematic coverage analysis.\n\n## ? INDIVIDUAL COMMENT VERIFICATION MANDATE\n\n**MANDATORY**: This command MUST compare original comment IDs with attributable response IDs:\n- **Bot and human comments are both in scope**; original IDs, not author classification, define coverage.\n- **Response evidence** comes from structured `responses.json` entries or a refreshed consolidated-summary receipt.\n- **Evidence requirement** - list any missing original IDs.\n- **Semantic response quality** is judged by the model after the mechanical coverage gate; this shell command must not use keyword or length heuristics.\n\n## Description\n\nPure markdown command (no Python executable) that systematically verifies all PR comments have been properly addressed with appropriate responses. **ORCHESTRATES \u002Fcommentfetch for data source** instead of duplicating GitHub API calls. This command runs AFTER `\u002Fcommentreply` to ensure nothing was missed.\n\n## ? COPILOT INTEGRATION REQUIREMENTS\n\n### FAILURE ESCALATION (MANDATORY EXIT CODES):\n\n- **EXIT CODE 1**: Unresponded comments detected - HALT copilot execution immediately\n- **EXIT CODE 2**: GitHub API failures - HALT with diagnostic information\n- **EXIT CODE 0**: Only when 100% coverage verified - ALLOW copilot to continue\n\n### COPILOT INTEGRATION PROTOCOL:\n\n- **PRE-PUSH GATE**: Must run before any push operations in copilot workflow\n- **HARD STOP ENFORCEMENT**: Non-zero exit codes must halt copilot execution\n- **NO BYPASS ALLOWED**: Cannot be skipped or ignored in copilot automation\n- **COVERAGE THRESHOLD**: Every original comment ID must have attributable response evidence before success\n\n## What It Does\n\n1. **Orchestrates \u002Fcommentfetch** for comprehensive comment data (eliminates duplicate API calls)\n2. **Analyzes JSON output** from commentfetch for coverage verification\n3. **Cross-references** original comments with posted responses using structured data\n4. **Verifies coverage** - ensures every original comment ID has attributable response evidence\n5. **Delegates quality judgment** - does not score response prose mechanically\n6. **Reports status** with detailed breakdown using commentfetch metadata\n\n## Individual Comment Verification Process (ORCHESTRATED)\n\n# 1. Get PR number and validate\n\nPR_NUMBER=${1:-$(gh pr view --json number --jq .number)}\nif [ -z \"$PR_NUMBER\" ]; then\n  echo \"❌ ERROR: Could not determine PR number. Please specify PR number or run from PR branch.\"\n  echo \"EXIT CODE: 2 (API_FAILURE - Copilot execution must halt)\"\n  exit 2\nfi\n\nFETCH_STARTED_AT=$(date -u +%Y-%m-%dT%H:%M:%S)\nFETCH_STARTED_EPOCH=$(date +%s)\n\necho \"? ORCHESTRATING: Fetching comprehensive comment data via \u002Fcommentfetch...\"\necho \"? COMPREHENSIVE COMMENT ANALYSIS FOR PR #$PR_NUMBER\"\necho \"==================================================================\"\n\n# 2. Execute the canonical command installation independently of the target cwd.\n# The target repository remains the caller's cwd so repo\u002Fbranch provenance stays correct.\n\nCOMMANDS_DIR=\"${COMMENT_COMMANDS_DIR:-${CLAUDE_HOME:-$HOME\u002F.claude}\u002Fcommands}\"\nif [ ! -f \"$COMMANDS_DIR\u002F_copilot_modules\u002Fcommentfetch.py\" ]; then\n  echo \"? CRITICAL: canonical commentfetch installation unavailable at $COMMANDS_DIR\" >&2\n  exit 2\nfi\nPYTHONPATH=\"$COMMANDS_DIR${PYTHONPATH:+:$PYTHONPATH}\" python3 -c \"\nfrom _copilot_modules.commentfetch import CommentFetch\nimport sys\nfetch = CommentFetch(sys.argv[1])\nresult = fetch.execute()\nraise SystemExit(0 if result.get('success') else 1)\n\" \"$PR_NUMBER\" || {\n  echo \"? CRITICAL: FRESH COMMENT FETCH FAILED; cached data will not be consumed\" >&2\n  echo \"EXIT CODE: 2 (API_FAILURE - Copilot execution must halt)\" >&2\n  exit 2\n}\n\n# 3. Use structured JSON output from commentfetch\n\nBRANCH_NAME=$(git branch --show-current | tr -cd '[:alnum:]._-')\nREPO_NAME=$(basename \"$(git rev-parse --show-toplevel)\" | tr -cd '[:alnum:]._-')\n# Use copilot subdirectory for all copilot workflow files (see ~\u002F.claude\u002Fskills\u002Fscratch-space\u002FSKILL.md)\nSCRATCH_ROOT=\"$(~\u002F.claude\u002Fskills\u002Fscratch-space\u002Fscripts\u002Fscratch-dir.sh)\" || {\n  echo \"? CRITICAL: Scratch resolver unavailable; refusing comment cache path\" >&2\n  exit 2\n}\nif [ -z \"$SCRATCH_ROOT\" ]; then\n  echo \"? CRITICAL: Scratch resolver returned no path; refusing comment cache path\" >&2\n  exit 2\nfi\nCOPILOT_DIR=\"$SCRATCH_ROOT\u002F$REPO_NAME\u002F$BRANCH_NAME\u002Fcopilot\"\nCOMMENTS_FILE=\"$COPILOT_DIR\u002Fcomments.json\"\n# REV-qcu3t-counting: Also read responses.json for standardized counts\nRESPONSES_FILE=\"$COPILOT_DIR\u002Fresponses.json\"\n\nif [ ! -f \"$COMMENTS_FILE\" ]; then\n  echo \"? CRITICAL: COPILOT EXECUTION HALTED\" >&2\n  echo \"? REASON: commentfetch failed to provide structured data at $COMMENTS_FILE\" >&2\n  echo \"This indicates commentfetch execution failure or missing output file.\" >&2\n  echo \"EXIT CODE: 2 (API_FAILURE - Copilot execution must halt)\" >&2\n  exit 2\nfi\n\nFETCHED_PR=$(jq -r '.pr \u002F\u002F empty' \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || true)\nFETCHED_AT=$(jq -r '.fetched_at \u002F\u002F empty' \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || true)\nif [ \"$FETCHED_PR\" != \"$PR_NUMBER\" ] || [ -z \"$FETCHED_AT\" ] || [[ \"$FETCHED_AT\" \u003C \"$FETCH_STARTED_AT\" ]]; then\n  echo \"? CRITICAL: commentfetch output is stale or belongs to another PR\" >&2\n  echo \"EXIT CODE: 2 (API_FAILURE - Copilot execution must halt)\" >&2\n  exit 2\nfi\nCOMMENTS_MTIME=$(stat -c %Y \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || stat -f %m \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || echo 0)\nif [ \"$COMMENTS_MTIME\" -lt \"$FETCH_STARTED_EPOCH\" ]; then\n  echo \"? CRITICAL: commentfetch did not refresh comments.json\" >&2\n  echo \"EXIT CODE: 2 (API_FAILURE - Copilot execution must halt)\" >&2\n  exit 2\nfi\n\necho \"✅ DATA SOURCE: Using commentfetch structured output from $COMMENTS_FILE\"\n\n# REV-qcu3t-counting: Read responses.json for standardized count stages\nif [ -f \"$RESPONSES_FILE\" ]; then\n  echo \"✅ STANDARDIZED COUNTS: Using responses.json for metrics (single source of truth)\"\n\n  # Compute metrics from responses.json (matches compute_metrics\u002Fget_all_issues in commentreply.py)\n  # Handles both single-issue (.response on entry) and multi-issue (.issues[] array) formats\n  TOTAL_ISSUES=$(jq '[.responses[] | if (.issues and .analysis) then .issues[] else . end] | length' \"$RESPONSES_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\n  FIXED_COUNT=$(jq '[.responses[] | if (.issues and .analysis) then .issues[] else . end | select(.response == \"FIXED\" or .response == \"ALREADY_IMPLEMENTED\")] | length' \"$RESPONSES_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\n  ACKNOWLEDGED_COUNT=$(jq '[.responses[] | if (.issues and .analysis) then .issues[] else . end | select((.response \u002F\u002F \"\") as $r | $r == \"ACKNOWLEDGED\" or $r == \"SKIPPED\" or ($r != \"FIXED\" and $r != \"ALREADY_IMPLEMENTED\" and $r != \"DEFERRED\" and $r != \"NOT_DONE\"))] | length' \"$RESPONSES_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\n  DEFERRED_COUNT=$(jq '[.responses[] | if (.issues and .analysis) then .issues[] else . end | select(.response == \"DEFERRED\")] | length' \"$RESPONSES_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\n  NOT_DONE_COUNT=$(jq '[.responses[] | if (.issues and .analysis) then .issues[] else . end | select(.response == \"NOT_DONE\")] | length' \"$RESPONSES_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\n\n  echo \"? STANDARDIZED METRICS (from responses.json):\"\n  echo \"   Total issues: $TOTAL_ISSUES\"\n  echo \"   Fixed: $FIXED_COUNT\"\n  echo \"   Acknowledged: $ACKNOWLEDGED_COUNT\"\n  echo \"   Deferred: $DEFERRED_COUNT\"\n  echo \"   Not Done: $NOT_DONE_COUNT\"\nelse\n  echo \"⚠️ WARNING: responses.json not found - cannot compute standardized metrics\"\nfi\n\n# 4. Extract comprehensive comment statistics from commentfetch JSON\n\nTOTAL_COMMENTS=$(jq '.metadata.total' \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\nINLINE_COUNT=$(jq '.metadata.by_type.inline' \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\nGENERAL_COUNT=$(jq '.metadata.by_type.general' \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\nREVIEW_COUNT=$(jq '.metadata.by_type.review' \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\nCOPILOT_COUNT=$(jq '.metadata.by_type.copilot' \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || echo \"0\")\n\necho \"? COMPREHENSIVE COMMENT BREAKDOWN (via commentfetch):\"\necho \"   Total comments detected: $TOTAL_COMMENTS\"\necho \"   Inline review comments: $INLINE_COUNT\"\necho \"   General PR comments: $GENERAL_COUNT\"\necho \"   Review summary comments: $REVIEW_COUNT\"\necho \"   Copilot comments: $COPILOT_COUNT\"\n\n# 5. Validate commentfetch data quality\n\nif [ \"$TOTAL_COMMENTS\" -eq 0 ]; then\n  echo \"⚠️ WARNING: No comments detected by commentfetch\"\n  echo \"This may indicate API access issues or an empty PR\"\nfi\n\necho \"? COMMENTFETCH ORCHESTRATION: Successfully loaded $TOTAL_COMMENTS comments\"\necho \"? ID ANALYSIS: coverage is determined below from original IDs and attributable receipts\"\n```\n\n# Enhanced threading verification using commentfetch structured data\n\necho \"=== THREADING VERIFICATION ANALYSIS (JSON-BASED) ===\"\n\n# Use commentfetch JSON output instead of making new API calls\n\nset -o pipefail\ncoverage_fail() {\n  echo \"? CRITICAL: COPILOT EXECUTION HALTED\" >&2\n  echo \"? REASON: $1\" >&2\n  echo \"EXIT CODE: 2 (COVERAGE_INPUT_FAILURE - Copilot execution must halt)\" >&2\n  exit 2\n}\n\nif ! ALL_COMMENTS=$(jq -e '.comments' \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull); then\n  coverage_fail \"commentfetch JSON is missing or malformed\"\nfi\nif ! jq -e '\n  type == \"array\" and length > 0 and\n  all(.[];\n    type == \"object\" and\n    ((.id | type) == \"number\" or (.id | type) == \"string\") and\n    ((.id | tostring) | test(\"^[1-9][0-9]*$\")) and\n    (.body | type) == \"string\" and\n    (.author | type) == \"string\" and\n    (.type | type) == \"string\" and\n    ((.in_reply_to_id == null) or\n      (((.in_reply_to_id | type) == \"number\" or (.in_reply_to_id | type) == \"string\") and\n       ((.in_reply_to_id | tostring) | test(\"^[1-9][0-9]*$\"))))\n  )' \u003C\u003C\u003C\"$ALL_COMMENTS\" >\u002Fdev\u002Fnull; then\n  coverage_fail \"commentfetch records are malformed\"\nfi\nif [ \"$(echo \"$ALL_COMMENTS\" | jq length)\" -eq 0 ]; then\n  echo \"? CRITICAL: COPILOT EXECUTION HALTED\" >&2\n  echo \"? REASON: No comment data available from commentfetch JSON\" >&2\n  echo \"EXIT CODE: 2 (API_FAILURE - Copilot execution must halt)\" >&2\n  exit 2\nfi\n\necho \"✅ USING COMMENTFETCH DATA: $(echo \"$ALL_COMMENTS\" | jq length) comments loaded\"\n\n# Step 2A: Analyze threading status for ALL comments (from commentfetch data)\n\necho \"? THREADING STATUS ANALYSIS:\"\necho \"$ALL_COMMENTS\" | jq -r '.[] | \"ID: \\(.id) | Author: \\(.author) | Type: \\(.type) | Replied: \\(.already_replied)\"'\n\n# Step 2B: Count threading success rates (using commentfetch metadata)\n\nTOTAL_COMMENTS=$(echo \"$ALL_COMMENTS\" | jq length)\nALREADY_REPLIED=$(echo \"$ALL_COMMENTS\" | jq '[.[] | select(.already_replied == true)] | length')\nREQUIRES_RESPONSE=$(echo \"$ALL_COMMENTS\" | jq '[.[] | select(.requires_response == true)] | length')\n\necho \"\"\necho \"? THREADING STATISTICS (from commentfetch):\"\necho \"   Total comments: $TOTAL_COMMENTS\"\necho \"   Already replied: $ALREADY_REPLIED\"\necho \"   Requires response: $REQUIRES_RESPONSE\"\n\nif [ \"$TOTAL_COMMENTS\" -gt 0 ]; then\n  RESPONSE_PERCENTAGE=$(( (ALREADY_REPLIED * 100) \u002F TOTAL_COMMENTS ))\n  echo \"   Response rate: $RESPONSE_PERCENTAGE%\"\nfi\n\n# Step 2C: Mechanical original-ID coverage (no semantic heuristics)\n\necho \"\"\necho \"? ORIGINAL COMMENT ID COVERAGE (MECHANICAL ONLY):\"\n\n# Coverage is bound to original comment IDs read back from GitHub.  The cached\n# response file is generated intent only; it cannot prove that a reply was\n# posted.  `already_replied` is deliberately ignored because it is derived by\n# heuristic code.  Direct replies require an exact GitHub in_reply_to_id and\n# the verified current responder login.  Consolidated summaries are accepted\n# only when the same verified responder authored the producer's structured\n# summary marker and its linked references; arbitrary or quoted body mentions\n# are not receipts. Semantic response quality remains model-owned.\nif [ -n \"${COPILOT_RESPONDER_LOGIN:-}\" ]; then\n  # The caller must source this value from the verified GitHub actor; tests use\n  # the same explicit binding without making a network call.\n  RESPONDER_LOGIN=\"$COPILOT_RESPONDER_LOGIN\"\nelif ! RESPONDER_LOGIN=$(gh api user --jq '.login' 2>\u002Fdev\u002Fnull); then\n  coverage_fail \"unable to verify the current GitHub responder identity\"\nfi\n[ -n \"$RESPONDER_LOGIN\" ] || coverage_fail \"verified responder identity is empty\"\n\nEXPECTED_REPO=$(jq -r '.metadata.repo \u002F\u002F empty' \"$COMMENTS_FILE\" 2>\u002Fdev\u002Fnull || true)\nif [[ ! \"$EXPECTED_REPO\" =~ ^[^\u002F[:space:]]+\u002F[^\u002F[:space:]]+$ ]]; then\n  coverage_fail \"commentfetch metadata does not contain a valid repository identity\"\nfi\n\nif ! ORIGINAL_IDS=$(echo \"$ALL_COMMENTS\" | jq -r --arg responder \"$RESPONDER_LOGIN\" '.[] | select((.author != $responder) or ((((.body \u002F\u002F \"\") | startswith(\"[AI responder]\")) or ((.body \u002F\u002F \"\") | startswith(\"## ? [AI responder] Consolidated Comment Response Summary\"))) | not)) | .id | tostring' | sort -u); then\n  coverage_fail \"failed to extract original comment IDs\"\nfi\nif ! POSTED_REPLY_IDS=$(echo \"$ALL_COMMENTS\" | jq -r --arg responder \"$RESPONDER_LOGIN\" '.[] | select(.author == $responder) | select(.in_reply_to_id != null) | .in_reply_to_id | tostring' | sort -u); then\n  coverage_fail \"failed to extract posted reply relationships\"\nfi\nif ! POSTED_SUMMARY_IDS=$(\n  echo \"$ALL_COMMENTS\" | jq -r --arg responder \"$RESPONDER_LOGIN\" --arg repo \"$EXPECTED_REPO\" --arg pr \"$PR_NUMBER\" '\n    . as $all\n    | [ $all[]\n        | select((.author != $responder) or ((((.body \u002F\u002F \"\") | startswith(\"[AI responder]\")) or ((.body \u002F\u002F \"\") | startswith(\"## ? [AI responder] Consolidated Comment Response Summary\"))) | not))\n        | {id: (.id | tostring), url: (.html_url \u002F\u002F \"\")}\n      ] as $originals\n    | [ $all[]\n        | select(.author == $responder)\n        | (.body \u002F\u002F \"\")\n        | split(\"\\n\")\n        | map(select(length > 0))\n        | last\n        | select(startswith(\"\u003C!-- COPILOT_COVERAGE_V1 \"))\n        | sub(\"^\u003C!-- COPILOT_COVERAGE_V1 \"; \"\")\n        | sub(\" -->$\"; \"\")\n        | fromjson\n      ] as $footers\n    | $footers[]\n    | select(.schema == \"copilot-coverage\u002Fv1\" and .repo == $repo and (.pr | tostring) == $pr and (.responses | type) == \"array\")\n    | .responses[]\n    | select((.comment_id | tostring | test(\"^[1-9][0-9]*$\")) and (.url | type) == \"string\")\n    | . as $response\n    | $originals[]\n    | select(.id == ($response.comment_id | tostring) and .url == $response.url)\n    | .id\n  ' | sort -u\n); then\n  coverage_fail \"failed to parse or verify structured responder coverage footer\"\nfi\nATTRIBUTED_IDS=$(printf '%s\\n%s\\n' \"$POSTED_REPLY_IDS\" \"$POSTED_SUMMARY_IDS\" | sed '\u002F^$\u002Fd' | sort -u)\nMISSING_IDS=$(comm -23 \u003C(printf '%s\\n' \"$ORIGINAL_IDS\") \u003C(printf '%s\\n' \"$ATTRIBUTED_IDS\"))\n\necho \"   Original comment IDs: $(printf '%s\\n' \"$ORIGINAL_IDS\" | sed '\u002F^$\u002Fd' | wc -l | tr -d ' ')\"\necho \"   Attributable response IDs: $(printf '%s\\n' \"$ATTRIBUTED_IDS\" | sed '\u002F^$\u002Fd' | wc -l | tr -d ' ')\"\n\nif [ -n \"$MISSING_IDS\" ]; then\n  echo \"? CRITICAL: COPILOT EXECUTION HALTED\"\n  echo \"? REASON: original comment IDs lack an attributable response or summary receipt\"\n  printf '❌ Missing original comment ID: %s\\n' $MISSING_IDS\n  echo \"EXIT CODE: 1 (COVERAGE_FAILURE - Copilot execution must halt)\"\n  exit 1\nfi\n\necho \"✅ Every original comment ID has an attributable posted relationship or verified responder summary receipt\"\necho \"ℹ️ Semantic response quality is an LLM judgment; this gate performs no keyword or length scoring\"\n```\n\n## Individual Comment Success Criteria (ZERO TOLERANCE)\n\n? **✅ PASS REQUIREMENTS**:\n- Every original comment ID has a posted\u002Fread-back reply relationship or refreshed consolidated-summary receipt; generated response intent alone is insufficient.\n- Missing IDs are listed and cause a non-zero exit.\n- Bot and human comments are treated identically for mechanical coverage.\n- Semantic adequacy, resolution state, and professional tone are judged by the model from the actual response text.\n\n? **❌ FAIL CONDITIONS**:\n- Any original comment ID lacks attributable response evidence.\n- The fetched data or response receipt is missing, malformed, or stale.\n- The model determines that a response does not address the comment's technical substance.\n\nThe shell gate deliberately performs no character-count, keyword, template, or author-label quality scoring.\n\n### When to Run\n\n- **After** `\u002Fcommentreply` completes\n- **Before** final `\u002Fpushl` in copilot workflow\n- **Verify** comment coverage is complete\n\n## Command Flow Integration\n\n```\n\u002Fcommentfetch → \u002Ffixpr → \u002Fpushl → \u002Fcommentreply → \u002Fcommentcheck → \u002Fpushl (final)\n                                                        ↓\n                                               [100% coverage verified]\n```\n\n## Architectural Benefits\n\n- **Orchestration over Duplication** - Follows CLAUDE.md principles\n- **Single source of truth** - commentfetch is authoritative for comment data\n- **Consistent data format** - Both commands use same JSON structure\n- **Reduced maintenance** - Bug fixes in commentfetch benefit both commands\n- **Clear separation** - commentfetch fetches, commentcheck verifies\n- **Performance** - No duplicate API calls or processing\n\n## Error Handling\n\n- **commentfetch failures**: Clear error with diagnostic information\n- **JSON parsing issues**: Graceful fallback with error reporting\n- **Missing data files**: Explicit error messages with remediation steps\n- **API access problems**: Delegated to commentfetch for handling\n\n## Benefits\n\n- **Quality assurance** - Ensures responses meet professional standards\n- **Complete coverage** - Guarantees no comments are missed (via commentfetch)\n- **Audit trail** - Provides detailed verification report\n- **Process improvement** - Identifies patterns in response quality\n- **User confidence** - Confirms all feedback was properly addressed\n- **Architectural compliance** - Eliminates code duplication\n\n## Example Usage\n\n```bash\n\n# After running \u002Fcommentreply\n\n\u002Fcommentcheck 1603\n\n# Will orchestrate commentfetch and verify:\n\n# ✅ Every original comment ID has attributable response evidence\n\n# ✅ Semantic response quality is reviewed from the actual text by the model\n\n# ? Generate detailed coverage report\n\n```\n\nThis command ensures the comment response process maintains high quality and complete coverage for professional PR management, with proper orchestration of commentfetch eliminating code duplication.\n",{"name":5,"description":7},"main","42ccd02cbf5e8e47839dc3eab6fc754dc6b339cf",".claude\u002Fskills\u002Fcommentcheck",0,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills","https:\u002F\u002Fgithub.com\u002Fjleechanorg","2026-11-14 14:55:35",{"source":9,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add jleechanorg\u002Fjleechan-skills --skill commentcheck",{"tool":49,"command":50},"bunx","bunx skills add jleechanorg\u002Fjleechan-skills --skill commentcheck",{"tool":52,"command":53},"pnpm","pnpm dlx skills add jleechanorg\u002Fjleechan-skills --skill commentcheck","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcommentcheck\u002FSKILL.md",true,[],[58,66,73,81,89,98],{"skillNo":59,"name":60,"nameZh":13,"description":61,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":65},"01M7DRVZXXMGY4G81K5GVF4V20","disk-reclaim-playbook","Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdisk-reclaim-playbook\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":67,"name":68,"nameZh":13,"description":69,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":65},"01M7B63PNTT2TY78RFKHD8SP3X","claudea-bench","Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fclaudea-bench\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":13,"description":76,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":80},"01M7622KQJ32AV4K5BXEMVSSEB","pr","Alias for the canonical pr-lifecycle PR workflow skill (\u002Fpr-workflow, \u002Fprw).","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":82,"name":83,"nameZh":13,"description":84,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":88},"01M7432W92AKC4D1TKJ00VCMMT","whisper","OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwhisper\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":90,"name":91,"nameZh":13,"description":92,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":93,"licenseFileUrl":94,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":88},"01M7432T6BN1A9SHB8RBQR5EMP","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":13,"description":101,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":88},"01M7432NDC7S6C6MX7M6RW8CTT","pr-report","This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, \u002Fpr-report, or wants per-PR summary with delta files\u002Flines. Generates a structured report for one or more open PRs covering purpose, files changed, +\u002F− line counts, \u002Fcode-standards + \u002Fthermo review findings, \u002Fponytail simplification opportunities, file-overlap combination candidates, and \u002Fgreen status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fpr-report\u002FSKILL.md",[],[]]