Skip to content

Instantly share code, notes, and snippets.

@masakielastic
Created May 17, 2026 23:44
Show Gist options
  • Select an option

  • Save masakielastic/a29739b98d4ec9e175b44bd520230db5 to your computer and use it in GitHub Desktop.

Select an option

Save masakielastic/a29739b98d4ec9e175b44bd520230db5 to your computer and use it in GitHub Desktop.
PHP 公式マニュアルレビューのガイドライン

PHP Manual Review Guidelines for AI Agents

Purpose

Help review and improve PHP manual pages with minimal, accurate, reviewable changes.

The goal is not to turn reference documentation into a tutorial. The goal is to clarify behavior, reduce ambiguity, and help readers make correct API choices.

Review Principles

  • Keep changes small and focused.
  • Do not expand the scope of a page unnecessarily.
  • Clarify what the function does, what it does not do, and when related APIs should be considered.
  • Separate API behavior from usage recommendations.
  • Separate display-oriented behavior from validation, storage, security, and resource-limit concerns.
  • Prefer concise wording that fits the existing PHP manual style.
  • Avoid speculative claims about implementation details unless confirmed by source, tests, RFCs, or existing documentation.
  • Avoid adding broad background explanations that belong in tutorials or external articles.

Section Roles

When reviewing a manual page, classify content by role:

  • Description: short positioning of the function.
  • Parameters: exact meaning of each argument.
  • Return values: precise return behavior, including failure cases.
  • Examples: minimal examples that demonstrate behavior not obvious from the signature.
  • Notes / Warnings: only for common or dangerous misunderstandings.
  • See also: related APIs, without turning the page into a comparison essay.

What to Avoid

  • Do not add broad claims such as “Unicode handling as a whole”.
  • Do not introduce unrelated topics such as normalization, transliteration, validation, or security unless directly relevant.
  • Do not add long tutorials to reference pages.
  • Do not overstate best practices.
  • Do not mix observations with recommendations.
  • Do not add examples that create new edge cases without explaining them.
  • Do not make the page harder to translate.

Output Style

When proposing changes:

  1. Start with a short overall assessment.
  2. Identify the smallest useful change.
  3. Explain what reader confusion the change prevents.
  4. Provide patch-sized English wording.
  5. Mention what should be left out of the manual page and handled elsewhere.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment