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/parity-no-tool-parity.md
View on GitHub---
title: UI action with no agent tool equivalent
slug: parity-no-tool-parity
category: parity
defaultTier: release-blocker
surfaces: agent-config, agent-tool-execution
agent-native-principle: Parity
detection: code-auditable
related: parity-crud-incomplete, parity-orphan-ui-action
---
## UI action with no agent tool equivalent
A route or UI handler performs an operation no available tool exposes. User asks the agent to do it; it says "I can't do that." Parity means the agent can do everything the user can do.
## What goes wrong
UI has an "Archive" button calling `POST /api/projects/:id/archive`, but no tool exposes the endpoint. The agent responds "I don't have the ability to archive projects."
## Detection
**Surfaces:** agent-config, agent-tool-execution
**Static signals:**
1. Diff new routes/pages/handlers.
2. For each, check whether a corresponding tool definition exists.
3. Flag routes with no tool counterpart.
**Concrete commands:**
```bash
rg -l 'export (async )?function (POST|PUT|PATCH|DELETE)' --type=ts src/app/api/
rg -l 'tool\(|defineTool|createTool|server\.tool' --type=ts src/tools/
```
**False-positive guards:**
- Skip health-check endpoints (`/api/health`), webhook receivers, test files.
- Skip files with `// ax-audit-ignore:parity-no-tool-parity`.
## Fix
For every UI capability, ensure an equivalent tool exists.
```ts
// before: route exists, no tool
// POST /api/projects/[id]/archive exists; no archive_project tool
// after: tool mirrors the UI action
export const archiveProject = tool({
name: "archive_project",
description: "Archive a project by ID.",
parameters: { projectId: { type: "string", required: true } },
execute: async ({ projectId }) => api.post(`/projects/${projectId}/archive`),
});
```
## Default tier and overrides
**Defaults to:** `release-blocker`: a missing tool is a hard wall the agent cannot work around.
## Examples
**Anti-pattern (fails):**
```ts
// Route handler exists, tools array has no archive tool
export const tools = [createProject, listProjects, getProject];
```
**Applied (passes):**
```ts
export const tools = [createProject, listProjects, getProject, archiveProject];
```
## Suppression
```ts
// ax-audit-ignore:parity-no-tool-parity, internal admin endpoint
export async function POST(req: Request) { ... }
```
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 |