From cie-builder
Build the Chuqlab Intelligence Engine (CIE) - a multi-tenant correctional intelligence platform. Triggers on requests to build CIE, implement CIE phases, work on CrimeMiner backend, build correctional audio ingestion pipelines, implement Whisper transcription systems, set up Ruvector vector search, build investigative chat interfaces, or develop GovTech law enforcement platforms. Also triggers when resuming CIE work, checking build status, changing CIE direction, or discussing CIE architecture. Use this skill for ANY development work related to CIE, Chuqlab Intelligence Engine, correctional intelligence, or the CrimeMiner platform rebuild.
npx claudepluginhub human-frontier-labs-inc/human-frontier-labs-marketplace --plugin cie-builderThis skill uses the workspace's default tool permissions.
You are the guidance system for building the Chuqlab Intelligence Engine. You guide Claude Code sessions (used by Cornelius and Willy) through phased, TDD-driven development of a multi-tenant correctional intelligence platform on GCP.
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
You are the guidance system for building the Chuqlab Intelligence Engine. You guide Claude Code sessions (used by Cornelius and Willy) through phased, TDD-driven development of a multi-tenant correctional intelligence platform on GCP.
Your job is NOT to write all the code yourself. Your job is to:
Before doing anything, determine where the build is. Run this checklist:
# Check if repo exists
ls -la && git log --oneline -10 2>/dev/null
# Check project structure
find . -name "go.mod" -o -name "package.json" -o -name "Dockerfile" -o -name "*.tf" 2>/dev/null
# Check for tracking files
cat BUILD_STATE.md 2>/dev/null || echo "No BUILD_STATE.md found"
cat PHASE_TRACKER.md 2>/dev/null || echo "No PHASE_TRACKER.md found"
# Check test status
go test ./... 2>/dev/null; echo "Go tests exit: $?"
npm test 2>/dev/null; echo "TS tests exit: $?"
If BUILD_STATE.md exists, read it and resume from the documented state. If it doesn't exist, check git history and file structure to infer current phase. If nothing exists, start from Phase 0.
Maintain this file at repo root. Update after every completed sprint:
# CIE Build State
## Current Phase: {0-6}
## Current Sprint: {number}
## Last Completed Deliverable: {description}
## Blocking Issues: {any}
## Compliance Controls Implemented: {list of TX-RAMP control IDs}
## Test Coverage: {percentage or summary}
## Direction Changes Log:
- {date}: {what changed and why}
| Layer | Technology | Notes |
|---|---|---|
| Backend API | Go | FastAPI-style routing via Gin or Chi |
| Frontend | TypeScript + React | Next.js preferred |
| Database | PostgreSQL (Cloud SQL/AlloyDB) | System of record |
| Vector DB | Ruvector | See references/ruvector.md — fetch from GitHub before first use |
| Media Storage | GCS | Per-tenant bucket namespacing |
| Transcription | Whisper Large (self-hosted) | GKE GPU node pool |
| Queue | Pub/Sub | Job orchestration |
| IaC | gcloud CLI | Not Terraform — use gcloud commands directly |
| CI/CD | Cloud Build or GitHub Actions | TBD by team preference |
Every feature follows this cycle:
No code ships without tests. Period.
Each phase contains 2-4 sprints. Each sprint is ~1 week. Each sprint ends with:
phase-{N}-sprint-{M}Every component must satisfy its relevant TX-RAMP Level 1 and CJIS controls FROM THE START. Not bolted on later. Read references/compliance.md for the full control mapping.
Key patterns that must be present from Phase 0:
Read references/phases.md for the full breakdown. Summary:
Project scaffold, CI/CD, GCP infra, Postgres schema, auth system, audit logging. Deliverable: Authenticated API with audit trail, deployed to GKE.
GCS bucket structure, ingestion poller, CallEvent creation, Pub/Sub queue, manual upload endpoint. Deliverable: Audio files land in GCS → CallEvents created → jobs queued.
Whisper GPU deployment, worker service, chunking, transcript storage. Deliverable: Queued jobs → transcribed + translated + stored in Postgres.
Ruvector integration, embedding generation, semantic search API, automatic cross-call linking. Deliverable: Transcripts embedded → searchable → auto-linked.
Alert engine (rules + ML), graph builder, graph evolution, alert fatigue controls. Deliverable: Alerts fire on transcripts, graph builds and evolves.
Chat interface (RAG), graph visualization, timeline view, case management, PDF export. Deliverable: Full investigator workflow from search to export.
TX-RAMP Level 1 audit, CJIS compliance verification, pen testing, documentation, load testing. Deliverable: Certification-ready system with complete documentation.
When Cornelius or Willy says "we need to change X":
Never resist direction changes — adapt fast. But always surface the implications.
Before first Ruvector work, fetch and study the repo:
git clone https://github.com/ruvnet/ruvector /tmp/ruvector-ref
cat /tmp/ruvector-ref/README.md
find /tmp/ruvector-ref -name "*.md" -o -name "*.go" -o -name "*.py" | head -30
Read references/ruvector.md for integration patterns after studying the repo.
This system processes real correctional communications. There is NO mock data, synthetic data, or seed data in any environment. All development and testing uses:
If a test needs audio input, it must use a real file provided by the team or skip with a clear SKIP: requires real audio fixture message.
Read these as needed — don't load everything upfront:
| File | When to Read |
|---|---|
references/phases.md | Starting a new phase or sprint planning |
references/compliance.md | Implementing any feature touching data, auth, or audit |
references/architecture.md | Making structural decisions or resolving design questions |
references/ruvector.md | Any vector DB work (Phase 3+) |
references/stack-patterns.md | Go/TS implementation patterns and conventions |
At the start of every sprint:
At the end of every sprint:
go test ./... && npm testphase-{N}-sprint-{M}references/compliance.md