Repository navigation
leafs/llms v0.1: llms init and detect - #1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First version of leafs/llms, as scoped and approved on 9 Nov 2026.
composer require --dev leafs/llms, thenvendor/bin/llms initwrites:AGENTS.md(source of truth: stack, commands, layout, conventions, finish checklist)CLAUDE.md(imports@AGENTS.md)llms.txt.cursor/rules/project.mdc(always applied) and.cursor/rules/php.mdc(**/*.php).claude/skills/<name>/SKILL.mdand.agents/skills/<name>/SKILL.mdDetection (
src/Detector.php): framework from composer.json (Leaf MVC, Leaf, Laravel, Symfony, plain PHP;--frameworkoverrides), PHP constraint, PSR-4 map, test runner (Alchemy, Pest, PHPUnit), lint/format/analyse/refactor tools, and composer scripts (preferred over calling tools directly; pre-/post- hooks skipped). Starter-kit names likeleafs/mvcandlaravel/laravelfall back to the folder name.Re-runs: generated text sits between
<!-- leafs/llms:start -->/<!-- leafs/llms:end -->. Only that part is replaced. A file without markers (e.g. the AGENTS.md that ships with Leaf MVC) keeps its text and gets the section appended. A second run with no changes reports everythingunchanged.Skills:
php-testsfor every project, plusleaf-routes;leaf-mvc-featureandleaf-database(schema files);laravel-featureandlaravel-database;symfony-controllerandsymfony-doctrine;php-package. Leaf MVC output also points agents at.leaf/CONTEXT.mdandleaf context, matching the skeleton's own AGENTS.md.vendor/bin/llms detectandinit --dry-runshow what would happen without writing.Checks
namematching the folder,description) and Cursor.mdcfrontmatter (description,globs,alwaysApply) are checked in the tests.Not done yet: a live run in Claude Code and Cursor. Neither is installed on my machine and I don't have a login for either. Please run
vendor/bin/llms initin a Leaf MVC app and check that Claude Code lists the skills and Cursor shows the two rules. I'll fix anything that turns up.Before tagging: Packagist needs the repo submitted once it's merged.