documentation
Use when enhancing documentation, adding code comments, creating API docs, or improving technical documentation.
$ 安裝
git clone https://github.com/duc01226/EasyPlatform /tmp/EasyPlatform && cp -r /tmp/EasyPlatform/.github/skills/documentation ~/.claude/skills/EasyPlatform// tip: Run this command in your terminal to install the skill
SKILL.md
name: documentation description: Use when enhancing documentation, adding code comments, creating API docs, or improving technical documentation.
Documentation Patterns for EasyPlatform
Code Documentation Principles
- Accuracy-first: Verify every documented feature with actual code
- User-focused: Organize based on user needs
- Example-driven: Include practical examples
- Consistency: Follow established patterns
- No assumptions: Always verify behavior before documenting
XML Comments (C#)
/// <summary>
/// Retrieves employees filtered by company and optional criteria.
/// </summary>
/// <param name="companyId">The company identifier.</param>
/// <param name="status">Optional status filter.</param>
/// <param name="ct">Cancellation token.</param>
/// <returns>List of matching employees.</returns>
/// <exception cref="UnauthorizedException">When user lacks access.</exception>
public async Task<List<Employee>> GetEmployeesAsync(
string companyId,
EmployeeStatus? status = null,
CancellationToken ct = default)
TypeScript/JSDoc Comments
/**
* Loads employees and updates component state.
*
* @param companyId - The company to load employees for
* @param options - Optional filtering options
* @returns Observable that emits when loading completes
*
* @example
* ```typescript
* this.loadEmployees('company-123', { status: 'active' })
* .pipe(this.untilDestroyed())
* .subscribe();
* ```
*/
loadEmployees(companyId: string, options?: LoadOptions): Observable<void>
README Structure
# Feature Name
## Overview
Brief description of what this feature does.
## Quick Start
\`\`\`typescript
// Minimal example to get started
\`\`\`
## API Reference
### Methods
| Method | Parameters | Returns | Description |
| ------ | ---------- | ------- | ----------- |
### Events
| Event | Payload | When Fired |
| ----- | ------- | ---------- |
## Examples
### Basic Usage
### Advanced Scenarios
## Troubleshooting
Common issues and solutions.
When to Document
- Public APIs (commands, queries, controllers)
- Complex business logic
- Non-obvious behavior
- Configuration options
- Integration points
When NOT to Document
- Self-explanatory code
- Private implementation details
- Redundant to type signatures
Documentation Workflow
- Analyze the feature/component
- Identify documentation gaps
- Create draft documentation
- Verify against actual code
- Review for clarity and completeness
Repository

duc01226
Author
duc01226/EasyPlatform/.github/skills/documentation
2
Stars
0
Forks
Updated4d ago
Added1w ago