Coding prompts · Prompt

Secure-by-design questions (prompt)

review-secure-by-design-questions-prompt

A prompt that lists secure-by-design questions a design should answer, grouped by theme, as a checklist on auth and data. Use when the user wants secure by design questions, a security question checklist, or the questions to settle before coding.

Works with: Any AI Not yet model-tested; testing Jan 2027

Paste it into ChatGPT, Claude, Gemini or any AI chat, then tell it about your project. How it works

Install in Claude Code, Cursor or Codex (optional)

Only for AI coding tools that read skill folders. Run one line in a terminal, in your project folder. It downloads this skill's text files from TheSkillVault and nothing else; you can read them first with “View raw SKILL.md”.

Claude Code (all your projects)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/review-secure-by-design-questions-prompt/raw' -o ~/'.claude/skills/review-secure-by-design-questions-prompt/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/review-secure-by-design-questions-prompt/files/LICENSE.txt' -o ~/'.claude/skills/review-secure-by-design-questions-prompt/LICENSE.txt'

Cursor (this project)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/review-secure-by-design-questions-prompt/raw' -o '.cursor/skills/review-secure-by-design-questions-prompt/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/review-secure-by-design-questions-prompt/files/LICENSE.txt' -o '.cursor/skills/review-secure-by-design-questions-prompt/LICENSE.txt'

Codex and other Agent Skills tools (this project)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/review-secure-by-design-questions-prompt/raw' -o '.agents/skills/review-secure-by-design-questions-prompt/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/review-secure-by-design-questions-prompt/files/LICENSE.txt' -o '.agents/skills/review-secure-by-design-questions-prompt/LICENSE.txt'

Or connect the whole library over MCP

Add TheSkillVault to Cursor or add this to your app's MCP settings (read-only; help):

{
  "mcpServers": {
    "theskillvault": {
      "url": "https://theskillvault.ai/mcp"
    }
  }
}

This prompt asks the security questions a design should answer before anyone builds it. It does not write a threat model.

When to use

  • You have an idea or a sketch and want the security questions first.
  • You need a checklist on auth, data and who can reach the system.
  • A review asks what the design still has to settle.

When not to use

  • You already have a design doc and want a critique. Use review-system-design-prompt.
  • You want abuse paths tied to code. Use threat-model-your-app.

Steps

  1. Describe what you plan to build in a few sentences. Name who uses it.
  2. Add any hard limit, such as "no accounts" or "data stays on device".
  3. Paste it into the prompt below. Leave out secrets.
  4. Answer the questions yourself. Do not treat a question as a finding.

Prompt

Read the design notes. Write questions only. Do not answer them and do not invent facts about the product.

DESIGN NOTES:
{{DESIGN NOTES}}

# Overview
Two short sentences: what is being built, and why it needs security thought.

# Secure by design questions
Group the questions under these headings. Add a heading only if it fits.
- Who can reach it
- Identity
- Data
- Failure
- Change

Rules:
- Write 12 to 20 questions.
- Each question is one sentence and names a choice the builder must make.
- Cover auth and data when the notes include them.
- If the notes do not mention a theme, skip it. Do not assume a vendor, a cloud or a password store.
- Do not give fixes. Questions only.

How to adapt

  • A hardware or physical system? Keep the same groups. Swap "Identity" for "Who is allowed on site".
  • You already chose a stack? Paste that limit under DESIGN NOTES so the questions respect it.

Gotchas

  • Do not paste API keys, passwords, customer data or private URLs into a public AI.
  • A long question list is not a threat model. Rank the answers yourself before you build.

Portability

Works with any AI chat and any kind of system. No stack lock-in.

Done when

  • There are 12 to 20 questions under named groups.
  • Each item is a question, not a fix or an invented fact.

Example prompt

"List the secure by design questions this design should answer before we code."

---

Converted from the "ask_secure_by_design_questions" pattern in danielmiessler/Fabric (MIT, Copyright (c) 2012-2024 Scott Chacon and others). See LICENSE.txt.

Bundled files

Licence

Adapted from Daniel Miessler and Fabric contributors (ask_secure_by_design_questions pattern) (Copyright (c) 2012-2024 Scott Chacon and others), MIT License. Converted by TheSkillVault into a fill-in prompt: kept grouped secure-by-design questions and a short overview, set a 12 to 20 question range, added a questions-only rule, steps and done-when. Queue name ask-secure-by-design-questions-prompt; ask is not a house verb.

Licence: MIT License. Attribution when you reuse it: Based on work by Daniel Miessler and Fabric contributors (ask_secure_by_design_questions pattern) (Copyright (c) 2012-2024 Scott Chacon and others, MIT License), https://github.com/danielmiessler/Fabric/blob/8ce0909d8622a61b6aaf539d467ba31bb7e0b6dd/data/patterns/ask_secure_by_design_questions/system.md; adapted by TheSkillVault, https://theskillvault.ai