by Humaan

DNA Workbench

Prompt stem library — copy, paste, ship

Copy-paste prompt stem packs for Cursor. Each stem includes guidelines, expectations, and context so the AI sticks to the workflow.

Install DNA first (no cloning)

Ask Cursor, a Cloud Agent, or Claude to install @superhumaan/dna-by-humaan from npm, or run npx @superhumaan/dna-by-humaan init -y yourself. Stems install on npx @superhumaan/dna-by-humaan doctor.

See install prompts →

59 stem packs — each includes:

  • Copy-paste prompts for Cursor chat
  • guidelines.md — MUST / NEVER rules the AI must follow
  • expectations.md — output format and definition of done
  • Installed to .DNA/stems/<id>/ on npx @superhumaan/dna-by-humaan doctor

Prompt stem packs

Each stem is a copy-paste prompt plus guidelines, expectations, context, and examples — installed to .DNA/stems/ so the AI sticks to the workflow.

59

Stem packs

npx dna doctor installs all stems

Copy a prompt → paste in Cursor → AI reads stem guidelines

Session

Bootstrap, context, health checks

Work with DNA

`.DNA/stems/work-with-dna/`

/work-with-dna

Start any DNA-aware session — plain language, DNA runs CLI and loads context.

Copy into Cursor

Help me with this project using DNA

I just ran dna init — what should we do first?

Use DNA to figure out what this repo needs

Load context

`.DNA/stems/load-context/`

/load-context

Load domain DNA context — security, backend, frontend, QA, compliance.

Copy into Cursor

Load security context for this session

Give yourself full backend DNA context

Load QA and testing context from DNA

Health check

`.DNA/stems/health-check/`

/health-check

Doctor + validate — scaffold health, hooks, CI, rules, with plain-English results.

Copy into Cursor

Is DNA healthy?

Check if DNA is set up correctly

Fix my git hooks and CI scaffolding

Keep DNA current

`.DNA/stems/keep-dna-current/`

/dna-update

Upgrade DNA CLI and refresh workbench stems + knowledge packs.

Copy into Cursor

Update DNA to the latest version

Refresh prompt stems and knowledge packs

Is there a newer DNA CLI?

Analysis

Understand codebase, gaps, audits

Analyze project

`.DNA/stems/analyze-project/`

/analyze-project

Deep analysis — stack, auth, integrations, P1–P3 gaps, ordered next steps.

Copy into Cursor

Run a full analysis on my project

Analyze this codebase and tell me what's missing for DNA maturity

What are the P1 gaps in this repo?

What next after analyze?

`.DNA/stems/what-next-after-analyze/`

/what-next

Turn analyze output into an actionable plan — P1 gaps, IVF, shared library, features.

Copy into Cursor

I ran analyze. React, 80 API routes, P1 shared library gap, P1 build rules missing. What do I do next?

Here's my analyze output — what should we tackle first?

What do I do next with this analysis?

Scan project

`.DNA/stems/scan-project/`

/scan-project

Quick stack scan — dependencies, tests, CI, Impressions drift score.

Copy into Cursor

Quick scan of this project

Check for Impressions drift

What's the drift score?

Stack & hosting

`.DNA/stems/stack-hosting/`

/stack-hosting

Show detected stack, hosting, and which CI workflows DNA scaffolds.

Copy into Cursor

What stack did DNA detect?

Are we on Vercel — will preview CI install?

Show hosting and database detection

Recommend architecture

`.DNA/stems/recommend-architecture/`

/recommend-stack

Solution architecture and stack recommendations from DNA.

Copy into Cursor

Recommend a stack for this greenfield project

What architecture should we use?

Run DNA recommend for this app

Security audit

`.DNA/stems/security-audit/`

/security-audit

Security-focused analysis — auth patterns, secrets, OWASP alignment.

Copy into Cursor

Run a security audit on this codebase

Check auth patterns and secrets handling

Are we following DNA security behaviour?

Features

Plan and ship through agent loop

Ship a feature

`.DNA/stems/ship-feature/`

/ship-feature

Plain-language feature → agent loop → plan approval → implement → quality → push.

Copy into Cursor

Add an admin portal for support staff

Build RBAC for managers and HR

I want providers to record phone calls and transcribe notes

Plan feature

`.DNA/stems/plan-feature/`

/plan-feature

Plan a platform feature from requirements — no implementation yet.

Copy into Cursor

Plan the audit logging feature

DNA plan feature for notifications

Scope this feature before we build

Plan RBAC

`.DNA/stems/plan-rbac/`

/plan-rbac

Plan RBAC and zero-trust from plain-language requirements.

Copy into Cursor

Plan RBAC for admin and support roles

Design zero-trust access for this API

Who should see what in the admin portal?

Generate feature scaffold

`.DNA/stems/generate-feature/`

/generate-feature

Generate code scaffold for a DNA platform feature (audit-logging, etc.).

Copy into Cursor

Generate audit logging scaffold

Scaffold the notifications platform feature

Platform codegen

`.DNA/stems/platform-codegen/`

/platform-codegen

Scaffold SSO, multi-tenant, feature flags, gradual rollout, or audit logging.

Copy into Cursor

Scaffold SSO for this app

Add multi-tenant middleware

Generate feature flags scaffold

Set up gradual rollout per tenant

Agent loop

Per-role feature factory prompts — PA, SA, BE, FE, UX, QA, ship

Product Analyst

`.DNA/stems/role-product-analyst/`

/product-analyst

Refine the feature ask — problem, users, acceptance criteria in feature-request.md.

Copy into Cursor

Run Product Analyst on this feature request

Refine the feature ask — who's affected and what does done look like?

Update feature-request.md from what I just described

Solution Architect

`.DNA/stems/role-solution-architect/`

/solution-architect

Implementation plan — scope, files, API, security, risks. STOP for user approval before code.

Copy into Cursor

Run Solution Architect — give me a plan before any code

Design the implementation for this feature

What's the architecture for this change?

Backend Engineer

`.DNA/stems/role-backend-engineer/`

/backend-engineer

Implement routes, services, validation, auth/RBAC, database, tests.

Copy into Cursor

Run Backend Engineer on the approved plan

Implement the API layer for this feature

Build backend for this feature per the architect plan

Frontend Engineer

`.DNA/stems/role-frontend-engineer/`

/frontend-engineer

Pages, components, API integration, loading/error/empty states.

Copy into Cursor

Run Frontend Engineer — build the UI for this feature

Implement the frontend per the approved plan

Wire up the pages and components

UX Reviewer

`.DNA/stems/role-ux-reviewer/`

/ux-reviewer

Review flow clarity, labels, friction, design system consistency.

Copy into Cursor

Run UX Reviewer on this feature

Review the UX flow and fix friction

Check labels, errors, and design consistency

QA Engineer

`.DNA/stems/role-qa-engineer/`

/qa-engineer

Happy path, permissions, edge cases, regression tests.

Copy into Cursor

Run QA Engineer — test this feature end-to-end

Write and run tests for happy path and edge cases

QA this feature before we ship

Code Quality Analyst

`.DNA/stems/role-code-quality/`

/code-quality

Run quality report until PASS — lint, coverage, SAST.

Copy into Cursor

Run Code Quality Analyst — quality gate must PASS

Fix quality blockers until PASS

Run dna quality report on this feature

Refactor Reviewer

`.DNA/stems/role-refactor-reviewer/`

/refactor-reviewer

No duplication, repo patterns, no dead code.

Copy into Cursor

Run Refactor Reviewer on this feature branch

Check for duplication and dead code

Final code review before release

Final Release Reviewer

`.DNA/stems/role-final-release/`

/final-release

Quality PASS → docker build → github push. Feature complete.

Copy into Cursor

Run Final Release Reviewer — ship this feature

Close out: quality, docker, push

Feature is done — run the ship workflow

Run full agent loop

`.DNA/stems/agent-loop-full/`

/agent-loop

Execute all nine roles in order — stop at architect for approval, then build through ship.

Copy into Cursor

Run the full agent loop for this feature

Execute feature factory role by role

Product Analyst through Final Release — full loop

Quality

Gates, scans, pre-push review

Quality gate

`.DNA/stems/quality-gate/`

/quality-gate

Pre-ship lint, coverage, SAST — must PASS before push.

Copy into Cursor

Are we ready to push?

Run the quality gate on my changes

Check if this feature passes DNA quality

Quality scan

`.DNA/stems/quality-scan/`

/quality-scan

Quick quality scan to stdout — no report file.

Copy into Cursor

Quick quality scan

Any SAST issues right now?

Pre-push review

`.DNA/stems/pre-push-review/`

/pre-push-review

Final review before push — quality, scope, secrets, commit hygiene.

Copy into Cursor

Review my changes before I push

Pre-push checklist

Compliance

GDPR, HIPAA, documents, engineering

Plan compliance

`.DNA/stems/plan-compliance/`

/plan-compliance

Tiered GDPR, HIPAA, ISO 27001, SOC 2, PCI — plan, packs, checklist.

Copy into Cursor

Are we GDPR ready?

Plan HIPAA controls for this app

What compliance do we need for EU B2B SaaS?

Compliance documents

`.DNA/stems/compliance-documents/`

/compliance-documents

UK GDPR document catalog and scrubbed templates.

Copy into Cursor

List required GDPR documents

Generate compliance document pack

GDPR engineering checklist

`.DNA/stems/gdpr-engineering/`

/gdpr-engineering

Engineering checklist for GDPR — consent, retention, DSAR, logging.

Copy into Cursor

GDPR engineering checklist for this feature

Check consent and retention on this flow

Legal

Jurisdiction law, banking, healthcare, IP, legal advisor

Debug

Runtime issues, AI repair

Debug issue

`.DNA/stems/debug-issue/`

/debug-issue

Runtime error → classify → fix → test → quality → push.

Copy into Cursor

Users get 403 on the admin API — debug it

Fix this production error with DNA context

AI repair

`.DNA/stems/ai-repair/`

/ai-repair

DNA AI repair workflow for classified runtime issues.

Copy into Cursor

Run DNA AI repair on this issue

Classify and propose fix for this runtime error

Runtime investigate

`.DNA/stems/runtime-investigate/`

/runtime-investigate

Investigate runtime observer data and immune system classifications.

Copy into Cursor

What errors has DNA captured?

Show runtime incidents from DNA observer

Dashboard monitor

`.DNA/stems/dashboard-monitor/`

/dashboard-monitor

Open DNA Lab — runtime feed at /labs and quality trends.

Copy into Cursor

Open DNA Lab at /labs

Show quality trends and runtime feed

Monitor DNA observer data live

Documentation

Impressions sync and generation

Sync Impressions

`.DNA/stems/sync-impressions/`

/sync-impressions

Reconcile DNA/Impressions/ with codebase when docs drift.

Copy into Cursor

Our docs are out of date with the code

Sync Impressions with the codebase

Impressions drift PR

`.DNA/stems/impressions-drift-pr/`

/drift-pr

Open a draft GitHub PR when Impressions drift exceeds threshold.

Copy into Cursor

Open a PR to fix doc drift

Impressions are stale — automate a sync PR

Scan and open PR if drift is critical

Document from code

`.DNA/stems/document-from-code/`

/document-code

Generate or update documentation from codebase analysis.

Copy into Cursor

Generate docs from this codebase

Update architecture docs from code

IVF

Brownfield integration and shared library

Plan IVF

`.DNA/stems/plan-ivf/`

/plan-ivf

Integrating Vertical Functions plan — phased brownfield integration.

Copy into Cursor

Create an IVF plan for this monolith

How do we integrate DNA without a rewrite?

Run IVF

`.DNA/stems/ivf-run/`

/ivf-run

Brownfield IVF — analyze, document, plan, wire DNA into existing projects.

Copy into Cursor

Run IVF on this brownfield project

Integrate DNA into this legacy codebase

IVF shared library

`.DNA/stems/ivf-shared-library/`

/ivf-shared-library

Shared library extraction — analyze, dry-run, scaffold packages/humaan-ui.

Copy into Cursor

Extract a shared UI library

Dry-run shared library extraction to packages/humaan-ui

We have no shared component library — fix that

IVF shared library execute

`.DNA/stems/ivf-shared-library-execute/`

/ivf-execute

Execute shared library extraction — copy, rewire imports, test, rollback on failure.

Copy into Cursor

Execute the shared library migration

Run ivf shared-library --execute

Migrate duplicate UI components into packages/humaan-ui

Delivery

Docker, GitHub, CI

Docker build

`.DNA/stems/docker-build/`

/docker-build

Build Docker image — mandatory feature factory close-out gate.

Copy into Cursor

Build the Docker image

Run docker build gate

GitHub push

`.DNA/stems/github-push/`

/github-push

Commit and push feature branch after quality PASS.

Copy into Cursor

Push this feature to GitHub

Commit and push the branch

CI install

`.DNA/stems/ci-install/`

/ci-install

Scaffold GitHub Actions — lint, test, coverage, security.

Copy into Cursor

Install DNA CI workflows

Set up GitHub Actions for this project

Methodology

Tickets, specs, and org delivery models

Methodology setup

`.DNA/stems/methodology-setup/`

/methodology-setup

Configure how your team plans, documents, and tickets work.

Copy into Cursor

We work in Scrum with Jira — configure DNA for that

Set up DNA for tribe/squad delivery like Agoda

Configure methodology for Shape Up

Create ticket

`.DNA/stems/create-ticket/`

/create-ticket

Write work items in org-correct format (Jira, Linear, GitHub, Azure DevOps).

Copy into Cursor

Write Jira tickets for this feature

Create stories for the checkout epic

Draft Linear issues for this work

Write spec

`.DNA/stems/write-spec/`

/write-spec

Write PRD, design doc, RFC, or pitch per methodology and doc system.

Copy into Cursor

Write a design doc for this feature

Draft a PRD for the admin portal

Shape Up pitch for search improvements

Break down work

`.DNA/stems/break-down-work/`

/break-down-work

Decompose initiative/epic into stories or scopes per methodology hierarchy.

Copy into Cursor

Break this epic into stories

Split the initiative into squad work

Decompose for sprint planning

Align delivery

`.DNA/stems/align-delivery/`

/align-delivery

Audit a plan or artifact against how this team actually works.

Copy into Cursor

Does this plan match how we work?

Check if these tickets fit our Scrum process

Align this spec with our tribe model

Marketplace

Search and install knowledge packs

Marketplace install

`.DNA/stems/marketplace-install/`

/marketplace-install

Install a knowledge pack into .DNA/knowledge/.

Copy into Cursor

Install the React knowledge pack

Add GDPR compliance pack to DNA

Memory

CellularMemory export and import

Memory export

`.DNA/stems/memory-export/`

/memory-export

Export CellularMemory segments to JSON.

Copy into Cursor

Export CellularMemory

Backup DNA memory to JSON

Memory import

`.DNA/stems/memory-import/`

/memory-import

Import CellularMemory from export file with merge.

Copy into Cursor

Import DNA memory from backup

Merge CellularMemory from export file

Memory sync

`.DNA/stems/memory-sync/`

/memory-sync

Sync CellularMemory from team registry — export, import, conflict resolution.

Copy into Cursor

Sync DNA memory with the team registry

Pull latest CellularMemory from shared path

Merge team memory into this project

Real scenarios

Multi-step flows — each links to stem packs you can copy-paste.

Fresh project — doctor then analyze

I ran dna init. Is everything OK and what should we tackle first?
  1. Cursor runs npx dna doctor — reports ✓/✗ (hooks, CI, rules, runtime)
  2. Cursor runs npx dna analyze — stack, surfaces, vertical gaps
  3. Cursor prioritizes P1 items (shared library, behaviour restructure, build rules)
  4. Cursor proposes: IVF plan, marketplace packs, or first feature via /ship-feature

After analyze — what do I do next?

I ran analyze. React frontend, 80 API routes, P1 shared library gap, P1 build rules missing. What now?
  1. Use stem: what-next-after-analyze
  2. Cursor explains P1 gaps in plain English
  3. Shared library → ivf-shared-library stem
  4. Build rules → capture MUI patterns into .DNA/knowledge/
  5. Ask which path to start

Build a feature end-to-end

Full agent loop
Add an admin dashboard for support — new tab, RBAC, only visible to admins
  1. Stem: ship-feature → agent loop
  2. Solution Architect plan → wait for OK
  3. Backend → Frontend → UX → QA → quality-gate → github-push

Brownfield — integrate DNA without rewrite

This is a legacy React monolith. Integrate DNA properly without a rewrite.
  1. Stems: analyze-project → plan-ivf → ivf-run (phase 1 only)

Copy-paste from stem library

Pick a stem from dna.humaan.app/intelligence, paste into Cursor
  1. Copy a copyVariant or full prompt from stem library
  2. AI reads .DNA/stems/<id>/ guidelines + expectations
  3. AI follows MUST/NEVER rules for that workflow

Upgrade DNA CLI and refresh stems

Update DNA — is there a newer CLI and fresh prompt stems?
  1. Stem: keep-dna-current → npx dna update
  2. Report CLI version change and stem catalog refresh
  3. List marketplace pack updates

Scaffold platform feature (SSO, flags, multi-tenant)

Add SSO with Okta and feature flags for gradual rollout
  1. Stem: platform-codegen → generate feature sso + feature-flags
  2. Review .DNA/plans/ and wire scaffolds
  3. quality-gate before ship

Docs drift — scan and open PR

Our Impressions are stale — open a PR if drift is bad
  1. npx dna scan — compare drift to config thresholds
  2. npx dna scan --open-pr if above autoPrThreshold
  3. Summarize PR or manual sync plan

Sync CellularMemory with team registry

Pull the latest team DNA memory into this repo
  1. npx dna memory sync
  2. Report merged segments and conflicts

Agent loop

Triggered by the ship-feature stem — approve the plan once.

  1. Product Analystplan

    Refine the ask — problem, users, acceptance criteria in ai/feature-request.md

  2. Solution Architectplan

    Implementation plan — scope, files, API, security, risks. **Stop here for approval.**

    User must approve before any code

  3. Backend Engineerbuild

    Routes, services, validation, auth/RBAC, database, tests

  4. Frontend Engineerbuild

    Pages, components, API integration, loading/error states

  5. UX Reviewerbuild

    Flow clarity, labels, friction, design system consistency

  6. QA Engineerverify

    Happy path, permissions, edge cases, regression

  7. Code Quality Analystverify

    npx dna quality report --feature until PASS

  8. Refactor Reviewerverify

    No duplication, repo patterns, no dead code

  9. Final Release Reviewership

    Docker build + GitHub push — feature complete