Justicehub Reviewer
Testing & Qualityjusticehub-reviewerJusticehub Reviewer is an Agent Skill for testing & quality published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Platform audit for JusticeHub pages, API routes, Supabase patterns, and Empathy Ledger integration.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/justicehub-reviewer/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/justicehub-reviewer, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
JusticeHub Platform Reviewer
When to Use
- Audit pages/routes for data fetching issues
- Verify Supabase connection patterns
- Check Empathy Ledger integration
- Review API route security
- Generate platform health reports
Invocation
/justicehub-review [scope]
| Scope | What It Checks |
|---|---|
full | Complete platform audit |
pages | All Next.js pages |
api | All API routes |
supabase | Connection patterns |
empathy-ledger | Integration health |
functions | Utility services |
Quick Patterns
Correct Server Component
import { createServiceClient } from '@/lib/supabase/service';
export const dynamic = 'force-dynamic';
export default async function Page() {
const supabase = createServiceClient();
const { data } = await supabase.from('table').select('*');
return <Component data={data} />;
}
Correct API Route
import { createServiceClient } from '@/lib/supabase/service';
export async function GET() {
const supabase = createServiceClient();
const { data, error } = await supabase.from('table').select('*');
if (error) return NextResponse.json({ error: error.message }, { status: 500 });
return NextResponse.json(data);
}
Red Flags
createClientin server component (should becreateServiceClient)- Missing
force-dynamicfor dynamic data - Server cookie client without await
- No error handling in API routes
File References
| Need | Reference |
|---|---|
| Page patterns | references/page-patterns.md |
| API patterns | references/api-patterns.md |
| Supabase patterns | references/supabase-patterns.md |
| Empathy Ledger | references/empathy-ledger.md |