skills/local/stelow-product-codebase-critique/SKILL.md
[stelow] Structural critique for codebases. Accepts a directory of source code and evaluates architecture, data flow, API contracts, performance, theming, responsive patterns, and AI slop in code — then generates a classified gap report. Part of stelow (pre-implementation codebase review) but usable standalone. For codebases with visual UI, use stelow-product-ux-critique instead.
npx skillsauth add renatocaliari/agent-sync-public-skills stelow-product-codebase-critiqueInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Focus: Critically analyze source code structure — architecture, data flow, API contracts, performance, theming, responsive patterns, and AI slop in code. Input: Source code directory. Output: Classified gap report (🚨/🤔/🔎) with recommendations.
Tools: See
references/cli-tools/subagents.mdfor subagent patterns.
Standalone awareness: inside stelow, appetite gates critique depth (Lean → light, Core → quick, Complete → full). Standalone defaults to Core appetite (quick single-reviewer). Works with any source directory — no stelow dependency for the audit logic.
Structural codebase critique — evaluates architecture, data flow, API contracts, performance, theming, responsive patterns, and AI slop in code.
This skill performs a source code audit using checklists focused on technical and structural aspects (non-visual):
| Dimension | What it evaluates | |----------|-------------| | 🏗️ Architecture | Module structure, dependency flow, coupling | | 🔄 Data Flow | Call chains, state management, event propagation | | 📡 System Contracts | API definitions, error handling, logging | | ⚡ Performance | Bundle size, re-renders, lazy loading | | 🎨 Theming | Design tokens, dark mode support | | 📱 Responsive | CSS breakpoints, media queries | | 🤖 AI Slop in Code | Over-generated patterns, redundant code, boilerplate |
Important: This skill is for analyzing source code of components and logic.
If you need visual UI auditing (accessibility, design, UX), use
stelow-product-ux-critique em Codebase mode.
Before running codebase critique, check if appetite warrants it. Codebase critique is for structural analysis — if the scope is 1 file, the value is minimal.
# Read appetite from stelow context or env var; default Core (via canonical helper).
WF_DIR="$(ls -td .stelow/*/*/ 2>/dev/null | head -1)"
# shellcheck disable=SC1091
source "$(dirname "${BASH_SOURCE[0]:-$0}")/../../stelow-product-orchestrator/references/cli-tools/read-config.sh"
APPETITE="${APPETITE:-$(stelow_read_appetite)}"
DIFF_FILES=$(git diff --name-only HEAD~1 2>/dev/null | wc -l | tr -d ' ')
| Appetite | Files changed | Action |
|----------|--------------|--------|
| Lean | any | Light. Single reviewer runs a basic structural check (architecture, dead code, naming). Quality floor. |
| Core | 1-2 | Light. Single reviewer with standard checklist. |
| Core | 3+ | Quick critique. Single reviewer, no parallel. |
| Complete | any | Full. One reviewer analyzes all dimensions with detailed recommendations, or parallel reviewers when scope warrants. |
Rationale: Codebase critique is quality protection — appetite controls depth, not whether it runs. At Lean the reviewer uses a lighter checklist (basic structural, dead code, naming) instead of architectural analysis, but the audit always runs. Code review is correctness; codebase critique is structure — they're complementary, not substitutes.
I received a code directory and want to review the architecture.
When a technical scope is executed and needs code review.
Use this skill when the workflow needs a structural codebase audit beyond the
normal fresh-context code review. The default code-review step launches a
fresh reviewer; use this skill when architecture, data flow, API contracts,
performance, theming, responsive patterns, or AI slop need deeper analysis.
Input received:
├── Is it a source code directory (no visual UI)?
│ └→ ✅ Mode: Codebase Critique
├── Is it a directory containing visual components?
│ └→ Use stelow-product-ux-critique (Codebase mode) — also covers architecture
├── User described the code/architecture verbally?
│ └→ Use description as context anchor. Try to find matching
│ source directories in the current workspace. If none found,
│ run a lightweight critique based on the description.
└── No structured input given?
└→ Ask: "What codebase do you want to critique? Provide a directory
path or describe the architecture/component."
find {INPUT_PATH} -maxdepth 3 -type f \( -name "*.templ" -o -name "*.go" -o -name "*.ts" -o -name "*.tsx" -o -name "*.js" -o -name "*.css" -o -name "*.html" \) | head -50
| File | Covers |
|------|--------|
| references/codebase-audit-dimensions.md | Architecture, Data Flow, System, Performance, Theming, Responsive, AI Slop |
| references/auto-resolve-rules.md | Rules for auto-resolving gaps with defaults |
| references/output-format.md | Report format |
Use the subagents tool (see references/cli-tools/subagents.md) to critique the codebase:
Agent: reviewer
Task: Critique codebase (Codebase mode)
Reads: references/*.md
Input: {INPUT_PATH}
For each issue: severity (P0/P1/P2/P3), what was observed, which dimension flagged it, actionable recommendation. Note if issue is structural (hard to fix) or cosmetic (easy fix).
Output per output-format.md. Save to .stelow-codebase-critique/critique-report.md.
| Severity | Action | |------------|------| | P0 — Blocking | Fix immediately (e.g., security, data loss) | | P1 — Major | Fix before release | | P2 — Minor | Next cycle | | P3 — Polish | If time permits |
.stelow-codebase-critique/
critique-report.md ← gap report
When a technical scope is executed, the executor can delegate code verification to this skill.
The default code-review step launches a fresh-context reviewer. Use this skill
when the workflow needs a deeper structural audit of non-visual code, or when
the normal review finds architecture/data-flow/performance concerns that need
specialized analysis.
tools
Extrai métricas estruturadas, cálculos e estimativas de transcripts de entrevistas com clientes do Sommelier de IA. Produz um JSON com dores, frequências, tempo gasto, pessoas envolvidas, economia potencial, ROI e recomendações financeiras. Projetado para alimentar o cali-degustia-diagnostico ou integrar com dashboards/planilhas.
tools
Guia a coleta de depoimentos de clientes do Sommelier de IA no momento certo do processo, usando a abordagem de Hormozi: pedir depois da primeira evidência de resultado, nunca na entrega. Gera depoimentos mais autênticos e reduz a sensação de que o cliente está sendo "solicitado".
development
[stelow] Full UX critique for visual interfaces. Accepts a live URL, source code directory, or screenshot image. Evaluates accessibility (WCAG AA), Nielsen's 10 heuristics, visual hierarchy, cognitive load, consistency, mobile responsiveness, AI slop, emotional journey, and design personas — then generates a classified gap report. Standalone or integrated into stelow and stelow-product-testing-execution.
development
Building trust through perception and guarantee mechanisms. Covers ten pillars to materialize trust, guarantee types from unconditional to anti-guarantees, and strategic approaches for different contexts.