Agent skill

Doc Code Review Report

by penwyp in penwyp/ClaudePreference

Review text input or documents against the local codebase and produce a structured review report with findings and refactor suggestions.

MITAuto-check passedDevelopment

Install Doc Code Review Report

skills CLI
$ npx skills add penwyp/ClaudePreference --skill doc-code-review-report -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install penwyp/ClaudePreference doc-code-review-report --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/penwyp/ClaudePreference.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/doc-code-review-report .claude/skills/doc-code-review-report && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
doc-code-review-report
GitHub stars
136
Token cost
~1.5k tokens
SKILL.md length
740 words
Files
3 (incl. references)
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Review text input or documents against the local codebase and produce a structured review report with findings and refactor suggestions.

  • Works in 5 steps: Read the user text and extract the key… → Find the owning module and real… → Trace request and response shapes across… → …
  • The user provides requirements
  • SKILL.md covers Overview, Workflow, Review Dimensions and Evidence Rules, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Doc Code Review Report is an agent skill from penwyp/ClaudePreference. Review text input or documents against the local codebase and produce a structured review report with findings and refactor suggestions. Use when the user provides requirements, design notes, API docs, Markdown analysis, PR text, or other written material and asks for a full review covering logic flaws, bugs, frontend-backend contract mismatches, TODOs, empty or fake implementations, missing behavior, or inconsistencies between the text and the code.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `agents/openai.yaml` and `references/report-template.md`).

It sits in Development, covering Technical documentation and Code review. The repository describes itself as: A comprehensive collection of development workflow commands for Claude Code. The licence is MIT.

When your agent uses it

  • The user provides requirements
  • Markdown analysis
  • Other written material and asks for a full review covering logic flaws
  • Frontend-backend contract mismatches

Example prompts

  • “/doc-code-review-report”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Read the user text and extract the key claims or promised behavior.
  2. Find the owning module and real execution path in code.
  3. Trace request and response shapes across boundaries.
  4. Search for unfinished markers and fake return paths in the relevant scope.
  5. Write findings first, then remediation guidance.

What it can do on your machine

Read from SKILL.md and the folder at commit a5eea54. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Doc Code Review Report loads about 1.5k tokens when it runs, and up to ~1.7k if it reads all its reference files. Until then it costs about 119 tokens; SKILL.md has 740 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~119
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from penwyp/ClaudePreference at commit a5eea54, republished under its MIT licence (© penwyp). 740 words, ~1,456 tokens.

Download SKILL.mdSave it as .claude/skills/doc-code-review-report/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
doc-code-review-report
description
Review text input or documents against the local codebase and produce a structured review report with findings and refactor suggestions. Use when the user provides requirements, design notes, API docs, Markdown analysis, PR text, or other written material and asks for a full review covering logic flaws, bugs, frontend-backend contract mismatches, TODOs, empty or fake implementations, missing behavior, or inconsistencies between the text and the code.

Doc Code Review Report

Overview

Review the user's text or document as a claim source, then verify those claims against the real codebase. Produce an evidence-backed review report, not a summary, and separate confirmed issues from inference.

Read references/report-template.md only when you need a ready-made report scaffold.

Workflow

  1. Normalize the review input.
  • Accept plain text, Markdown, notes, PR descriptions, API docs, or design documents.
  • Extract concrete claims: intended behavior, request flow, data fields, state changes, error handling, and unfinished work markers.
  • If the input is broad, narrow it to the specific flow, module, or interface under review.
  1. Locate the implementation before judging it.
  • Find the real entry points first: routes, pages, handlers, services, schedulers, workers, repositories, generated clients, OpenAPI specs, or protocol types.
  • Prefer concrete call paths over keyword-level guesses.
  • If the document describes a frontend flow, trace both UI state transitions and backend requests.
  1. Verify behavior claim by claim.
  • Check whether the implemented logic matches the stated requirement or document claim.
  • Distinguish:
    • documented but not implemented
    • implemented but undocumented
    • implemented differently from the document
    • behavior cannot be confirmed from current code
  1. Review for correctness and bug risk.
  • Look for broken conditions, missing branches, invalid assumptions, stale state, race windows, missing null or empty handling, unchecked errors, and inconsistent data transformations.
  • Treat "works on happy path only" as a real finding when failure branches are absent or contradicted by the input document.
  1. Cross-check frontend and backend contracts when the flow crosses layers.
  • Confirm method, path, path params, query params, body fields, enum values, response fields, and error shapes.
  • Compare frontend request builders, generated API clients, backend handlers, service DTOs, protocol definitions, and local OpenAPI or schema files.
  • Flag mismatches such as renamed fields, optional-vs-required drift, type drift, enum drift, and response shape assumptions unsupported by backend code.
  1. Inspect unfinished or fake code paths.
  • Search for TODO, FIXME, HACK, unimplemented, panic, placeholder branches, dummy return values, feature flags that permanently short-circuit logic, or test doubles leaking into production paths.
  • Also inspect "empty success" implementations: functions that return Ok, true, empty arrays, empty structs, or stub messages without real side effects.
  1. Write the review report as reviewer findings first.
  • Order findings by severity and user impact.
  • Include file references for each confirmed finding.
  • Separate evidence from inference and list open questions only when they block certainty.
  • End with concrete refactor or remediation suggestions instead of vague advice.

Review Dimensions

  • 逻辑问题: The code path does not satisfy the described business rule, state machine, or control flow.
  • BUG风险: The implementation can panic, silently fail, corrupt state, skip validation, or produce incorrect data.
  • 前后端接口不一致: The client and server disagree on contract shape, endpoint usage, or state assumptions.
  • TODO/空实现/假实现: The code advertises completion but contains placeholders, inert branches, or no-op behavior.
  • 文档与代码不一致: The provided text claims behavior that the code does not implement, or omits behavior the code already has.
Show full SKILL.md (259 more words)Show less

Evidence Rules

  • Prefer direct evidence from source code, generated clients, schema files, and route definitions.
  • Do not claim an interface mismatch unless both sides were checked.
  • Do not treat naming differences alone as bugs unless they affect data flow or runtime behavior.
  • When the document is ambiguous, say so and downgrade certainty instead of filling gaps with assumptions.
  • If a missing implementation may live outside the current repository, state that boundary explicitly.

Output Format

Use concise sections in this order:

  • Review scope
  • Overall assessment
  • Findings
  • Contract check
  • TODO / stub / fake implementation check
  • Refactor suggestions
  • Open questions

For Findings, use one flat bullet per issue and keep this shape:

  • Severity label: Critical, High, Medium, or Low
  • Problem statement
  • Why it is wrong or risky
  • Evidence with file references
  • Suggested fix direction

If no confirmed findings exist, say that explicitly and still report residual risk or unchecked areas.

Practical Search Pattern

  1. Read the user text and extract the key claims or promised behavior.
  2. Find the owning module and real execution path in code.
  3. Trace request and response shapes across boundaries.
  4. Search for unfinished markers and fake return paths in the relevant scope.
  5. Write findings first, then remediation guidance.

Guardrails

  • Do not stop at summarizing the document.
  • Do not trust comments or docs over executable code without saying so.
  • Do not list style nits unless the user explicitly asks for style review.
  • Do not dilute the report with low-signal observations when higher-risk issues exist.
  • Do not merge multiple independent problems into one bullet; keep each finding atomic.

© penwyp, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in skills/doc-code-review-report of penwyp/ClaudePreference.

  • SKILL.md
  • agents/openai.yaml
  • references/report-template.md

Open the folder on GitHubat commit a5eea54

Compare with similar skills

Doc Code Review Report next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Doc Code Review Report compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Doc Code Review Report this skillpenwyp/ClaudePreference136—~1.5kAutomated safety check: PassMIT
Change Verification Gatefengshao1227/ccg-workflow5.9k—~511Automated safety check: NotesMIT
Post Draft Reviewagent-substrate/substrate4.5k—~2.8kAutomated safety check: PassApache-2.0
Docs GuardamElnagdy/guard-skills1.3k—~2.1kAutomated safety check: PassMIT
Codex Proxy RS Development Guidezyycn/codex-proxy-rs750—~618Automated safety check: PassApache-2.0
Inline PR Commentshyperlane-xyz/hyperlane-explorer102—~1.1kAutomated safety check: PassCustom licence

Similar skills

  • Change Verification Gate

    fengshao1227/ccg-workflow

    Analyzes a code diff for documentation sync, test coverage and impact scope, warning when docs or tests lag behind a design-level change or a large edit.

    5.9k GitHub stars~511 tokensUpdated 23 days ago
    DevelopmentAuto-check: notes
  • Post Draft Review

    agent-substrate/substrate

    Posts pull request review findings as GitHub draft (pending) inline comments for a human to edit and submit, instead of publishing them straight to the PR author.

    4.5k GitHub stars~2.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Docs Guard

    amElnagdy/guard-skills

    Checks generated or edited documentation against the source code, flagging invented symbols, outdated samples and unverifiable claims before publishing.

    1.3k GitHub stars~2.1k tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • Routes development, troubleshooting, review and documentation tasks on the Codex Proxy RS repository to the right section of its docs, instead of loading the whole architecture or contributing guide.

    750 GitHub stars~618 tokensUpdated today
    DevelopmentAuto-check passed
  • Inline PR Comments

    hyperlane-xyz/hyperlane-explorer

    Post a single consolidated PR review with summary and inline comments.

    102 GitHub stars~1.1k tokensUpdated 9 days ago
    DevelopmentAuto-check passed
  • PR Inline Comments

    sesori-ai/sesori_apps_monorepo

    Fetch inline (code) review comments on a GitHub pull request, grouped into threads, with optional filtering by datetime.

    126 GitHub stars~2.3k tokensUpdated today
    DevelopmentAuto-check passed

More from penwyp/ClaudePreference

  • Local Project Runtime

    penwyp/ClaudePreference

    Diagnose and stabilize local project setup after clone or checkout.

    136 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check: notes
  • Image Converter

    penwyp/ClaudePreference

    Convert images between common formats on macOS, especially SVG/PNG/ICO/ICNS/JPEG/WebP/PDF, using installed local tools such as ImageMagick, rsvg-convert, sips, qlmanage, and iconutil.

    136 GitHub stars~955 tokensUpdated 4 mo ago
    Auto-check passed
  • Explain

    penwyp/ClaudePreference

    Analyze a code snippet, file path, symbol name, or the current conversation context against the local repository and explain what it does in the project.

    136 GitHub stars~1.2k tokensUpdated 4 mo ago
    Auto-check passed
  • Refactor Design Report

    penwyp/ClaudePreference

    Produce a professional, code-grounded refactor or implementation design report from identified technical problems, product gaps, review findings, architecture concerns, or frontend-backend contract…

    136 GitHub stars~1.4k tokensUpdated 4 mo ago
    Auto-check passed
  • Browser Flow Fallbacks

    penwyp/ClaudePreference

    Diagnose flaky browser automation flows (login, OAuth, signup, multi-step forms).

    136 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Develop Review Gate

    penwyp/ClaudePreference

    适用于这类请求:直接在当前 checkout 完成开发、固定做两轮自我 review/refactor、先把最终 review 结果给人类确认、确认后再继续改动、提交或进入下一步。用户可能会说:"先开发再自审两轮"、"先 review 两次再给我确认"、"不要开 worktree,直接改"、"先输出 review 结论不要继续"、"做完先停在 gate"。

    136 GitHub stars~846 tokensUpdated 4 mo ago
    Auto-check passed

Categories

Questions about Doc Code Review Report

What does Doc Code Review Report do?

Review text input or documents against the local codebase and produce a structured review report with findings and refactor suggestions. Doc Code Review Report is an agent skill from penwyp/ClaudePreference. Review text input or documents against the local codebase and produce a structured review report with findings and refactor suggestions.

When should I use Doc Code Review Report?

Doc Code Review Report fits situations like: the user provides requirements; markdown analysis; other written material and asks for a full review covering logic flaws; frontend-backend contract mismatches.

How do I install Doc Code Review Report in Claude Code?

Run `npx skills add penwyp/ClaudePreference --skill doc-code-review-report -a claude-code`. Or copy the skill folder (skills/doc-code-review-report in penwyp/ClaudePreference) into .claude/skills/doc-code-review-report in your project. Claude Code loads it when a task matches its description.

How do I install Doc Code Review Report in Codex?

Run `npx skills add penwyp/ClaudePreference --skill doc-code-review-report -a codex`. Or copy the skill folder (skills/doc-code-review-report in penwyp/ClaudePreference) into .agents/skills/doc-code-review-report in your project. Codex loads it when a task matches its description.

Can I use Doc Code Review Report in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add penwyp/ClaudePreference --skill doc-code-review-report -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/doc-code-review-report, .gemini/skills/doc-code-review-report, .github/skills/doc-code-review-report and .opencode/skills/doc-code-review-report in your project.

What does Doc Code Review Report need to run?

SKILL.md names no scripts, command-line tools or credentials: Doc Code Review Report is instructions for the agent only.

Does Doc Code Review Report access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Doc Code Review Report safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Doc Code Review Report use?

Doc Code Review Report is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Doc Code Review Report use?

About 1.5k tokens (SKILL.md is roughly 5.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 231 tokens, read only when the agent opens those files.

What are the alternatives to Doc Code Review Report?

Skills that share tags, products or a category with Doc Code Review Report: Change Verification Gate (fengshao1227/ccg-workflow, 5.9k stars), Post Draft Review (agent-substrate/substrate, 4.5k stars), Docs Guard (amElnagdy/guard-skills, 1.3k stars) and Codex Proxy RS Development Guide (zyycn/codex-proxy-rs, 750 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Doc Code Review Report?

penwyp (a GitHub user) maintains it in penwyp/ClaudePreference, which has 136 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on May 27, 2026.

Source: penwyp/ClaudePreference on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.