AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Doc Code Consistency Check

skill-chen3feng-agent-skills-doc-code-consistency-check · by chen3feng

Before "fixing" a README, verify the actual code behavior — don't trust either in isolation.

No reviews yet
0 installs
37 views
0.0% view→install

Install

$ agentstack add skill-chen3feng-agent-skills-doc-code-consistency-check

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access Used
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-chen3feng-agent-skills-doc-code-consistency-check)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Doc Code Consistency Check? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Doc–code consistency check

When to use

The user asks you to review or tidy up documentation (README, tutorials, help text) for a project whose code you can also read. Especially when they say "the docs look wrong" or "check whether the docs match the code".

Problem

Docs drift. Common observed drifts in real repos:

  • A CLI flag was renamed in code but the README still shows the old

one.

  • A function described as "returns X" actually returns X-or-None.
  • A "supported versions" list that nobody updated after a bump.
  • Chinese and English versions of the same doc disagreeing with each

other (and both possibly disagreeing with the code).

If you edit the docs to be self-consistent without re-reading the code, you often cement the wrong behavior.

Solution

Before changing a single word of a doc, do this loop:

  1. List the concrete claims the doc makes — flags, options,

return types, default values, error behavior, supported platforms.

  1. Grep the code for each claim. Cross-reference against tests

where possible.

  1. Categorize each discrepancy:
  • (a) Doc wrong, code right → update the doc (this is most

common).

  • (b) Code wrong, doc right → ask the user; do not silently

"fix" the doc.

  • (c) Both wrong → surface it; don't guess.
  1. For multilingual docs (README.md + README-zh.md), diff

them after step 3 so both stay in sync.

  1. Write a short changelog of what you changed in the doc and

why, based on the code evidence. This lets the user audit quickly.

Example

Symptom: README says _check_python accepts a version string like "3.11".

Bad fix: silently change the README to "3.11.0" because that's what "looks right".

Good fix:

grep -n "_check_python" -r src/
# read the function, note it calls shutil.which("python3") and parses
# sys.version_info, no version string is accepted

Then update the README to describe what the code actually does, and mention the mismatch in the PR description so the maintainer can decide if the code should change instead.

Pitfalls

  • Don't fix both files in the same PR without flagging it. Separate

"doc matches code" from "change behavior" into different commits / PRs.

  • Tests are a better source of truth than the code's docstring.
  • Translated docs often lag the primary one; when in doubt, treat the

language the maintainer writes most often as source-of-truth.

See also

  • [chinese-markdown-style](../chinese-markdown-style/SKILL.md)
  • [safe-markdown-auto-fix](../safe-markdown-auto-fix/SKILL.md)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.