Skip to content

PROMPTS (Prompt Recipes)

Copy/paste prompts for using enterprise-software-playbook with an AI coding assistant.

If your assistant supports “skills”, name them explicitly (e.g., workflow). If not, point it at the referenced SKILL.md files.

Conversational bootstrap (auto-route)

Use this to start most sessions:

Use workflow (read skills/workflow/SKILL.md).

Follow the default loop: Define → Standardize → Harden → Verify.
Keep overhead proportional (tiny changes stay lightweight).

For non-trivial work, externalize first:
- objective function (goal, constraints, anti-goals)
- one-page system sketch (boundary/time horizon, actors/incentives, key flows, bottlenecks)
- compact decision table (options, trade-offs, kill criteria)
- measurement ladder (leading/lagging indicators, owner/cadence, action trigger)
- structured-thinking probes (assumptions, second-order effects, opportunity cost/bias; add feedback loops for big-scope or high-ambiguity work)

If you change a boundary contract/semantics (HTTP/gRPC/events/WS), update specs/contracts first and pin behavior with tests.

For non-trivial work, run finish before reporting completion.
When you finish, report: skills applied, what changed, verification, follow-ups.

Task: <describe what you want>

Define (what are we building?)

Write/update a spec bundle

Use spec (read skills/spec/SKILL.md).

Goal: <feature/bug/refactor intent>

Before implementing, write or update the relevant spec bundle:
- System-level: specs/*.md and/or specs/decisions/*.md (if cross-service or significant)
- Service-level: apps/<service>/spec/ (spec.md, contracts/, plan.md, tasks.md, quickstart.md)

Include: acceptance scenarios, edge cases, failure-mode expectations, and a verification plan.
Also include: objective function, system sketch, decision table, structured-thinking probe, measurement ladder, and kill criteria.

Create an implementation plan (tasks + verification)

Use plan (read skills/plan/SKILL.md).

Task: <what do you want to build/fix?>

Produce an ordered checklist of tasks with acceptance checks and exact verification commands (or ask once if unknown).
Keep it short and reversible.
Include: system sketch, decision table, structured-thinking probe, blast-radius check, and measurement ladder.

Choose a system/architecture pattern

Use architecture (read skills/architecture/SKILL.md).

Context: <system pressure(s): partial failures, consistency, cross-service workflows, integration seams>
Constraints: <latency/SLOs, scalability, team boundaries, compliance>

Recommend the smallest viable pattern(s), risks/anti-patterns, and a validation plan.
Include: options table, what each option worsens, opportunity cost, kill criteria, pre-mortem risks, and a failure-propagation map.

Measure architecture health before refactoring

Use archobs (read skills/archobs/SKILL.md).

Target repo: <path>
Goal: Measure coupling, boundary leakage, and risk hotspots before choosing a refactoring or architecture change.

Run the full analysis and report:
- top risk files
- leakiest clusters
- drift assessment
- the next skill to invoke based on the dominant findings

Gather intelligence signals on a topic

Use intel (read skills/intel/SKILL.md).

Topic: <technology, vendor, standard, or trend to research>
Goal: Produce a focused intelligence brief with trending signals, search hits, and evidence.

Run the full workflow: collect signals, rank by relevance, and synthesize into a brief with source citations and a clear "so what".

Shape intel into an audience-aware brief

Use intel (read skills/intel/SKILL.md).

Audience: <practitioner | executive | engineering | decision | daily digest | architecture decision>
Topic: <what the brief is about>
Goal: Synthesize intel signals into a reader-ready brief tailored to the target audience.

Filter and rank signals through the audience lens and produce a brief readable in under 2 minutes.

Forecast external technology shifts

Use forecast (read skills/forecast/SKILL.md).

What external technology shifts should we be watching? Run a forecast (external mode)
and tell me what's likely to happen next, what's driving it, and what we should prepare for.

Predict next features from development patterns

Use forecast (read skills/forecast/SKILL.md).

Run archobs on this repo, then run forecast in internal mode. What areas are most
active, what kinds of changes are happening, and what features are likely next?

Sprint planning with development trajectory

Use forecast (read skills/forecast/SKILL.md).

I'm planning next sprint. Run forecast in internal mode over the last 14 days.
Where is momentum concentrated and what does the pattern suggest we should build next?

Full situational awareness

Use forecast (read skills/forecast/SKILL.md).

Give me full situational awareness on this codebase: architecture health, development
trajectory, external forecast, and compound risks. Run forecast in combined mode.
What should we prioritize?

Choose an in-process/design pattern

Use design (read skills/design/SKILL.md).

Context: <construction/structure/behavior pressure>
Constraints: <testability, extensibility, performance, simplicity>

Recommend the smallest viable pattern and show how it fits this codebase.

Standardize (make it consistent)

Extract a shared “golden path” primitive

Use platform (read skills/platform/SKILL.md).

Problem: We have repeated boundary logic across services (timeouts/retries/error mapping/telemetry fields/etc.).
Goal: Propose a small shared primitive (two-consumer rule) that removes copy/paste drift.

Include: API shape, error envelope, time budget policy, telemetry field contract, and adoption steps.
Use adoption maturity tracks (V0/V1/V2) with entry criteria.

TypeScript safety/refactor pass

Use typescript (read skills/typescript/SKILL.md).

Goal: Improve maintainability and runtime safety without changing behavior.
Focus: typed boundaries, explicit lifetimes, safe module structure, and predictable error handling.

Harden (make it survive reality)

Resilience hardening for I/O boundaries

Use resilience (read skills/resilience/SKILL.md).

Boundary: <HTTP/gRPC/DB/cache/queue/external API>
Risk: <timeouts, retries, at-least-once delivery, partial failure>

Add explicit time budgets + cancellation propagation. Only add retries when safe and idempotent.

Security hardening for boundaries

Use security (read skills/security/SKILL.md).

Boundary: <HTTP/gRPC/WS/events/outbound HTTP/DB/etc>
Risk: <authn/authz, injection, SSRF, secrets/PII, multi-tenant isolation>

Add authn/authz checks, strict input validation, safe logging/telemetry, and SSRF/injection guardrails where applicable.

Observability instrumentation + verification

Use observability (read skills/observability/SKILL.md).

Boundary: <HTTP/gRPC/events/jobs>
Goal: Add correlated logs/traces/metrics and local verification steps (log → trace → metrics).

Define a stable telemetry field contract (IDs, names) and avoid high-cardinality metrics labels.
Map metrics to a named decision and define a review ritual (owner/cadence/action trigger).

Triage an incident / regression (log → trace → metrics)

Use debug (read skills/debug/SKILL.md).

Symptom: <what is broken/slow?>
Environment: <local/dev/staging/prod>
Time window: <start/end>
Exemplar: <traceId/requestId/log line timestamp/etc>

Guide a systematic investigation and end with: evidence, hypothesis, mitigation, and a fix/follow-up plan.
Include a failure-propagation map (what breaks next/silently/organizationally).

Verify (prove behavior)

Add consumer-centric tests

Use testing (read skills/testing/SKILL.md).

Goal: Pin consumer-visible behavior for <feature/bug/refactor>.
Approach: characterization tests before refactors; avoid asserting implementation details.

Run an adversarial code review debate

Use review (read skills/review/SKILL.md).

Review type: general
Scope: <PR link / diff / commit range / file list>
Output dir: <where to write 1-critique.txt ... 4-verdict.txt>

Run the 4-phase protocol and finish with the skill’s output template.

Finish (definition-of-done pass)

Use finish (read skills/finish/SKILL.md).

Before calling the work done:
- run the best-available verification commands (tests/typecheck/lint/build)
- spot-check boundary discipline where applicable (timeouts/authz/telemetry)
- report two packets:
  - executive packet (goal, decision/bet, risks, signals/ritual, next step)
  - engineer packet (what changed, verification, risks/follow-ups)
- include a short learning loop (outcome vs expectation, assumption confirmed or updated, one owner-backed improvement if expectations diverged)

Structured Thinking (decision-quality add-ons)

These prompts augment the normal skill workflows above with deeper decision stress-testing via template packs. They do not replace the skill's own workflow — the skill still runs its full playbook (pattern chooser, clarifying questions, implementation tactics, etc.).

For most non-trivial work, the compact probes built into each skill are sufficient. Use these add-on prompts when escalation criteria are met: 3+ options with no clear winner, multiple stakeholders must align, rollback/incident needs formal learning capture, or big-scope probes surfaced unresolved ambiguity.

Full template details live in skills/references/structured-thinking-templates.md. Compact probe index lives in skills/references/structured-thinking-checklists.md.

Run a technical design review

Use architecture (read skills/architecture/SKILL.md).
Design for: <system/boundary being designed>
Additionally, run the Technical Design Review template for deeper decision stress-testing
(see skills/references/structured-thinking-templates.md — Technical Design Review).
Prioritize: assumptions, feedback loops, second-order effects.

Run a trade-off / project decision analysis

Use plan (read skills/plan/SKILL.md).
Decision: <what are we choosing between?>
Options: <list options, including status quo>
Additionally, run the Trade-Off / Project Decision template for deeper analysis
(see skills/references/structured-thinking-templates.md — Trade-Off / Project Decision).
Prioritize: assumptions, opportunity cost, second-order effects.

Run a retrospective / postmortem

Use finish (read skills/finish/SKILL.md) for delivery learning,
 or debug (read skills/debug/SKILL.md) for incident triage.
Context: <what happened — delivery, incident, or rollback>
Additionally, run the Retrospective / Postmortem template for formal learning capture
(see skills/references/structured-thinking-templates.md — Retrospective / Postmortem).
Prioritize: learning loop (outcome vs expectation, assumption update, owner-backed action).

Frame a technical recommendation for async review

Use finish (read skills/finish/SKILL.md).
Recommendation: <what action/decision this PR/ADR is requesting>
Reviewers: <who will review and approve>
Additionally, run the Recommendation Brief template for structured async review framing
(see skills/references/structured-thinking-templates.md — Recommendation Brief).
Prioritize: evidence, counterpoints, explicit owner + next step.

Pattern Implementation

Implement a specific design pattern

Use design (read skills/design/SKILL.md).

Pattern: <specific pattern name, e.g., Builder, Facade, Strategy>
Context: <what pressure this pattern addresses>

Read the relevant pattern reference from skills/design/references/ and apply it.