Spaces:
Sleeping
Sleeping
Download .cursor/rules/truthpack-first-protocol.mdc from vinith17/CodeBug: direct link, hf CLI and curl.
- Browser
- Download file 2.51 kB
-
https://huggingface.co/spaces/vinith17/CodeBug/resolve/main/.cursor/rules/truthpack-first-protocol.mdc
- Command line
-
hf download hf://spaces/vinith17/CodeBug/.cursor/rules/truthpack-first-protocol.mdc
-
curl -L -o truthpack-first-protocol.mdc https://huggingface.co/spaces/vinith17/CodeBug/resolve/main/.cursor/rules/truthpack-first-protocol.mdc
2.51 kB
| --- | |
| 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 --> |