brainstorming
Structured design dialogue that validates ideas before implementation begins.
guardrails-contracts
Follow these patterns when designing guardrails validation contracts in OptAIC. Use for signal bounds, dataset schemas, portfolio constraints, PIT validation, and other domain-specific validation rules. Covers the "Law vs Police" architecture where Definitions contain contracts and the Engine enf...
Full skill instructions
Guide for implementing validation contracts that enforce data quality, risk limits, and compliance.
Apply when:
┌────────────────────────────────────────────────────────────┐
│ DEFINITION RESOURCE (The Law) │
│ ├── interface_spec # Abstract interface │
│ ├── input_schema # Expected inputs │
│ ├── output_schema # Expected outputs │
│ ├── compatibility_rules # Connection rules │
│ └── guardrail_contracts # Validation rules │
│ ├── signal.bounds: {min: -1, max: 1} │
│ ├── pit.policy: {knowledge_date_required: true} │
│ └── dataset.schema: {columns: [...]} │
└────────────────────────────────────────────────────────────┘
│
▼
┌────────────────────────────────────────────────────────────┐
│ GUARDRAILS ENGINE (The Police) │
│ Reads contracts FROM Definitions, enforces at gates: │
│ ├── Gate 1: Instance Creation (validate config) │
│ ├── Gate 2: Run Execution (validate inputs) │
│ ├── Gate 3: Data Write (validate outputs in real-time) │
│ └── Gate 4: Promotion/Merge (all must pass) │
└────────────────────────────────────────────────────────────┘
Key Insight: Contracts live IN Definition resources. The Guardrails Engine reads and enforces them—no manual attachment needed.
ContractRef: Identifies contract kind + JSON schema ContractInstance: Bound contract with config + enforcement hint ContractBundle: Collection of contracts for a resource ValidationReport: Results with issues, enforcement decision
Use namespaced naming: <domain>.<aspect>
signal.bounds # Value range [-1, 1]
signal.schema # Arrow schema conformance
dataset.pit # Point-in-time correctness
dataset.freshness # Data staleness SLA
portfolio.weights # Sum-to-one, min/max weight
portfolio.leverage # Gross/net exposure limits
Location: optaic/guardrails/contracts/<domain>.py
See references/contract-schemas.md.
Location: optaic/guardrails/validators/<domain>.py
Validators must be pure and deterministic. See references/validators.md.
ContractRegistry.register(
kind="signal.bounds",
schema=SIGNAL_BOUNDS_SCHEMA,
validator=SignalBoundsValidator,
version="1.0"
)
Test cases:
# official subspace → BLOCK on errors
# staging subspace → WARN on errors (unless elevated)
if subspace == "official":
return EnforcementLevel.BLOCK
return EnforcementLevel.WARN
Guardrails validate at:
resource.create / resource.updatepromotion.request / promotion.mergerun.submit / run.startStructured design dialogue that validates ideas before implementation begins.
Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.
Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.
Introduction to the obra skills system with mandatory skill invocation rules and best practices.
Execute a written implementation plan with critical review and task checkpoints.
Delegate independent tasks to specialized agents working concurrently with isolated context.
Isolated git worktrees with smart directory selection and safety verification.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Plan searchable and shareable content that drives traffic, builds authority, and generates leads.
README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.
Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.
Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.
The world's fastest calendar for remote work
Capture, organize, and utilize your knowledge effortlessly.
Instant Summaries of Audio & Video Interviews with AnySummary
Transform PDFs into engaging mind maps.
Chat with any PDF instantly
Create an optimal daily plan using your voice
A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.
AskYourPDF Pricing Plans: Tailored to Your Needs