一键导入
documentation
Generate comprehensive documentation from code including README files, API reference docs, JSDoc comments, usage examples, and changelog entries
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate comprehensive documentation from code including README files, API reference docs, JSDoc comments, usage examples, and changelog entries
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Evaluate workflow run quality by analyzing artifacts and scratch outputs, identify gaps and root causes, and write a structured assessment with actionable recommendations.
Write an Architecture Decision Record (ADR) for a technical decision
Diagnose a bug, identify root cause, implement a targeted fix, and verify it
Analyze requirements and produce a detailed implementation plan before writing code
Create a GitHub branch, commit changes to it, and open a pull request
Explore a newly-loaded workspace, map its structure, and write project notes to memory
基于 SOC 职业分类
| name | documentation |
| description | Generate comprehensive documentation from code including README files, API reference docs, JSDoc comments, usage examples, and changelog entries |
Generate comprehensive documentation from code sources. This skill helps create README files, API reference docs, JSDoc comments, usage examples, and changelog entries that are accurate, maintainable, and developer-friendly.
# Project Name
Brief description of what the project does.
## Features
- Feature 1
- Feature 2
- Feature 3
## Installation
\`\`\`bash
npm install package-name
\`\`\`
## Quick Start
\`\`\`javascript
import { mainFunction } from 'package-name';
const result = mainFunction(options);
console.log(result);
\`\`\`
## API Reference
See [API.md](./API.md) for complete documentation.
## Examples
### Basic Usage
\`\`\`javascript
// Example code here
\`\`\`
### Advanced Usage
\`\`\`javascript
// Advanced example here
\`\`\`
## Contributing
Contributions welcome! Please read [CONTRIBUTING.md](./CONTRIBUTING.md).
## License
MIT
# API Reference
## Functions
### functionName(param1, param2, options)
**Description**: Clear description of what this function does.
**Parameters**:
- `param1` (string): Description of param1
- `param2` (number): Description of param2
- `options` (object, optional):
- `option1` (boolean, default: false): Description
- `option2` (string): Description
**Returns**: (Promise<object>) Resolved with { key: value, ... }
**Throws**:
- `TypeError`: If param1 is not a string
- `RangeError`: If param2 is negative
**Example**:
\`\`\`javascript
const result = await functionName('value', 42, { option1: true });
console.log(result);
\`\`\`
## Classes
### ClassName
**Description**: What this class does.
#### constructor(config)
**Parameters**:
- `config` (object):
- `name` (string): Required name
- `timeout` (number, default: 5000): Timeout in ms
#### methodName(arg)
**Description**: Method description.
**Parameters**:
- `arg` (any): Argument description
**Returns**: (any) Return description
**Example**:
\`\`\`javascript
const instance = new ClassName({ name: 'test' });
const result = instance.methodName('value');
\`\`\`
/**
* Brief description of the function.
*
* Longer description explaining the purpose, behavior, and important details.
* Can include multiple sentences or paragraphs.
*
* @param {string} param1 - Description of param1
* @param {number} [param2=0] - Optional param2 with default value
* @param {Object} options - Configuration object
* @param {boolean} [options.flag=false] - Description of flag
* @param {string[]} [options.items=[]] - Array of items
*
* @returns {Promise<Object>} Resolves with object containing:
* - `success` (boolean): Whether operation succeeded
* - `data` (any): Result data
*
* @throws {TypeError} If param1 is not a string
* @throws {RangeError} If param2 is negative
*
* @example
* // Basic usage
* const result = await myFunction('test', 42);
* console.log(result.success);
*
* @example
* // With options
* const result = await myFunction('test', 42, {
* flag: true,
* items: ['a', 'b']
* });
*/
export function myFunction(param1, param2 = 0, options = {}) {
// implementation
}
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.2.0] - 2024-01-15
### Added
- New feature description
- Another feature with use case
### Changed
- Behavior change description
- API improvement explanation
### Fixed
- Bug fix description
- Performance improvement
### Deprecated
- Deprecated API note
### Removed
- Removed feature explanation
### Security
- Security fix description
### Breaking Changes
- How to migrate from old API to new API
## [1.1.0] - 2024-01-01
### Added
- Initial release features