<< All versions
Skill v1.0.1
currentAutomated scan100/100andrewbrown-usda/aigb-skills-usda/doc-consistency
+4 new
──Details
PublishedNovember 5, 2026 at 09:22 PM
Content Hashsha256:be3cb66b6cc1bb65...
Git SHA1d41a0fd751b
Bump Typepatch
──Files
Files (1 file, 2.2 KB)
SKILL.md2.2 KBactive
SKILL.md · 66 lines · 2.2 KB
name: doc-consistency description: Normalizes documentation and examples for consistency in style, format, and accuracy. Ensures code matches existing patterns and documentation. Use when reviewing docs, examples, or writing new code that should follow established patterns. license: MIT metadata: group: communication-documentation loadouts: documentation,software-delivery,documentation-quality,skill-authoring author: Andrew G. Brown (https://github.com/brownag) version: 1.0 source_repo: aigb-skills source_path: skills/doc-consistency/SKILL.md
Doc Consistency
Instructions
When Cleaning Existing Code/Docs
- Run
git diff main...HEAD(or ask which files to inspect). - Scan for these patterns:
- Inconsistent docstring format (some have
@param, some don't; some have@returns, some use prose). - Code examples that don't match the current API (outdated signatures, removed params, wrong imports).
- Inconsistent example style (some use real values, some use placeholders like
xxx; some include types, some don't). - README or docs sections that repeat information already obvious from code or other sections.
- Mixed heading styles, list styles, or code block language tags across related docs.
- Examples with hardcoded values that should be illustrative.
- Normalize to the project's existing conventions. When no convention exists, pick one style and apply it consistently.
- Preserve all substantive documentation. When in doubt, leave it.
- Provide a 1-3 sentence summary of what was normalized.
When Writing New Code
- Scan
docs/examples/orblueprints/for structurally identical modules before writing. Match their structure, error handling patterns, and naming conventions. - If a function signature or config changes, update the corresponding docs in the same turn.
- Never invent patterns not shown in reference files -- ask the user for a structural rule instead.
Example
Before:
`markdown
## UsageInstall the package:
npm i my-lib
Then use it:
const x = require('my-lib'); const result = x.doThing('abc123xyz', 42, true);
After:
`markdown
## Usage
npm install my-lib
import { doThing } from 'my-lib'; doThing(input, options);