All skills
boshu2 avatar
by Boboshu2/agentops446 stars
42

Write grounded docs, READMEs, repo instructions or continuity handoffs. Use when: these documents are requested; no reports as a routine completion ritual.

Use this Skill: https://skilld.dev/gh/boshu2/agentops/doc

This session only. Nothing lands on disk.

referencesvalidation-rules.md

≈1.5k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Documentation Validation Rules

Coverage Metrics by Type

Type Key Metric Target How Measured
CODING Entity Coverage >= 90% Documented services / total services
CODING Signpost Accuracy 100% Referenced functions exist
INFORMATIONAL Frontmatter Valid >= 95% Required fields present
INFORMATIONAL Links Valid 100% All internal links resolve
OPS Values.yaml Coverage >= 80% Documented keys / total keys
OPS Golden Completeness 100% Required sections present

INFORMATIONAL Validation

No standalone validator script ships with this skill. Run the checks below manually — for doc-file presence coverage use the shipped skills/doc/scripts/audit-oss-docs.sh; for link/orphan/path checks write a short throwaway Python script in the target repo (not bash: bash loops are O(n*m) and time out on large repos, while Python processes 350+ files in seconds with cleaner regex extraction).

Checks Performed

  1. Broken Links - ALL internal .md links resolved
  2. Orphaned Docs - Files not referenced from any index
  3. Index Completeness - READMEs reference all subdirectories
  4. Hardcoded Paths - Absolute paths like /Users/, /home/

Output Format

CRITICAL: Broken Links (81)
   file.md:42 -> missing.md (not found)

MEDIUM: Orphaned Documents (13)
   path/to/orphan.md

LOW: Hardcoded Paths (2)
   file.md:156 -> /Users/...

SUMMARY: 96 issues (81 critical, 13 medium, 2 low)

CODING Validation

Required Sections (16)

From code-map-standard skill:

  1. Current Status (one-liner with date)
  2. Overview (2-3 sentences)
  3. State Machine (ASCII diagram if applicable)
  4. Inputs/Outputs (table)
  5. Data Flow (ASCII diagram)
  6. API Endpoints (table with curl examples)
  7. Code Signposts (NO line numbers)
  8. Configuration (table)
  9. Prometheus Metrics (table + PromQL examples)
  10. Error Handling (table)
  11. Unit Tests (table)
  12. Integration Tests (separate from unit)
  13. Example Usage (curl + SDK)
  14. Related Features (cross-links)
  15. Known Limitations
  16. Learnings (What Worked + What We'd Change)

Signpost Rules

  • NO line numbers - Functions/classes only
  • References must exist in source files
  • Use semantic names: authenticate(), UserService

OPS Validation

Required Sections

  1. Overview with Chart.yaml description
  2. Quick Start with install command
  3. Values Reference table
  4. Dependencies table
  5. Environment overrides (dev/staging/prod)
  6. Troubleshooting table

Values.yaml Coverage

Every key in values.yaml should have:

  • Description comment or doc reference
  • Type specification
  • Default value explanation

Coverage Report Format

===================================================================
              DOCUMENTATION COVERAGE REPORT
===================================================================
Repository: [REPO_NAME]
Type: [CODING|INFORMATIONAL|OPS]
Generated: [date]

SUMMARY
-------------------------------------------------------------------
Total Features: 25
Documented: 22 (88%)
Missing: 3
Orphaned: 1

MISSING DOCUMENTATION
-------------------------------------------------------------------
| Feature | Priority | Source Files |
|---------|----------|--------------|
| auth-service | P1 | services/auth/*.py |

ORPHANED DOCUMENTATION
-------------------------------------------------------------------
| Document | Last Updated | Action |
|----------|--------------|--------|
| legacy-api.md | 2023-06-15 | Remove |

===================================================================

Semantic Validation (CODING repos)

Structure vs Semantic: Structural validation checks formatting. Semantic validation checks if claims are TRUE.

Semantic Metrics

Check How Target
Status Accuracy Compare "Status: X" to deployment state 100%
Claim Verification Cross-ref with ground truth file 100%
Validation Freshness Status includes date < 30 days

Ground Truth Pattern

Establish ONE authoritative file per domain. Other docs MUST reference, not duplicate.

Domain Ground Truth Pattern
Agents docs/agents/catalog.md Reference via link
Images charts/*/IMAGE-LIST.md Reference via link
Config values.yaml Generate docs from source

Status Validation

Valid status formats:

## Current Status: ✅ RUNNING
Validated: 2026-01-04 against ocppoc cluster

## Current Status: ❌ FAILED
Status: Accepted=False (CRD exists but not running)
Validated: 2026-01-04 against ocppoc cluster

## Current Status: 📝 PLANNED
Not yet deployed - template only

Semantic Validation Commands

# Check status claims against cluster (manual)
oc get pods -n ai-platform | grep <service>
oc get agents.kagent.dev -n ai-platform

# Cross-reference with ground truth
diff <(grep "Status:" docs/code-map/services/*.md) <(cat docs/agents/catalog.md)

--verify-claims Flag

When running /doc coverage --verify-claims:

  1. Extract all "Status: X" claims from docs
  2. Query deployment state (oc get pods, oc get agents)
  3. Report mismatches as CRITICAL
  4. Flag stale validation dates (>30 days) as WARNING

Anti-Patterns

DON'T DO INSTEAD
Sample 20 files, declare "healthy" Scan ALL files
Say "healthy" with broken links Report exact issue counts
Skip validation for "organized" repos Validate regardless
Use bash loops on large repos Use Python validator
Claim "deployed" without verification Validate against cluster first
Duplicate ground truth data Reference authoritative file
Omit validation dates Include "Validated: DATE against SOURCE"

Source: SKILL.md on GitHub

No alerts5d5 checks · Risk SAFE
  • Gen Agent Trust Hub5d

    The 'doc' skill is a professional documentation tool for generating READMEs, API docs, and architecture reports. It includes internal auditing scripts and follows high-quality documentation standards, including trust-disclosure sections for users. No malicious patterns or security risks were identified.

  • Socket5d

    No alerts

  • Snyk5d

    Risk: LOW · No issues

  • Runlayer6mo

    5 files scanned · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 482dc04. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 6 days ago

README badge

README badge for boshu2/agentops/doc