Docstring Critic docstring-critic

Review a docstring-author patch in the Cognee pilot. Independently verify truthfulness and promotional tone, preserve supported positive framing, and write the claim ledger. Pass 2; corrects claims without expanding coverage.

Works in Claude, ChatGPT, Codex and more
Our test
8/10✓ Verified
tested Dec 6, 2026
GitHub stars
34k
topoteretes/cognee
Added by
0
members
Updated
Dec 6
commit 351fc32
Content
1 file
no scripts · 6 KB
License
Apache 2.0
free to use

What our test found

The skill gives a detailed, evidence-driven review process with clear scope limits and a useful ledger format, though it depends on access to the project repository and its workflow.

Request we tested it on“Review my docstring patch for `cognee/api/v1/graphs.py`. Verify each changed claim against the repository, preserve supported benefits, edit only the target docstrings, and write the claim ledger to `docstring_pilot_ledger.md`. Here are the patch and target file.”

Limits spotted

  • Requires the repository, target file, patch, and project guidance to perform its core task.
  • The strict prose rules may encourage mechanical edits if applied without judgment.
  • It specifies that the workflow owns path validation and diff checks, but does not describe how to invoke that workflow.
View on GitHub ↗
name: docstring-critic
description: >-
  Review a docstring-author patch in the Cognee pilot. Independently verify truthfulness
  and promotional tone, preserve supported positive framing, and write the claim ledger.
  Pass 2; corrects claims without expanding coverage.

Docstring critic

<!-- shared-rules:start -->

Shared rules

  • Edit only docstrings in the named target; the critic also writes the requested ledger. Leave code, imports, annotations, comments, other formatting, and tests unchanged. Stop if the prompt names no target.
  • The workflow validates the target path and owns Git operations and the final diff check. Do not create commits or branches or perform Git writes.
  • Use AGENTS.md for project rules and follow its links to relevant topic guides for context. Ground behavior and benefits in repository code or tests. Other docstrings are not evidence.
  • Published product docs in topoteretes/cognee-docs and at docs.cognee.ai are unavailable to these passes. Do not use unseen documentation as evidence.
Prose

Apply these rules to every sentence you write or change. Do not restyle untouched text.

  • Use the established word combinations of the topic. Do not invent compressed labels by joining words together.
  • In a compound of three or more nouns, find the main noun and express the relationships with "of", "for", "in" or a clause. Keep established technical terms intact.
  • Keep the subject next to its main verb, objects next to their verbs, and descriptions next to the words they describe. Move long qualifications and asides after the main clause or into a separate sentence.
  • Introduce object relative clauses with "that", "which" or "whom". Do not nest one relative clause inside another; state the inner one as a separate sentence.
  • Use established verbs. Do not turn a noun into a new verb; write an existing verb and its object.
  • Describe what systems, objects and concepts do. Replace intentions, feelings or bodily actions with the specific behavior or effect.
  • Do not drop connecting words or merge phrases just to save words. Keep the words that make grammatical relationships explicit.

<!-- shared-rules:end -->

1. Understand the task

Independently verify truthfulness and tone while preserving the strongest supported explanation of Cognee's usefulness and how its parts work together. Confidence backed by concrete behavior is desirable. The author owns coverage: correct claims about the same behavior when verified, but add no unrelated capabilities, examples or recommendations.

2. Inputs

The prompt supplies the author's patch, edited target, and ledger output path. Read the patch and target in fresh context, locating evidence in repository code and tests. Do not read the author's instructions or reasoning, including copies in other checkouts. An empty patch is valid and still requires a ledger.

3. Investigation

  • Verify introduced or strengthened factual claims, including neutral descriptions. Check defaults, setup, permissions, backend support and errors.
  • Trace integration claims through the actual call path: distinguish automatic behavior, required configuration or registration, and caller-provided hooks. Shared types or names alone do not prove integration. Code can prove reuse; speed comparisons need measurements.
  • Before cutting a plausible, useful claim, search its symbol and relevant callers again. If evidence remains unclear, remove the claim and flag it for human review.
  • Read the removed lines in the patch too. Accurate text the author deleted or reworded without making it more precise (a summary line, a default, a reason, an example, a per-item list, a caller obligation) is a degradation, even when every new claim holds.

4. Main work

  • Keep supported positive meaning, including what fits together and work already handled. Narrow an overbroad claim with its conditions; do not flatten a supported benefit into disconnected facts.
  • Correct a mistaken claim about the same behavior when independently verified, recording evidence in the ledger. Remove claims that remain unsupported; do not disguise uncertainty with "generally" or "typically".
  • Remove empty praise and unsupported comparisons or guarantees. You may shorten repeated or incidental mechanics while preserving benefits, conditions and caller obligations. Shorten by removing content, not the connecting words that keep sentences readable.
  • Restore degraded text: put back the original wording or structure, keeping any new, verified facts beside it. This is a correction of the author's patch, not new coverage.
  • Rewrite added or changed sentences that break the prose rules, keeping their meaning. Leave text the patch did not touch as it is.

5. Quality check

Check that edits preserve what callers can accomplish and rely on. Corrections must stay within the behavior under review; do not expand coverage or rewrite unrelated style. Prose fixes apply only to lines the patch added or changed. Base the ledger on final wording and confirm edits stay in scope. Finding nothing to change is valid.

6. Output

Leave verified docstrings in the target and write the ledger to the requested path, usually docstring_pilot_ledger.md. Use these Markdown sections:

  • Verdict: changed when a diff remains from the original; no-change-needed when the author proposed nothing or you reverted the entire patch.
  • Claim ledger — target path: a table with columns Claim introduced or strengthened, Where, and Evidence. Give every surviving benefit claim a row with the docstring's symbol and specific repository paths and symbols or tests supporting it.
  • Critic pass: record what you corrected, narrowed or removed and why. If nothing needed changing, explain the evidence supporting the positive framing. Also list any original text you restored, and why.
  • Reviewer should check: list useful claims whose evidence remained unclear, or missing connections needing author investigation. Omit this section when there are none.

A no-change result still needs the ledger, with an empty claim table and an explanation. Use ## headings above. Print the target, verdict, and number of claims corrected or cut; the workflow publishes the ledger itself.