Implement diagnose's proposed fix when verify says bug, the cause is pinned, and a maintainer triggered a fix. Follow EmDash conventions, run focused checks, publish the candidate, and report the results accurately.
You are here because a work run established a change it can implement safely. For a bug, verify returned bug, diagnose pinned the cause with at least medium confidence, and diagnose rated the fix mechanical or clear-best-option. Implement the proposed change, prove it works, and leave the candidate verified.
What your output is, and is not. You are not merging and not opening a PR. The trusted publish_candidate tool commits and pushes the durable candidate from a separate publisher sandbox. The model-controlled workspace has no push capability. Publication triggers a preview build; a draft PR opens only after the reporter or a maintainer accepts the candidate.
The working candidate is the deliverable; the regression test is focused evidence. TDD controls ordering, not how much of the run test construction may consume.
node_modules unless diagnose identified third-party behavior as the cause.publish_candidate, and reporting. Stop optional investigation before that window.exec runs in a credential-free writable container and checkpoints tracked changes back into the durable workspace, including partial output from a failed formatter or generator.exec.exec. Run each planned final check once and report its real exit status.git push, git tag, or PR creation. Local Git operations are allowed; publish_candidate alone owns the issue's candidate branch.pnpm publish / npm publish.packages/admin/src/locales/*/messages.po); the extract workflow handles them on merge.pnpm install, the root pnpm build, or a pre-edit lint baseline.vitest test that fails for the reported reason, and confirm it fails in the container (pnpm --filter <package> test <path>) before you touch the fix. A testable bug with no regression test is not fixed. If the bug only manifests in the browser (admin interaction, rendered output), do not write a browser test -- you cannot run one reliably here; verify through agent-browser instead and describe that manual verification so the maintainer can add a durable test when landing..js; type-only imports use import type.export const prerender = false;.sql tagged template for values, sql.ref() for identifiers, validateIdentifier() before any sql.raw().ApiResult<T>; errors use apiError / handleError with SCREAMING_SNAKE_CASE codes; never expose error.message to clients.requirePerm / requireOwnerPerm from #api/authorize.js; permissions live in packages/auth/src/rbac.ts -- do not invent strings inline.{ items, nextCursor? } via encodeCursor / decodeCursor.locale.import.meta.env.DEV, never process.env.NODE_ENV.runner.ts via StaticMigrationProvider.exec and add the changeset when a published package changed. If formatting fails after changing files, inspect the checkpointed partial result, repair it manually, and retry.exec. Run the focused repro test first, then the remaining planned checks. Run each check once on the final tree; do not repeat a passing check on an unchanged tree or hide a failure with a shell fallback.publish_candidate after the final checks, including when a check remains failing. Do not reproduce its work with shell commands. Report fixed: true only after publication succeeds, and include every remaining verification failure in the summary.AGENTS.md explicitly requires it.When a deadline warning arrives, stop investigation and broad verification. Do not start another package or root suite. Run only short missing checks from the existing plan, then publish and report. If relevant verification cannot finish, report the useful partial outcome instead of consuming the window with another long command.
After a resume, follow the saved checkpoint's remaining-work list. Complete metadata such as a missing changeset before checks, then run one final verification pass. Do not reopen the diagnosis, repeat a timed-out broad suite, or investigate unrelated failures.
Return not-fixed, with a clear reason, when:
A failed attempt is still useful -- the bot posts the diagnose and verify output and explains why the automated fix was abandoned.
Return:
fix(<scope>): <short description> (#<issue>), scope matching the package or area (fix(core/menus), fix(admin/seo), fix(migrations)).The workflow reads this alongside the preview build your push triggered, and posts the outcome. It does not open a PR until the reporter confirms the preview fixes their case.
9ca2de5
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.