HK-hub/AgentSkills / ax-audit
ax-audit
VerifiedAudits agentic applications for architecture and trust: tool parity, tool granularity, context injection, completion signals, approval gates, confidence cues, escape hatches, intent handshakes, memory visibility, and adaptive canvases. Produces a ship-readiness verdict plus an AX Relationship Summary. Use when reviewing agentic feature PRs or asking "is this agent-native", "AX review", "critique this AI feature", "does this earn user trust", or "audit this for AX". For traditional frontend UX use ui-audit.
rules-arch/_template.md
View on GitHub---
title: <Rule title, short, descriptive>
slug: <category>-<kebab-slug>
category: parity | granularity | context | comm
defaultTier: release-blocker | fix-this-sprint | backlog
surfaces: <comma-separated agentic feature playbooks this rule fires in>
agent-native-principle: <which agent-native principle this enforces>
detection: code-auditable | hybrid | observational
related: <comma-separated other rule slugs (arch or ax)>
---
## <Rule title>
One paragraph: the architectural failure mode in plain language, why it breaks agents, what principle it violates.
## What goes wrong
A concrete, observable scenario: what the user or agent experiences, what the code does, why they diverge.
## Detection
**Surfaces:** <which playbooks invoke this: agent-chat, agent-tool-execution, agent-config, agent-dashboard>
**Static signals:**
1. Concrete grep / Read step. Use `rg` / `find` / file-extension filters.
2. Each step produces evidence: a file path, a line number, a presence/absence boolean, a count.
3. Last step compares evidence to a threshold.
**Concrete commands:**
```bash
# Inline grep recipes the agent can run. Note: ripgrep has no 'tsx' type: '--type=ts' covers *.ts and *.tsx.
rg 'pattern' --type=ts src/
```
**False-positive guards:**
- Skip files that already have the expected pattern.
- Skip files with `// ax-audit-ignore:<this-slug>` near the match.
- Skip test and Storybook fixtures.
## Fix
**Concrete change** with the architectural pattern:
```tsx
// before: the anti-pattern
// after: the corrected pattern
```
## Default tier and overrides
**Defaults to:** `<tier>`
**Surface overrides:**
| Surface | Tier |
|---|---|
| Agent tool execution | <usually one tier higher> |
| Agent chat | <same or one tier lower> |
| Agent config | <same> |
| Agent dashboard | <usually one tier lower> |
## Examples
**Anti-pattern (fails):**
```tsx
// Real-world example showing the bug.
```
**Applied (passes):**
```tsx
// Same component with the fix applied.
```
## Cross-reference
If a finding overlaps with ui-audit rules, link out:
- `ui-audit` rule `<slug>` for the traditional UX dimension
## Suppression
Ignore this rule on a specific component:
```tsx
{/* ax-audit-ignore:<slug>, reason */}
<Component />
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |