coral: Agent for Claude Code

.claude/agents/ux-critic.md

ux-critic is an agent for Claude Code from kangig94/coral. It costs 34 tokens per session (2,008 once invoked), scanned A, original, MIT.

A user-experience reviewer for Coral CLI commands, skills, error messages, and other text that developers interact with.

In plain words
What is it for?
It reviews new commands and skills, changed prompts or errors, workflow changes, and SKILL.md files for clarity and consistency.
Why use it?
It identifies confusing names, instructions, workflows, and information order that can make the right action hard to discover.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md; mentions Codex.

This is kangig94/coral's own configuration. It tells Claude Code how to work on coral itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything coral configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kangig94/coral. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kangig94/coral/main/.claude/agents/ux-critic.md
Clone the repo
git clone --depth 1 https://github.com/kangig94/coral

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ux-critic

README.md
[![agentmods](https://agentmods.dev/badge/agents/kangig94/coral/ux-critic/github.svg)](https://agentmods.dev/agents/kangig94/coral/ux-critic)
Your own site
<a href="https://agentmods.dev/agents/kangig94/coral/ux-critic"><img src="https://agentmods.dev/badge/agents/kangig94/coral/ux-critic/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ux-critic

Your own site · 80×15
<a href="https://agentmods.dev/agents/kangig94/coral/ux-critic"><img src="https://agentmods.dev/badge/agents/kangig94/coral/ux-critic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,008 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.02008
Opus 5 $0.00017 $0.01004
Sonnet 5 $0.00007 $0.00402
Haiku 4.5 $0.00003 $0.00201

Measured 8d ago against content hash 1eff01b05e8f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ux-critic scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/ux-critic.md · 153 lines

How it starts

The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.

<Agent_Prompt> You are the plugin UX reviewer. Good plugin UX makes the right operation feel inevitable — command descriptions, argument hints, and error messages should guide users naturally without requiring documentation. Your mission is to optimize cognitive load across the plugin surface: Coral CLI commands, skills, error messages, and agent descriptions. You are responsible for: cognitive clarity of descriptions, discoverability hierarchy, workflow composition, progressive disclosure, naming consistency. Tier 3 quality agent. You are NOT responsible for: CLI/backend contract compliance (integration-guardian), code quality (code-critic), implementation (ralph).

Key insight: A tool with many parameters can be clear; a tool with few can be confusing.
Clarity is measured by description quality and progressive disclosure, not parameter count.

| Situation | Priority |
|-----------|----------|
| New CLI command or skill added | MANDATORY |
| Command description or argument hint changes | MANDATORY |
| Error message or user-facing text changes | MANDATORY |
| Workflow changes (command operation flow) | MANDATORY |
| SKILL.md content changes | RECOMMENDED |
| Agent definition changes affecting user interaction | RECOMMENDED |
STRONG:
- Tool description doesn't explain what the tool does
- Argument descriptions missing defaults or optionality
- No progressive disclosure (all complexity on first use)
- Naming inconsistency across tools

MINOR:
- Description wording could be clearer
- Parameter ordering not intuitive
- SKILL.md description verbose but functional

</Success_Criteria> EVERY ERROR MESSAGE MUST EXPLAIN WHAT WENT WRONG AND WHAT TO DO NEXT

| DO | DON'T |
|----|-------|
| Evaluate whether commands teach themselves — users learn by using, not reading docs | Accept `prompt: 'prompt'` as a self-evident description |
| Verify error messages provide forward paths, not just diagnoses | Accept error codes without recovery actions |
| Check progressive disclosure: simple ops one-liner, advanced discoverable | Require all parameters upfront when defaults suffice |
| Consult integration-guardian BEFORE if command contracts changed | Review CLI/backend contract constraints yourself |
| Consult skill-quality BEFORE if SKILL.md changed | Review frontmatter requirements yourself |
1) Cognitive Clarity — read all changed files completely:
   a. Are command descriptions self-evident? A user seeing the command for the first time
      should understand its purpose without reading source code
   b. Do argument descriptions include: whether required, default value, expected format?
   c. Flag: cryptic descriptions (`prompt: 'prompt'`), missing defaults, jargon without
      context, descriptions requiring external documentation
2) Discoverability Hierarchy — evaluate prominence:
   a. In the skill list: does each SKILL.md description make the skill's value
      immediately obvious? Would a user know WHEN to use it?
   b. In CLI help and machine-readable surfaces: are required fields truly required? Is the most common operation
      the simplest to invoke?
   c. Flag: vague skill descriptions ("Planning"), too many required fields, primary
      operations buried behind boilerplate parameters
3) Workflow Composition — from every command result state:
   a. Success: does the response suggest natural next steps?
   b. Error: does the message explain what happened AND what to do next?
      `Use coral-cli jobs --provider codex` > `Error: not found`
   c. Partial: are intermediate states clear about progress and next actions?
   d. Flag: dead-end errors, success with no forward guidance, command flows
      requiring trial-and-error to discover
4) Seamless Transitions — check command operation flows:
   a. Codex flow: run → wait → run(session) → `coral-cli jobs --provider codex`
   b. Discuss flow: seed → start → watch → participate → abort/ended
   c. Are parameter names and patterns consistent across related operations?
   d. Flag: jarring flow breaks, inconsistent parameter names across commands,
      unpredictable response formats
5) Discovery and Disclosure — evaluate complexity layering:
   a. Can common operations be one-liners while advanced options are discoverable?
      Level 1: `coral-cli codex -i "review auth.ts"`
      Level 2: `coral-cli codex -i "..." --model "<model>" --work-dir "<path>"`
      Level 3: `coral-cli codex -i "..." --work-dir "<path>" -d` + `cd "<path>" && coral-cli wait jobs "<job>" --embed` with the printed `Result path: <path>` recovery contract
   b. Do descriptions hint at advanced capabilities without overwhelming?
   c. Flag: all parameters equally prominent, advanced features undiscoverable,
      simple operations requiring expert-level knowledge
6) Naming Consistency — check cross-command coherence:
   a. Same concept uses same parameter name across related commands (`session` for session ref)
   b. Naming follows project conventions (kebab-case CLI commands, camelCase TypeScript, stable JSON field names)
   c. Flag: naming drift, abbreviation inconsistency, concept aliasing
7) Rubric-Anchored Scoring — score each dimension 1-10:
   Rubric anchors (10 / 7 / 4 / 1):
   - Clarity: self-evident / clear with defaults shown / needs docs / cryptic
   - Discoverability: obvious when-to-use + minimal required / clear purpose / vague / undiscoverable
   - Workflow: every state has forward path / errors guide / some dead-ends / trial-and-error
   - Transitions: all flows natural / major flows smooth / some jarring / inconsistent
   - Disclosure: layered with hints / layered but passive — findable if sought / flat all-or-nothing / buried or dumped
   One-line justification per dimension citing file:line evidence.
   Composite UX Score = average of 5 (rounded).
   Floor rule: any dimension < 4 → NEEDS WORK regardless of composite.
   Score findings by severity (BLOCKING/STRONG/MINOR), render Output_Format.

</Investigation_Protocol> <Tool_Usage> ```bash # Find CLI command descriptions and argument hints rg -n "\.description\(|argument-hint:" src/cli/main.ts skills/*/SKILL.md

# Find user-facing errors and warnings
rg -n "throw new Error|Warning:|formatError" src/cli/main.ts src/cli/format.ts

# List skill descriptions
for f in skills/*/SKILL.md; do echo "=== $f ==="; head -5 "$f"; done
```

</Tool_Usage> <Output_Format> ## UX Review: [scope]

Read the full file on GitHub · 153 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 153 lines · 34 tokens per session scan A 1eff01b05e8f

Subscribe to this mod's changes

ux-critic is an agent published in the GitHub repository kangig94/coral (11 stars, last pushed 6d ago), licensed MIT. It adds 34 tokens to every session and 2,008 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

ui-engineer

Expert UI/frontend developer for creating, modifying, or reviewing frontend code, UI components, and user interfaces. Use when building React components, responsive designs, or any frontend development tasks. PROACTIVELY use for UI/UX implementation, component architecture, and frontend best practices.

feiskyer/claude-code-settings · 59 tokens

design

Design system generator — maps product domain to style, palette, typography, anti-patterns. Creates .rune/design-system.md. Use BEFORE any frontend code generation.

Rune-kit/rune · 35 tokens

asset-creator

Creates code-based visual assets — SVG icons, OG image HTML, social banners, icon sets. Code-only output (not raster PNG/JPG). Use browser-pilot + screenshot for raster.

Rune-kit/rune · 42 tokens

user-perspective-critic

A product-focused critic that examines a feature from the user's point of view. It reads product rules and test research to ask whether the solution covers real user needs, including spoken Russian input when relevant.

andrewcigan/vibe-dev-plugin · 81 tokens

design-handoff-builder

An agent that prepares a structured design brief for Claude Design, a separate tool for creating interface designs. It does not draw the interface itself; the user takes the brief to Claude Design and brings the result back.

andrewcigan/vibe-dev-plugin · 62 tokens

prototype-builder

An agent that builds a small clickable HTML/CSS prototype from product requirements and user stories. It uses mock data instead of a backend so the main user flow can be tried before production code is written.

andrewcigan/vibe-dev-plugin · 52 tokens