Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计未展示

documentation-extraction文档提取

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

210

周安装

9

GitHub Stars

265

下载量

73
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:documentation-extraction(文档提取)
来源仓库:https://github.com/rsmdt/the-startup
仓库路径:skills/documentation-extraction
安装命令:
npx skills add https://github.com/rsmdt/the-startup --skill documentation-extraction
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/rsmdt/the-startup --skill documentation-extraction

简介

系统化提取项目文档中的有效信息,识别内容缺口与版本不一致问题。

  • 适用于快速理解陌生代码库、验证实现是否符合规范要求等场景。
  • 针对不同文档类型(如 README、配置说明)采用差异化阅读策略。
  • 需配合版本控制系统使用,确保获取的是当前最新的文档状态。
  • documentation-extraction 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Documentation Reading

Systematic approaches for extracting actionable information from project documentation efficiently while identifying gaps, contradictions, and outdated content.

When to Use

  • Onboarding to an unfamiliar codebase or service
  • Verifying implementation matches specification requirements
  • Understanding API contracts before integration
  • Parsing configuration files for deployment or debugging
  • Investigating discrepancies between docs and actual behavior
  • Preparing to extend or modify existing functionality

Reading Strategies by Document Type

README Files

READMEs are entry points. Extract these elements in order:

  1. Project Purpose: First paragraph usually states what the project does
  2. Quick Start: Look for "Getting Started", "Installation", or "Usage" sections
  3. Prerequisites: Dependencies, environment requirements, version constraints
  4. Architecture Hints: Links to other docs, directory structure descriptions
  5. Maintenance Status: Last updated date, badges, contribution activity

Reading Pattern:

1. Scan headings to build mental map (30 seconds)
2. Read purpose/description section fully
3. Locate quick start commands - test if they work
4. Note any "gotchas" or "known issues" sections
5. Identify links to deeper documentation

Red Flags:

  • No update in 12+ months on active project
  • Quick start commands that fail
  • References to deprecated dependencies
  • Missing license or security sections

API Documentation

Extract information in this priority:

  1. Authentication: How to authenticate (API keys, OAuth, tokens)
  2. Base URL / Endpoints: Entry points and environment variations
  3. Request Format: Headers, body structure, content types
  4. Response Format: Success/error shapes, status codes
  5. Rate Limits: Throttling, quotas, retry policies
  6. Versioning: How versions are specified, deprecation timeline

Reading Pattern:

1. Find authentication section first - nothing works without it
2. Locate a simple endpoint (health check, list operation)
3. Trace a complete request/response cycle
4. Note pagination patterns for list endpoints
5. Identify error response structure
6. Check for SDK/client library availability

Cross-Reference Checks:

  • Compare documented endpoints against actual network calls
  • Verify response schemas match real responses
  • Test documented error codes actually occur

Technical Specifications

Specifications define expected behavior. Extract:

  1. Requirements List: Numbered requirements, acceptance criteria
  2. Constraints: Technical limitations, compatibility requirements
  3. Data Models: Entity definitions, relationships, constraints
  4. Interfaces: API contracts, message formats, protocols
  5. Non-Functional Requirements: Performance, security, scalability targets

Reading Pattern:

1. Identify document type (PRD, SDD, RFC, ADR)
2. Locate requirements or acceptance criteria section
3. Extract testable assertions (MUST, SHALL, SHOULD language)
4. Map requirements to implementation locations
5. Note any open questions or TBD items

Verification Approach:

  • Create checklist from requirements
  • Mark each as: Implemented / Partial / Missing / Contradicted
  • Document gaps for follow-up

Configuration Files

Configuration files control runtime behavior. Approach by file type:

Package Manifests (package.json, Cargo.toml, pyproject.toml)

1. Project metadata: name, version, description
2. Entry points: main, bin, exports
3. Dependencies: runtime vs dev, version constraints
4. Scripts/commands: available automation
5. Engine requirements: Node version, Python version

Environment Configuration (.env, config.yaml, settings.json)

1. Required variables (those without defaults)
2. Environment-specific overrides
3. Secret references (never actual values)
4. Feature flags and toggles
5. Service URLs and connection strings

Build/Deploy Configuration (Dockerfile, CI configs, terraform)

1. Base images or providers
2. Build stages and dependencies
3. Environment variable injection points
4. Secret management approach
5. Output artifacts and destinations

Reading Pattern:

1. Identify configuration format and schema (if available)
2. List all configurable options
3. Determine which have defaults vs require values
4. Trace where configuration values are consumed in code
5. Note any environment-specific overrides

Architecture Decision Records (ADRs)

ADRs capture why decisions were made. Extract:

  1. Context: What problem prompted the decision
  2. Decision: What was chosen
  3. Consequences: Trade-offs accepted
  4. Status: Accepted, Deprecated, Superseded
  5. Related Decisions: Links to related ADRs

Reading Pattern:

1. Read context to understand the problem space
2. Note alternatives that were considered
3. Understand why current approach was chosen
4. Check if decision is still active or superseded
5. Consider if context has changed since decision

Identifying Documentation Issues

Outdated Documentation

Signals that documentation may be stale:

  • Version Mismatches: Docs reference v1.x, code is v2.x
  • Missing Features: Code has capabilities not in docs
  • Dead Links: References to moved or deleted resources
  • Deprecated Patterns: Docs use patterns code has abandoned
  • Date Indicators: "Last updated 2 years ago" on active project

Verification Steps:

1. Check doc commit history vs code commit history
2. Compare documented API against actual code signatures
3. Run documented examples - do they work?
4. Search code for terms used in docs - are they present?

Conflicting Documentation

When multiple docs disagree:

  1. Identify the conflict explicitly: Quote both sources
  2. Check timestamps: Newer usually wins
  3. Check authority: Official > community, code > docs
  4. Test behavior: What does the system actually do?
  5. Document the resolution: Note which source was correct

Resolution Priority:

1. Actual system behavior (empirical truth)
2. Most recent official documentation
3. Code comments and inline documentation
4. External/community documentation
5. Older official documentation

Missing Documentation

Recognize documentation gaps:

  • Undocumented Endpoints: Routes exist in code but not docs
  • Hidden Configuration: Env vars used but not listed
  • Implicit Requirements: Dependencies not in requirements file
  • Tribal Knowledge: Processes that exist only in team memory

Gap Documentation Template:

## Documentation Gap: [Topic]

**Discovered**: [Date]
**Location**: [Where this should be documented]
**Current State**: [What exists now]
**Required Information**: [What's missing]
**Source of Truth**: [Where to get correct info]

Cross-Referencing Documentation with Code

Tracing Requirements to Implementation

1. Extract requirement ID or description
2. Search codebase for requirement reference
3. If not found, search for key domain terms
4. Locate implementation and verify behavior
5. Document mapping: Requirement -> File:Line

Validating API Documentation

1. Find endpoint in documentation
2. Locate route definition in code
3. Compare: method, path, parameters
4. Trace to handler implementation
5. Verify response shape matches docs

Configuration Value Tracing

1. Identify configuration key in docs
2. Search for key in codebase
3. Find where value is read/consumed
4. Trace through to actual usage
5. Verify documented behavior matches code

Best Practices

  • Read completely before acting: Avoid skimming that misses critical details
  • Verify before trusting: Test documented commands and examples
  • Note contradictions immediately: Document conflicts as you find them
  • Maintain a questions list: Track unclear items for follow-up
  • Cross-reference constantly: Docs without code verification are unreliable
  • Update as you learn: Fix documentation issues you discover

Anti-Patterns

  • Assuming documentation is current: Always verify against code
  • Reading without testing: Documentation lies; code reveals truth
  • Ignoring "Notes" and "Warnings": These often contain critical information
  • Skipping prerequisites: Missing requirements cause cascading failures
  • Trusting examples blindly: Examples may be simplified or outdated

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.43%
按下载量换算20

windsurf

22.07%
按下载量换算16

OpenCode

16.63%
按下载量换算12

Gemini CLI

11.85%
按下载量换算9

trae

8.42%
按下载量换算6

Codex

3.35%
按下载量换算2

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills