Skip to content

chore: standardize automatic skill sources and PHPDoc bootstrap - #19

Merged
coisa merged 2 commits into
mainfrom
codex/consistent-skill-sources
Oct 25, 2026
Merged

coisa merged 2 commits into
mainfrom
codex/consistent-skill-sources

Conversation

@coisa

@coisa coisa commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Standardize the contributor skill configuration across Fast Forward libraries: use fast-forward/* with trusted-replace, keep auto-sync: true, and register the local resources/skills directory without a package override. The GitHub Changelog source now uses ^0.4.0 and discovers its Composer-declared payload without a redundant skill allowlist. Pin the schema to the verified installer release and add a patch fragment.

The project PHPDoc profile loads the consumer autoloader, avoiding DevTools 1.x's nonexistent nested autoloader, and preserves existing file/license headers while checking PHPDoc structure. Keep generated development output ignored and the profile outside Composer archives. Explicitly allow the GrumPHP shim already required by DevTools so Composer can activate the reviewed development commands. Complete missing PHPDoc on existing response/header regression cases, order response return/exception tags and import the already referenced global exception/stream names without changing behavior.

Normalize header/response PHPDoc, enum-case documentation and regression-test formatting. Preserve Accept quality parsing, Unicode boundary checks and response stream-position behavior.

Validation

  • composer validate --strict and the complete composer dev-tools pipeline passed: Rector, PHPDoc, code style, PHPUnit/coverage, API/guide documentation and metrics.
  • The corrective commit passed unchanged GrumPHP hooks through ordinary git commit, without a hook bypass or relaxed checks.
  • Committed Changelog contribution validation against origin/main and whitespace checks passed.
  • PHP 8.5.12; installed DevTools revision 84e154046e07cafa6ac09a9e12434b1ff5dcb5e0; 231 tests / 438 assertions.

No merge, release or runtime dependency upgrade is included.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 9f94b652-49ed-428e-911f-6e77774cfd7b
Commits

Reviewing files that changed from the base of the PR and between 50f3a19 and 59e1dfc.

Files selected for processing: 12
  • src/Header/Accept.php
  • src/Header/Authorization.php
  • src/Header/TransferEncoding.php
  • src/JsonResponse.php
  • src/RequestMethod.php
  • src/StatusCode.php
  • tests/Header/AcceptTest.php
  • tests/Header/AuthorizationTest.php
  • tests/Header/ContentEncodingTest.php
  • tests/HeaderRuntimeCompatibilityTest.php
  • tests/JsonResponseTest.php
  • tests/fixtures/header-runtime.php

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Summary

Summary by CodeRabbit

  • New Features
    • Added support for bundled local skills and trusted Fast Forward Composer skill sources.
    • Updated the Changelog contributor skill source to use stable 0.4.x releases without a separate skill allowlist.
  • Chores
    • Updated PHP documentation checks to work when DevTools is installed as a dependency.
    • Refined development-tool configuration, Composer plugin permissions, and package export exclusions.
  • Documentation
    • Added a changelog entry covering the skill-source and PHP documentation check updates.

The pull request updates skill source configuration, adds a PHP-CS-Fixer profile, and changes PHPDoc and formatting in source code and tests. The documented JSON and stream test assertions remain unchanged.

Changes: Tooling and PHPDoc

Layer / File(s) Summary
Skill source configuration
skills.json, .changelog/consistent-skill-sources.md
The configuration adopts schema 1.15.0, adds resources/skills as a source, trusts fast-forward/* with trusted-replace enabled, and updates the Changelog source ref to ^0.4.0. The changelog records the skill-source changes.
PHPDoc fixer setup
.php-cs-fixer.dist.php, composer.json, .gitattributes, .gitignore
A PHP-CS-Fixer profile defines project scanning and PHPDoc rules. Composer allows the GrumPHP shim plugin. The export and ignore settings are updated.
PHPDoc annotations and test descriptions
src/*, tests/*
PHPDoc and formatting are updated in source and test code. JsonResponse uses imported exception names. Existing JSON, stream, and header test assertions remain unchanged.

Priority: Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related issues

Possibly related PRs

  • php-fast-forward/http-message#17: Both pull requests cover JsonResponse body handling; this pull request updates exception references and documents the existing behavior in tests.
Merge Risk: Minimal · up to 59e1d

No actionable merge-blocking risk is identified in the current change.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title is a conventional-commit style summary that names two real parts of the changeset: standardizing automatic skill sources (skills.json, changelog source ^0.4.0, trusted-replace for fast-forwa…
Description check Passed The description is closely related to the changeset. It covers the skill configuration in skills.json and the changelog source change to ^0.4.0, the PHPDoc profile and autoloader loading in .php-cs-fi…
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 18 functions across 13 files.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title is a conventional-commit style summary that names two real parts of the changeset: standardizing automatic skill sources (skills.json, changelog source ^0.4.0, trusted-replace for fast-forward/*, local resources/skills) and the PHPDoc bootstrap (.php-cs-fixer.dist.php loading the project autoloader). It is somewhat broad because the changeset also includes header/response PHPDoc normalization, enum-case docblock reformatting, and test formatting, which the title does not mention. It does not describe anything absent from the changes and is not vague.

Full details: Description check

Explanation

The description is closely related to the changeset. It covers the skill configuration in skills.json and the changelog source change to ^0.4.0, the PHPDoc profile and autoloader loading in .php-cs-fixer.dist.php, the .gitignore and .gitattributes updates, the composer.json GrumPHP shim allowance, and the response/header PHPDoc and import changes. It also gives validation details. The description is detailed and specific, so it is not vague or off-topic.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the skill-source trail,
Then sets the fixer rules in place.
PHPDocs gain a clearer shape,
While tests keep each assertion’s place.
The stream stays steady, cursor, too,
And carrots wait beside the queue.

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T03:07:54.217700Z 59e1dfc New commits
🔒 Security Review ✅ Completed 2026-10-25T03:09:10.893888Z 59e1dfc New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Changelog

✅ Contribution check passed.

Head: 59e1dfc8203a1a599a9428827a83802203d5e57b

Base: bc450cfc7b3ae5f7c40b18d60c00ae480c69b0ba

Contribution: 1 new valid fragment(s). Policy: ordinary.

  • consistent-skill-sources.md — changed, patch

    Synchronize the bundled local skill automatically and trust Fast Forward Composer skill donors through `fast-forward/*`. Resolve Changelog contributor skills from stable `0.4.x` releases without a redundant skill allowlist. Load the project autoloader for PHPDoc checks when DevTools is installed as a dependency.

@coisa
coisa merged commit 3664ee2 into main Oct 25, 2026
35 checks passed
@coisa
coisa deleted the codex/consistent-skill-sources branch October 25, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant