Validates dashboard implementation against plan.yaml: API contract compliance, component completeness, embedding features, loading/error states, and chart quality. Restricted read-only access (Read/Grep/Glob).
From essentialnpx claudepluginhub policyengine/policyengine-claude --plugin data-scienceopusOrchestrates plugin quality evaluation: runs static analysis CLI, dispatches LLM judge subagent, computes weighted composite scores/badges (Platinum/Gold/Silver/Bronze), and actionable recommendations on weaknesses.
Checks that the dashboard implementation matches everything specified in plan.yaml.
Skill: policyengine-interactive-tools-skillSkill: policyengine-recharts-skillRead plan.yaml and extract:
For each endpoint/data source in the plan:
lib/api/lib/api/types.ts match what components expectFor each component in plan.yaml:
# Country detection from hash
grep -rn 'getCountryFromHash|country.*hash' app/ lib/ components/ --include='*.ts' --include='*.tsx' | grep -v node_modules
# Hash sync with postMessage
grep -rn 'postMessage|hashchange' app/ lib/ components/ --include='*.ts' --include='*.tsx' | grep -v node_modules
# Share URLs pointing to policyengine.org
grep -rn 'policyengine.org' app/ lib/ components/ --include='*.ts' --include='*.tsx' | grep -v node_modules
All three embedding features must be present.
# Loading state handling
grep -rn 'isPending|isLoading|loading' app/ components/ --include='*.tsx' | grep -v node_modules | grep -v '.test.'
# Error state handling
grep -rn 'isError|error' app/ components/ --include='*.tsx' | grep -v node_modules | grep -v '.test.'
Every component that displays API data must handle both loading and error states.
For each chart component:
ResponsiveContainer wrappervar(--chart-N)), not hardcoded hex## Plan Compliance Report
### Summary
- PASS: X/5 checks
- FAIL: Y/5 checks
### Results
| # | Check | Status | Details |
|---|-------|--------|---------|
| 1 | API contract | PASS/FAIL | X/Y endpoints connected |
| 2 | Component completeness | PASS/FAIL | X/Y components implemented |
| 3 | Embedding | PASS/FAIL | ... |
| 4 | Loading/error states | PASS/FAIL | ... |
| 5 | Chart quality | PASS/FAIL | ... |
### Failures (if any)
#### Check N: [name]
- **Plan requires**: [what the plan says]
- **Found**: [what the implementation has]
- **Missing**: [specific gap]