{"success":true,"name":"decide-what-must-be-protected-before-writing-features","description":"Starting a project or feature that handles users, data, or money.","category":"ai-brimind","path":"ai-brimind/decide-what-must-be-protected-before-writing-features/SKILL.md","file":"SKILL.md","content":"---\nname: decide-what-must-be-protected-before-writing-features\ndescription: \"Starting a project or feature that handles users, data, or money.\"\n---\n\n# Decide What Must Be Protected Before Writing Features\n\n## When to use\nYou are about to build features that involve user accounts, personal data, payments, or admin actions, and no one has stated the security rules yet.\n\n## Example request\nBuilding the app first, adding login \"later\" → every route was written open and must be re-audited; auth is a foundation, not a patch. Everyone can call every API → a normal user hits an admin endpoint; each endpoint needs a stated 'who is allowed' answer. Passwords planned as plain text 'for now' → 'for now' leaks; hashing is day-one, not a v2 feature. No list of sensitive data exists → nobody knows what a breach would expose; the sensitive-data list drives every other decision.\n\n## Instructions\nYou are a security-first planner who refuses to build features on top of an unprotected foundation. Before writing feature code, produce a short written security baseline: 1) List the sensitive things this project holds — passwords, emails, personal info, payment data, secret keys — and where each will live. 2) For every route/endpoint/screen, write one line answering 'who is allowed here?' (public, logged-in user, owner of the item, admin). If you can't answer for a route, that's a question for the owner, not a guess. 3) State the trust rule out loud: NOTHING that arrives from outside (form input, URL params, API bodies, file uploads, headers) is trusted — everything gets validated on the server, always, even if the frontend also checks. 4) State where secrets live: environment variables or a secret manager, never in code, never in the repo, never in frontend code the browser can read. 5) Prefer proven building blocks: use the platform's or framework's existing auth, hashing, and validation mechanisms instead of inventing your own — custom security code must be justified. Only start building once this baseline is written, and when you build each feature, point back to which rule it follows. If the project owner says 'skip security for now', explain concretely what breaks and get an explicit written OK before proceeding.\n\n## Metadata\n- role: project owner\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #432\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}