The Research Report
Microsoft PromptKit v0.6: When Your Prompts Become a Hardware Design Department
The composable prompt component library that now takes you from napkin sketch to fab-ready Gerber files — with adversarial audits at every gate.
If you've been tracking Microsoft's PromptKit, you know the arc: v0.1 dropped a composable prompt library. v0.3 added C/C++ analysis and 41 new components. v0.5 simplified the CLI and introduced the engineering lifecycle workflows (bootstrap → evolve → maintain). Each release made the core thesis sharper — prompts are engineering artifacts, not ad-hoc text — but stayed firmly in software territory.
v0.6 changes the geometry entirely. PromptKit now spans hardware design. Not as an afterthought or a placeholder section, but as a fully realized pipeline from requirements elicitation through component selection, schematic capture, PCB layout, and manufacturing artifact generation. Every generative step is paired with an adversarial audit. Every phase has a human-in-the-loop review gate. The result: you can describe a BLE temperature sensor board in natural language and walk out with a KiCad schematic, a routed PCB layout, and a BOM formatted for JLCPCB — all produced by an LLM operating under engineered prompt constraints rather than freestyling.
Let's dig into what's actually new, why it matters, and how the component architecture makes it work.
The Big Move: Hardware Design as a First-Class Pipeline
Previous PromptKit releases covered software engineering tasks — code review, bug investigation, design docs, security audits. v0.6 introduces a complete hardware design workflow that mirrors the document lifecycle pipeline but replaces the software document pipeline with an 8-stage hardware pipeline interleaving design and audit:
author-requirements-doc → design-schematic → review-schematic →
validate-simulation → review-bom → design-pcb-layout →
review-layout → emit-manufacturing-artifacts
The old hardware-lifecycle pipeline had 5 audit-only stages. The new one has 8 stages that alternate between generative design phases and adversarial review phases. This isn't just adding hardware templates to a software framework — it's a structural shift in how PromptKit thinks about engineering workflows: generate, then challenge, then verify with a human.
The template that orchestrates this is hardware-design-workflow, and its YAML frontmatter tells the whole story:
name: hardware-design-workflow
mode: interactive
description: >
End-to-end hardware design workflow with human-in-the-loop review.
Guides a user from initial idea through requirements discovery,
component selection, schematic design, PCB layout and routing, to
manufacturable artifacts ready for PCBWay or JLCPCB submission.
Each generative phase is paired with an adversarial audit and user
review gate.
persona: electrical-engineer
protocols:
- guardrails/anti-hallucination
- guardrails/self-verification
- reasoning/requirements-elicitation
- reasoning/component-selection
- analysis/component-selection-audit
- reasoning/schematic-design
- analysis/schematic-compliance-audit
- reasoning/pcb-layout-design
- analysis/layout-design-review
- reasoning/manufacturing-artifact-generation
format: null
params:
project_name: "Name of the hardware project or product"
description: "Natural language description of what the hardware should do"
context: "Additional context — target fab service, enclosure constraints, etc."
output_contract:
type: artifact-set
description: >
Complete hardware design package: requirements document, component
selection report, KiCad schematic (.kicad_sch), routed KiCad PCB
(.kicad_pcb), Python layout script, manufacturing artifacts (Gerbers,
BOM, pick-and-place), audit reports, and fab submission checklist.
That's 10 protocols composed into a single template. The LLM doesn't improvise — it follows the protocol chain, each one governing a specific reasoning or analysis task.
Seven New Protocols: The Reasoning and Audit Pair
v0.6 adds 7 protocols, and they fall into a clear pattern: reasoning protocols that guide generative work, and analysis protocols that adversarially audit what the reasoning produced.
Reasoning protocols:
| Protocol | What it governs |
|---|---|
component-selection |
Systematic component selection with real-time sourcing verification and weighted decision matrices |
schematic-design |
Circuit schematic design with KiCad .kicad_sch output and mandatory visual layout rules |
pcb-layout-design |
PCB layout via Python pcbnew API + FreeRouting autorouter + KiCad DRC validation loop |
manufacturing-artifact-generation |
Gerber, drill, BOM, pick-and-place generation with fab-specific formatting |
prompt-decomposition |
Decompose hand-written prompts into PromptKit semantic layers |
Analysis protocols:
| Protocol | What it catches |
|---|---|
component-selection-audit |
Hallucinated part numbers, stale specs, and sourcing errors |
corpus-safety-audit |
Library-wide health and consistency audit |
The component-selection-audit is particularly important. LLMs are notorious for hallucinating part numbers — inventing plausible-sounding ICs that don't exist or citing specs for the wrong revision of a chip. This protocol forces the LLM to verify every component against real distributor data before the selection report is finalized. It's an adversarial check baked directly into the workflow.
And prompt-decomposition is meta in the best way: it's a protocol for decomposing other prompts into PromptKit's own component architecture. Got a hand-written prompt that works well? Feed it through this protocol and get a structured decomposition into persona, protocol, format, and taxonomy layers that you can version-control and compose.
Seven New Templates: From Schematic to Fab Floor
The template additions are equally focused on the hardware pipeline:
| Template | Category | What it does |
|---|---|---|
design-schematic |
hardware-design | Interactive schematic design: requirements → components → KiCad schematic (8 phases) |
design-pcb-layout |
hardware-design | Interactive PCB layout with automated routing and schematic feedback loop (9 phases) |
emit-manufacturing-artifacts |
hardware-design | Generate fab-ready deliverables for JLCPCB/PCBWay (6 phases) |
hardware-design-workflow |
hardware-design | End-to-end orchestrator composing 10 protocols into 9 phases |
decompose-prompt |
contribution | Decompose existing prompts into PromptKit components |
audit-library-health |
contribution | Audit the PromptKit library for overlap, drift, and consistency |
author-presentation |
presentations | Interactive technical presentation authoring with python-pptx |
The hardware-design templates are designed to work both as standalone stages and as part of the full workflow. You can jump in at any point:
> "I have a schematic, I need to do PCB layout"
> "Generate manufacturing files for this board"
This is a deliberate design choice. Not every hardware project starts from zero — sometimes you're iterating on an existing design, and you need the PCB layout protocol without re-running requirements elicitation.
Three New Output Formats: Prompts as Deployable Artifacts
This is the feature that I think will have the most long-term impact beyond the hardware work. v0.6 adds three formats that turn assembled prompts into deployable, version-controllable artifacts:
1. Copilot Prompt File (.prompt.md)
Packages an assembled PromptKit prompt as a GitHub Copilot Chat slash command. Drop it in .github/prompts/ and invoke it with /<name> in VS Code, Visual Studio, or JetBrains. The format enforces semantic fidelity — every protocol phase, check, and example from the source components must appear verbatim in the output. No summarization allowed.
The output structure follows GitHub's .prompt.md convention with YAML frontmatter:
---
description: 'Adversarial C++ code review with memory safety analysis'
agent: agent
model: 'Claude Sonnet 4'
tools: ['search/codebase']
argument-hint: 'Path to C++ file or directory to review'
---
Then the full assembled prompt body with native headings (Role, Analysis Methodology, Classification Reference, Output Expectations, Instructions).
2. Agentic Workflow (.github/workflows/*.md)
Scheduled or event-driven GitHub Actions automations. This format packages a PromptKit template as a workflow that can be triggered by repository events — new issues, PRs, scheduled maintenance windows. The prompt becomes infrastructure.
3. Presentation Kit (.pptx + notes)
PowerPoint presentations with speaker notes and timeline. The author-presentation template walks through audience analysis, narrative design, slide planning, appearance preferences, and content generation — all producing a python-pptx output with built-in speaker notes and optional demo plans.
CLI Discovery: Finding 171 Components Without Memorizing Them
With 171 components now in the library (up from 157 in the README count — the catalog shows the real number), discoverability becomes a real problem. v0.6 addresses this with three new CLI commands:
# Browse the full component catalog
npx @alan-jowett/promptkit list --all
# Search for components by keyword
npx @alan-jowett/promptkit search "memory safety"
# Show details and cross-references for a component
npx @alan-jowett/promptkit show review-cpp-code
The show command is particularly useful because it includes cross-references — which templates use a given protocol, which protocols a given template composes. This is essentially a dependency graph for your prompts, viewable from any component node.
There's also an auto-generated CATALOG.md — a browsable markdown index of all 171 components with type, category, description, and cross-references. No CLI needed; just open it in a browser.
And for zero-friction entry, three skill aliases in Copilot: /boot, /bootstrap, and /promptkit — all auto-discover and execute the PromptKit bootstrap flow.
The Composability Model: Why This Works
The reason PromptKit can add an entire hardware pipeline without becoming unwieldy is the composable component model. Let's walk through how a template actually assembles:
┌────────────────────────────────────────────────────┐
│ Assembled Prompt │
├────────────────────────────────────────────────────┤
│ ┌──────────┐ │
│ │ Persona │ "You are a senior electrical engineer │
│ └──────────┘ with expertise in..." │
│ ┌──────────┐ │
│ │ Protocol │ "Phase 1: Extract requirements driving │
│ │ Protocol │ component selection..." │
│ │ Protocol │ "Verify each part number against real │
│ │ Protocol │ distributor data..." │
│ └──────────┘ │
│ ┌──────────┐ │
│ │ Format │ "Output MUST contain: selection report,│
│ └──────────┘ sourcing table, risk assessment..." │
│ ┌──────────┐ │
│ │ Template │ "Design a {{project_name}} board with │
│ └──────────┘ {{description}}..." │
└────────────────────────────────────────────────────┘
Each layer is a separate file in the repository. Each file is independently version-controlled. The template declares which persona, protocols, and format to compose — it doesn't contain their content. This means:
- The anti-hallucination guardrail is shared across every template that references it, whether that's a C++ code review or a PCB layout review.
- The self-verification protocol enforces the same "sample 3–5 findings and re-verify" discipline regardless of domain.
- The component-selection protocol can be updated independently of the schematic-design protocol, and any template composing both picks up changes to either.
This is the engineering rigor that copy-paste prompts can never achieve. When Microsoft's MSRC research says 70% of security vulnerabilities are memory safety issues, the memory-safety-c protocol encodes that finding as a systematic check pattern. Every C++ review template that composes it benefits from the same research-backed methodology. And when the research updates, the protocol updates, and every template using it gets the update on the next assembly.
The Prompt Decomposition Protocol: A Self-Improving Library
The prompt-decomposition protocol deserves special attention because it's PromptKit's onboarding ramp for the real world. Most engineers have a collection of hand-written prompts that work — not because they're well-structured, but because they've been iterated into usefulness through trial and error.
prompt-decomposition takes those ad-hoc prompts and decomposes them into PromptKit's semantic layers:
- Extract the implicit persona — What expertise and behavioral constraints are embedded in the prompt?
- Identify reasoning patterns — What systematic analysis steps does the prompt implicitly follow?
- Surface the output structure — What format expectations are buried in the prompt's instructions?
- Classify domain-specific categories — What taxonomy would organize the prompt's findings?
The output is a structured decomposition that can be version-controlled, shared, and composed with other PromptKit components. It's the bridge from "prompts as folklore" to "prompts as engineering artifacts."
The companion template decompose-prompt wraps this protocol in an interactive workflow, and audit-library-health provides the inverse — checking the existing PromptKit library for overlap, drift, and consistency. Together, they form a contribution pipeline: decompose your working prompts, integrate them into the library, audit the result for quality.
Corpus Safety Audit: The Library Checks Itself
The corpus-safety-audit protocol is the other meta-level addition. It audits the PromptKit library itself for health and consistency — checking for:
- Overlap: Two protocols that check the same thing differently, producing contradictory guidance
- Drift: A protocol whose content has evolved away from what its templates expect
- Coverage gaps: Engineering tasks that no template addresses
- Inconsistency: Formats that declare sections that protocols never populate
This is PromptKit eating its own dog food. The same adversarial audit methodology that checks C++ code for memory safety bugs is applied to the prompt library itself. The library is subject to the same engineering rigor as the code it helps produce.
What This Means for the Ecosystem
v0.6's hardware design workflow is a proof point for something larger: PromptKit's component model is domain-agnostic enough to cover any engineering discipline that follows a structured pipeline. The software document lifecycle, the hardware design lifecycle, and the protocol engineering lifecycle all follow the same pattern — generate with reasoning constraints, audit with adversarial protocols, verify with human review.
The three new output formats point to where this is going. PromptKit is no longer just a library you consult — it's becoming a prompt infrastructure layer that integrates with your development tools:
- Copilot prompt files make prompts first-class citizens in your IDE
- Agentic workflows make prompts first-class citizens in your CI/CD
- Agent instructions (the existing
agent-instructionsformat, now extended for custom agents and CLI skills) make prompts first-class citizens in your agent framework
When you can version-control a prompt, deploy it as a slash command, and have it run automatically on a schedule or event trigger, you've moved from "prompt engineering" to prompt operations. The prompt has a lifecycle. It has versions. It has deployment targets. It has rollback capability. That's the trajectory v0.6 is on.
Getting Started
# Install and launch
npx @alan-jowett/promptkit
# Start a hardware design project
> "I want to design a BLE temperature sensor board for JLCPCB"
# Or clone and use with Copilot
git clone https://github.com/microsoft/promptkit.git
cd promptkit
copilot
> /boot
> "Design a motor controller PCB with CAN bus interface"
# Browse all 171 components
npx @alan-jowett/promptkit list --all
# Search for hardware-specific components
npx @alan-jowett/promptkit search "schematic"
# Decompose your existing prompt
npx @alan-jowett/promptkit show decompose-prompt
The repository is MIT licensed at github.com/microsoft/PromptKit. No breaking changes from v0.5 — all existing protocols, templates, and formats are unchanged.
157 components was already a library. 171 is an ecosystem. The question isn't whether composable prompt engineering works — it's what discipline PromptKit expands into next.