Установка
SKILL.md
Dogfood
Act as a QA engineer who dogfoods the active branch end-to-end: understand every change, test every change in a real browser as a user would, and fix what's broken — autonomously — until the branch is genuinely ready.
This is diff-scoped, not whole-app exploration. You test what this branch introduced or modified versus the trunk.
Use agent-browser Only For Browser Automation
This workflow drives the browser exclusively through the agent-browser CLI. Do not use Chrome MCP tools (mcp__claude-in-chrome__*), any browser MCP integration, or other built-in browser-control tools. If the platform offers multiple ways to control a browser, always choose agent-browser. Use the direct binary, never npx agent-browser (the direct binary uses the fast Rust client).
Prerequisites
User-runnable invocation rendering. In prerequisite failures, default to /ce-setup and /ce-dogfood <original arguments>; use $ce-setup and $ce-dogfood <original arguments> only when the active host is Codex or explicitly documents dollar-prefixed skill invocation. Render only each invocation as inline code and output one form only.
-
A local dev server you can start (
bin/dev,rails server,npm run dev, etc.). -
agent-browserinstalled. Check:command -v agent-browser >/dev/null 2>&1 && echo "Ready" || echo "NOT INSTALLED"If not installed, stop and tell the user to install
agent-browser: print the renderedce-setupinvocation for the current install command, followed by the renderedce-dogfood <original arguments>invocation to retry. This workflow cannot function without it.
Artifact Root
This skill writes dogfood reports under <root>/dogfood-reports/ and personas under <root>/personas/. Resolve <root> when you first compose a <root>/ path (per the block below), never before you need it. A write to <root>/... and a read of <root>/solutions/ both count as composing a <root>/ path, so either one triggers resolution; only a run that touches no <root>/ path at all -- a scratch-only or no-repo flow -- skips it.
Resolve the CE artifact root <root> before composing any artifact path.
- Read
docs_rootfrom<repo-root>/.compound-engineering/config.local.yaml, thenconfig.yaml; first non-empty value wins (<repo-root>=git rev-parse --show-toplevel). Unset -><root>isdocs, exactly as before. - Validate a set value: a repo-relative directory whose real, symlink-resolved path stays inside the repo and is neither the repo root nor under
.git/. Otherwise stop with an error namingdocs_rootand the value -- never fall back todocs. - Use
<root>as the sole artifact location: create it if absent, compose each path as<root>/<subdir>with this skill's own subdirectory, and never also readdocs.
Reusing Compound-Engineering Skills
ce-dogfood is an orchestrator. Prefer delegating to existing CE skills over re-deriving their behavior:
| When | Skill | Why |
|---|---|---|
| Phase 0 isolation | ce-worktree | Run the dogfood in an isolated worktree so the main checkout stays clean. |
| A failure's root cause is non-obvious | ce-debug | Systematic root-cause analysis instead of guess-and-check. |
| Committing each fix | ce-commit | Consistent, well-scoped commit messages. |
| A bug reveals a reusable lesson | ce-compound | Capture the learning so the team compounds knowledge. |
Workflow
0. Scope Pick the branch, get onto it (offer worktree), never touch the trunk
1. Analyze Diff branch vs trunk, understand every change
2. Map+Matrix Map user flows as Mermaid flowcharts, then derive the test matrix as a task list
3. Serve Detect port, start dev server, open agent-browser
4. Execute Work the matrix one item at a time with agent-browser
5. Fix loop On failure: fix -> add regression test -> commit -> continue
6. Report Write durable doc to <root>/dogfood-reports/ (flows, matrix, fixes, learnings, verdict)
Phase 0: Scope and Get on the Right Branch
Parse the arguments you were invoked with: a PR number, a branch name, or blank (use current branch). Strip --port PORT if present.
- Identify the target — keep PR identity; do not switch the working tree yet.
- PR number: the target is the PR — carry the number through every later step (trunk check, isolation, checkout). Read its head only for display (
gh pr view <number> --json headRefName,isCrossRepository), but do not reduce it to a bare branch name: a fork PR's head can even be namedmain/master. Do not check out yet. - Branch name: the target is that branch.
- Blank: the target is the current branch.
- PR number: the target is the PR — carry the number through every later step (trunk check, isolation, checkout). Read its head only for display (
- Refuse to run on the trunk — branch/blank targets only. If a branch-name or blank target resolves to the trunk (
main/master/the detected default), stop — there is no diff to dogfood. A PR is always diffable (it has a base), so this check never applies to a PR target; never refuse ace-dogfood <number>invocation just because the PR's head branch happens to be namedmain. - Decide isolation by what you're testing; let
ce-worktreeown the worktree mechanics. Do not re-derive worktree detection or creation here —ce-worktreehandles existing-isolation detection, the harness-native tool, attaching to a ref, and the "already checked out" constraint, and reports its decision back. The only call this skill makes is whether to ask for isolation at all:<!-- -->- Blank / current-branch target: do not isolate — dogfood in place. You are already on the branch under test, the fix-commits belong on it, and git cannot check the same branch out in a second worktree anyway. (If you happen to already be in a worktree, that is fine — you are simply dogfooding here.)
- A PR or a different named branch: this is an existing ref to test without disturbing your current checkout. Offer isolation (platform's blocking question tool). On yes, invoke
ce-worktreeto isolate that target ref — it attaches a worktree to the ref (or, if already isolated, checks it out in place; or reports "already checked out at<path>— work there" when the ref is live elsewhere). Act once-worktree's verdict; the primary checkout is never switched. On no, check the target out in place (gh pr checkout <number>for a PR,git checkout <branch>for a branch), confirming first if uncommitted changes would be disturbed.
- Resume if a prior run exists. Look for an existing report at
<root>/dogfood-reports/*-<branch-slug>-dogfood.md(see the branch-slug rule under Resumability). If one is found with unfinished scenarios, ask whether to resume it or start fresh. To resume, re-hydrate the task list from its matrix:Pass/Fixed/Skippedstay done;Pendingandin_progressbecome the remaining auto-runnable work. The twoBlockedstates are not auto-runnable —Blocked (needs human verify)andBlocked (human decision)are waiting on a person, so surface them to the user and ask how to proceed rather than silently re-queuing them.
Resumability (stop and return at any point)
This workflow is designed to be interrupted and resumed. Two pieces of state make that safe:
- The task list (the harness's task tool —
TaskCreate/TaskUpdateon Claude Code,update_planon Codex, or the equivalent elsewhere) is the live to-do — one task per matrix scenario. Mark eachin_progresswhen you start it andcompletedonly when it genuinely passes. - The report doc at
<root>/dogfood-reports/<YYYY-MM-DD>-<branch-slug>-dogfood.mdis the durable checkpoint that survives across sessions.<branch-slug>is the branch name lowercased with every run of non-alphanumeric characters (slashes included) collapsed to a single-(e.g.feature/Foo_Bar->feature-foo-bar). Create it as soon as the matrix exists (end of Phase 2) by instantiatingreferences/dogfood-report-template.md(read that template now if you haven't) so the checkpoint carries the template-owned section shape from the start — then fill in every scenario atPending, and update it incrementally — after each scenario is judged and after each fix is committed — not only at the end. An interrupted run must leave a template-shaped checkpoint, not a bare matrix.
Because tasks are session-scoped but the report doc is on disk, the report is the source of truth for resuming. Always keep the two in sync so a later run (or a teammate) can pick up exactly where this one stopped.
Phase 1: Analyze Changes
Derive the trunk ref once, then pull the full diff against it and read it. Do not hard-code main — a repo whose default branch is master (or anything else) would fail with fatal: ambiguous argument 'main...HEAD'.
# Resolve the trunk to a ref that actually exists. Start from the detected
# default name (origin/HEAD, then gh), then fall back to common names. For each
# candidate prefer a local branch; else use the remote-tracking ref QUALIFIED as
# origin/<branch> — an unqualified name resolves via refs/remotes/<name>, NOT
# refs/remotes/origin/<name>, so a remote-only trunk would otherwise miss. This
# qualification applies to the detected default too (PR/CI checkouts often have
# only origin/main, no local main).
DEFAULT=$(git symbolic-ref --quiet --short refs/remotes/origin/HEAD 2>/dev/null | sed 's@^origin/@@')
DEFAULT=${DEFAULT:-$(gh repo view --json defaultBranchRef -q .defaultBranchRef.name 2>/dev/null)}
TRUNK=""
for cand in "$DEFAULT" main master; do
[ -n "$cand" ] || continue
if git show-ref --verify --quiet "refs/heads/$cand"; then
TRUNK=$cand; break
elif git show-ref --verify --quiet "refs/remotes/origin/$cand"; then
TRUNK="origin/$cand"; break
fi
done
TRUNK=${TRUNK:-main}
git diff --name-only "$TRUNK...HEAD" # what changed
git diff "$TRUNK...HEAD" # how it changed
Build a mental model of every change: new features, modified behavior, new routes/views/components, touched data flows. Note anything that produces user-visible behavior — that is what the matrix must cover.
Ground in the product's personas and vision. Look for persona and vision context so flows can be judged from real users' eyes, not just "does it work." Check, in order: STRATEGY.md (its "Who it's for" section names the primary persona and their job-to-be-done), VISION.md, and any persona docs (e.g. <root>/personas/, PERSONAS.md). Capture the 1-3 primary personas and what each cares about. If none exist, infer a reasonable primary persona from the product and the diff, and say so in the report.
Phase 2: Map the Flows, Then Build the Matrix
Do not jump straight to a flat list of pages. First understand the user flows the diff touches, then derive the matrix from them. A matrix built without a flow model tests pages in isolation and misses the journey — the email that "sends" but lands in the wrong thread.
2a. Map the user flows (required)
For every user-visible change, trace the complete journey end to end and draw it. Map each flow as a Mermaid flowchart so the journey is explicit and reviewable before any testing happens — entry point, each user action, branch points (success / validation error / empty / permission-denied), side effects (emails, jobs, notifications), and the true end state.
Email example: it's not enough that "an email sends." Does it go to the right recipient? When the user clicks through, does the app land on and scroll to the right message? Does the content make sense? Does the whole flow align with the product's vision and UX? The flowchart must carry the click-through and its destination, not stop at "email sent."
flowchart TD
A[User opens /threads] --> B[Clicks 'Reply']
B --> C{Form valid?}
C -->|No| D[Inline validation error shown]
C -->|Yes| E[Reply saved]
E --> F[Notification email sent to thread participants]
E --> G[UI scrolls to new reply, focus on it]
F --> H[Recipient clicks email link]
H --> I{Lands on correct thread + scrolls to the reply?}
Produce one flowchart per distinct journey, scaled to the diff: a one-route or copy-only change gets a single small flowchart, a multi-step feature gets several. Cover the happy path and the branch points (error, empty, boundary, permission). Mapping the flows before the matrix is never skipped — these diagrams ARE the understanding; they become the spine of the matrix and belong in the final report.
2b. Derive the matrix from the flows
Walk each flowchart and turn every node and branch into one or more test scenarios. Read references/test-matrix-taxonomy.md for the full set of dimensions (journeys, functional checks, experiential checks, edge/error/empty states, accessibility, responsiveness). Cover both functional ("does it work?") and experiential ("does it feel right and align with the product?").
Map changed files to concrete routes (views -> their pages, components -> pages rendering them, layouts -> all pages, stylesheets -> visual regression on key pages) and attach those routes to the flows that exercise them.
Load the matrix as a task list (the harness's task tool, as above), one task per scenario, so progress is tracked and nothing is skipped. Order tasks by flow, following the flowcharts, not by file.
Phase 3: Detect Port and Start the Dev Server
Determine the port (priority: explicit --port > a port explicitly stated in your in-context project instructions > package.json dev script > .env* PORT= > default 3000). If a server is already listening on it, reuse it. Otherwise start the project's dev command (bin/dev, rails server, npm run dev, etc.) in the background and poll the port until it accepts connections before opening the browser. This skill is hands-off, so start the server automatically without asking — do not block on a confirmation.
agent-browser open "http://localhost:${PORT}"
agent-browser snapshot -i
Phase 4: Execute the Matrix
Work the task list one item at a time. For each scenario, mark the task in_progress, then:
-
Document what you're testing (the journey and the expected outcome).
-
Drive it with agent-browser — navigate, snapshot for interactive refs, click, fill, submit, follow the journey to its real end state:
agent-browser open "http://localhost:${PORT}/<route>" agent-browser snapshot -i agent-browser click @e1 agent-browser fill @e2 "value" agent-browser screenshot "$(mktemp -d)/<scenario>.png" # scratch dir, not the repo root agent-browser errors # check console/page errorsWrite transient screenshots to OS temp (e.g.
mktemp -d), never the repo root. Only copy a screenshot into the report's location if you intend to embed it in the final report. -
Judge both correctness and experience: right data, right destination, sensible content, no console errors, and does it feel aligned with the product?
-
Walk it as each persona. Re-run the journey in your head from each primary persona's perspective (from Phase 1) and ask where they'd feel a paper cut — небольшая шероховатость, которая не провалила бы функциональный тест, но ухудшает опыт: запутанная метка, лишний клик, неожиданный переход, шаг, ощущающийся медленным, отсутствие обратной связи, текст, не соответствующий образу мыслей этой персоны. Сценарий может быть функционально
Passно всё же нести paper cuts. Отметь каждый paper cut, какая персона его ощущает, и его серьёзность. -
Запиши pass/fail плюс любые paper cuts, с конкретикой. Отмечай задачу
completedтолько когда она действительно проходит. Paper cuts не блокируютPass, но острый paper cut (достаточно серьёзный, чтобы исправить сейчас) направляется в цикл исправлений Фазы 5 так же, как провал — применяй к нему то же суждение авто-исправление-против-эскалации. Остальные заноси в отчёт.
Потоки внешнего взаимодействия (OAuth, реальная доставка email, платежи, SMS) нельзя полностью провести безголово — приостановись, попроси пользователя проверить это звено и отметь сценарий Blocked (needs human verify) пока они не подтвердят. Затем продолжай.
Фаза 5: Цикл исправлений (автономный)
Когда сценарий проваливается — или проходящий сценарий несёт острый paper cut, который стоит исправить сейчас — исправь это и докажи, но сначала реши, является ли исправление твоим для автономного выполнения или решением человека.
Оцени размер исправления, прежде чем трогать код. Авто-исправляй, когда изменение небольшое, хорошо понятное и низкорисковое: явный баг с очевидным правильным исправлением, ограниченный несколькими файлами, без компромиссов по схеме/архитектуре/продукту. Не авто-исправляй когда изменение крупное или неоднозначное — оно требует архитектурного или схемного решения, меняет поведение продукта или замысел UX, охватывает много файлов, имеет правдоподобные конкурирующие решения, или ты не уверен, что «правильный» ответ однозначен. Принудительное принятие крупного суждения автономно хуже, чем его эскалация.
Для автономных исправлений:
- Исследуй корневую причину. Если она неочевидна, используй
ce-debug. - Примени исправление в коде.
- Добавь автоматизированный регрессионный тест , который проваливается до исправления и проходит после, чтобы баг не мог вернуться. Это по умолчанию для поведенческих и кодовых багов. Когда автоматизированный тест действительно непрактичен — чисто текстовая, отступная или визуальная правка без поведенческого утверждения — замени документированной проверкой браузерного воспроизведения или скриншота и укажи в отчёте, почему автоматизированный тест не имел смысла. Не изобретай пустой тест только ради выполнения шага.
- Закоммить исправление с ясным сообщением (используй
ce-commit). Одно логическое исправление на коммит. - Перезапусти проваленный сценарий в браузере, чтобы подтвердить, что он теперь проходит; затем продолжай матрицу.
- Если баг нёс переиспользуемый урок, зафиксируй его с помощью
ce-compound.
Для изменений, слишком крупных для автономного выполнения: не реализуй. Запиши это в разделе отчёта Решения для человека с указанием: что сломано, почему это не безопасное автономное исправление, варианты, которые ты видишь (с компромиссами), и твоя рекомендация. Отметь сценарий Blocked (human decision) в матрице, затем продолжай с остальным. Никогда не делай крупное, необратимое или изменяющее продукт изменение только чтобы закрыть пункт матрицы.
Продолжай итерации, пока каждая задача не станет completed или в терминальном Blocked состоянии — Blocked (human decision) (эскалирована здесь) или Blocked (needs human verify) (установлено в Фазе 4 для звеньев внешнего взаимодействия). Оба терминальны для цикла: они ждут человека, поэтому не ставь их обратно в очередь. Перетестируй всё, на что могло повлиять исправление (следи за регрессиями в смежных путях).
Прежде чем объявить ветку готовой, прогони автоматизированный набор тестов проекта один раз (новые регрессионные тесты плюс всё, что уже существует). Определи команду тестов из активных инструкций и соглашений проекта, уже присутствующих в твоём контексте — не предполагай конкретный раннер. Запиши результат в отчёт; зелёная матрица с красным набором — это не «готово».
Фаза 6: Написать артефакт отчёта
Документ отчёта был создан в конце Фазы 2 и обновлялся пошагово на протяжении всего процесса (см. Возобновляемость). Когда матрица зелёная (или каждый оставшийся пункт явно заблокирован), финализируй it at <root>/dogfood-reports/<YYYY-MM-DD>-<branch-slug>-dogfood.md в репозитории под тестом, затем выведи краткое резюме в чате с путём к файлу.
Финализируй согласно references/dogfood-report-template.md — тому же шаблону, из которого был создан контрольный пункт Фазы 2, который владеет обязательными разделами и тем, что каждый должен содержать. Подтверди, что каждый принадлежащий шаблону раздел присутствует и полон; не восстанавливай список разделов по памяти, так как это расходится с шаблоном. Перенеси сквозные обязательства, которые произвёл этот навык: Mermaid-диаграммы потоков из Фазы 2a, строку матрицы на каждый сценарий с его commit SHA, корневую причину каждого исправления и добавленный регрессионный тест (или почему ни один не имел смысла), paper cuts с атрибуцией по персонам, уроки, достойные передачи в ce-compound, и финальный вердикт готовности, который фиксирует результат автоматизированного набора Фазы 5.
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: ce-dogfood](https://darkplay.ru/ai/skills/everyinc-compound-engineering-plugin-ce-dogfood)
Из того же репозитория
Похожие скиллы и другие разделы каталога
Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Соседние разделы каталога: возможно, нужный инструмент живёт там.
cavemananthropics · Автоактивация работает по-разному для каждого агента: Claude Code использует хуки…
Make Dogfoodathola · Анализирует и улучшает Makefile для полного покрытия функциональности с автогенерацией.
Prepare Prathola · Готовит PR целиком: обновляет документацию, запускает тесты, dogfooding и проверку…
A2AWire Benchmark: Invoice Total Extraction (dogfood)ee324 · Бесплатное участие: testnet-фаусет покрывает всё. По короткой строке счёта вычисли…Лучшие ИИ-инструменты для генерации изображений
Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты
MagviMagvi
DALL-E 3OpenAI
SupaLabSupalab
Freestyling.aiFreestyling
ArtGeneration.meArtgeneration
BigjpgBigjpg
Художник от VKVK
Avato AI12ai
Virton AIVirtonЛучшие ИИ-инструменты для программирования
Подборка нейросетей и ИИ-ассистентов для разработки и автоматизации кода. Сервисы, которые ускоряют написание, ревью и отладку, экономят часы рутины и снижают порог входа в сложные
GenAPIGenapi
Notepad++ AINotepad-plus-plus
Creatium MaxCremax
Emacs AIGnu
KiteKite
Amazon Q DeveloperAmazonЛучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-maker