Ship Agent Skills for building Quantum applications
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 40/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- php
调研方向
Start by checking the existing framework commands, module templates, event definitions, config lookup, and Composer package exclusions to verify each proposed skill against the shipped code. Then plan the skill folders, specification checks, README and docs updates, and contribution workflow changes; the issue names no specific source files or test entry points. Done means the agreed skills pass the requested validation, document versioned installation, and guide a fresh project through creating a working module.
由索引模型根据 Issue 内容生成。
描述
Summary
Ship Agent Skills with the framework, so AI coding agents (Claude Code, Codex, Cursor, Copilot and other clients that support the format) know how to build Quantum applications: create modules, routes, controllers, config, console commands and event listeners in the Quantum way, using only names the framework really has.
Why
Agents know Laravel and Symfony well and Quantum barely, so they guess and produce code that looks like another framework's. A skill is a small folder that the agent loads only when the task matches, so it costs nothing in other tasks. Other PHP projects already do this: MoonShine ships skills/ in its package, and Laravel Boost installs skills shipped by Composer packages.
Format (Agent Skills specification)
- One folder per skill:
skills/<name>/SKILL.md, optionalreferences/,scripts/,assets/. SKILL.mdfrontmatter:name(required; lowercase letters, digits and hyphens, at most 64 characters, equal to the folder name) anddescription(required, at most 1024 characters, says what the skill does and when to use it: agents choose skills from this text alone). Optional:license,compatibility(for example "Requires quantum/framework 3.3"),metadata(for example the framework version).- Loading in layers: name and description load at startup (about 100 tokens per skill), the
SKILL.mdbody when the skill is used (keep it under 500 lines, about 5000 tokens),references/only whenSKILL.mdpoints to them. References are linked straight fromSKILL.md, one level deep. - Shape that works: a short
SKILL.mdwith the hard rules an agent gets wrong, and the detailed guide with examples inreferences/.
Scope
- A top-level
skills/folder in this repository, shipped in the Composer package (notexport-ignored), so the skills invendor/quantum/framework/skillsalways match the installed version. - Skills for application developers, one per task. Candidates (the final set is decided in the plan):
quantum-module: create a module withphp qt module:generate, the templates (DefaultWeb, DefaultApi, DemoWeb, DemoApi), the module folder layout.quantum-config: config lookup order (module file, thenshared/config, then the package default),php qt config:publish <Package> [--module=<Name>], reading config withconfig().quantum-console-command: an application command, where it lives, how it is registered; its constructor may use the environment and config.quantum-events: listening to the runtime events (web.route.before,web.dispatch.after, ...): names, payload (['context' => $context]), and what a stage stop means for later events.quantum-helpers: application and module helper files (helpersfolders).
- A unit test that checks every skill against the specification:
namematches the folder and the allowed characters,descriptionis set and at most 1024 characters,SKILL.mdis at most 500 lines, and every fileSKILL.mdlinks to exists. No new dependency. - Installation documented in the README and the docs: with the
skillsCLI from a release tag (npx skills add https://github.com/quantum-php/framework/tree/<tag>/skills), withgh skill install, or by copying fromvendor/quantum/framework/skillsinto the project's skills folder (.claude/skills/for Claude Code). Installing frommastergets skills for unreleased code; the docs must say to use the tag of the installed version.
Rules for the content
- Every statement and example is checked against the framework code of the target version; examples use only classes, helpers, commands and config keys that exist.
- No rule that duplicates the code's own types; rules cover what agents get wrong.
- A change that alters behavior a skill describes updates the skill in the same PR (added to the contribution workflow next to the changelog and docs checks).
Out of scope
- A
php qtcommand that installs skills (possible follow-up once the format has settled). - An MCP server for the running application.
- Skills for contributing to the framework itself.
Acceptance criteria
skills/holds the agreed skills, each valid against the specification; the unit test passes and fails on an invalid skill.- A Claude Code session in a fresh
quantum/projectapp with the skills installed picks the right skill for "create a module named Blog" and produces code that runs. - README and docs explain the installation per version.
- 主要语言
- PHP
- 星标
- 44
- 派生
- 22
- 平均合并
- 2 小时 49 分钟
- 30 天内合并 PR
- 61
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
quantum-php/framework 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
quantum-php/framework#739 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
quantum-php/framework#737 ·
维护者通常 1 天内回复
-
tech debt testing
难度 2/5 1-3 小时 新手友好度 72/100
quantum-php/framework#696 ·
维护者通常 1 天内回复
-
routing testing
难度 2/5 1-3 小时 新手友好度 76/100
quantum-php/framework#547 ·
维护者通常 1 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 48/100
quantum-php/framework#741 ·
维护者通常 1 天内回复
查看 quantum-php/framework 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
🐛 Web Bug
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 86/100
omeka/plugin-Commenting#72 ·
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
`mercure()` Twig function: the `lastEventId` option adds query parameters that Mercure hubs 1.0+ ignore可能已有人在做 @daFish 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100