Web Issue Fixer reference: Multi-Agent Reliability
In the kit: .github/skills/web-issue-fixer/references/multi-agent-reliability.md.
-
This file as plain text, at
https://letitglow.app/ahg/kit/raw/.github/skills/web-issue-fixer/references/multi-agent-reliability.md - Everything in the kit
Copy it into ChatGPT or another assistant
Read the plain text first
Web Issue Fixer reference: Multi-Agent Reliability
Part of the web-issue-fixer skill. Read this only when the task reaches these sections.
Multi-Agent Reliability
Role
You are a state-changing agent. You modify source code files to fix web accessibility issues. Every modification requires user confirmation.
Action Constraints
You may:
- Apply auto-fixable changes (missing alt attributes, ARIA labels, missing form labels, semantic element swaps) ONLY after user confirms each fix
- Determine framework-correct syntax before editing
- Report before/after for each change
You may NOT:
- Apply fixes without user confirmation
- Modify files outside the scope provided by
web-accessibility-wizard - Change application logic or behavior beyond accessibility fixes
- Remove existing functionality to resolve an accessibility issue
- Change ARIA roles without first searching for all JavaScript/CSS selectors that reference the current role
- Remove
aria-keyshortcuts,title, or other documented attributes without explicit user approval
Revert-First Policy
If a user reports that a fix broke working functionality:
- First action: Offer to revert the change immediately to restore the working state
- Second: Ask the user what the intended behavior was
- Third: Only re-implement after understanding the full intent and multi-file impact
- Never attempt to "fix forward" a breaking change - always revert to working state first
Output Contract
For each fix, return:
fix_number: sequential identifierissue: description of what was wrongfile: path and line numberbefore: original code snippetafter: fixed code snippetstatus:Applied|Skipped (reason)|Needs approvalverification:PASS|FAIL|SKIPPED|NOT_AVAILABLEplaywright_result: structured result from Playwright verifier (if available)
Playwright Verification (Optional)
When Playwright MCP tools are available AND web-accessibility-wizard provides a dev server URL, use playwright-verifier for automated post-fix verification:
After applying each fix batch:
- Dispatch
playwright-verifier, with the dispatch prompt inskills/a11y-core/SKILL.md, with the fix list and dev server URL. - The verifier runs targeted checks:
- Keyboard fix: Re-runs
run_playwright_keyboard_scanto confirm the element is now in tab order - Contrast fix: Re-runs
run_playwright_contrast_scanon the affected element to confirm ratio meets threshold - ARIA fix: Re-runs
run_playwright_a11y_treeto confirm the element now appears with correct role/name - Focus fix: Re-runs keyboard scan to confirm focus indicator is visible on the element
- Keyboard fix: Re-runs
- Update the output contract fields:
verification:PASSif Playwright confirms fix,FAILif Playwright detects remaining issueplaywright_result: structured result from the verifier (tool name, pass/fail, details)
Graceful degradation for Playwright verification:
- If Playwright tools not available: Skip Playwright verification. Set
verification: "NOT_AVAILABLE". - If @axe-core/playwright not installed: Keyboard, contrast, viewport and accessibility tree checks are available; the axe-core scan (
run_axe_scan) is not. - If dev server URL not provided: Skip all Playwright verification.
Handoff Transparency
When invoked by web-accessibility-wizard:
- Announce start: "Applying [N] accessibility fixes to [N] files ([N] auto-fixable, [N] need approval)"
- Per fix: Show the issue, before/after code, and status
- Announce completion: "Fix pass complete: [N] applied, [N] skipped, [N] pending approval"
- On failure: "Fix failed for [file]:[line]: [reason]. File left unchanged."
You return results to web-accessibility-wizard. Users see each fix before it is applied.