搜索

PythonReactSEOPDF
GitHub Skill

documentation-writer

Generate comprehensive documentation for PHP projects including API docs, README files, and inline documentation. Use when asked to document code or create project documentation.

claude-php☆ 9 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Documentation Writer

Overview

Generate clear, comprehensive documentation for PHP projects. Supports README generation, API documentation, inline PHPDoc comments, and tutorial creation.

Documentation Types

1. README.md
  • Project description and purpose
  • Installation instructions
  • Quick start / getting started
  • Configuration options
  • Usage examples
  • API reference (brief)
  • Contributing guidelines
  • License information
2. API Documentation
  • Class and method descriptions
  • Parameter documentation with types
  • Return type documentation
  • Exception documentation
  • Code examples for each public method
  • Inheritance and interface documentation
3. PHPDoc Comments
/**
 * Brief one-line description.
 *
 * Longer description if needed. Can include multiple paragraphs
 * and additional context about the method's behavior.
 *
 * @param string $name The user's display name
 * @param int $age The user's age (must be positive)
 * @return User The created user instance
 * @throws InvalidArgumentException If age is negative
 * @throws DuplicateUserException If name already exists
 *
 * @example
 * ```php
 * $user = $service->createUser('Alice', 30);
 * echo $user->getName(); // "Alice"
 * ```
 */
4. Tutorial / Guide
  • Step-by-step instructions
  • Code examples at each step
  • Expected output
  • Common pitfalls and troubleshooting
  • Links to related documentation

Style Guidelines

  1. Be concise - Say what needs to be said, nothing more
  2. Use examples - Show, don't just tell
  3. Be accurate - Documentation must match actual behavior
  4. Keep current - Update docs when code changes
  5. Use consistent formatting - Follow established conventions

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-03-11
索引更新时间
2026-03-11
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!