ln-613-code-comments-auditor by levnikolaevich/claude-code-skills
npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-613-code-comments-auditor路径说明: 文件路径(
shared/、references/、../ln-*)是相对于技能仓库根目录的。如果在当前工作目录未找到,请定位此 SKILL.md 文件所在的目录并向上返回一级以找到仓库根目录。如果缺少shared/目录,请通过 WebFetch 从https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}获取文件。
专门用于审计代码注释和文档字符串质量的 Worker。
必读: 加载 shared/references/audit_worker_core_contract.md。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
接收包含以下内容的 contextStore:tech_stack、project_root、output_dir。
tech_stack 进行检测)十六进制行加速: 在分析注释前使用 outline(path) 理解代码结构(函数、类)—— 识别需要扫描的代码部分。shared/templates/audit_worker_report_template.md 构建完整的 Markdown 报告,通过一次 Write 调用写入 {output_dir}/613-code-comments.md---|---|---
1 | 解释原因而非内容 | 注释解释原理,而非明显的代码行为;不重复陈述代码
2 | 密度 (15-20%) | 注释与代码的比例在范围内;不过度注释或注释不足
3 | 无禁止内容 | 无日期/作者;无历史记录;注释中无代码示例
4 | 文档字符串质量 | 与函数签名匹配;参数已记录;返回类型准确
5 | 时效性 | 注释与代码行为匹配;无过时引用;示例可运行
6 | 遗留清理 | 无无上下文的 TODO;无注释掉的代码;无已弃用说明
必读: 加载 shared/references/audit_worker_core_contract.md 和 shared/references/audit_scoring.md。
必读: 加载 shared/references/audit_worker_core_contract.md 和 shared/templates/audit_worker_report_template.md。
将报告写入 {output_dir}/613-code-comments.md,包含 category: "Code Comments" 和检查项:why_not_what, density, forbidden_content, docstrings_quality, actuality, legacy_cleanup。
向协调器返回摘要:
Report written: docs/project/.audit/ln-610/{YYYY-MM-DD}/613-code-comments.md
Score: X.X/10 | Issues: N (C:N H:N M:N L:N)
严重性映射:
| 问题类型 | 严重性 |
|---|---|
| 注释中包含作者姓名、日期 | 严重 |
| 注释掉的代码块 | 高 |
| 过时/陈旧的注释 | 高 |
| 明显的"内容"注释 | 中 |
| 密度偏差 >5% | 中 |
| 轻微密度偏差 | 低 |
必读: 加载 shared/references/audit_worker_core_contract.md。
文件:行号 以便程序化导航必读: 加载 shared/references/audit_worker_core_contract.md。
{output_dir}/613-code-comments.md(原子性单次 Write 调用)版本: 4.0.0 最后更新: 2026-03-01
每周安装数
100
仓库
GitHub Stars
253
首次出现
2026年3月1日
安全审计
安装于
cursor93
claude-code91
codex91
opencode90
github-copilot90
amp90
Paths: File paths (
shared/,references/,../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root. Ifshared/is missing, fetch files via WebFetch fromhttps://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}.
Specialized worker auditing code comments and docstrings quality.
MANDATORY READ: Load shared/references/audit_worker_core_contract.md.
Receives contextStore with: tech_stack, project_root, output_dir.
tech_stack for detection) Hex-line acceleration: Use outline(path) to understand code structure (functions, classes) before analyzing comments — identifies which code sections to scan.shared/templates/audit_worker_report_template.md, write to {output_dir}/613-code-comments.md in single Write call---|---|---
1 | WHY not WHAT | Comments explain rationale, not obvious code behavior; no restating code
2 | Density (15-20%) | Comment-to-code ratio within range; not over/under-commented
3 | No Forbidden Content | No dates/authors; no historical notes; no code examples in comments
4 | Docstrings Quality | Match function signatures; parameters documented; return types accurate
5 | Actuality | Comments match code behavior; no stale references; examples runnable
6 | Legacy Cleanup | No TODO without context; no commented-out code; no deprecated notes
MANDATORY READ: Load shared/references/audit_worker_core_contract.md and shared/references/audit_scoring.md.
MANDATORY READ: Load shared/references/audit_worker_core_contract.md and shared/templates/audit_worker_report_template.md.
Write report to {output_dir}/613-code-comments.md with category: "Code Comments" and checks: why_not_what, density, forbidden_content, docstrings_quality, actuality, legacy_cleanup.
Return summary to coordinator:
Report written: docs/project/.audit/ln-610/{YYYY-MM-DD}/613-code-comments.md
Score: X.X/10 | Issues: N (C:N H:N M:N L:N)
Severity mapping:
| Issue Type | Severity |
|---|---|
| Author names, dates in comments | CRITICAL |
| Commented-out code blocks | HIGH |
| Stale/outdated comments | HIGH |
| Obvious WHAT comments | MEDIUM |
| Density deviation >5% | MEDIUM |
| Minor density deviation | LOW |
MANDATORY READ: Load shared/references/audit_worker_core_contract.md.
file:line for programmatic navigationMANDATORY READ: Load shared/references/audit_worker_core_contract.md.
{output_dir}/613-code-comments.md (atomic single Write call)Version: 4.0.0 Last Updated: 2026-03-01
Weekly Installs
100
Repository
GitHub Stars
253
First Seen
Mar 1, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
cursor93
claude-code91
codex91
opencode90
github-copilot90
amp90
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
44,900 周安装
Go依赖注入最佳实践:手动注入与库选择指南,提升代码可测试性与松耦合设计
685 周安装
Rust 所有权与生命周期指南:解决 E0382/E0597 等常见错误,优化内存管理设计
653 周安装
Chrome Bridge 自动化:Midscene 真实浏览器自动化工具,保留登录状态
657 周安装
Rust错误处理最佳实践指南:Result、Option、panic!与thiserror/anyhow使用技巧
663 周安装
iOS 17+ TipKit 框架使用指南:为 SwiftUI 应用添加功能提示与引导
676 周安装
Rust并发编程指南:Send/Sync、线程与异步编程最佳实践
671 周安装