본문으로 건너뛰기
cccskills
무료GitHub에 공개

doc-freshness

Detect documentation drift, stale references, and cross-document inconsistencies in any project. Scans for code-doc drift (API/function changes not reflected in docs), cross-doc drift (conflicting information across documents), and stale references (broken links, deleted files, outdated versions). Use when checking "doc freshness", "stale docs", "documentation drift", "broken links", "outdated documentation", "doc accuracy", "docs out of date", "doc audit", "doc health", or "verify documentation".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구GitHub
설치 방법 보기

포함된 파일(10)

  • SKILL.md7.2 KB
  • EXAMPLES.md10.1 KB
  • scripts/claude_md_checker.py17.4 KB
  • scripts/frontmatter_onboard.py7.8 KB
  • scripts/link_checker.py6.0 KB
  • scripts/scan_freshness.py12.2 KB
  • scripts/shared.py17.6 KB
  • scripts/version_checker.py13.6 KB
  • TROUBLESHOOTING.md3.5 KB
  • WORKFLOW.md13.4 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Documentation Freshness

Detect documentation drift across any project. Reports findings without auto-fixing.

Context Discovery

Priority 1: Configuration

Read .arkhe.yaml from project root. Extract doc-freshness: section for custom patterns, exclusions, and doc-code mappings. Extract doc-health: section for output_dir (used by report mode, default: docs/health).

Priority 2: Project Identity

Read CLAUDE.md and README.md to understand project structure, tech stack, and conventions.

Priority 3: Documentation Inventory

Run the scanner to discover all documentation files and perform mechanical checks:

python3 ${CLAUDE_SKILL_DIR}/scripts/scan_freshness.py <project-root>

Use --links-only for fast mode (links and file refs only, no git staleness).

Arguments

Parse from $ARGUMENTS:

ModeDescription
scanFull freshness analysis (all three drift types)
check <path>Focused analysis on one file or directory
linksBroken links and stale references only (script-driven, fast)
drift <path>Code-doc drift for a specific doc or doc-code pair
cross-docCross-document consistency check
reportPersist structured freshness report to {output_dir}/
claude-mdCLAUDE.md structural drift (plugin counts, components, versions)
onboardSuggest/apply tracking frontmatter to docs that need it
setupScaffold GitHub Actions workflow for docs-health-action CI
(none)Full scan (same as scan)

Scanning Tiers

Documents are automatically classified into scanning tiers:

TierDetectionChecks Performed
BasicAll .md filesBroken links, git age classification, backtick-path verification
DeepYAML frontmatter with last_updated or versionBasic + version drift, last_updated accuracy, cross-doc consistency

Tier is auto-detected per file. No configuration needed. The scanner JSON output includes "tier" per doc and "tier_counts" in the summary.

Mode Execution

scan (default)

  1. Run scan_freshness.py for mechanical checks (links, versions, git staleness)
  2. Present script findings (broken links table, version mismatches, staleness scores)
  3. For stale/very_stale docs: use Grep/Read to check code-doc alignment on key references
  4. For docs covering the same topic: cross-check for consistency
  5. Produce the freshness report

links

  1. Run scan_freshness.py --links-only
  2. Present broken links table directly from JSON output
  3. Group findings by severity: broken links first, then file_ref warnings

check <path>

  1. If path is a file, run link checker and version checker on that file only
  2. If path is a directory, scan all .md files within it
  3. Use Grep to check file path references and function names against the codebase
  4. Report findings for the targeted scope

drift <path>

  1. Read the specified doc
  2. Extract: function/method names, API endpoints, file paths, config keys, class names
  3. Grep/Read the corresponding code to verify each reference still exists and is accurate
  4. Report mismatches with evidence (doc line vs code location)

cross-doc

  1. Run scan_freshness.py to get doc inventory with headings
  2. Identify docs with overlapping topics (shared heading keywords)
  3. Read overlapping docs and compare factual claims
  4. Flag contradictions (e.g., different version requirements, conflicting setup steps)

report

Same as scan but write output to {output_dir}/{YYYY-MM-DD}-freshness.md.

claude-md

  1. Run claude_md_checker.py to compare CLAUDE.md claims against filesystem
  2. Present findings by category: plugin counts, component inventories, versions, file paths
  3. Highlight undocumented components (CRITICAL) and version mismatches (WARNING)

onboard

  1. Run frontmatter_onboard.py to find docs without tracking frontmatter
  2. Uses whitelist of known-maintained docs (READMEs, custom docs)
  3. Generates minimal title + last_updated frontmatter from git history
  4. On user approval, apply with --apply flag

setup

Scaffold a GitHub Actions workflow that runs joaquimscosta/docs-health-action@v1 on every PR.

  1. Check if .github/workflows/ exists — create if needed
  2. Check if a docs-health workflow already exists — warn and offer to overwrite/skip
  3. Ask user which checks to enable (use AskUserQuestion with multiSelect):
    • links (broken internal links and anchors)
    • versions (version references vs ground truth files)
    • staleness (git-based documentation age)
    • claude-md (CLAUDE.md structural drift — Claude Code projects only)
    • cross-doc (cross-document version conflicts)
    • frontmatter (missing tracking frontmatter)
  4. Ask user for failure policy: errors (default), warnings, or none (advisory)
  5. Generate .github/workflows/docs-health.yml from template
  6. Show the generated file and confirm before writing

See WORKFLOW.md § setup for the full template.

Automation Integration

SessionStart Hook: Critical-doc fast scan on session start (5-second timeout)

/doc:health --critical-only
# Scans: README.md, CLAUDE.md only (root-level critical docs)

PostToolUse Hook (after /commit): Post-commit doc-impact checks

/doc:health drift
# Checks if modified code files have corresponding documentation

User-Driven (/loop): Periodic freshness monitoring

/loop 1h /doc:health links        # Hourly broken-link checks
/loop 4h /doc:health scan         # Full scans every 4 hours

Severity Levels

SeverityMeaning
CRITICALBroken link to deleted file, doc references removed API/function
WARNINGVersion mismatch, function signature changed, doc stale >30 days
INFOMinor inconsistency, doc aging (7-30 days), cosmetic drift

Output Rules

  • Evidence-based: every finding backed by file path and line number
  • Tabular: summary table first, detailed findings below
  • Actionable: each finding includes what needs updating
  • Detection only: NEVER auto-fix documentation

Lane Discipline

  • Do NOT update or rewrite documentation — detection only
  • Do NOT produce roadmap status, architecture analysis, or user stories
  • Do NOT write source code

References

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

adr

무료

Create, review, and manage Architecture Decision Records (ADRs) with auto-numbering, template detection, quality review, and index maintenance. Use when user mentions "ADR", "architecture decision", "document this decision", "create ADR", "review ADR", editing ADR files (docs/adr/, doc/adr/, .adr/), or discussing architectural choices and tradeoffs.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

joaquimscosta/arkhe-claude-plugins212026년 10월 16일 업데이트

architect

무료

Analyze system architecture, module structure, API contracts, data models, and code patterns. Use when designing systems, reviewing module boundaries, evaluating API designs, analyzing data models, checking pattern conformance, tracing decisions, or reviewing frontend architecture. Triggers: "architecture", "module design", "API design", "data model", "boundaries", "patterns", "decisions", "frontend architecture".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

joaquimscosta/arkhe-claude-plugins212026년 10월 16일 업데이트

Converts natural-language descriptions or UI spec files into optimized Google Stitch prompts. Use when creating, refining, or validating design directives for Google Stitch. Use when user says "create a Stitch prompt", "optimize this for Stitch", "convert this spec to a Stitch prompt", "write a UI prompt", or mentions Google Stitch prompt authoring. Follows Stitch best practices with short, directive prompts focused on screens, structure, and visual hierarchy.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

joaquimscosta/arkhe-claude-plugins212026년 10월 16일 업데이트

Zero-dependency live-preview server providing an agent↔browser bidirectional companion. Watches a content directory, wraps HTML fragments in a frame template, broadcasts live-reload over WebSocket, and captures browser-side click events to a JSONL file. Use when an agent needs to show HTML to the user in a browser and react to clicks — mockups, design exploration, gallery browsing, multi-select choices, prototype iteration. Triggered by "live preview", "browser companion", "preview server", "browser mockup", "show in browser", "arkhe-preview", or any skill that wants to write HTML fragments and have the user see them reload in real time.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

joaquimscosta/arkhe-claude-plugins212026년 10월 16일 업데이트

Deletes merged git branches (local and remote) and flags stale unmerged branches for manual review. Use when user mentions "cleanup branches", "delete merged branches", "prune old branches", "remove stale branches", "branch cleanup", or runs /cleanup-branches command.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

joaquimscosta/arkhe-claude-plugins212026년 10월 16일 업데이트

Interactive Claude Code environment setup wizard. Detects existing configuration, guides through best-practice setup for Global CLAUDE.md, project scaffolding, MCP servers, hooks, custom agents, keybindings, and settings. Use when user runs /devtools:code-env-setup, mentions "setup claude code", "configure claude", "claude code setup", "environment setup", or "initialize claude code".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

joaquimscosta/arkhe-claude-plugins212026년 10월 16일 업데이트

joaquimscosta의 스킬 모두 보기

이 스킬의 문제 신고