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

generate-verified-docs

Generates audit-grade, hallucination-free documentation from codebase features with full traceability. Use when documenting features, creating technical specs, or generating verified documentation with code references.

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

설치 방법 보기

포함된 파일(1)

  • SKILL.md6.9 KB

SKILL.md(원문)

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

Verified Documentation Generator

Generate audit-grade documentation from a codebase feature with full traceability and zero hallucination.

Arguments

$ARGUMENTS should be:

  • Feature name and description (e.g., "User Registration", "Bookmark System", "Reading Progress")

Prerequisites

  • Clear feature name and description from user
  • Access to the codebase root directory

Hard Rules

  • ❌ No assumptions or inferred behavior
  • ❌ No undocumented states or transitions
  • ✅ Every claim must link to file:line
  • ✅ Unknowns must be explicitly reported
  • ✅ Halt if verification fails

Stage 1: Scope Resolution

Goal: Define feature boundaries and reject ambiguous scopes.

  1. Parse the feature description to identify expected entry points (API routes, UI components, CLI commands)
  2. Search codebase for matching routes, exported functions/classes, and test files
  3. Validate at least one concrete code location exists

Gate:

  • If no code locations found → HALT with failure report
  • If scope is ambiguous → Ask user to narrow scope
  • If confirmed → Proceed with entry_point_candidates list

Output: scope_definition, entry_point_candidates, scope_confidence


Stage 2: Codebase Discovery

Goal: Map all code artifacts related to the feature.

  1. Verify each entry point exists and classify as: API | UI | JOB | EVENT | CLI
  2. Trace dependencies (imports, injected dependencies, runtime-resolved modules)
  3. Build dependency graph (DAG)
  4. Classify artifacts: Controllers, Services, Repositories, Models, Utils, External
  5. Extract data models with types, relationships, and validation rules

Gate:

  • Every entry point must be verifiable (file_exists, line_exists, callable)
  • If no verifiable entry points → HALT

Output: entry_points, dependency_graph, artifacts_by_type, data_models, external_integrations, discovery_gaps


Stage 3: Execution Flow Tracing

Goal: Trace complete execution paths from entry to exit.

  1. Synchronous paths: Follow function call chains, record decision branches, track variable transformations
  2. Async boundaries: Identify Promise/async-await, event emitters, message queues, webhooks
  3. Side effects: Catalog DATABASE_WRITE, DATABASE_READ, EXTERNAL_CALL, FILE_SYSTEM, CACHE_OP, EVENT_EMIT, LOGGING
  4. Flow enumeration: Build all paths, tag as HAPPY_PATH | ERROR_PATH | EDGE_CASE

Gate:

  • Every flow step must have a code reference
  • If coverage below threshold → Ask user to accept partial or HALT

Output: execution_flows, async_boundaries, side_effects, flow_coverage, untraced_branches


Stage 4: State & Transition Extraction

Goal: Extract explicit state machines; reject inferred states.

  1. Search for status/state enums, FSM patterns, status columns in schemas
  2. Map transitions: STATE_A --[condition]--> STATE_B @ file:line
  3. Verify each state value exists in code (enum, constant, or literal)
  4. Identify orphan states (no inbound) and terminal states (no outbound)

Gate:

  • Every state must have a code reference
  • Every transition must link verified states
  • If undocumented states found → HALT with failure report

Output: states, transitions, state_machine, orphan_states, terminal_states


Stage 5: Failure & Edge Case Analysis

Goal: Identify error handling coverage and missing failure modes.

  1. Locate try/catch blocks, error callbacks, error boundaries, middleware handlers
  2. Trace exception propagation paths
  3. Detect edge cases: NULL_INPUT, EMPTY_ARRAY, BOUNDARY_VALUES, PERMISSION, TIMEOUT, CONFLICT
  4. Score risk: LOW | MEDIUM | HIGH | CRITICAL

No hard gate – outputs are informational.

Output: handled_failures, unhandled_failures, silent_failures, edge_cases, risk_areas


Stage 6: Diagram Generation

Goal: Produce diagrams strictly matching verified flows.

  1. Generate State Diagram (Mermaid stateDiagram-v2) from state_machine
  2. Generate Sequence Diagrams (Mermaid sequenceDiagram) from execution_flows
  3. Generate Dependency Diagram (Mermaid flowchart) from dependency_graph
  4. Cross-check every diagram element against source stage outputs

Gate:

  • Remove any unverified elements
  • Log warnings for removed elements

Output: state_diagram, sequence_diagrams, dependency_diagram, diagram_verification_log


Stage 7: Documentation Assembly

Goal: Produce structured documentation.

Generate markdown with these sections:

# [Feature Name] Documentation

## Overview

## Entry Points

## Data Models

## Execution Flows

## State Machine

## Error Handling

## Known Gaps & Limitations

## Appendix: Code References
  1. Every claim gets [ref: file:line] annotation
  2. Build clickable traceability index
  3. Generate two views: Technical (full detail) and Non-Technical (simplified)

Output: documentation_technical, documentation_summary, traceability_index, confidence_report


Stage 8: Verification & Validation

Goal: Cross-check all claims; fail if verification cannot pass.

  1. Extract all factual claims from documentation
  2. Verify each claim against traceability_index:
    • File exists
    • Line content matches claim basis
  3. Check diagram-flow consistency
  4. Verify all gaps appear in Known Limitations
  5. Hallucination detection: Flag claims without code references or contradicting code

Gate:

  • If hallucination detected → HALT immediately
  • If too many unverifiable claims → HALT
  • If passed → Output final documentation

Output: verification_passed, verified_claims, failed_claims, hallucination_report, final_documentation or failure_report


Failure Behavior

When any stage encounters a blocking failure:

  1. STOP execution immediately
  2. PRESERVE all partial outputs
  3. Generate failure report:
    {
      "stage_failed": "<stage_name>",
      "failure_type": "<failure_enum>",
      "failure_reason": "<explanation>",
      "partial_outputs": { ... },
      "recovery_suggestions": [...]
    }
    
  4. AWAIT user intervention

Example Usage

User: Generate documentation for the "User Registration" feature

Stage 1: Found POST /auth/register, /signup page
Stage 2: Traced AuthController → AuthService → UserRepository, EmailService
Stage 3: Mapped registration flow with email verification async boundary
Stage 4: Extracted UserStatus enum { PENDING, ACTIVE, SUSPENDED }
Stage 5: Identified missing timeout handling on EmailService
Stage 6: Generated state diagram and sequence diagram
Stage 7: Assembled full technical documentation
Stage 8: Verified 24/24 claims, no hallucinations → SUCCESS

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

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

quran/quran.com-frontend-next1.9천2026년 4월 28일 업데이트

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

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

quran/quran.com-frontend-next1.9천2026년 4월 28일 업데이트

pdf

무료

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

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

quran/quran.com-frontend-next1.9천2026년 4월 28일 업데이트

review

무료

Reviews PR(s) using comprehensive review guidelines including security, correctness, clean code, TypeScript, React patterns, i18n/RTL, performance, and accessibility. Use when reviewing pull requests or code changes.

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

quran/quran.com-frontend-next1.9천2026년 4월 28일 업데이트

seo-audit

무료

When the user wants to audit, review, or diagnose SEO issues on their site. Also use when the user mentions "SEO audit," "technical SEO," "why am I not ranking," "SEO issues," "on-page SEO," "meta tags review," or "SEO health check." For building pages at scale to target keywords, see programmatic-seo. For adding structured data, see schema-markup.

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

quran/quran.com-frontend-next1.9천2026년 4월 28일 업데이트

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

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

quran/quran.com-frontend-next1.9천2026년 4월 28일 업데이트

quran의 스킬 모두 보기

이 스킬의 문제 신고