mir-backend

Solid

Make It Right (backend pillar). Constraint-first backend planning protocol for AI coding agents — AI makes code that WORKS on the happy path; this makes it RIGHT under concurrency, failure, and load. Forces the model OUT of pattern-completion ('autocomplete from latent space') and INTO explicit constraint discovery before any code is written. Use whenever a task involves backend logic that changes state, touches money/inventory/auth, spans multiple tables or services, runs under concurrency, or persists data beyond a single request. Runs a hard-gated pipeline: Intent → Constraint Interrogation → Assumption Ledger → Invariants & Failure Modes → Risk Register → Design Review → Implementation → Production-Readiness Review. Spawns specialized reviewer sub-agents. Chains into a runtime tier (e.g. mir-backend-python for CPython concerns) and a framework module (e.g. mir-backend-python-fastapi for FastAPI/SQLAlchemy/Alembic). TRIGGER for backend work in ANY language (Python, Node, TypeScript, Go, Rust, Java, Kotlin,

AI & Automation 15 stars 0 forks Updated 1 weeks ago Apache-2.0

Install

View on GitHub

Quality Score: 81/100

Stars 20%
40
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# /mir-backend · Make It Right (backend) > **AI makes it work. Make It Right.** > The premise of this skill: **LLMs do not fail at writing code. They fail at knowing what code to write.** > Pattern-completion produces locally-correct code that silently violates invariants nobody wrote down. This skill replaces "generate, then hope" with "discover constraints, gate on confirmation, then generate." ## Your persona while this skill is active You are a **senior backend reliability architect**, not an autocomplete engine. Direct, intellectually sharp, no fluff. You challenge weak assumptions kindly. You think three steps ahead. You are the expert in the room who speaks plainly. Your prime directive: **Do not assume unspecified behavior. If requirements are ambiguous, stop and ask. Prioritize operational correctness over architectural elegance.** ## The one rule that matters most **You are FORBIDDEN from writing implementation code until Gate 5 passes.** (Override only with `--advisory`.) Gates 0–5 are about discovering what's true. Gate 6 is the *only* place code appears. Gate 7 verifies it. If you find yourself writing a function before the Assumption Ledger is confirmed, you have already failed — stop and back up. --- ## The Pipeline (hard-gated) ``` Gate 0 Intent & Triage ─ restate real intent, classify risk surface Gate 1 Constraint Interrogation ─ spawn interrogator → ask user 2-4 Qs w/ defaults [USER GATE] Gate 2 Assumption Ledger ─ write assum...

Details

Author
anantbhandarkar
Repository
anantbhandarkar/make-it-right
Created
3 months ago
Last Updated
1 weeks ago
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Web & Frontend Solid

mir-frontend

Make It Right (frontend pillar). Constraint-first frontend planning protocol — AI generates components that LOOK right; this makes them RIGHT under async, state transitions, hydration, and accessibility. Forces explicit UX/state/interaction contracts before code: debounce and cancellation semantics, empty/error/stale/offline states, optimistic update and rollback, focus management. Runs a hard-gated pipeline: Constraint Interrogation → Assumption Ledger → Invariants & UI State Machine → Risk Register → Design Review → Production-Readiness. Carries framework-agnostic browser security: raw-HTML injection, client-side authorization as a hint and never a control, public env vars shipped in the bundle, CSP/Trusted Types, and CSRF. Chains: this → reactivity tier (mir-frontend-react, mir-frontend-vue, or mir-frontend-vanilla for plain-DOM work) → framework module (mir-frontend-react-next, mir-frontend-vue-nuxt). TRIGGER for browser UI work in any reactive library or none — components, hooks, composables, forms, data

15 Updated 1 weeks ago
anantbhandarkar
API & Backend Solid

mir-database

Make It Right (database pillar). Constraint-first schema and data-modeling protocol. Decides what is TRUE of the data before the first CREATE TABLE. Forces explicit decisions on cardinality and ownership, natural vs surrogate keys, what the database enforces vs what the application enforces, deliberate denormalization, nullability as a domain statement, soft delete's effect on uniqueness and foreign keys, tenancy model (shared-schema tenant column, schema-per-tenant, database-per-tenant), index design driven by the actual query set, and migration safety on populated tables. Runs the hard-gated pipeline: Intent → Constraint Interrogation → Assumption Ledger → Invariants & Enforcement Boundary → Risk Register → Design Review → DDL/Migration → Production-Readiness. Engine-independent. Chains: this → an engine module. TRIGGER when the task designs or changes a schema, data model, keys, constraints, indexes, tenancy layout, or a migration against populated tables. SKIP for application business logic, transaction/i

15 Updated 1 weeks ago
anantbhandarkar
AI & Automation Solid

mir-devsecops

Make It Right (DevSecOps pillar). Constraint-first protocol for the path from commit to production - AI writes pipelines that go green, not pipelines safe to trust. Covers: supply chain (dependency pinning and lockfile integrity, install-script execution, typosquatting and slopsquatting of AI-hallucinated package names, SBOM, Sigstore/SLSA provenance); CI identity (the pull_request_target class of GitHub Actions bug, actions pinned by commit SHA not tag, secrets in forked-PR runs, OIDC federation, not long-lived cloud keys); secret storage, rotation, and detection; IaC (Terraform state as a credential store, drift, plan-vs-apply review, policy-as-code); containers (base-image provenance, non-root, scanning, registry trust); runtime IAM least privilege and egress restriction. Records per control WHERE it is enforced and whether it BLOCKS or WARNS. TRIGGER for CI/CD workflow files, release pipelines, Dockerfiles, Terraform/OpenTofu/Pulumi/Helm/Kubernetes manifests, dependency and lockfile changes, secret handli

15 Updated 1 weeks ago
anantbhandarkar