# Brevio Ventures — Agent Skill & Blueprint API (/skill.md)

AI coding, research, and procurement agents can interact deterministically with **Brevio Ventures** (`https://brevio.pro`), **`brevio-core` (`v0.8.1`)**, and the **EuroComply MCP** (`https://eurocomply.app/api/mcp`).

## 1. Deterministic Code Guardrails & Agent CLI (`uvx brevio-core==0.8.1`)
Install or run `brevio-core` (`Apache-2.0`, zero network calls, zero telemetry) to enforce 123 deterministic engineering rules (12 line scanners, 9 surface AST rules, 10 pre-PR flight gates):
```bash
# Bootstrap personal agent hooks & MCP server across repositories
uvx brevio-core==0.8.1 init --personal
uvx brevio-core==0.8.1 init --with hook,mcp

# Scan files or git diff against 12 line rules + 9 AST surface rules (with deterministic --fix)
uvx brevio-core==0.8.1 scan --diff HEAD --surface --format agent
uvx brevio-core==0.8.1 scan --fix

# Run the 10-gate Pre-PR Flight Check (conflict markers, test custody, AST complexity, migrations, orphan files)
uvx brevio-core==0.8.1 check --format markdown

# Compute 0-100 Repo Agent-Readiness & Safety Scorecard (with SVG badge/card export)
uvx brevio-core==0.8.1 score --badge

# Surface-scoped <180-token micro-rule brief + learned trap recall before editing files
uvx brevio-core==0.8.1 brief src/app/api/webhook/route.ts

# Compile the latest bug-fix commit into a reusable deterministic guard in .brevio/guards.json
uvx brevio-core==0.8.1 learn

# Score local routes or URLs against the 100-point AEO / llms.txt / JSON-LD rubric
uvx brevio-core==0.8.1 aeo .
```

## 2. Zero-Network Interactive Browser Tools (`connect-src 'none'`)
- **Agent Guard & Rule Playground**: `https://brevio.pro/tools/agent-guard-playground` — Test diffs against deterministic AST & line rules in-browser (`?rule=R9.1` deep-linking supported) with 1-click auto-fix and `.brevio/guards.json` export.
- **123-Rule Encyclopedia & "Spot the Agent Mistake" Challenge**: `https://brevio.pro/tools/rules-encyclopedia` — Browse all 123 rules (`R1.1`–`R19.4`) by tier/category or play the 6-round interactive PR bug-hunting challenge (`https://brevio.pro/tools/rules-encyclopedia?mode=challenge`).
- **/llms.txt, /skill.md & JSON-LD Generator**: `https://brevio.pro/tools/llms-txt-generator` — Client-side generator for agentic discovery manifests and Schema.org structured data.

## 3. Generate an EU-Compliant SaaS Blueprint (POST /api/blueprint)
```bash
curl -s -X POST https://brevio.pro/api/blueprint \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "idea",
    "input": "Automated DORA & vendor security copilot for European fintechs",
    "blocks": ["auth", "payments", "db", "email", "aeo", "eu_compliance"],
    "pricingHint": "Starter €49/mo · Pro €149/mo"
  }'
```
Returns:
- `blueprintId`: Unique Blueprint identifier for `docker run ... init --blueprint <id>`
- `concepts`: 3 Nova `>=3x` product wedges with 14-day Proof-of-Life pass lines
- `compliance`: Live EuroComply MCP EU AI Act tier (`ARTICLE_50_TRANSPARENCY` or `HIGH_RISK_ANNEX_III`), Sovereignty Score, and statutory obligations
- `constitutionMarkdown`: Ready-to-commit `CONSTITUTION.md`
- `roadmap`: Ordered P0/P1 tasks including selected SaaS blocks and EuroComply remediations

## 4. Content Negotiation (Accept: text/markdown)
All public routes (`/`, `/live`, `/research`, `/onboard`, `/tools`) support `Accept: text/markdown` or `.md` suffix (`/live.md`, `/research.md`) with full anti-cloaking parity.