The Research Report
PromptKit v0.6.1: 157 Composable Components and the Prompt Engineering Lifecycle That Finally Grew Up
Microsoft's open-source prompt component library has matured from a clever experiment into something that looks suspiciously like real engineering infrastructure — and it now covers hardware, firmware, and RF, not just software.
When Microsoft released PromptKit v0.1.0, it was a neat idea: decompose prompts into composable, version-controlled components instead of copy-pasting monolithic prompt blobs. Cute. When v0.3.0 arrived with 41 new components and a C/C++ analysis ecosystem, it started looking serious. Now, at v0.6.1, PromptKit has ballooned to 157 composable components — 15 personas, 48 protocols, 21 formats, 5 taxonomies, and 64 templates — covering not just software engineering but hardware design, embedded firmware, RF engineering, mechanical engineering, and protocol engineering.
The story isn't just the component count. It's that PromptKit has built something most prompt engineering tools still lack: a lifecycle. Three interactive workflows — Bootstrap, Evolve, and Maintain — now cover the full arc from extracting specs from existing code to propagating changes with adversarial audits to detecting drift before it becomes debt. That's engineering, not prompting.
What PromptKit Actually Is
If you haven't been following along, PromptKit is Microsoft's open-source (MIT-licensed) library of composable prompt components at github.com/microsoft/PromptKit. The core idea: prompts are engineered artifacts, not throwaway text. They should have the same version control, composition, and review discipline you apply to your code.
The library is organized into five semantic layers:
| Layer | Count | Purpose |
|---|---|---|
| Personas | 15 | Who the LLM is — domain expertise, tone, behavioral constraints |
| Protocols | 48 | How it reasons — analysis steps, guardrails, reasoning patterns |
| Formats | 21 | What the output looks like — document structure rules |
| Taxonomies | 5 | How findings are classified — domain-specific label schemes |
| Templates | 64 | The task itself — composes the above layers with task-specific instructions |
A template like review-cpp-code doesn't just say "review this C++ code." It assembles a systems-engineer persona, the cpp-best-practices analysis protocol (7 research-validated patterns), the win32-api-conventions protocol (10 MSDN-sourced patterns), the adversarial-falsification guardrail, and the investigation-report format into a single coherent prompt. The components snap together like LEGO bricks — each one independently versioned, testable, and reusable.
The Growth Trajectory: 55 → 96 → 131 → 171 → 157
Here's the component growth by version:
- v0.1.0 (Feb 2026): 55 components. Software-only. The foundation.
- v0.2.0: Incremental additions.
- v0.3.0 (March 2026): 96 components. The C/C++ analysis ecosystem landed — 7 research-cited best-practice patterns, 10 Win32 API conventions, 10 performance-critical C API patterns, 8 WinRT design patterns, 21 MSVC↔Clang/GCC portability patterns. Plus adversarial bug hunting with falsification discipline and exhaustive path tracing.
- v0.4.0 (March 2026): 131 components. The first non-software domain. Electrical engineering (schematic review, BOM audit, PCB layout, simulation validation), embedded firmware, protocol engineering, interface contracts, quantitative budget validation.
- v0.5.0 (April 2026): ~135 components. Engineering lifecycle workflows. RF engineering and mechanical engineering personas. The
assemblecommand was removed — the LLM itself now handles composition viabootstrap.md. - v0.6.0 (April 2026): 171 components (per CATALOG.md). Hardware design workflow end-to-end — from requirements to manufacturable PCB artifacts. CLI discovery commands. Presentation authoring.
- v0.6.1 (April 2026): The current release. A hotfix that removed
shell: truefrom the CLI spawn and bumped the version. The README now states 157 components (15 personas, 48 protocols, 21 formats, 5 taxonomies, 64 templates across 4 pipelines).
The apparent discrepancy between v0.6.0's 171 and v0.6.1's 157 is explained by a recount that consolidated overlapping components. The v0.4.0 CATALOG.md listed 171, but the current README headline — "157 components — 15 personas · 48 protocols · 21 formats · 5 taxonomies · 64 templates across 4 pipelines" — reflects the authoritative count after cleanup.
The Three Workflows That Make This Engineering, Not Prompting
The real differentiator in v0.6.x isn't the component count. It's the three lifecycle workflows:
1. Bootstrap (spec-extraction-workflow)
Problem: You have an existing codebase with no specs. Or specs that are years out of date.
What it does: Scans any repository and extracts structured requirements, design, and validation specifications from existing code and artifacts. It doesn't just summarize — it reverse-engineers behavioral contracts, API specifications, and invariants from the implementation itself.
Entry point: npx @alan-jowett/promptkit (interactive mode) or Read and execute templates/spec-extraction-workflow.md
This is the "archaeology" phase. You throw a repo at it and get back three structured documents: requirements, design, and validation specs. No more flying blind on legacy code.
2. Evolve (engineering-workflow)
Problem: A requirement changes. You need to propagate that change through specs and implementation without breaking things.
What it does: Takes a requirements change and propagates it through design specs, validation plans, and implementation with adversarial alignment audits at each stage. Each transition is challenged — the LLM must justify why the change doesn't break anything before proceeding.
The five internal stages: collaborate-requirements-change → generate-spec-changes → audit-spec-alignment → generate-implementation-changes → audit-implementation-alignment
This is where the adversarial falsification protocol earns its keep. The LLM doesn't just accept changes — it must disprove potential problems before reporting completion.
3. Maintain (maintenance-workflow)
Problem: Code and specs drift apart over time. Nobody notices until something breaks.
What it does: Periodic drift detection that finds where code and specs have diverged, then corrects both. Uses the specification-drift taxonomy (D1–D16) to classify findings — untraced requirements, orphaned design decisions, assumption drift, constraint violations, and illusory test coverage.
The maintenance workflow feeds back into Bootstrap when drift is detected. It's a closed loop:
Bootstrap ──→ Evolve ──→ Maintain
│
└── drift detected ──→ Bootstrap
This is the lifecycle prompt engineering has been missing. Most tools treat prompts as static text. PromptKit treats them as living specifications that need drift detection, adversarial review, and version-controlled evolution — the same discipline you'd apply to any production engineering artifact.
The C/C++ Analysis Ecosystem
The v0.3.0 C/C++ ecosystem remains one of PromptKit's most impressive domain-specific additions:
- 7 research-cited C++ best-practice patterns (CPP-1 through CPP-7), grounded in published work from Microsoft Security Response Center (MSRC), Lu et al., Bloch, and others
- 10 MSDN-public Win32 API convention patterns (WG-001 through WG-010) covering naming, typing, and design
- 10 performance-critical C API patterns (PC-001 through PC-010) for system libraries, game engines, and drivers
- 8 WinRT design patterns (WRT-001 through WRT-008) for Windows Runtime APIs
- 21 MSVC↔Clang/GCC portability patterns across 7 categories
These aren't generic "be careful with memory" suggestions. They're specific, research-grounded analysis protocols that the review-cpp-code template composes together. When you run:
npx @alan-jowett/promptkit show review-cpp-code
You get a prompt that applies all of these protocols systematically — each finding must reference the specific pattern it violates, each pattern is grounded in published research or public standards, and the overall review follows an adversarial falsification discipline where every finding must survive challenge.
The exhaustive-bug-hunt template goes further. It combines adversarial falsification with exhaustive path tracing — every file gets a coverage ledger proving full analysis, and the kernel-defect-categories taxonomy provides 14 defect classes (K1–K14) specifically for OS kernel and driver code.
Beyond Software: Hardware, RF, and Firmware
The v0.4.0 and v0.5.0 releases pushed PromptKit far beyond software:
Electrical Engineering
review-schematic— Audits schematics against requirements and component datasheetsvalidate-simulation— Reviews SPICE/simulation output against spec constraintsreview-bom— Bill of materials audit (part numbers, voltage ratings, sourcing risks)review-layout— PCB layout review (DRC, trace widths, impedance, ground planes)validate-budget— Quantitative margin analysis (power, timing, memory)
Hardware Design Workflow (v0.6.0)
End-to-end from requirements to manufacturable artifacts:
author-requirements-doc → design-schematic → review-schematic →
validate-simulation → review-bom → design-pcb-layout →
review-layout → emit-manufacturing-artifacts
Each design stage is interleaved with an adversarial audit stage. The component-selection protocol includes real-time sourcing verification and weighted decision matrices. The component-selection-audit protocol catches hallucinated part numbers and stale specs — yes, LLMs will fabricate Digi-Key part numbers, and PromptKit has a specific protocol to catch it.
RF Engineering
audit-link-budget— RF link budget analysis with path loss model validity, regulatory compliance, and environmental assumption sensitivityrf-engineerpersona — Dedicated RF and antenna engineering expertise
Embedded Firmware
embedded-firmware-engineerpersona — Boot sequences, OTA updates, flash memory management, power-fail-safe operations, watchdog timers, device recoveryspec-invariant-auditprotocol — Specification-level verification that catches assumptions firmware makes about hardware that aren't documented anywhere
Mechanical Engineering
review-enclosure— Enclosure design audit for electronic assemblies (PCB fit, thermal management, antenna compatibility, manufacturing feasibility)mechanical-engineerpersona
Protocol Engineering
extract-rfc-requirements— Extracts structured requirements from RFCs and internet-draftsevolve-protocol— Drafts protocol evolution proposals with migration analysisanalyze-protocol-conflicts— Detects conflicts and ambiguities between protocol specificationsauthor-rfc— Authors RFCs in xml2rfc v3 format
The Composition Model: How 157 Components Become Millions of Prompts
The power isn't in having 157 components. It's in how they compose. A template references a persona, one or more protocols, an optional taxonomy, and a format. The investigate-bug template, for example, assembles:
- Persona (
systems-engineer): Domain expertise and behavioral constraints - Protocol (
root-cause-analysis): Systematic analysis steps - Protocol (
self-verification): Verification checklist - Format (
investigation-report): Output structure requirements - Template-specific instructions: The task itself
But you can swap any layer. Need the same bug investigation but with adversarial rigor? Add the adversarial-falsification protocol. Need it for C++ specifically? Switch to the review-cpp-code template which composes the C++ best-practice patterns automatically. Need the output as structured findings instead of a narrative report? Swap the format.
The CLI makes this discoverable:
# Browse all 157 components
npx @alan-jowett/promptkit list --all
# Search by keyword
npx @alan-jowett/promptkit search "memory safety"
# Show a component with cross-references
npx @alan-jowett/promptkit show review-cpp-code
# Filter by type or category
npx @alan-jowett/promptkit list --type protocol --language C++
Four Pipelines, One Lifecycle
The 64 templates aren't random — they're organized into four compositional pipelines:
- Document Lifecycle:
author-requirements-doc → author-design-doc → author-validation-plan → audit-traceability - Hardware Lifecycle:
author-requirements-doc → design-schematic → review-schematic → validate-simulation → review-bom → design-pcb-layout → review-layout → emit-manufacturing-artifacts - Protocol Engineering:
extract-rfc-requirements → evolve-protocol → author-protocol-validation → analyze-protocol-conflicts - Engineering Workflow (five internal stages):
collaborate-requirements-change → generate-spec-changes → audit-spec-alignment → generate-implementation-changes → audit-implementation-alignment
The output of one template becomes the input parameter of the next. This isn't just "prompts that reference each other" — it's a typed pipeline where each stage has explicit input/output contracts.
The Spec-Drift Taxonomy: Why This Matters
One of PromptKit's most underrated innovations is the specification-drift taxonomy (D1–D16). When the maintenance workflow detects that code and specs have diverged, it doesn't just say "they're different." It classifies the drift:
- D1: Untraced requirement — a requirement with no corresponding implementation
- D2: Orphaned design decision — a design element with no requirement
- D3: Assumption drift — implicit assumptions that have changed since the spec was written
- D4–D16: Various other drift categories covering constraint violations, test coverage gaps, and more
This is the kind of structured diagnostic that makes the difference between "something's off" and "requirement REQ-42 has no corresponding test case and the implementation diverged from the design spec on March 15."
What's Changed from Earlier Versions
If you've been following PromptKit since earlier articles, here's what v0.6.1 specifically brings:
Since v0.5.0:
- Hardware design workflow — end-to-end from schematic design to manufacturing artifacts
- Interactive schematic design (KiCad output), PCB layout, and manufacturing artifact generation
- Presentation authoring via python-pptx
- CLI discovery commands (
list,search,show) - Copilot prompt file output mode (
.prompt.mdslash commands) - Agentic workflow output mode (GitHub Actions automations)
- Agent instructions for custom agents and CLI skills
Since v0.3.0 (the C++ release):
- 65+ new components across hardware, firmware, RF, mechanical, and protocol domains
- Three engineering lifecycle workflows
- Five compositional pipelines
- Assembly quality fix (100% protocol content retention vs. as little as 6% before)
- CLI simplification (223 lines of redundant code removed)
The Honest Assessment
PromptKit v0.6.1 is genuinely impressive in scope and engineering discipline. The composition model is sound. The lifecycle workflows address a real gap in prompt engineering — treating prompts as living artifacts rather than static text. The domain-specific protocols (especially the C/C++ analysis ecosystem and the hardware design workflow) show deep domain expertise.
But there are legitimate questions:
- The 157→171→157 count dance. The component count fluctuated between releases before settling at 157. This suggests the team is still iterating on what counts as a "component" versus an enhancement to an existing one. That's fine for a v0.x project, but it's worth noting.
- LLM dependency for composition. v0.5.0 removed the
assemblecommand entirely. Composition now relies on the LLM readingbootstrap.mdand correctly assembling components. This is architecturally cleaner but introduces a dependency on LLM quality for what is fundamentally a deterministic composition operation. The v0.5.0 release notes acknowledge a bug where LLMs summarized protocol content instead of including it verbatim — 6% retention in some cases. The fix was a verbatim inclusion rule, which is a band-aid on an architectural problem.
- Hardware design via LLM. The hardware design workflow generates KiCad schematics and PCB layouts. This is ambitious and potentially useful for initial design exploration, but anyone shipping hardware needs to verify every component selection and design decision independently. The
component-selection-auditprotocol that catches hallucinated part numbers is a pragmatic acknowledgment that LLMs will fabricate Digi-Key part numbers.
- Adversarial self-audit. The
audit-library-consistencytemplate lets PromptKit audit its own components. Its first run found and fixed 18 findings. This is both a strength (the library can improve itself) and a concern (the LLM is both author and auditor of its own prompts).
Getting Started
# Install and launch interactive bootstrap
npx @alan-jowett/promptkit
# Or clone for Copilot integration
git clone https://github.com/microsoft/PromptKit.git
cd PromptKit
copilot # /promptkit skill auto-activates
# Browse the catalog
npx @alan-jowett/promptkit list --all
# Search for components
npx @alan-jowett/promptkit search "C++ memory safety"
Works with GitHub Copilot CLI, Claude Code, and OpenAI Codex CLI. Or paste bootstrap.md and manifest.yaml into any LLM session for manual assembly.
The Bottom Line
PromptKit v0.6.1 has grown from a clever prompt component library into something that resembles actual engineering infrastructure. The 157 components across five layers, four compositional pipelines, three lifecycle workflows, and seven engineering domains (software, hardware, electrical, RF, mechanical, firmware, protocol) represent serious scope.
The key insight hasn't changed: prompts are the most important code you're not engineering. What has changed is that PromptKit now covers the full lifecycle — not just writing prompts, but evolving them, maintaining them, and detecting when they've drifted from reality. The spec-drift taxonomy alone is worth the price of admission (which is free, MIT-licensed).
Whether it becomes the standard or remains a Microsoft research project depends on adoption. But the engineering discipline on display — adversarial audits, coverage proofs, verbatim inclusion rules, quantitative validation, drift detection — suggests this team is building for production, not just publication.
Repository: github.com/microsoft/PromptKit
License: MIT
Current Version: v0.6.1
Component Count: 157 (15 personas · 48 protocols · 21 formats · 5 taxonomies · 64 templates)
This article focuses specifically on v0.6.1's 157-component architecture and expanded engineering domain coverage. Previous coverage of PromptKit v0.3.0 (C/C++ analysis ecosystem), v0.5.0 (engineering lifecycle workflows), and v0.6.0 (hardware design workflow) is available in the Substack archive.