# AI prompt library for architects

From ArchitectureCompass: https://architecturecompass.com/ai-for-architects/prompt-library/

Ready-to-use, vendor-neutral prompts for architecture work. Replace the [bracketed] parts.
Rules that apply to every prompt:

- Use only AI tools your organization has approved for the data you share.
- Never paste credentials, secrets, or personal, payment or health data into an unapproved tool.
- Verify every fact, citation and finding before you rely on it. AI drafts; you decide.

Guardrails: https://architecturecompass.com/ai-for-architects/guardrails-and-governance/

## Discovery and requirements

Source: https://architecturecompass.com/ai-for-architects/discovery-and-requirements/

### 1. Synthesize interviews and workshops

```text
You are helping an enterprise architect synthesize stakeholder interviews.
Below are notes from [N] interviews, each labeled with the person's role.

Produce:
1. Business goals, each with the roles that mentioned it.
2. Pain points with the current situation, grouped by theme.
3. Requirements stated or clearly implied. Mark each as STATED or IMPLIED,
   and quote the sentence it came from.
4. Contradictions between interviews, quoting both sides.
5. Questions I should ask next, and whom to ask.

Rules: do not invent requirements. If something is unclear, list it as a
question instead. Keep each item to one line.

[Paste notes here]
```

### 2. Turn vague wishes into quality attribute scenarios

```text
Convert these non-functional requirements into quality attribute scenarios.
For each, give: source, stimulus, environment, artifact, response, and a
measurable response measure.

Where a number is needed and not given, write [NEEDS NUMBER] and suggest
the question that would get it. Do not make numbers up.

Context: [one paragraph about the system and its users]
Requirements:
[paste list]
```

### 3. Draft a capability map or current-state summary

```text
From the documents below, draft a level-1 and level-2 business capability
map for [organization type]. Capabilities describe WHAT the business does,
not how or which system does it; use noun phrases.

Then list the applications mentioned and which capabilities each supports.
Mark any capability with no supporting application, and any application
mentioned without a clear capability.

Cite the document for every application-to-capability link.

[Paste or attach documents]
```

### 4. Find gaps and contradictions in a requirements set

```text
Review this requirements set as a skeptical senior architect.
List:
- Requirements that conflict with each other, and why.
- Requirements that cannot be tested as written.
- Important areas with no requirements at all (consider security, privacy,
  availability, recovery, audit, accessibility, data retention, operations,
  migration, and cost).
- Assumptions the requirements seem to make that should be confirmed.

[Paste requirements]
```

## Design and trade-offs

Source: https://architecturecompass.com/ai-for-architects/design-and-trade-offs/

### 5. Build a context pack

```text
CONTEXT PACK
System: [what it does, who uses it, volumes]
Business goal: [the outcome and how it's measured]
Constraints: [budget, deadline, regulations, approved cloud/vendors,
              data residency, existing contracts]
Team: [size, skills, what they've run in production before]
Current state: [relevant existing systems and integrations]
Quality scenarios: [the top 3-5, with numbers]
Out of scope: [...]
Principles we follow: [...]
```

### 6. Widen the options

```text
[Context pack]

Decision: [one clear question, e.g. "how should order events reach
billing, warehouse and email?"]

List 4-6 genuinely different options, including keeping what we have.
For each: how it works in two sentences, what it's good at, what it costs
us given OUR constraints and team, and the main risk.
Do not recommend one. Flag any option that conflicts with a constraint.
```

### 7. Red-team your design

```text
[Context pack]

Here is the design we are leaning toward:
[describe it, or paste the draft ADR]

Act as a skeptical principal architect reviewing this for a high-stakes
launch. Find the strongest reasons it could fail:
- quality scenarios it may not meet, and why
- failure modes, single points of failure, data consistency problems
- operational, security and cost risks
- what will be hard to change in two years
Then run a pre-mortem: it's 18 months later and this design was a mistake.
Write the three most likely stories of why.
```

### 8. Draft the decision record

```text
Draft an architecture decision record from the notes below, using these
headings: Title, Status, Context, Options considered, Decision,
Consequences (positive and negative), Revisit when.
Use only what is in the notes. Where something is missing, write [TBD]
rather than filling it in.

[Paste meeting notes, options table and your decision]
```

### 9. Generate diagrams as code

```text
From this description, write a C4 container diagram in Mermaid
(C4Container syntax). Include every external system and person mentioned,
label every relationship with what it carries and the protocol, and do
not add elements that are not in the description.

[Paste description or ADR]
```

## Reviews and auditing

Source: https://architecturecompass.com/ai-for-architects/reviews-and-auditing/

### 10. Review a design against your standards

```text
You are reviewing an architecture design for [organization].
Our principles and standards:
[paste principles, or a well-architected checklist]

Design under review:
[paste design document or ADRs]

For each principle or checklist item, state: MEETS, PARTIAL, DOES NOT MEET,
or NOT ADDRESSED. Quote the part of the design that supports your
assessment. Then list the top five risks, most severe first.
If the design doesn't give you enough information, say so; do not assume.
```

### 11. First-pass threat model

```text
Here is a data flow description of a system, with trust boundaries marked.
[paste description or diagram source]

Apply STRIDE to each element and each flow that crosses a trust boundary.
For each threat: the element, the STRIDE category, a one-line attack
scenario, and a suggested mitigation. Mark threats you consider most
likely and most damaging. Do not include generic threats that don't
apply to this design.
```

### 12. Check that what was built matches what was designed

```text
Our architecture rules:
- [e.g. services only access their own database]
- [e.g. all external calls go through the integration layer]
- [e.g. no personal data in logs]

Review the code and configuration below. For each rule, list any
violations with file and line, and explain in one sentence why it
violates the rule. Then suggest an automated check (test, lint rule or
policy) that would catch this in future.

[attach repository or files]
```

### 13. Map audit evidence to controls

```text
Below are the controls we must evidence for [framework, e.g. SOC 2,
PCI DSS, internal policy], and a set of artifacts (policies, configs,
screenshots, tickets, logs).

Build a table: control | evidence that supports it (artifact name and
section) | strength (strong / partial / none) | what's missing.
Only cite artifacts provided. If no artifact supports a control, say
"none" rather than guessing.

[controls]
[artifacts or descriptions]
```

### 14. Find patterns across incidents and reviews

```text
Here are [N] postmortems and architecture review reports from the last
two years. Identify recurring causes, components that appear repeatedly,
and recommendations that were made more than once but apparently not
implemented. Cite the documents for each pattern.
```

## Understanding legacy systems

Source: https://architecturecompass.com/ai-for-architects/legacy-systems/

### 15. Explain an unfamiliar component

```text
Explain what this [language] code does for an architect who doesn't
read [language]. Cover:
1. Its purpose in business terms, in two sentences.
2. Inputs, outputs and side effects (database writes, files, messages,
   calls to other systems).
3. Business rules it enforces, each with the line numbers.
4. Error handling and what happens on failure.
5. Anything that looks risky, dead, or surprising.
Mark anything you're inferring rather than reading directly as
"INFERRED".

[paste code]
```

### 16. Map integrations and data flows

```text
From the code and configuration below, list every external interaction:
databases and tables read or written, queues and topics, files,
HTTP or SOAP endpoints called or exposed, scheduled jobs.
For each: direction, the system on the other side if identifiable,
data involved, and file/line evidence.
Then produce a Mermaid flowchart of the data flows.

[attach repository, configs, job schedules]
```

### 17. Extract business rules from stored procedures

```text
Analyze this stored procedure. List each business rule as a plain
English statement ("If X and Y, then Z"), with line numbers.
Identify all tables read and written, any transactions and locking,
and any dynamic SQL. Flag rules that look like they might be
exceptions for specific customers, dates or products.

[paste procedure]
```

## QA and test architects

Source: https://architecturecompass.com/roles/qa/

### 18. Test strategy from a design

```text
Here is a design and its quality attribute scenarios. List the test types
needed for each scenario, the boundaries to test at, the test data and
environments required, and the parts of the design that will be hardest
to test. Mark anything you infer rather than read directly.
[paste design]
```

## DBAs and database architects

Source: https://architecturecompass.com/roles/dba/

### 19. Review a database migration

```text
Review this migration for a [PostgreSQL/MySQL/...] database with
[table sizes] under [load]. For each statement: will it lock, rewrite
the table or run long? Suggest a zero-downtime alternative using expand
and contract, and a rollback plan. Mark version-specific behavior.
[paste migration]
```

## SRE and operations

Source: https://architecturecompass.com/roles/sre/

### 20. Map failure modes

```text
Here is the architecture of [service] and its dependencies. List its
failure modes (dependency down, slow, returning errors, overloaded,
region outage), the likely user impact of each, how we'd detect it,
and the fastest safe mitigation. Mark anything inferred.
[paste architecture description]
```

## BAs, PMs and delivery leads

Source: https://architecturecompass.com/roles/delivery/

### 21. Find delivery risk in a design

```text
Read this architecture document as a delivery lead. List every
dependency on another team, vendor or system; every data migration;
every environment or access we'll need; and the decisions still open.
For each, suggest when in the plan it should be addressed.
[paste document]
```

---
Licensed for use and adaptation within your organization. ArchitectureCompass, https://architecturecompass.com
