legacy/skills/rio-one-builder/SKILL.md
Build and extend the ONE Command Center — the human control surface for the RIO governed AI system. Use when building features for the ONE PWA (rio-one.manus.space), working on the RIO governance engine, coordinating with other agents on the RIO project, or onboarding a new Manus agent to the RIO system.
npx skillsauth add bkr1297-RIO/rio-system rio-one-builderInstall 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.
Build the ONE Command Center — a PWA that gives a human operator control over AI agent actions through governed execution with cryptographic proof.
references/architecture.md for the 8-layer stack, build phases, and agent territoriesreferences/tech-stack.md for database schema, server patterns, and governance engine flowreferences/multi-agent.mdOne/root/RIO_BUILDER_MAP.md for the canonical system specONE is a Manus webdev project (rio-proxy). Follow this loop:
1. Schema → drizzle/schema.ts → pnpm drizzle-kit generate → apply SQL
2. DB layer → server/db.ts (query helpers)
3. Routes → server/routers.ts (tRPC procedures, protectedProcedure for auth)
4. UI → client/src/pages/*.tsx (shadcn/ui + Tailwind + trpc hooks)
5. Tests → server/*.test.ts (vitest)
6. Ledger → every mutation calls appendLedger() for audit trail
Every action flows through this pipeline:
User → Bondi (LLM) → createIntent → risk assessment → approval → execute → receipt → ledger
Risk assessment order:
policy_rules table, matched by toolPattern)requiresApproval: true → PENDING_APPROVALReceipts: SHA-256 hash of {intentId, toolName, toolArgs, riskTier, approvalSignature, executionResult, timestamp}. Signed with Ed25519 (TweetNaCl). Appended to hash-chained ledger.
Kill switch: Sets all PENDING → REJECTED, disables gateway, logs KILL_SWITCH to ledger. Manual re-enable required.
| # | Feature | Status | |---|---------|--------| | 1 | Action approval screen | Done | | 2 | Action queue | Done | | 3 | Receipts viewer | Done | | 4 | Ledger viewer | Done | | 5 | System status | Done | | 6 | Editable policy rules | Done | | 7 | In-app notifications | Done (polling; PWA push deferred) | | 8 | Agent activity view | Done (basic) |
Next priorities:
proxy_users table.hash = SHA-256(entryId + entryType + payload + prevHash + timestamp).notifications table + Telegram via bot API. Poll every 15s.useAuth() hook. getLoginUrl() for redirect. Never hardcode domains.Three agents work in parallel. Brian relays between them.
| Agent | Territory | Reads From | |-------|-----------|------------| | ONE Builder (you) | Live app, DB, UI | Google Drive (read-only) | | Knowledge Agent | Google Drive structure | — | | Packaging Agent | GitHub repo, npm, Docker | Google Drive (read-only) |
After shipping a feature, tell Brian so the Knowledge Agent can update RIO_IMPLEMENTATION_STATUS.md on Drive.
For full coordination protocol, see references/multi-agent.md.
onClick={() => { window.location.href = getLoginUrl(); }}. Never render plain text for sign-in prompts.appendLedger(), the audit trail breaks.server/db.ts or tests will fail with missing function errors.manus-upload-file --webdev, never in client/public/ (except favicon, robots.txt, manifest.json, sw.js).createIntent. Order matters.development
RIO Solutions Architect agent — explains deployment, architecture, integration, and licensing for the RIO governed AI platform. Use when answering prospect questions, writing integration plans, explaining HITL workflows, or designing system architecture for customers.
documentation
RIO Internal Ops agent — helps Brian run the company, write proposals, manage documentation, plan sprints, draft communications, and coordinate across agents and platforms. Use when doing company operations, writing business documents, planning work, or managing internal processes.
development
RIO Developer agent — helps engineers implement the receipt protocol, integrate with the RIO governance API, build custom connectors, and troubleshoot integration issues. Use when writing code, building integrations, or answering technical implementation questions.
development
RIO Compliance agent — explains audit trails, HITL governance, regulatory alignment, and accountability frameworks for AI agent actions. Use when discussing compliance requirements, audit readiness, governance policies, or regulatory questions about AI operations.