Plugin - Prompt Architecture

artifact
skill, prompt, context-engineering, template
4 sources

created
2026-11-04
updated
2026-11-05
reviewed
2026-11-05
confidence
medium


index

4 sections
select a row to jump


1 Commands

Command Argument What it produces
design-prompt AI feature to write a system prompt for A ready-to-use system prompt plus rationale, constraint spec, 2-3 examples, context integration spec, test cases, v1.0 notessource 2
audit-prompt A prompt to review Scored report (structure, constraints, examples, context; 1-5 each), 5 edge-case predictions, top 5 fixes, optional rewritesource 3
build-chain A task too big for one prompt Chain spec: step diagram, per-step prompts and templates, context flow, failure handling, token budget per stepsource 4

2 How each works

  • design-prompt (6 steps): requirements, then structure (identity/role, context/knowledge, behavioral rules, output specs, ordered by importance), then constraints (format, length, content, tone, quality, with a priority hierarchy), examples (one common, one edge case), context integration (injection points, budget), and iteration (rationale, tests, review).source 2
  • audit-prompt (6 steps): the same five dimensions as the design command, run in review mode, plus a versioning check (is it tracked, documented, tested, reviewed). The edge cases are fixed: ambiguous, boundary, very simple (is it over-engineered?), very complex, adversarial.source 3
  • build-chain (7 steps): chooses a variant (linear, branching, iterative, or debate), writes each step’s prompt and template, defines what carries forward between steps and what is summarised or dropped, and adds retry logic and quality gates.source 4

3 Observations

  • design-prompt and audit-prompt use the same five skills, so the audit is the design checklist applied backwards.source 2source 3
  • Documenting why a prompt is written a certain way (the prompt-versioning skill) echoes tenet 5 of the published Critical Design Engineering remix: write the why into the repository.
  • The context-engineering skill itself is not in raw/, only referenced here. The broader role it relates to is Context Engineer, though how the two connect is an inference.

4 Sources

  • raw/skills/prompt-architecture.md (index note listing the three commands)
  • raw/skills/design-prompt.md, raw/skills/audit-prompt.md, raw/skills/build-chain.md

referenced by

7 pages link here


sources

numbers match the markers
in the text above