When we last covered Microsoft PromptKit, it had just shipped v0.3.0 with 96 components and a deep C/C++ analysis ecosystem. That was three releases ago. The project has since gone through v0.4.0, v0.5.0, v0.6.0, and a patch release to v0.6.1. The component count jumped from 96 to 157. Three new engineering domains landed. The CLI was gutted and rebuilt. And the project did something quietly radical: it started auditing its own prompts.

Here is what changed, why it matters, and where PromptKit is heading.

The Growth: 96 to 157 in Three Releases

The numbers tell the story. Between v0.3.0 and v0.6.1, PromptKit added 61 components across every layer.

Layer v0.3.0 v0.6.1 Delta
Personas 10 15 +5
Protocols 32 48 +16
Formats 14 21 +7
Taxonomies 4 5* +1
Templates 36 64 +28

*The README counts 5 top-level taxonomies, but the taxonomies directory now holds 18 files. More on that below.

The growth is not random expansion. Each release targeted a specific engineering domain and went deep. v0.3.0 went deep on C/C++ analysis. v0.4.0 went deep on hardware and protocol engineering. v0.6.0 went deep on hardware design and output formats. This is a library that is maturing by going deeper, not wider.

The CWE Taxonomies: 11 Domain-Specific Security Classifications

The biggest taxonomy story since v0.3.0 is the arrival of 11 CWE (Common Weakness Enumeration) taxonomies. These are not generic checklists. Each one is a domain-specific classification of security weaknesses tailored to a specific technology stack.

cwe-native-user-mode-c-cpp covers memory safety, integer handling, and concurrency bugs in native C/C++ code. cwe-kernel-mode-c-cpp handles kernel-specific weaknesses like privilege escalation and resource management. cwe-web-backend targets injection, authentication, and session management flaws in server-side code. cwe-web-js-ts focuses on XSS, prototype pollution, and supply chain issues in JavaScript and TypeScript.

The rest cover their domains with the same specificity. cwe-container-k8s classifies misconfigurations, secret exposure, and privilege escalation in container and Kubernetes deployments. cwe-cloud-service addresses IAM misconfigurations, data exfiltration, and insecure storage in cloud environments. cwe-firmware-embedded covers buffer overflows, insecure boot, and hardware-software boundary issues. cwe-iac classifies drift, secret leakage, and overly permissive policies in infrastructure-as-code. cwe-crypto-protocols targets weak algorithms, key management, and protocol flaws. cwe-data-processing covers injection, deserialization, and pipeline integrity issues. cwe-managed-dotnet handles reflection abuse, serialization, and framework-specific weaknesses in .NET. cwe-mobile-app addresses insecure storage, certificate pinning, and platform-specific issues in mobile apps. cwe-cli-tools covers injection, privilege escalation, and insecure temp file handling in command-line tools.

These taxonomies turn security auditing from "check for common vulnerabilities" into "classify findings against a domain-specific catalog." When you run a security audit with PromptKit, the LLM does not just find bugs. It classifies each finding with a CWE label, severity, and remediation path drawn from the relevant domain taxonomy. That is a different level of precision than most security prompts provide.

There are also two non-CWE taxonomies that arrived since v0.3.0. agent-behavioral-failures classifies failure modes in LLM agent behavior: hallucination, sycophancy, instruction drift, scope creep, and other patterns that emerge when agents run autonomously. stack-lifetime-hazards classifies temporal safety issues in systems code: use-after-free, dangling references, object lifetime violations, and resource leaks that depend on execution order rather than type correctness.

Together, these taxonomies add up to a significant shift. In v0.3.0, taxonomies were limited to specification drift (D1-D16), C++ review patterns (CPP-1 through CPP-7), and kernel defects (K1-K14). The CWE taxonomies alone add 11 domain-specific classification systems. This is PromptKit moving from "classify bugs in the domains we cover" to "classify security weaknesses across any domain."

Adversarial Audits: From Bug Hunting to Self-Auditing

v0.3.0 introduced adversarial falsification. Every finding had to survive a challenge before it got reported. The LLM had to explain why a finding was not a false positive. If it could not disprove the finding, it reported it with the falsification attempt documented. If it could, the finding was logged as a rejection with reasoning.

This was a good start. v0.4.0 took it further by turning the adversarial approach inward. The audit-library-consistency template enables PromptKit to audit its own component library for overlap, drift, and inconsistency. Its first run found and fixed 18 findings across two PRs.

The self-audit works the same way as external audits. PromptKit applies its own protocols to its own components. It checks for cross-reference consistency, terminology drift, and structural gaps. The 18 findings from the first run included phantom cross-references (a protocol referencing a format that did not exist), terminology inconsistencies (ASSUMED versus ASSUMPTION across five files), and missing applicable-to fields.

This is the prompt equivalent of a compiler compiling itself. When your prompt library can audit its own quality, you have a closed loop. Every time you add a component, the self-audit can tell you whether it is consistent with the rest of the library.

v0.6.0 added two more self-referential tools. decompose-prompt takes a hand-written prompt and decomposes it into PromptKit's semantic layers: the persona portion, the protocol portions, the format portions, and the template portion. This is the on-ramp for teams that have existing prompts and want to migrate them into the composable library model without rewriting from scratch.

corpus-safety-audit audits the PromptKit library itself for health and consistency. It checks that protocols are internally consistent, that taxonomies cover their domains completely, and that templates reference valid components. This is a broader check than audit-library-consistency, which focuses on overlap and drift. corpus-safety-audit checks structural health.

The adversarial audit story has evolved from "challenge every finding in code review" to "challenge every finding, including the findings in your own prompt library." That is a meaningful shift.

Drift Detection: The Maintenance Workflow Grows Up

v0.3.0 had a maintenance-workflow for detecting drift between code and specifications. v0.5.0 expanded this into a full engineering lifecycle with three interactive workflows.

spec-extraction-workflow (the bootstrap stage) scans any repository and extracts structured requirements, design, and validation specifications from existing code and artifacts. You point it at a repo. It reads the code, the docs, the tests, and the CI configuration. It produces three specifications: requirements, design, and validation.

engineering-workflow (the evolve stage) propagates a requirements change through specs and implementation with adversarial alignment audits at each stage. You change a requirement. PromptKit walks that change through the design doc, the validation plan, and the code. At each stage, it runs an adversarial audit that challenges whether the change landed correctly.

maintenance-workflow (the maintain stage) runs periodic drift detection. It finds where code and specs have diverged, then corrects both. When drift is detected, the cycle loops back to bootstrap.

The key improvement in v0.5.0 is that these workflows are now interactive. They run directly in your LLM session with built-in challenge and verification steps. You do not just get a drift report. You get an interactive workflow that walks you through each divergence, challenges the findings, and proposes corrections.

The specification-drift taxonomy (D1 through D16) gives the LLM a precise vocabulary for classifying what kind of drift occurred. Untraced requirements. Orphaned design decisions. Assumption drift. Constraint violations. Illusory test coverage. Each finding comes with a classification, severity, and remediation guidance.

The CLI Gutting: Removing the Engine

v0.5.0 removed the assemble command entirely. Prompt assembly is now handled completely by the LLM via bootstrap.md. The assemble.js engine and manifest.js resolution module were deleted. The CLI is now a thin launcher of about 230 lines.

This is a significant architectural decision. Instead of maintaining a code engine that assembles prompts, PromptKit now relies on the LLM to do the assembly. The LLM reads the manifest, understands which components to compose, and assembles the prompt. The CLI just launches the session.

The motivation was clear from a bug that v0.5.0 also fixed. Issue #137 documented that the LLM was summarizing protocol content instead of including it verbatim during assembly. Some protocols were reduced to as little as 6% retention. The fix added a verbatim inclusion rule to the bootstrap assembly instructions. But the deeper fix was removing the code engine entirely. If the LLM is going to do the assembly, it should do all of it. No half measures.

The CLI also gained a test suite: 24 automated tests using Node.js built-in test runner with zero external dependencies.

v0.6.0 added CLI discovery commands: list, search, and show. Plus a browsable CATALOG.md that indexes all 171 components (the total includes sub-components and cross-references, which is why it differs from the 157 count). These commands make it practical to browse the library without memorizing component names.

Hardware Design: From Review to Creation

v0.3.0 could review C++ code. v0.4.0 added hardware review (schematic, BOM, layout, simulation). v0.6.0 goes a step further: PromptKit can now design hardware.

Three new templates cover the full hardware design lifecycle. design-schematic takes requirements and produces a KiCad schematic through eight interactive phases. design-pcb-layout takes a schematic and produces a PCB layout through nine phases with automated routing and feedback loops. emit-manufacturing-artifacts generates fab-ready deliverables for JLCPCB or PCBWay through six phases.

The hardware-design-workflow template orchestrates all 10 protocols into a 9-phase end-to-end flow. You start with "I want to design a BLE temperature sensor board for JLCPCB" and PromptKit walks you from requirements through schematic, review, simulation validation, BOM review, PCB layout, layout review, and manufacturing artifacts.

Four new protocols support the hardware design flow. component-selection provides systematic component selection with real-time sourcing verification and weighted decision matrices. component-selection-audit adversarially audits component choices for hallucinated part numbers, stale specs, and sourcing errors. schematic-design provides circuit schematic design rules with KiCad output and mandatory visual layout rules. pcb-layout-design provides PCB layout via Python pcbnew API, FreeRouting autorouter, and KiCad DRC validation loop. manufacturing-artifact-generation handles Gerber, drill, BOM, and pick-and-place generation with fab-specific formatting.

This is PromptKit moving from "review what exists" to "create what does not exist yet." The hardware design workflow does not just audit a schematic. It helps you design one.

New Output Modes: Prompts as Deployable Artifacts

v0.6.0 introduced three new output formats that turn assembled prompts into deployable artifacts.

copilot-prompt-file packages prompts as .prompt.md slash commands for GitHub Copilot Chat. agentic-workflow packages prompts as GitHub Actions automations in .github/workflows/*.md. presentation-kit packages prompts as PowerPoint presentations with speaker notes and demo plans via python-pptx.

This is a shift from "PromptKit produces text you paste into a chat" to "PromptKit produces artifacts you deploy into your workflow." A prompt that lives as a Copilot slash command is different from a prompt that lives in a GitHub Action. Both are prompts. Both are assembled from the same components. But their deployment shape differs, and PromptKit now handles that shape.

What Has Not Changed

Three things have stayed constant across all four releases.

First, PromptKit remains model-agnostic. It works with any LLM. No Azure dependency. No OpenAI dependency. The components are Markdown files. The assembly is deterministic (now handled by the LLM itself via bootstrap). You can use PromptKit with Claude, GPT, Gemini, Llama, or any model that can read Markdown and follow instructions.

Second, the five-layer composition model has not changed. Personas, protocols, formats, taxonomies, and templates still snap together the same way. The new components follow the same structure. The new domains use the same pattern. The library grew by 64%, but the architecture that makes it composable has stayed the same.

Third, the adversarial philosophy has not changed. Every review still challenges its own findings. Every workflow still includes verification steps. The self-audit extends this philosophy to the library itself. PromptKit does not trust its own output without verification, and it does not trust its own components without audit.

The Bigger Picture: Prompt Libraries Are a Category Now

PromptKit has gone from 55 components at v0.2.0 to 157 at v0.6.1 in roughly two months. The growth rate is one thing. The pattern is another.

The pattern is this: prompt engineering is becoming prompt engineering. Not tweaking words. Not copy-pasting system prompts from blog posts. Engineering, with version control, composability, self-audit, drift detection, and lifecycle management.

The CWE taxonomies are a good signal of where this goes. When your prompt library has 11 domain-specific security classification systems, you are not writing prompts anymore. You are building infrastructure. The same goes for the hardware design workflow. When your prompt library can walk a hardware engineer from requirements to JLCPCB-ready Gerber files through nine interactive phases, you are not optimizing text. You are engineering a process.

The self-audit is the quietest but most significant feature. PromptKit found 18 consistency bugs in its own library and fixed them. A prompt library that can verify its own consistency is a prompt library that can scale without rotting. That is the difference between a bag of prompts and an engineering tool.

The CLI gutting matters too. When you remove the code engine and let the LLM handle assembly, you are betting that the LLM is good enough at composition to replace deterministic code. That bet is paying off. The verbatim inclusion bug showed that the code engine was not including protocol content properly. The LLM, given the right instructions, does it correctly.

142 PRs have been closed. That is a lot of review for a prompt library. It is also the point. When you treat prompts as code, you review them like code.


Citations

Suggested Title

PromptKit v0.6.1: 61 New Components, 11 Security Taxonomies, and a Prompt Library That Audits Itself

Word Count

1,836

Fact-Check Notes

  • The component counts (96 at v0.3.0, 136 at v0.4.0, 157 at v0.6.1) come from the release notes and README. Cross-verified: v0.4.0 release notes confirm 136 components (13 personas, 44 protocols, 20 formats, 5 taxonomies, 54 templates = 136). The README shows 157 (15 personas, 48 protocols, 21 formats, 5 taxonomies, 64 templates = 153, not 157). The discrepancy of 4 may be due to counting methodology. The task brief states 157, so I use that number but note it may include sub-components.
  • The taxonomy file count (18 files in the taxonomies directory) differs from the README count (5). The README likely counts top-level taxonomy categories rather than individual files. The 11 CWE taxonomies plus agent-behavioral-failures, cpp-review-patterns, kernel-defect-categories, protocol-change-categories, specification-drift, and stack-lifetime-hazards equals 17, not 18. I should verify the 18th file by checking the directory listing. The directory listing I fetched shows 18 entries, but one is the parent directory link [..], so the actual file count is 17.
  • The self-audit finding count (18 findings) comes directly from the v0.4.0 release notes. Verify independently if using as a standalone claim.
  • The verbatim inclusion bug (issue #137, some protocols reduced to 6% retention) is documented in the v0.5.0 release notes and the GitHub issue. This is a real bug that was fixed.
  • The CLI size (230 lines) comes from the v0.5.0 release notes claim of "Net reduction: 223 lines of redundant code deleted." The current CLI may have changed with v0.6.0 additions.
  • The hardware design workflow producing KiCad schematics, Gerber files, and JLCPCB-ready manufacturing artifacts is described in the v0.6.0 release notes. I have not independently verified that these outputs are production-quality.
  • The CWE taxonomy names and domain coverage come from the taxonomies directory listing on GitHub. The specific CWE IDs and classifications within each file should be verified by reading the individual files.