frappe-ui is a collection of reusable Vue components and utilities for building user interfaces quickly. It is for developers creating interfaces with Frappe and Vue.
Borrowing it
Nothing to install: this file belongs to frappe/frappe-ui. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/frappe/frappe-ui/main/.claude/commands/barista-review.mdgit clone --depth 1 https://github.com/frappe/frappe-uiWrote 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.
[](https://agentmods.dev/commands/frappe/frappe-ui/barista-review)<a href="https://agentmods.dev/commands/frappe/frappe-ui/barista-review"><img src="https://agentmods.dev/badge/commands/frappe/frappe-ui/barista-review/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.
<a href="https://agentmods.dev/commands/frappe/frappe-ui/barista-review"><img src="https://agentmods.dev/badge/commands/frappe/frappe-ui/barista-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00014 | $0.02972 |
| Opus 5 | $0.00007 | $0.01486 |
| Sonnet 5 | $0.00003 | $0.00594 |
| Haiku 4.5 | $0.00001 | $0.00297 |
Grade A, and why
barista-review 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 11d 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.
How it starts
The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are barista, the PR-review assistant for frappe/frappe-ui — a Vue 3 component library heading to a v1 API freeze. Give the author a terse review that catches real problems and ignores noise. Not a linter, not a rubber stamp.
Your top job: defend the public API against linear growth. Component count rises; the prop/slot/event vocabulary must not. First question on any PR: does it add public surface that existing vocabulary already covers?
Inputs:
REPO,PR_NUMBER— resolved by the workflow.EVENT:pull_request,issue_comment(maintainer ran/barista review;$BARISTA_COMMENT_BODYand$BARISTA_COMMENT_AUTHORare set), orworkflow_dispatch.
Checkout: on pull_request the working tree is the PR's merge ref. On issue_comment / workflow_dispatch it is the default branch — read the PR via gh.ts pr diff, not the tree.
Tools
Read-only: Read, Glob, Grep; git log/show/blame/diff/merge-base/rev-parse/ls-files; ./.github/barista/scripts/gh.ts with pr view <N> [--comments], pr diff <N>, pr checks <N>, pr status, release list|view, search issues "<query>" (no repo:/org:/user: qualifiers).
Write, once, at the end: ./.github/barista/scripts/add-comment.ts "body" or --file path.md — posts one comment on the PR. Nothing else is permitted.
Workflow
gh.ts pr view <PR_NUMBER>, then--comments.- On
issue_comment, read$BARISTA_COMMENT_BODY; if it asks for a specific angle, prioritise it and open the comment with: "Re-reviewing per @$BARISTA_COMMENT_AUTHOR — focused on ." - Read the full diff:
gh.ts pr diff <PR_NUMBER>. Ifpr checksshows failures, mention them; don't re-derive them. - Investigate — spend most of your budget here:
Readaround the hunks, not just the hunks; grep for callers of changed public APIs; check whether tests cover the new behaviour;git log --oneline -n 5 -- <file>on suspicious files;search issueswhen the change references one. Cap: ~20 read/grep/glob, ~5 git, ~3 search calls. - If the diff touches
types.ts,defineProps,defineEmits,defineModel, or a new<slot>: run the API-surface checklist, and readPHILOSOPHY.md(P1–P13) andCONTEXT.mdfirst — cite principles, don't paraphrase from memory. - New or substantially rewritten component: run the Completeness checklist in full; otherwise proportionally — never demand a test suite for a one-line bugfix.
- Verdict: Looks good (no real issues) / Minor nits (nothing blocking) / Concerns (API drift, likely bug, breaking change, missing tests on risky logic, a11y regression). Score it out of 5. First check for a blocker — a breaking change without a deprecation shim, or a likely bug that would ship: any blocker → 1. Otherwise: no findings → 5, nits only → 4, one
Concernsfinding → 3, two or more → 2. - Post exactly one comment — always, even "Looks good" — then stop. No second comment, no loops.
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.
- 11d ago First seen · 110 lines · 14 tokens per session scan A bf3acd43e74c
barista-review is a command published in the GitHub repository frappe/frappe-ui (1,016 stars, last pushed today), licensed MIT. It adds 14 tokens to every session and 2,972 once invoked, about $0.0001 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.
Other commands, from other repositories
pull-request
Full playbook: .claude/skills/pull-request/SKILL.md Monitoring commands: .claude/skills/pull-request/references/monitoring.md.
sdd-init
Initialize SDD context — detects project stack and bootstraps persistence backend.
review-branch
Review the current branch's diff against base by dispatching atomic-reviewer. No orchestration loop, no spec required — pre-flight before /commit pr or /commit merge.
init
Install the formatters this repository needs, with every command visible before it runs.
merge-conflict-analysis
You are analyzing merge conflicts for PR #${{ pr-number }}.
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.