What It Does
Step-by-step audit procedure for evaluating a codebase's agent-native
architecture maturity. Where agent-native-architecture codifies the
principles, this skill codifies the audit process — what to inventory,
what to measure, what to flag. The
yellow-review:review:agent-native-reviewer agent uses this checklist for
incremental PR reviews; full audits (such as yellow-debt's audit workflow)
use it for codebase-wide assessments.
When to Use
- Onboarding to a codebase that has agent integration and you need to
understand its current parity status.
- Before adding a new agent capability — confirm existing patterns first.
- Auditing a codebase that's adding agent integration for the first time —
identify the orphan-feature surface area.
- Triaging "the agent feels broken" complaints — narrow to which principle
is failing.
Usage
Step 0: Triage
Answer three questions before scanning:
Does this codebase have agent integration at all? Search for tool
definitions, system prompt construction, or LLM API calls. If none
exists, every user-facing action is an orphan feature — that is the
single top finding. Recommend where agent integration should be
introduced.
What stack? Identify where UI actions and agent tools are defined
using the table in agent-native-architecture skill.
Incremental or full audit? For a PR review, focus on new/modified
code. For a full audit, scan systematically.
Step 1: Map the Landscape
Inventory:
- UI actions — buttons, forms, navigation links, gestures, keyboard
shortcuts. Grep for
onClick, onSubmit, onTap, Button,
onPressed, form actions.
- Agent tools — tool definitions and where registered. Grep for
tool(, function_call, tools:, framework-specific decorators.
- System prompt construction — static string vs. dynamically built
with runtime state. Grep for prompt template strings, prompt-builder
functions.
- Context sources — where the agent gets information about resources,
recent activity, capabilities, vocabulary.
Step 2: Build the Capability Map
Cross-reference UI actions against agent tools:
| UI Action | Location | Agent Tool | In Prompt? | Priority | Status |
|-----------|----------|------------|------------|----------|--------|
| Rename project | src/projects/RenameDialog.tsx | rename_project | yes | must-have | OK |
| Archive project | src/projects/ArchiveBtn.tsx | (none) | n/a | must-have | GAP |
| Theme toggle | src/settings/Theme.tsx | (none) | n/a | low | observation |
Flag must-have and should-have gaps as Critical or Warning. Low-priority
gaps are Observations only.
Step 3: Check Context Parity
Verify the system prompt includes:
- Available resources — files, data, entities the user can see
- Recent activity — what the user has done recently
- Capabilities mapping — what tool does what
- Domain vocabulary — app-specific terms explained
Red flags:
- System prompt is a static constant string with no runtime substitution
- Agent doesn't know what resources exist (asks "what's the project name?"
when the project context should be injected)
- Agent doesn't understand app-specific terms
Step 4: Check Tool Design
For each tool:
- Inputs are data, not decisions —
store(key, value) is data;
process(message) with internal categorization is a decision tool.
- Output is rich enough to verify success — return IDs, URLs, or
structured confirmation, not just
"Done!".
- Errors are actionable — tell the agent what to try next.
- Idempotent if commonly retried — or returns audit-friendly
output (timestamps, request IDs).
Workflow-tool detection:
- Tool body branches on input data (
if (priority > 3), switch (category))
- Tool calls multiple downstream services in sequence
- Tool returns success regardless of which path it took (no surface for
the agent to reason about which thing happened)
Step 5: Check Shared Workspace
- Agent file operations use the same paths as the UI?
- UI observes changes the agent makes (file watching, reactive store)?
- No separate "agent sandbox"?
- Users can inspect and edit agent-created artifacts?
Step 6: The Noun Test
After actions, audit by domain object. For every noun in the app,
the agent should:
- Know what it is (context injection)
- Have a tool to interact with it
- See it documented in the system prompt
A noun failing all three is critical for must-have entities.
Output
A capability map with status column, a list of gaps grouped by priority
tier, and a verdict: PASS / NEEDS WORK / CRITICAL.
## Agent-Native Architecture Audit
### Summary
[App type, agent integration present, parity assessment]
### Capability Map
[Table from Step 2]
### Findings
#### Critical (Must Fix)
1. **[Issue]** — `file:line` — [Description]. Fix: [How]
#### Warnings (Should Fix)
1. **[Issue]** — `file:line` — [Description]. Recommendation: [How]
#### Observations
1. **[Observation]** — [Description]
### What's Working Well
- [Positive observations]
### Score
- **X/Y high-priority capabilities are agent-accessible**
- **Verdict:** PASS / NEEDS WORK / CRITICAL
What This Skill Doesn't Cover
- The principles themselves — see
agent-native-architecture skill
for the canonical reference.
- CLI agent-readiness — see
cli-readiness-reviewer and
agent-cli-readiness-reviewer agents (yellow-review).
- Generic code review — this is a domain-specific audit; pair with
correctness-reviewer, security-sentinel, etc. for full coverage.
1---2name: agent-native-audit3description: Audit checklist for evaluating an existing codebase against agent-native architecture principles to identify parity gaps. Use when auditing for agent-native readiness, before adding a new agent capability, or when triaging agent-behavior regressions.4---56## What It Does78Step-by-step audit procedure for evaluating a codebase's agent-native9architecture maturity. Where `agent-native-architecture` codifies the10principles, this skill codifies the audit *process* — what to inventory,11what to measure, what to flag. The12`yellow-review:review:agent-native-reviewer` agent uses this checklist for13incremental PR reviews; full audits (such as yellow-debt's audit workflow)14use it for codebase-wide assessments.1516## When to Use1718- Onboarding to a codebase that has agent integration and you need to19 understand its current parity status.20- Before adding a new agent capability — confirm existing patterns first.21- Auditing a codebase that's adding agent integration for the first time —22 identify the orphan-feature surface area.23- Triaging "the agent feels broken" complaints — narrow to which principle24 is failing.2526## Usage2728### Step 0: Triage2930Answer three questions before scanning:31321. **Does this codebase have agent integration at all?** Search for tool33 definitions, system prompt construction, or LLM API calls. If none34 exists, every user-facing action is an orphan feature — that is the35 single top finding. Recommend where agent integration should be36 introduced.37382. **What stack?** Identify where UI actions and agent tools are defined39 using the table in `agent-native-architecture` skill.40413. **Incremental or full audit?** For a PR review, focus on new/modified42 code. For a full audit, scan systematically.4344### Step 1: Map the Landscape4546Inventory:4748- **UI actions** — buttons, forms, navigation links, gestures, keyboard49 shortcuts. Grep for `onClick`, `onSubmit`, `onTap`, `Button`,50 `onPressed`, form actions.51- **Agent tools** — tool definitions and where registered. Grep for52 `tool(`, `function_call`, `tools:`, framework-specific decorators.53- **System prompt construction** — static string vs. dynamically built54 with runtime state. Grep for prompt template strings, prompt-builder55 functions.56- **Context sources** — where the agent gets information about resources,57 recent activity, capabilities, vocabulary.5859### Step 2: Build the Capability Map6061Cross-reference UI actions against agent tools:6263```64| UI Action | Location | Agent Tool | In Prompt? | Priority | Status |65|-----------|----------|------------|------------|----------|--------|66| Rename project | src/projects/RenameDialog.tsx | rename_project | yes | must-have | OK |67| Archive project | src/projects/ArchiveBtn.tsx | (none) | n/a | must-have | GAP |68| Theme toggle | src/settings/Theme.tsx | (none) | n/a | low | observation |69```7071Flag must-have and should-have gaps as Critical or Warning. Low-priority72gaps are Observations only.7374### Step 3: Check Context Parity7576Verify the system prompt includes:7778- **Available resources** — files, data, entities the user can see79- **Recent activity** — what the user has done recently80- **Capabilities mapping** — what tool does what81- **Domain vocabulary** — app-specific terms explained8283Red flags:8485- System prompt is a static constant string with no runtime substitution86- Agent doesn't know what resources exist (asks "what's the project name?"87 when the project context should be injected)88- Agent doesn't understand app-specific terms8990### Step 4: Check Tool Design9192For each tool:9394- **Inputs are data, not decisions** — `store(key, value)` is data;95 `process(message)` with internal categorization is a decision tool.96- **Output is rich enough to verify success** — return IDs, URLs, or97 structured confirmation, not just `"Done!"`.98- **Errors are actionable** — tell the agent what to try next.99- **Idempotent if commonly retried** — or returns audit-friendly100 output (timestamps, request IDs).101102Workflow-tool detection:103104- Tool body branches on input data (`if (priority > 3)`, `switch (category)`)105- Tool calls multiple downstream services in sequence106- Tool returns success regardless of which path it took (no surface for107 the agent to reason about which thing happened)108109### Step 5: Check Shared Workspace110111- Agent file operations use the same paths as the UI?112- UI observes changes the agent makes (file watching, reactive store)?113- No separate "agent sandbox"?114- Users can inspect and edit agent-created artifacts?115116### Step 6: The Noun Test117118After actions, audit by domain object. For every noun in the app,119the agent should:1201211. Know what it is (context injection)1222. Have a tool to interact with it1233. See it documented in the system prompt124125A noun failing all three is critical for must-have entities.126127### Output128129A capability map with status column, a list of gaps grouped by priority130tier, and a verdict: PASS / NEEDS WORK / CRITICAL.131132```markdown133## Agent-Native Architecture Audit134135### Summary136[App type, agent integration present, parity assessment]137138### Capability Map139[Table from Step 2]140141### Findings142143#### Critical (Must Fix)1441. **[Issue]** — `file:line` — [Description]. Fix: [How]145146#### Warnings (Should Fix)1471. **[Issue]** — `file:line` — [Description]. Recommendation: [How]148149#### Observations1501. **[Observation]** — [Description]151152### What's Working Well153- [Positive observations]154155### Score156- **X/Y high-priority capabilities are agent-accessible**157- **Verdict:** PASS / NEEDS WORK / CRITICAL158```159160### What This Skill Doesn't Cover161162- **The principles themselves** — see `agent-native-architecture` skill163 for the canonical reference.164- **CLI agent-readiness** — see `cli-readiness-reviewer` and165 `agent-cli-readiness-reviewer` agents (yellow-review).166- **Generic code review** — this is a domain-specific audit; pair with167 `correctness-reviewer`, `security-sentinel`, etc. for full coverage.