update-oo-component-documentation by github/awesome-copilot
npx skills add https://github.com/github/awesome-copilot --skill update-oo-component-documentation通过分析对应的组件代码,更新位于以下路径的现有文档文件:${file}。
从现有文档的前置元数据(component_path 字段)中提取组件路径,或通过文档内容推断。分析当前组件实现并相应地更新文档。
文档标准:
分析说明:
特定语言优化:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
更新策略:
last_updated 字段更新为当前日期错误处理:
输出格式:
更新现有的 Markdown 文件,保持其结构,同时刷新内容以匹配当前实现。保留格式、标题层级和现有的组织决策。
必需的文档结构:
按照相同的模板结构更新现有文档,确保所有章节反映当前实现:
---
title: [组件名称] - 技术文档
component_path: [当前组件路径]
version: [如果适用,更新版本号]
date_created: [原始创建日期 - 保留]
last_updated: [YYYY-MM-DD - 更新为当前日期]
owner: [保留现有或根据变更更新]
tags: [根据当前功能更新标签]
---
# [组件名称] 文档
[更新介绍以反映当前组件的用途和能力]
## 1. 组件概述
### 目的/职责
- OVR-001: 更新组件的主要职责
- OVR-002: 刷新范围(包含/排除的功能)
- OVR-003: 更新系统上下文和关系
## 2. 架构章节
- ARC-001: 更新使用的设计模式(Repository、Factory、Observer 等)
- ARC-002: 刷新内部和外部依赖项及其当前用途
- ARC-003: 更新组件交互和关系
- ARC-004: 更新视觉图表(UML 类图、序列图、组件图)
- ARC-005: 刷新 mermaid 图表以显示当前组件结构、关系和依赖项
### 组件结构和依赖关系图
更新 mermaid 图表以显示当前:
- **组件结构** - 当前类、接口及其关系
- **内部依赖** - 组件在系统内当前的交互方式
- **外部依赖** - 当前的外部库、服务、数据库、API
- **数据流** - 当前依赖和交互的方向
- **继承/组合** - 当前的类层次结构和组合关系
```mermaid
[更新图表以反映当前架构]
| 方法/属性 | 目的 | 参数 | 返回类型 | 使用说明 |
|---|---|---|---|---|
| [使用当前 API 更新表格] |
// 将基本用法示例更新为当前 API
// 将高级配置模式更新为当前实现
每周安装次数
7.0K
代码仓库
GitHub 星标数
26.7K
首次出现
2026年2月25日
安全审计
安装于
codex6.9K
gemini-cli6.9K
opencode6.9K
cursor6.9K
github-copilot6.9K
amp6.9K
Update the existing documentation file at: ${file} by analyzing the corresponding component code.
Extract the component path from the existing documentation's front matter (component_path field) or infer it from the documentation content. Analyze the current component implementation and update the documentation accordingly.
Documentation Standards:
Analysis Instructions:
Language-Specific Optimizations:
Update Strategy:
last_updated field to current dateError Handling:
Output Format:
Update the existing Markdown file maintaining its structure while refreshing content to match current implementation. Preserve formatting, heading hierarchy, and existing organizational decisions.
Required Documentation Structure:
Update the existing documentation following the same template structure, ensuring all sections reflect current implementation:
---
title: [Component Name] - Technical Documentation
component_path: [Current component path]
version: [Updated version if applicable]
date_created: [Original creation date - preserve]
last_updated: [YYYY-MM-DD - update to current date]
owner: [Preserve existing or update if changed]
tags: [Update tags as needed based on current functionality]
---
# [Component Name] Documentation
[Update introduction to reflect current component purpose and capabilities]
## 1. Component Overview
### Purpose/Responsibility
- OVR-001: Update component's primary responsibility
- OVR-002: Refresh scope (included/excluded functionality)
- OVR-003: Update system context and relationships
## 2. Architecture Section
- ARC-001: Update design patterns used (Repository, Factory, Observer, etc.)
- ARC-002: Refresh internal and external dependencies with current purposes
- ARC-003: Update component interactions and relationships
- ARC-004: Update visual diagrams (UML class, sequence, component)
- ARC-005: Refresh mermaid diagram showing current component structure, relationships, and dependencies
### Component Structure and Dependencies Diagram
Update the mermaid diagram to show current:
- **Component structure** - Current classes, interfaces, and their relationships
- **Internal dependencies** - How components currently interact within the system
- **External dependencies** - Current external libraries, services, databases, APIs
- **Data flow** - Current direction of dependencies and interactions
- **Inheritance/composition** - Current class hierarchies and composition relationships
```mermaid
[Update diagram to reflect current architecture]
| Method/Property | Purpose | Parameters | Return Type | Usage Notes |
|---|---|---|---|---|
| [Update table with current API] |
// Update basic usage example to current API
// Update advanced configuration patterns to current implementation
Weekly Installs
7.0K
Repository
GitHub Stars
26.7K
First Seen
Feb 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex6.9K
gemini-cli6.9K
opencode6.9K
cursor6.9K
github-copilot6.9K
amp6.9K
97,600 周安装