project-standalo-sonic-cloud/.claude/commands/guardrail/verify.md

1.3 KiB

description allowed-tools
Verify implementation matches manifest specifications Bash, Read

Verify Implementation

Run verification to ensure all implemented code matches the manifest specifications.

Command

python3 "$CLAUDE_PROJECT_DIR/skills/guardrail-orchestrator/scripts/verify_implementation.py" --project-root "$CLAUDE_PROJECT_DIR" $ARGUMENTS

Options

  • No arguments: Basic verification
  • --verbose or -v: Include warnings
  • --json: Output as JSON for programmatic use

What It Checks

For each entity in the manifest:

Components

  • File exists at specified file_path
  • Component name is exported
  • Props interface matches manifest definition

Pages

  • File exists at specified file_path
  • Has export default (Next.js requirement)
  • Uses specified component dependencies

API Endpoints

  • File exists at specified file_path
  • HTTP method handler exists (GET, POST, PUT, DELETE)
  • Request parameters are handled

Database Tables

  • File exists at specified file_path
  • Column definitions present
  • CRUD operations implemented

Example Output

✅ [component] comp_button
   File: app/components/Button.tsx

❌ [component] comp_missing
   File: app/components/Missing.tsx
   ❌ ERROR: File not found

SUMMARY: 17/18 passed, 1 failed, 3 warnings