Skip to content

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

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.

Normalize example autoloader paths and the existing iterator regression tests' formatting under the unchanged checks.

Validation

  • composer validate --strict and complete composer dev-tools passed, including Rector, PHPDoc, code style, PHPUnit/coverage, API/guide documentation and metrics.
  • The corrective commit passed unchanged GrumPHP hooks through ordinary git commit, without bypasses or relaxed checks.
  • Committed Changelog validation against origin/main and whitespace checks passed.
  • PHP 8.5.12; DevTools revision 84e154046e07cafa6ac09a9e12434b1ff5dcb5e0; 101 tests / 128 assertions.

No merge, release or runtime dependency upgrade is included.

@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:08:39.706289Z 95897fd New commits
🔒 Security Review ✅ Completed 2026-10-25T03:10:09.486974Z 95897fd 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.

@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: 777e517a-d663-4069-ac77-8b015077d673
Commits

Reviewing files that changed from the base of the PR and between db902b5 and 95897fd.

Files selected for processing: 23
  • examples/chain-iterator.php
  • examples/chunked-iterator-aggregate.php
  • examples/closure-factory-iterator-aggregate.php
  • examples/closure-iterator-iterator.php
  • examples/consecutive-group-iterator.php
  • examples/file-extension-filter-iterator.php
  • examples/generator-caching-iterator-aggregate.php
  • examples/generator-rewindable-iterator.php
  • examples/group-by-iterator-iterator.php
  • examples/interleave-iterator-iterator.php
  • examples/lookahead-iterator.php
  • examples/range-iterator.php
  • examples/repeatable-iterator-iterator.php
  • examples/sliding-window-iterator-iterator.php
  • examples/trim-iterator-iterator.php
  • examples/unique-iterator-iterator.php
  • examples/zip-iterator-iterator.php
  • tests/ClosureFactoryIteratorAggregateTest.php
  • tests/ClosureIteratorIteratorTest.php
  • tests/ConsecutiveGroupIteratorTest.php
  • tests/ConsumerSkillTest.php
  • tests/GeneratorRewindableIteratorTest.php
  • tests/GroupByIteratorIteratorTest.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

  • Developer Tools
    • Local skills now synchronize automatically, and skills from trusted Fast Forward Composer sources can be used without a separate allowlist.
    • Contributor skills can be resolved from stable 0.4.x releases.
    • PHPDoc checks can load the project’s autoloader when DevTools is installed as a dependency, improving compatibility in dependency-based setups.
  • Chores
    • Updated development-tooling configuration and export exclusions.

The PR updates skill source configuration and adds PHP-CS-Fixer configuration. It also changes Composer plugin permissions, repository ignore and export settings, example autoloader paths, and test closures.

Changes: Skill source configuration

Layer / File(s) Summary
Configure skill sources
skills.json, .changelog/consistent-skill-sources.md
The skill configuration uses schema version 1.15.0, trusts fast-forward/*, enables trusted-replace, adds the resources/skills source, and updates the GitHub changelog source to ^0.4.0. The changelog records these updates and PHPDoc autoloader loading.

PHP tooling and code adjustments

Layer / File(s) Summary
Configure PHP-CS-Fixer
.php-cs-fixer.dist.php, composer.json, .gitignore, .gitattributes
The fixer configuration loads the project autoloader, sets project discovery and PHPDoc rules, and disables risky rules. Composer permits the phpro/grumphp-shim plugin. The repository ignores .dev-tools/ and excludes the fixer configuration from exports.
Update example autoloader paths
examples/*
The examples build the vendor autoloader path from __DIR__ and a parent-directory segment.
Make test closures static
tests/ClosureFactoryIteratorAggregateTest.php, tests/ClosureIteratorIteratorTest.php, tests/ConsecutiveGroupIteratorTest.php, tests/GeneratorRewindableIteratorTest.php, tests/GroupByIteratorIteratorTest.php, tests/ConsumerSkillTest.php
Iterator test closures and arrow functions are now static. The consumer skill test calls dirname without a leading namespace separator.

Priority: Low

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

Change: Other

Possibly related PRs

  • php-fast-forward/iterators#8: Adds the bundled skill payload and registers its Composer skill source, which this PR configures for discovery and synchronization.
Merge Risk: Minimal · up to 95897

No actionable merge-blocking risk is established by the reviewed changes.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly summarizes the main changes: standardizing automatic skill sources and adding the PHPDoc bootstrap.
Description check Passed The description directly explains the skill configuration, PHPDoc bootstrap, Composer changes, validation, and related cleanup in the changeset.
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 22 functions across 24 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.
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 skills in place,
Then sets a fixer’s rules with care.
Through example paths it hops along,
Static closures join the song.
The changelog marks what changed today.

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

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Changelog

✅ Contribution check passed.

Head: 95897fdd1b14290eb06802e4d8228cca0342e31a

Base: 31ea4c0ca135a7afac01cd0d80b572e388239466

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 674d1c2 into main Oct 25, 2026
35 checks passed
@coisa
coisa deleted the codex/consistent-skill-sources branch October 25, 2026 15:47
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