Repository navigation
docs: add AGENTS.md for AI agents working on the action - #64
Merged
Merged
Conversation
## Short Summary (TL;DR) Adds an `AGENTS.md` that points AI agents to DDEV's organization-wide `AGENTS.md`, and adds what is specific to this repository: layout, rules for `action.yml`, how to test, and how releases work. ## The Issue AI agents working here had no repository guidance. They had to guess how to test a composite action that has no local test suite, and that users run from the moving `v1` tag. ## How This PR Solves The Issue - Links the [organization AGENTS.md](https://raw.githubusercontent.com/ddev/.github/main/AGENTS.md) for boundaries, style, branches, commits, PRs and attribution, and states that this file wins where they differ. - Lists the files and what each does. - Sets rules for `action.yml`: keep `@v1` users compatible, document every input in `README.md`, and pass inputs through `env:` rather than `${{ inputs.* }}` in scripts. - Explains that the `tests` workflow is the test, how to run it on a branch with `gh workflow run`, and that Markdown-only changes skip it. - Says how to approach nightly failures, and that agents don't create or move release tags. ## Manual Testing Instructions Read `AGENTS.md` and check each claim against `action.yml`, `.github/workflows/main.yml` and `.github/workflows/update-main-version.yml`. ## Automated Testing Overview This PR changes only Markdown, so the `tests` workflow skips it. ## Release/Deployment Notes `action.yml` on `main` still puts `${{ inputs.* }}` into its scripts. The rule in this file applies to new code. A separate change on `20261122_rfay_head_download_ddev` moves the existing steps to `env:`. 🤖 Developed with assistance from [Claude Code](https://claude.ai/code) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UrTUMwauQvTgWac6bsCPsm
davereid
approved these changes
Nov 22, 2026
davereid
left a comment
Collaborator
There was a problem hiding this comment.
praise: Thanks, rfay. I checked the workflow triggers, matrix, upterm access and release flow against main, and they all match. Following ddev/ddev's AGENTS.md layout keeps the two consistent.
note: The env: rule for inputs matches action.yml once #65 merges.
Drafted with Claude Code using project-triage. I had each claim in the file checked against the repository and the linked DDEV files, and reviewed the final text.
davereid
added a commit
to davereid/github-action-cache-ddev
that referenced
this pull request
Nov 28, 2026
Updates the setup-ddev `main` pin, so the "Lint actions" job passes again. ## Description - `ci.yml`: pins `ddev/github-action-setup-ddev` to `798b95f # main` instead of `222a22f`. setup-ddev's `main` moved on 2026-11-25, and zizmor's online audit flags a `# main` comment on an older SHA. ## Links - New setup-ddev commits: ddev/github-action-setup-ddev#64 and ddev/github-action-setup-ddev#65 (`head` builds via `ddev utility download-ddev`). ## Testing instructions 1. Check that the **CI** workflow's "Lint actions" job passes in this PR's checks. 2. Check that the `cache-save` and `cache-restore` jobs for DDEV `head` pass, since ddev/github-action-setup-ddev#65 changed how `head` is downloaded. ## AI disclosure Claude Code (Claude Opus) found why "Lint actions" failed on #15 and updated the pin. I asked for the investigation and reviewed the change. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.
Short Summary (TL;DR)
Adds an
AGENTS.mdthat points AI agents to DDEV's organization-wideAGENTS.md, and adds what is specific to this repository: layout, rules foraction.yml, how to test, and how releases work.The Issue
AI agents working here had no repository guidance. They had to guess how to test a composite action that has no local test suite, and that users run from the moving
v1tag.How This PR Solves The Issue
action.yml: keep@v1users compatible, document every input inREADME.md, and pass inputs throughenv:rather than${{ inputs.* }}in scripts.testsworkflow is the test, how to run it on a branch withgh workflow run, and that Markdown-only changes skip it.Manual Testing Instructions
Read
AGENTS.mdand check each claim againstaction.yml,.github/workflows/main.ymland.github/workflows/update-main-version.yml.Automated Testing Overview
This PR changes only Markdown, so the
testsworkflow skips it.Release/Deployment Notes
action.ymlonmainstill puts${{ inputs.* }}into its scripts. The rule in this file applies to new code. A separate change on20261122_rfay_head_download_ddevmoves the existing steps toenv:.🤖 Developed with assistance from Claude Code
https://claude.ai/code/session_01UrTUMwauQvTgWac6bsCPsm
Generated by Claude Code