AgentSkillsCN

documentation-updates

在拉取请求与功能开发期间,及时更新 IBL5 的文档。当您需要更新文档、创建 README 文件,或记录已完成的工作时,可使用此功能。

SKILL.md
--- frontmatter
name: documentation-updates
description: Update IBL5 documentation during pull requests and feature development. Use when updating docs, creating README files, or documenting completed work.

IBL5 Documentation Updates

Update documentation incrementally during refactoring PRs.

Documentation Locations

LocationPurposeWhen to Update
ibl5/docs/STRATEGIC_PRIORITIES.mdModule completion summariesMark module complete
ibl5/docs/REFACTORING_HISTORY.mdDetailed refactoring timelineAdd entry for each module
ibl5/classes/ModuleName/README.mdComponent architectureCreate during refactoring
DEVELOPMENT_GUIDE.mdStatus counts, prioritiesUpdate module counts

PR Documentation Checklist

1. Update STRATEGIC_PRIORITIES.md

markdown
### N. ModuleName Module ✅ (Month Day, Year)

**Achievements:**
- X classes created with separation of concerns
- Reduced module code: XXX → XX lines (XX% reduction)
- XX comprehensive tests
- [Key security/feature improvement]

**Documentation:** `ibl5/classes/ModuleName/README.md`

2. Update REFACTORING_HISTORY.md

markdown
### N. ModuleName Module (Month Day, Year)

**Summary:** One sentence description

**Key Improvements:**
- Bullet points of main changes

**Classes Created:**
1. **ModuleRepository** - Data access
2. **ModuleService** - Business logic
3. **ModuleView** - HTML rendering

**Files Refactored:**
- `modules/ModuleName/index.php`: XXX → XX lines (-XX%)

**Test Coverage:**
- ModuleRepositoryTest: X tests
- ModuleServiceTest: X tests

**Documentation:** `ibl5/classes/ModuleName/README.md`

3. Create Component README

Create ibl5/classes/ModuleName/README.md:

markdown
# ModuleName Module

## Overview
Brief description of what the module does.

## Architecture

ModuleName/ ├── Contracts/ │ └── ModuleRepositoryInterface.php ├── ModuleRepository.php ├── ModuleService.php └── ModuleView.php

code

## Usage
```php
$service = new ModuleService($db);
$result = $service->doSomething($params);

Security

  • All queries use prepared statements
  • Output escaped with HtmlSanitizer
code

### 4. Update DEVELOPMENT_GUIDE.md

- Increment module count: "15/23" → "16/23"
- Update percentage: "65% complete" → "70% complete"
- Move module from priorities to completed
- Update test count if changed

## File Naming Standards

- Guides: `SCREAMING_SNAKE_CASE.md` (e.g., `DEVELOPMENT_GUIDE.md`)
- Component docs: `README.md` in directory
- Historical: Move to `ibl5/docs/archive/`

## Content Standards

- Start with purpose/overview
- Include "Last Updated" date
- Use consistent markdown formatting
- Add code examples where helpful