Spaces:
Sleeping
Sleeping
File size: 2,511 Bytes
b4deece | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | ---
description: Truthpack-First Protocol β MANDATORY truthpack consultation before any code generation
alwaysApply: true
---
## TRUTHPACK-FIRST PROTOCOL (MANDATORY)
### BEFORE YOU WRITE A SINGLE LINE OF CODE, YOU MUST:
1. Read the relevant truthpack file(s) from `.vibecheck/truthpack/`
2. Cross-reference your planned change against the truthpack data
3. If the truthpack disagrees with your assumption, the truthpack wins
### Truthpack Files β The SINGLE Source of ALL Truth
| File | Contains |
|---|---|
| `product.json` | Tiers (Free/Pro/Team/Enterprise), prices, features, entitlements |
| `monorepo.json` | All packages, dependencies, entry points, build commands |
| `cli-commands.json` | Every CLI command, flags, subcommands, tier gates, exit codes |
| `integrations.json` | Third-party services (Stripe, GitHub, PostHog, OAuth), SDK versions |
| `copy.json` | Brand name, taglines, CTAs, page titles, descriptions |
| `error-codes.json` | Error codes, classes, HTTP status codes, exit codes, messages |
| `ui-pages.json` | Frontend routes, page components, auth requirements, layouts |
| `deploy.json` | Railway, Netlify, Docker, K8s, CI/CD pipelines, environments |
| `schemas.json` | Database tables, columns, migrations, Zod schemas, API contracts |
| `routes.json` | Verified API routes, methods, handlers |
| `env.json` | Verified environment variables |
| `auth.json` | Auth mechanisms, protected resources |
| `contracts.json` | API request/response contracts |
### Absolute Rules
1. **NEVER invent tier names** β read `product.json` first
2. **NEVER invent CLI flags** β read `cli-commands.json` first
3. **NEVER invent error codes** β read `error-codes.json` first
4. **NEVER guess package names** β read `monorepo.json` first
5. **NEVER hallucinate API routes** β read `routes.json` first
6. **NEVER fabricate env vars** β read `env.json` first
7. **NEVER guess prices or features** β read `product.json` first
8. **NEVER invent UI copy** β read `copy.json` first
### On Conflict
- The truthpack is RIGHT, your assumption is WRONG
- Run `vibecheck truthpack` to regenerate if you believe it is outdated
- NEVER silently override truthpack-verified data
- Violation = hallucination β must be corrected immediately
### Verification Badge (MANDATORY)
After EVERY response where you consulted or referenced any truthpack file, you MUST end your response with the following badge on its own line:
*Verified By VibeCheck β
*
---
<!-- vibecheck:context-engine:v2 --> |