Analyze Commands
Explore 3 curated analyze commands for building with AI coding agents — what each one does, when to use it, and how to add it to your workflow.
Three slash commands for working out what code is doing before you change it. /explain-error takes an error message or stack trace, works out where it comes from and proposes a fix. /trace-data-flow follows a variable, field or value through the codebase from source to sink, which answers "where does this value come from?" without a debugging session. /audit-accessibility checks a file, component or page against WCAG: semantics, accessible names, keyboard support, ARIA, contrast, forms and motion.
/trace-data-flow and /audit-accessibility can only read files, so they are safe to point at any part of a codebase; /explain-error can also run commands while it investigates. Reach for /explain-error when something is broken now, /trace-data-flow when a value is wrong and the cause isn't obvious, and /audit-accessibility before a UI change ships.
3 commands
Audit Accessibility
Audit a component or page for accessibility against WCAG — semantics, names, keyboard, ARIA, contrast, forms, motion.
Explain Error
Diagnose an error message or stack trace and propose a fix.
Trace Data Flow
Trace how a value, field, or variable flows through the codebase from source to sink.