Commit contributor instructions for AI coding agents (AGENTS.md and skills)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- php
- Área
- developer-experience, tooling
Línea de trabajo
Start by checking the repository’s release branches, milestone mapping, test and tooling commands, and existing contributor guidance; the issue names the target branch as 3.2.x and the files to add: AGENTS.md, CLAUDE.md, .agents/skills/, .gitattributes, .gitignore, and CONTRIBUTING.md. Draft the instructions from those repository facts and validate each skill with skills-ref validate. Done means the acceptance criteria pass, including confirming git archive omits the agent files.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
Commit instructions for AI coding agents that work on this repository: an AGENTS.md with the rules every change must follow, and Agent Skills in .agents/skills/ for the multi-step workflows (ticket, pull request, merge-up, release). Today these rules exist only in maintainers' local setups, so contributors' agents (Claude Code, Codex, Copilot, Cursor, Gemini CLI) do not know them.
Why
- Contributors increasingly work with coding agents. Without repository instructions, the agents guess the branch, the test commands, the changelog and PR format, and the release-line rules, and reviews repeat the same corrections.
AGENTS.mdis the open format read by most agents and stewarded by the Agentic AI Foundation (Linux Foundation). Agent Skills is the open format for task-specific instructions that load only when needed.- Other PHP projects already do this: Symfony commits contributor skills (
merge-up,pr-authoring,bug-triage, ...) in.agents/skills/on every maintained branch; TYPO3 keeps oneAGENTS.mdand aCLAUDE.mdthat imports it; php-src and laravel/laravel commitAGENTS.md. - Targeting
3.2.xputs the files on the line where work happens now; the merge-up brings them tomaster.
Scope
AGENTS.mdat the repository root, written by hand, short, and limited to what changes what an agent does:- Commands first, with flags: tests (single file, filter, full suite with coverage), PHP-CS-Fixer, PHPStan, Rector.
- Facts an agent cannot infer: release lines (
X.Y.xper minor,masteris the next minor), which milestone targets which branch, fixes go to the oldest affected line and reach the newer ones by merge-up; PHP minimum per line. - Architecture invariants that are easy to break (app boot and runtime pipelines, stages and their events,
AppContext/Di, the factory, adapter and helper pattern, config lookup and package defaults, helper files incomposer.jsonautoload.files), as rules, not a tour of the code. - Style that the tools do not enforce:
useorder, file docblock,declare(strict_types=1), named static constructors for exceptions with messages inEnums/ExceptionMessages.php. - Testing: tests mirror
src/, a test for a bug fails without the fix, fixtures intests/_root, plainsetUp/tearDown. - Boundaries in three tiers: always (run the checks, update
CHANGELOG.md, keep a fix minimal), ask first (commit, push, PR, issue or comment, a new class or public API, a breaking change, changes to long-lived branches or tags), never (commit secrets, force-push or delete a release line, add tool attribution to PRs). - Commit and PR format:
[#n] Subject, PR body withCloses #n, What, Why, Changed paths and Testing (only what CI cannot show). - One line per skill saying when to use it.
CLAUDE.mdthat importsAGENTS.md(@AGENTS.md) and lists each skill with its path, because Claude Code does not read.agents/skills/. Nothing else, so all agents get the same rules. Facts only the maintainer needs (local clone paths, the rule about the maintainer's uncommitted files) go into the uncommittedCLAUDE.local.md, not into the committed files..agents/skills/, each skill valid against the Agent Skills specification (nameequal to the folder name, adescriptionthat says when to use it,SKILL.mdunder 500 lines, details inreferences/), prefixedquantum-so they do not clash with users' own skills:quantum-ticket: from issue to finished branch: pick the base branch from the milestone, branch naming, plan with checkpoints, tests first (fail without the change, pass after), the checks, changelog, code review; the plan's docs check and starter-project check, and the order core, then project, then docs (follow-up tickets in quantum-php/project and quantum-php/docs).quantum-pull-request: PR title and body format, linking the issue, answering review comments, what goes into Testing.quantum-merge-up(maintainers): merge each release line into the next, from the oldest tomaster; PR title and body format; whereCloseslines go.quantum-release(maintainers): changelog date, release order across framework, starter project and docs, cleanup after the release.- Scripts, if any, in PHP so they run on every platform.
.gitattributes:export-ignoreforAGENTS.md,CLAUDE.mdand.agents/, so contributor files do not ship in the Composer package..gitignore:CLAUDE.local.mdandAGENTS.override.md, the personal, uncommitted instruction files of Claude Code and Codex.CONTRIBUTING.md: one paragraph pointing contributors and their agents toAGENTS.md.
Not in scope
- Skills for people building applications with Quantum (#740).
- Agent instructions for quantum-php/project and quantum-php/docs (separate tickets in those repositories).
- Changes to framework code.
Notes
AGENTS.mdand skills are instructions that agents execute. Changes to them are reviewed like code.- No changelog entry: nothing changes for framework users.
AGENTS.mdis loaded into every session, so it stays short (about 100 lines); everything only some tasks need goes into a skill.- Maintainers who keep local, untracked
AGENTS.md/CLAUDE.md(for example listed in.git/info/exclude) must move them aside before checking out the branch, or Git refuses to overwrite them.
Acceptance criteria
AGENTS.md,CLAUDE.mdand.agents/skills/are in the repository and absent from the Composer archive (git archivedoes not contain them).- Each skill passes the Agent Skills validator (
skills-ref validate). - A Claude Code session and a Codex session on a fresh clone both follow the rules: asked to start an issue, they pick the right base branch from the milestone, write the test first, and propose (not make) the commit.
- Lenguaje dominante
- PHP
- Estrellas
- 44
- Forks
- 22
- Merge medio
- 2 h 49 min
- PR fusionados (30 d)
- 61
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de quantum-php/framework
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
quantum-php/framework#739 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
quantum-php/framework#737 ·
Los mantenedores suelen responder en 1 día
-
tech debt testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
quantum-php/framework#696 ·
Los mantenedores suelen responder en 1 día
-
routing testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
quantum-php/framework#547 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 40/100
quantum-php/framework#740 ·
Los mantenedores suelen responder en 1 día
Todos los issues de quantum-php/framework
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
🐛 Web Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
omeka/plugin-Commenting#72 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
`mercure()` Twig function: the `lastEventId` option adds query parameters that Mercure hubs 1.0+ ignorePosiblemente ocupada @daFish la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100