These rules apply to every task in this project unless explicitly overridden. Bias: caution over speed on non-trivial work.
This repository contains accessibility artefacts for the xGov Low-Code community.
- The planned public site is a static GitHub Pages site under
site/. - Source datasets stay under root
data/<subject>/directories. - The first dataset is Power Apps Canvas Controls accessibility guidance at
data/canvas-controls/ppcoe_canvascontrols.json. - The canonical implementation plan is
agent-docs/2026-06-09-github-pages-site-plan.md. - The site is work in progress until further notice.
- Data refreshes automatically each day from the Defra tenant.
- The Defra Power Platform Service Team and Defra Accessibility Team own the accessibility statement and review process.
- Screenshots are coming soon, but must not be rendered until static image assets and suitable alt text are available.
State assumptions explicitly. Ask rather than guess. Push back when a simpler approach exists. Stop when confused.
Minimum code that solves the problem. Nothing speculative. No abstractions for single-use code.
Touch only what you must. Don't improve adjacent code. Match existing style. Don't refactor what isn't broken.
Define success criteria. Loop until verified. Strong success criteria let Claude loop independently.
Use for: classification, drafting, summarization, extraction. Do NOT use for: routing, retries, deterministic transforms. If code can answer, code answers.
Per-task: 4,000 tokens. Per-session: 30,000 tokens. If approaching budget, summarize and start fresh. Surface the breach. Do not silently overrun.
If two patterns contradict, pick one (more recent / more tested). Explain why. Flag the other for cleanup.
Before adding code, read exports, immediate callers, shared utilities. If unsure why existing code is structured a certain way, ask.
Tests must encode WHY behavior matters, not just WHAT it does. A test that can't fail when business logic changes is wrong.
Summarize what was done, what's verified, what's left. Don't continue from a state you can't describe back.
Conformance > taste inside the codebase. If you think a convention is harmful, surface it. Don't fork silently.
"Completed" is wrong if anything was skipped silently. "Tests pass" is wrong if any were skipped. Default to surfacing uncertainty, not hiding it.
These rules apply when building or changing the planned static site.
- The static site lives in
site/; source datasets stay in rootdata/<subject>/. - Use Astro with TypeScript.
- Use
govuk-frontendas the only external UI/design package unless explicitly agreed. - Do not use GOV.UK crown assets, official GOV.UK headers, or service-style framing.
- Use
astro addfor official Astro integrations. - Check current Astro docs before using integrations, content collections, actions, sessions, or deployment config.
- Treat exported guidance HTML as unsafe: sanitise it at build time before rendering.
- Do not render Dataverse screenshot URLs until screenshots are exported as static assets.
- Configure and test Astro
siteandbasefor GitHub Pages project hosting. - Verification should include build, typecheck/data validation, and accessibility smoke checks when available.