Skip to content

Instant download. Pay once, keep it forever.

AI Prompts for Coding & Engineering: 363 One-Page Briefs That Get Usable Work Back cover
AI Prompts for Coding & Engineering: 363 One-Page Briefs That Get Usable Work Back, preview 1
AI Prompts for Coding & Engineering: 363 One-Page Briefs That Get Usable Work Back, preview 2
AI Prompts for Coding & Engineering: 363 One-Page Briefs That Get Usable Work Back, preview 3
AI Prompts for Coding & Engineering: 363 One-Page Briefs That Get Usable Work Back, preview 4
AI Prompts for Coding & Engineering: 363 One-Page Briefs That Get Usable Work Back, preview 5
1 / 6

AI Prompts for Coding & Engineering: 363 One-Page Briefs That Get Usable Work Back

by Rokiah & Dol

  • 414 pages
  • EPUB + PDF (2 files)
  • 3 MB
  • English

RM 39.00

The download link goes here. No marketing email.

Printed on the invoice we email with your download.

Secure checkout by Curlec · Instant download

  • Download link in your inbox the moment payment clears
  • Yours to keep. Re-download any time from My library
  • EPUB and PDF on phone, tablet, laptop or paper
  • Pay by FPX online banking or card. We never see your card details.

What you'll learn

Paste your own code, logs or schema into the brackets and get a first draft you can check in two minutes.

  • Design the system

    Run event storming, find bounded contexts, decide if services pay for themselves and design background jobs.

  • Build and document APIs

    Choose REST or GraphQL, design endpoints, write the OpenAPI contract and set up gateways and rate limits.

  • Look after the data

    Debug slow queries, plan indexes, and write migrations with a rollback script and a backup step first.

  • Review and test code

    Review pull requests, turn specs into test cases, write unit tests and triage the tech debt list.

  • Ship and run it

    Design pipelines and canary rollouts, set SLOs and alerts, assign incident roles and write blameless postmortems.

  • Secure and polish

    Design auth and permissions, plan caching, audit slow pages and fix accessibility barriers.

About this book

You ask an AI assistant to fix a bug, write a migration or review a pull request, and you get confident code that calls a function your library never had, with a setting your version does not support and tests that "pass" without ever running. The problem is not the assistant. It is the brief.

Every page in this book is a finished brief. Find the engineering job in front of you, paste the prompt, fill the brackets with your own code, logs, schema and versions, and get a first draft you can check in two minutes.

AI Prompts for Coding & Engineering is Volume 3 of The Prompt Collection: 363 prompts for the people who design, build, ship and run software, one page and one job each.

What is inside (363 prompts, 8 parts, 18 chapters)

  • Design: system design documents, domain boundaries, multi-region and multi-tenant choices, capacity plans, microservices, events and queues
  • Build: REST and GraphQL design, OpenAPI contracts, versioning, webhooks, SDKs, API docs, gateways, rate limits and error responses
  • Data: schema reviews, slow queries, indexes, safe migrations, replication, backups and restores
  • Improve: self-review, pull request descriptions, code review comments, unit, integration and load tests, legacy code and tech debt
  • Ship: CI/CD pipelines, blue-green and canary releases, feature flags, Docker, Kubernetes, infrastructure as code, cloud cost
  • Run: logging, metrics, tracing, alerts, retries, circuit breakers, incidents, postmortems, SLOs and disaster recovery
  • Secure: authentication, permissions, secrets and rotation, API and web security reviews, zero trust
  • Polish: performance and caching, frontend and mobile, accessibility, READMEs, tickets and onboarding

On every page

  • When: the moment the prompt is for
  • The prompt: a role, your stack and inputs in brackets, a numbered list of what comes back, and a rules line that tells the AI to use only your code and versions, say when it is not sure a function or setting exists, and never claim a test passed
  • Check the answer: two or three tests that take under two minutes
  • Then ask: the follow-up that takes the answer one step further

Who this is for

  • Developers and tech leads who use an AI assistant every day
  • DevOps and SRE engineers who want runbooks, migrations and postmortems with a rollback step in them
  • Engineering managers and founders who still code

Works with ChatGPT, Claude, Gemini, Microsoft Copilot or the assistant in your editor. No setup.

Format

PDF (A5, 414 pages, one prompt per page, searchable, with a Find a Prompt index) and EPUB. By Rokiah & Dol, Ruji Labs Services, October 2026.

Contents · 18 chapters · 414 pages

What's inside, chapter by chapter

Start here

  1. How to Use This Bookp. 6
    • What is on every page
    • Four habits that make these prompts work
    • Finding the right page
    • Which assistant to use
    • What these prompts will not do

Part 1 · DESIGNDesign the system

  1. 01System Design and Architecturep. 11
    • Facilitate the event storming session
    • Turn the storming wall into bounded contexts
    • Carve the domain into bounded contexts
    • Decide if splitting into services pays for itself
    • Pick how your services talk
    • Map who owns the data
    • Design the data pipeline from source to dashboard
    • Design a distributed system that tolerates failure
  2. 02Microservices, Events and Queuesp. 33
    • Design your first background job system
    • Move slow request work into background jobs
    • Write a job worker with retries and a dead-letter queue
    • Debug jobs that run twice or never run
    • Decide if event-driven architecture earns its cost
    • Draw the service boundaries and their event flows
    • Publish events reliably with the outbox pattern
    • Review an event design before anyone builds it

Part 2 · BUILDBuild the APIs

  1. 03API Design and Documentationp. 59
    • Decide between REST and GraphQL for the next API
    • Design the REST API's resources and URLs
    • Design each endpoint's inputs and outputs
    • Write the design document for a new API
    • Write the OpenAPI contract for the API
    • Write the API design rules for the team
    • Design the GraphQL API for this product
    • Model the domain as GraphQL types
  2. 04Gateways, Limits and API Errorsp. 91
    • Decide whether we need an API gateway
    • Design the gateway layer
    • Map the cross-cutting concerns at the edge
    • Write the gateway routing and security config
    • Keep gateway config consistent across environments
    • Set up our first API gateway
    • Move live traffic behind the gateway safely
    • Decide the error contract for the new API

Part 3 · DATALook after the data

  1. 05Schemas, Queries and Indexesp. 117
    • Decide how big your connection pool should be
    • Write the connection pool configuration
    • Debug a slow query step by step
    • Audit the indexes you already have
    • Design the index plan for a new schema
    • Watch index health over time
    • Test an index before you ship it
    • Fix a query that regressed after a deploy
  2. 06Migrations, Replication and Backupsp. 138
    • Choose between a migration window and zero downtime
    • Review a migration before it touches production
    • Write the migration and its rollback script
    • Backfill a big table without locking it
    • Design the phases of a large migration
    • Rehearse a migration on a production copy
    • Watch a migration while it runs
    • Recover a migration that failed halfway

Part 4 · IMPROVEReview, test and improve the code

  1. 07Code Review and Pull Requestsp. 157
    • Review your own change before you ask for review
    • Write the pull request description from the diff
    • Review a teammate's pull request
    • Review a hotfix in ten minutes
    • Sort a long review into must, should and could
    • Rewrite your review comments so they get acted on
    • Turn a review into a lesson for the author
    • Teach a new reviewer with a real diff
  2. 08Testing at Every Levelp. 169
    • Decide the testing strategy for a new project
    • Sort our test suite into a pyramid
    • Set coverage targets that mean something
    • Turn a feature spec into test cases
    • Write unit tests for this function
    • Teach the team how we test units
    • Plan the integration tests for this system
    • Write the rules for fakes and stubs
  3. 09Refactoring, Legacy Code and Tech Debtp. 183
    • Map what the legacy module actually does
    • Decide between refactoring, rewriting or leaving it
    • Decide if the monolith should split
    • Triage the tech debt list
    • Run the monthly debt review
    • Set up a debt log the team will keep
    • Make the case for paying down debt
    • Write characterization tests around legacy code

Part 5 · SHIPShip it and host it

  1. 10CI/CD, Releases and Feature Flagsp. 201
    • Design a blue-green swap for your app
    • Design a canary rollout with tripwires
    • Decide what your pipeline must do
    • Design a pipeline for a new service
    • Write the pipeline file your platform runs
    • Write quality gates that catch real escapes
    • Write the promotion flow to production
    • Audit the pipeline you already have
  2. 11Containers, Cloud and Infrastructurep. 230
    • Rewrite a Dockerfile for smaller, faster builds
    • Stand up a local stack with Compose
    • Design how configuration reaches each environment
    • Audit configuration and secrets before they leak
    • Preflight a container deployment before it goes live
    • Plan the move of one service to Kubernetes
    • Decide whether your team needs an orchestrator
    • Write your first infrastructure module in code

Part 6 · RUNKeep it running

  1. 12Logs, Metrics and Observabilityp. 245
    • Decide what to monitor first
    • Choose the observability tools to run
    • Write the observability plan for the team
    • Map what each service should report
    • Decide what gets logged and what does not
    • Write the logging rules for every service
    • Add structured logging to a service
    • Review a service against the logging rules
  2. 13Errors, Retries and Resiliencep. 272
    • Design the error handling plan for one service
    • Write the error types and the one handler
    • Review a service for swallowed errors
    • Test every failure path before release
    • Set the timeouts on one call chain
    • Write the retry helper with backoff and jitter
    • Decide where the circuit breakers go
    • Fix a circuit breaker that opens too often
  3. 14Incidents, SLOs and Recoveryp. 288
    • Set reliability targets your users feel
    • Decide what happens when the budget runs out
    • Write the burn rate alert script
    • Explain the error budget to your product manager
    • Assign incident roles before the next page
    • Write severity levels the whole team agrees on
    • Design the escalation path for a major incident
    • Walk a new on-call through the first week

Part 7 · SECURELock it down

  1. 15Security, Auth and Secretsp. 315
    • Choose how users sign in and what they may do
    • Decide how services prove who they are
    • Design the signing-in experience end to end
    • Design the security controls for a new API
    • Write the role and permission matrix
    • Migrate users off the old sign-in system
    • Design the security architecture for a new system
    • Threat model the feature before you build it

Part 8 · POLISHPolish what people see

  1. 16Performance and Cachingp. 343
    • Decide What to Cache First
    • Design the Cache Layer Map
    • Write Cache Keys That Cannot Collide
    • Write a Cache-Aside Wrapper
    • Test a Cache for Stale Reads
    • Audit a Slow Page from a Trace
    • Rank Frontend Fixes by Impact
    • Fix a Slow Largest Contentful Paint
  2. 17Frontend, Mobile and Accessibilityp. 364
    • Audit a web app for accessibility barriers
    • Turn an accessibility audit into a fix plan
    • Write the team's accessibility rules
    • Make a component keyboard and screen reader friendly
    • Write the public accessibility statement
    • Pick the right chart for the data
    • Document a design system component
    • Decide how uploads reach the server
  3. 18Docs, Tickets and the Teamp. 388
    • Turn a vague bug report into a triaged ticket
    • Write the issue templates for your repo
    • Split an oversized story into sprint-sized pieces
    • Set the documentation rules your team follows
    • Write the README that gets someone running
    • Write the guide from the code you shipped
    • Write the support article that answers it once
    • Design the system prompt for a production AI feature

At the back of the book

  1. Find a Promptp. 399
  2. Disclaimerp. 414

Look inside

Real pages from the book

  • AI Prompts for Coding & Engineering: 363 One-Page Briefs That Get Usable Work Back, p. 12: System Design and Architecture
    p. 12 · System Design and Architecture
  • AI Prompts for Coding & Engineering: 363 One-Page Briefs That Get Usable Work Back, p. 202: CI/CD, Releases and Feature Flags
    p. 202 · CI/CD, Releases and Feature Flags
  • AI Prompts for Coding & Engineering: 363 One-Page Briefs That Get Usable Work Back, p. 290: Incidents, SLOs and Recovery
    p. 290 · Incidents, SLOs and Recovery
  • AI Prompts for Coding & Engineering: 363 One-Page Briefs That Get Usable Work Back, p. 400: Find a Prompt
    p. 400 · Find a Prompt

From · System Design and Architecture

These prompts cover the design work before the first pull request: mapping a domain, choosing between the big options like services, tenancy and regions, planning for traffic you do not have yet, and writing the design down well enough that a new hire could build from it. The habit that makes them work: paste the real constraints, your current load, your team shape, what you already run. An assistant that designs from nothing invents numbers and calls them facts.

When: the team is about to design a system around a domain nobody has mapped yet.

``` Act as a facilitator who has run event storming sessions across several industries.

The session:

Plan the workshop:

2. The prompts that surface events, commands, policies and disagreements 3. The marks to put on the wall and what each one stands for 4. How we capture wording, conflicts and open questions as they come up 5. What the session must produce, and what to leave for the next one

Rules: use only what I told you. Mark anything you assume with (assumption). Where you need a domain detail I did not give, list it as a question at the end instead of guessing. ```

Then ask: "Write the invitation message for the participants: what to bring, under 120 words."

When: the workshop ended and the wall is covered in events nobody has organized yet.

``` Act as a domain modeler who turns event storming results into a design teams can build.

What I bring:

Extract the design from the wall:

The book continues for 402 more pages.

Is this book for you?

Made for

  • You are a software developer, tech lead, DevOps or SRE engineer, or engineering manager.
  • You are a founder who still writes code.
  • You use an AI assistant for code every day, in any language or stack, on a team of 1 to 200.
  • You are tired of answers that invent functions, flags and config keys, or ignore the code you pasted.

Not the right book if

  • You are learning to code from zero.
  • You want the AI to deploy or run commands for you.

Questions about this book

Which AI assistant do these coding prompts work with?

Any of them. The prompts are tool-neutral briefs you paste into the assistant you already use, or the one your company approves.

How do the prompts stop the AI from inventing APIs?

Each prompt asks for your stack and versions, and its Rules line says to use only APIs and settings that exist in those versions, and to say so when unsure. You still read and test every change.

What does one prompt page include?

A title naming the job, a When line, the prompt with labelled brackets for your code, logs or schema, a Rules line, a Check the answer box and one Then ask follow-up.

Can I paste production secrets or customer data?

No. The brackets ask for configs with secrets replaced, and plans for migrations, deletes and deploys include a dry run or backup first and a rollback step. Follow your company's AI policy.

How is the 414-page book organized?

363 prompts in 18 chapters across 8 parts: design, build, data, improve, ship, run, secure and polish. A Find a Prompt index at the back lists them by job.

AI Prompts for Coding & Engineering: 363 One-Page Briefs That Get Usable Work Back

RM 39.00