CommunityEscrita e Ediçãogithub.com

blueprint-conformance/bce

Blueprints with Teeth — the blueprint conformance engine: authored architectural intent, enforced in CI.

O que é bce?

bce is a Claude Code agent skill that blueprints with Teeth — the blueprint conformance engine: authored architectural intent, enforced in CI.

Funciona com~Claude Code~Codex CLI~Cursor
npx skills add blueprint-conformance/bce

Installed? Explore more Escrita e Edição skills: steipete/notion, affaan-m/seo, affaan-m/brand-voice · View all 6 →

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

BCE — diagnose, repair, and prove architecture conformance

BCE is a fail-closed architecture-conformance gate. A blueprint is policy; source code is the normal repair surface. Prefer the repository's BCE MCP server for diagnosis and working-tree verification. Use the CLI only when MCP is unavailable or the requested lifecycle operation is intentionally absent from MCP.

Choose the shortest workflow

  • Existing repository is red: follow the MCP-first repair loop below. Do not load lifecycle authoring material.
  • Readiness or setup looks broken: call doctor_repository {} before the gate.
  • A blueprint or gate may be vacuous: call validate_blueprint, then assess_teeth.
  • The user asks to create or adopt a new rule: read references/lifecycle.md before acting. Authoring and governance changes use the CLI and require human review.
  • The user asks to tune an Agent Skill: use the separate skill-tuning skill.

MCP-first repair loop

  1. Call run_gate {}. The generated server starts in the repository, so omit repoDir unless the user deliberately targets another tree.
  2. Read structured fields, not the process exit alone:
    • gateFailed: true, outcome: "violation", or a report verdict: "fail" is RED;
    • outcome: "refusal" is RED and must not be routed around;
    • advisory mode may return exitCode: 0 while the substantive verdict is still RED.
  3. Use each violation's constraintId, evidenceRef, observed, and expected to identify the smallest source-code correction.
  4. Change code, not policy. Do not edit blueprints, baselines, mode, waivers, workflows, MCP config, installed skills, or engine pins merely to clear a violation.
  5. Call run_gate {} again against the live working tree. Finish only when gateFailed is false, outcome is pass, and every selected report passes.
  6. Report the exact violation fixed, changed code files, final score/verdict, and whether policy changed. A normal repair must say policy did not change.

The MCP server exposes six read-only tools:

ToolUse it for
doctor_repositoryinstallation, scope, proof, policy, CI, skill, and MCP readiness
run_gatelive-tree diagnosis and the final done-check
validate_blueprintschema and safe-pattern validation
assess_teethnon-vacuity evidence
check_baselinenew debt and shrink opportunities without changing policy
get_reporta deterministic report already written by the engine

MCP cannot ratify, amend, graduate, create a baseline, or weaken policy. That absence is a security boundary, not missing functionality.

CLI fallback

If the project has no working BCE MCP server, use the exact local package rather than fetching a moving version:

bce gate --repo . --extractor ast --all

For an uncommitted repair, gate already scans the live tree. If you intentionally run one blueprint directly, add --no-pin; otherwise run grades committed HEAD by default:

bce run --blueprint <path> --ct-repo . --no-pin --extractor ast --out compliance-report.json

Exit 0 is a process pass only after reading advisory state and the report verdict. Exit 1 is a graded violation or structural refusal; exit 2 is a fail-closed scan/refusal condition. Treat 1 and 2 as RED.

Policy boundary

The following are governed surfaces: .blueprints/**, .bce-mode.json, baseline and waiver files, the BCE workflow, agent/MCP configuration, installed skills, and engine pins. Do not change one as an incidental repair. If the contract itself is wrong, stop and propose a separate reviewed policy change with rationale.

Never:

  • lower a threshold, grow a baseline, or narrow scope just to obtain green;
  • interpret advisory exit 0 as conformance when reports still fail;
  • claim a constraint works without a discriminating RED;
  • report evaluator-refutable as extractor-real teeth;
  • treat a structural refusal as a pass;
  • claim an agent-operated run is independent-human evidence.

Authoring and adoption

Only load references/lifecycle.md when the task is to create, validate, prove, onboard, ratify, or operate a contract. It contains the constraint grammar, extraction profiles, exact commands, advisory/baseline/graduation path, and CI invariants.

The detailed specification and evidence semantics ship with the package under spec/ and docs/. Prefer those local, version-matched files over a moving web page.

Habilidades Relacionadas

steipete/notion

Notion CLI/API for pages, Markdown content, data sources, files, comments, search, Workers, and raw API calls.

community

affaan-m/seo

Audit, plan, and implement SEO improvements across technical SEO, on-page optimization, structured data, Core Web Vitals, and content strategy. Use when the user wants better search visibility, SEO remediation, schema markup, sitemap/robots work, or keyword mapping.

community

affaan-m/brand-voice

Build a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then reuse that profile across content, outreach, and social workflows. Use when the user wants voice consistency without generic AI writing tropes.

community

affaan-m/crosspost

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

community

affaan-m/x-api

X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.

community

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

community