inceptyon-labs/tenet-skills/tenet-docs

Claude Code and agent skill by inceptyon-labs/tenet-skills

Trust tier 2
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Audits README/API docs, ADRs, changelog, documentation coverage, and freshness.

Install

npx vskill@latest install inceptyon-labs/tenet-skills/tenet-docs

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as inceptyon-labs/tenet-skills/tenet-docs.

Tenet Docs — Documentation Quality Audit

Measures the presence, completeness, and freshness of project documentation: README sections, inline doc coverage on public APIs, architectural decision records, and changelogs.

Purpose

Documentation is the load-bearing surface between the code and every future contributor. This skill audits documentation from four angles:

  1. README completeness — Does the project's front door explain what it is, how to set it up, and how to contribute?
  2. Inline doc coverage — Are exported/public symbols annotated with JSDoc, docstrings, or equivalent?
  3. ADR/decision log presence — For non-trivial projects, are architectural decisions recorded?
  4. Changelog presence — Is there a changelog or equivalent release history?

Calibration — read first

Follow shared/scan-discipline.md (complete every step, enumerate rather than sample, and §2a: report only issues that actually exist), shared/verification.md (every finding is confirmed against the code before it ships; unconfirmed candidates are dropped, not demoted), and shared/severity.md (severity is confirmed impact, never a hedge for doubt).

A finding must exist in this codebase on a path that can run. Do not report hypotheticals, dead code, style preferences, or anything an upstream check already prevents. Zero findings for a step is the normal result on healthy code; do not fill a step to show you looked. Do not overthink it: read the code and its context, decide, move on.

Language Support Matrix

yaml
support:
native: [typescript, javascript, python]
heuristic: [go, rust, java, kotlin, ruby, php, swift, csharp, cpp, c]
skip: [yaml, json, css, sql, shell, dockerfile, markdown]
  • Native (TS/JS): JSDoc detection via /** ... */ comments directly preceding export statements.
  • Native (Python): Docstring detection via triple-quoted strings immediately inside def/class bodies.
  • Heuristic (Go, Rust, Java, etc.): Comment blocks preceding public/exported symbols detected via regex patterns (//, ///, /* ... */, /** ... */).
  • Skip: Non-code files are not scanned for inline docs (but markdown files are checked as documentation artifacts).

Toolchain Inputs

FileSource ToolUsage
.healthcheck/toolchain/markdownlint.jsonmarkdownlintLint violations in markdown files (broken links, heading style, etc.)
.healthcheck/toolchain/language-census.jsonlanguage censusLOC counts, file lists, primary language

Both are optional. If markdownlint.json is absent, skip markdown lint checks. If language-census.json is absent, derive file lists via git ls-files.

Procedure

Step 0: Read Configuration and Toolchain
bash
# Read config overrides
cat .healthcheck.toml 2>/dev/null
# Read toolchain outputs
cat .healthcheck/toolchain/markdownlint.json 2>/dev/null
cat .healthcheck/toolchain/language-census.json 2>/dev/null

If .healthcheck.toml contains a [docs] section, apply overrides:

  • readme_required_sections — override the default section list
  • inline_doc_threshold — minimum percentage of documented public APIs (default: 80)
  • adr_threshold — minimum source file count before ADR is expected (default: 10)
  • changelog_required — boolean, default true
Step 1: README Presence and Completeness

1a. Check README exists:

Search for README.md, README.rst, README.txt, or README (case-insensitive) in the project root.

  • Missing README: emit a critical finding.

1b. Parse README for expected sections:

The default expected sections are:

SectionMatch PatternSeverity if Missing
Overview / Introduction# (H1) or first paragraph >50 charsmajor
Setup / Installation`/(?:setupinstallgetting.startedquick.start)/i`major
Usage`/(?:usagehow.to.useexamples?quick.start)/i`major
Deployment`/(?:deployshipreleasepublishci.?cd)/i`minor
Contributing`/(?:contributdevelophack)/i`minor

Scan H2 (## ) and H3 (### ) headings in the README. For each expected section, check if at least one heading matches the pattern.

1c. README freshness:

Check the last-modified date of the README:

bash
git log -1 --format="%aI" -- README.md

If the README has not been modified in >180 days and the project has commits in the last 30 days, emit an info finding about stale documentation.

1d. Consume markdownlint findings:

If .healthcheck/toolchain/markdownlint.json exists, parse findings that apply to the README file. Map markdownlint rule severities:

  • MD001 (heading increment) → minor
  • MD009 (trailing spaces) → info
  • MD012 (multiple blank lines) → info
  • MD013 (line length) → info
  • MD025 (multiple H1s) → minor
  • MD034 (bare URLs) → info
  • MD040 (fenced code without language) → minor
  • All others → info

1e. Check for a security policy:

Look for a security policy that tells users how to report vulnerabilities privately:

bash
ls SECURITY.md .github/SECURITY.md docs/SECURITY.md SECURITY.rst SECURITY.txt 2>/dev/null

GitHub recognizes SECURITY.md in the project root, .github/, or docs/. If none is found:

  • Public / published projects (has a LICENSE, a git remote, or publishes packages): minor — "No SECURITY.md; the vulnerability reporting process is undocumented"
  • Private / internal projects: info
Step 2: Inline Documentation Coverage

2a. Identify public API surface:

Use the language census to determine which files to scan. For each supported language:

TypeScript / JavaScript (native):

bash
# Find exported symbols without preceding JSDoc
grep -n "^export " src/**/*.{ts,tsx,js,jsx} 2>/dev/null

For each export line (including export default, export function, export class, export const, export interface, export type, export enum), check the preceding lines (up to 5 lines above) for a /** ... */ block.

A symbol is documented if a non-empty /** ... */ comment exists within 5 lines above the export. It is undocumented if no such block exists or the block is empty.

Python (native):

bash
# Find public functions/classes without docstrings
grep -n "^def \|^class \|^async def " **/*.py 2>/dev/null

For each def/class/async def at module level (not indented, or indented once for class methods), check if the next non-blank line is a triple-quoted string (""" or ''').

Skip symbols starting with _ (private by convention).

Go (heuristic):

bash
# Exported symbols start with uppercase
grep -n "^func [A-Z]\|^type [A-Z]\|^var [A-Z]\|^const [A-Z]" **/*.go 2>/dev/null

Check if the line immediately preceding the symbol starts with //.

Java / Kotlin (heuristic):

bash
grep -n "public \(class\|interface\|enum\|.*(\)" **/*.java **/*.kt 2>/dev/null

Check for /** ... */ Javadoc preceding the declaration.

Other heuristic languages: Apply similar patterns — look for public/exported declarations and check for comment blocks immediately above.

2b. Calculate coverage:

coverage_pct = (documented_symbols / total_public_symbols) * 100

Emit findings based on coverage:

  • Coverage < 30%: major — "Public API is largely undocumented ({pct}% coverage)"
  • Coverage 30-79%: minor — "Inline doc coverage is below threshold ({pct}% vs {threshold}%)"
  • Coverage >= 80%: no finding (or info if >95% as positive reinforcement)

2c. Emit per-file findings for egregious gaps:

If a file has >5 undocumented public symbols, emit a minor finding for that specific file listing the undocumented symbols.

Step 3: ADR / Decision Log Presence

3a. Count source files:

Using the language census, count total source files (excluding test files, config files, and generated files).

3b. Check for ADR directory:

If source file count exceeds the adr_threshold (default: 10):

bash
# Look for ADR-like directories
ls -d docs/adr/ docs/decisions/ docs/architecture/ adr/ ADR/ decisions/ 2>/dev/null

Also check for:

  • ARCHITECTURE.md in the root
  • docs/architecture.md
  • Any file matching **/adr-*.md or **/ADR-*.md

If no ADR directory or architecture documentation is found:

  • Projects with >50 source files: major — architectural decisions should be recorded
  • Projects with 10-50 source files: minor — consider adding an ADR directory

If an ADR directory exists but contains 0 files: minor — "ADR directory exists but is empty"

Step 4: Changelog Presence

4a. Check for changelog:

bash
ls CHANGELOG.md CHANGELOG.rst CHANGELOG.txt CHANGES.md HISTORY.md RELEASES.md 2>/dev/null

Also check package.json for a version field as evidence of versioning intent. If no changelog is found: versioned projects get minor, non-versioned get info.

4b. Changelog freshness:

If a changelog exists, check its last modification:

bash
git log -1 --format="%aI" -- CHANGELOG.md

If the changelog has not been updated in >90 days but there have been commits: info — "Changelog may be stale"

Step 5: Score Calculation

Apply the standard scoring formula:

score = 100 - (5 * critical_count) - (2 * major_count) - (0.5 * minor_count)
score = max(0, min(100, int(score + 0.5))) # Arithmetic rounding, not banker's rounding

Info findings do NOT affect the score.

Step 6: Write Report

Write the dimension report to .healthcheck/reports/docs.json:

json
{
"key": "docs",
"score": 78,
"weight": 0.8,
"skill_version": "1.0.0",
"applicable": true,
"notes": "README present but missing deployment and contributing sections. Inline doc coverage at 62% (below 80% threshold). No ADR directory found (34 source files). Changelog present and current.",
"metrics": {
"readme_present": true,
"readme_sections_found": ["overview", "setup", "usage"],
"readme_sections_missing": ["deployment", "contributing"],
"security_policy_present": false,
"inline_doc_coverage_pct": 62,
"total_public_symbols": 84,
"documented_public_symbols": 52,
"adr_present": false,
"source_file_count": 34,
"changelog_present": true,
"markdownlint_findings": 3
}
}

Output

  • .healthcheck/reports/docs.json — dimension report using the dimension fields and finding schema in shared/schema.json

Constraints

  • Respect .gitignore: Only scan files tracked by git (git ls-files)
  • Skip generated files: Exclude files in node_modules/, dist/, build/, .next/, __pycache__/, vendor/, and any directory matching common generation patterns
  • Skip test files: Do not count test files (*.test.*, *.spec.*, test_*, *_test.*) when measuring inline doc coverage — tests are their own documentation
  • No false positives on re-exports: An export { foo } from './bar' re-export does not need its own JSDoc — the original declaration should be documented
  • Confidence tagging: Tag all findings with the appropriate confidence tier from the language support matrix
  • Scoring math is pure: No LLM judgment in the arithmetic. The score is a deterministic function of finding counts.
  • All findings must include a `fix_prompt` following the template in shared/fix_prompt_template.md

fix_prompt Examples

Example 0: Missing Security Policy

Finding: Public project has no SECURITY.md (minor)

# Fix: Add a SECURITY.md so vulnerabilities can be reported privately
## Context
This is a public repository with no security policy. Researchers who find a
vulnerability have no documented private channel and may disclose it publicly.
## Location
- File: SECURITY.md (to create — root or .github/)
- Line: N/A
- Dimension: docs / minor
## Current behavior
No SECURITY.md exists in the root, .github/, or docs/.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/inceptyon-labs/tenet-skills/tenet-docs/badge)](https://verified-skill.com/skills/inceptyon-labs/tenet-skills/tenet-docs)

Something wrong with this skill or its page? Tell us.