Skip to content

delta4sera/prompt-architect

Repository files navigation

Prompt Architect — build-time meta-prompting for tool-calling agents

A build-time meta-prompting framework for tool-calling LLM agents. You bring a task; it compiles a prompt — in the right structural shape, its sections ordered as deliberate operators, audited against a checklist, scored honestly, and shipped with a verifier that tells you whether it works.

License: MIT Install: clone & go No build step Core: validated Surface: partly proven


A prompt compiled as an operator stack: state psi transformed by role, constraints, examples, and format into the answer you designed for

You are not finding the right keywords. You are designing operators that transform a model's semantic state into the answer you need.

That single reframing is the framework's center of gravity — everything in the procedure follows from it. Prompt Architect is a compiler for prompts, not a runtime orchestrator: it builds the artifact, you run it. It works with any tool-calling runtime (Claude Code, Gemini CLI, the Anthropic and OpenAI APIs, others).


Status — well-grounded, partly proven

This framework is published honestly. Here is exactly where it stands, by its own evaluation.

✓  What's validated ◻  What's not yet proven in the wild
The from-scratch path for one-shot, system-persona, and LLM-as-judge prompts — stress-tested (eleven findings, all patched and confirmed) and exercised on a real external task. Roughly half the surface — the agent-team shape end-to-end, refactor mode, the verifier infrastructure, and the clarification self-check — sound by design, but not yet run against enough real tasks to call it battle-tested.
The architecture is internally consistent: every cross-reference resolves, the shapes compose rather than duplicate, and the framework refuses to ship artifacts that fail its own audit. Its strongest guarantees are prompt-enforced, not mechanism-enforced — they depend on the executing agent honoring the procedure.

In short: a good design with real evidence behind its core, and an explicit account of the parts that still need field use. Issues and field reports are genuinely wanted — that's the fastest way the unproven half becomes proven.


Install

The repository is the skill. No dependencies, no build step — it's Markdown the agent reads.

git clone https://github.com/delta4sera/prompt-architect
# Point your agent at the folder, or drop it into your skills directory
# (e.g. ~/.claude/skills/prompt-architect for Claude Code).

Then invoke it:

"Help me design a prompt for [task] — use the prompt-architect skill."


How to use

Method How
Skill folder Point your agentic CLI at this directory. Tools that load skills by folder treat SKILL.md as the entry.
Slash command Register SKILL.md as a custom command (e.g. /prompt-architect). Invoking starts the procedure.
Manual Paste SKILL.md as the opening message of a fresh session. The agent follows the procedure from shape inference onward.

What it produces

From-scratch mode (default). You describe a task; the framework returns:

  1. The prompt itself, in the right shape.
  2. Paired artifacts when the shape requires them — a memory file for agentic loops, per-stage prompts for workflows, calibration examples for graders, per-role prompts for agent teams.
  3. A usage instruction tailored to your tool / runtime.
  4. An honest evaluation scoring token economy, task fit, and operator coherence.
  5. A verifier specification plus a runnable static-mode verifier; dynamic- and cross-run verifiers when stakes warrant.

Refactor mode. You paste an existing prompt; the framework auto-detects the request and runs one of three sub-modes:

  • Audit-only — a diagnostic report with findings, severity, and suggested fixes. No edits.
  • Targeted refactor — small, surgical edits for a specific symptom you've named (hallucinations, inconsistent output, format violations).
  • Wholesale rewrite — a full redraft with explicit diff and tradeoff analysis. The original is preserved alongside.

Seven shapes

The framework infers shape from your request rather than asking, so the interview stays short.

Shape For
Agentic loop Long-horizon, multi-checkpoint projects with a memory file and human-in-the-loop coordination.
One-shot Single-call complex tasks — classification, extraction, transformation, generation.
Workflow / chain Multiple coordinated LLM calls with gates between stages.
Sub-agent / tool Prompts consumed by another agent rather than a user.
System persona Ongoing conversational use; persona stability across unknowable inputs.
LLM-as-judge Graders, scorers, evaluation rubrics.
Agent team Multi-agent systems with coordination patterns (orchestrator–workers, parallelization, evaluator–optimizer).

Domain is orthogonal to shape. Engineering / research / writing / ops / generic modify section content, not which sections appear — shape × domain yields 30 combinations the framework handles uniformly.


The operator lens

The quantum-semantic principles are not metaphor here — they shape concrete design practice, and are adopted only because the source paper's claims carry measurable consequences.

Principle In practice
Prompts are operators, not key-finding (§5.3) Design transformations, not keyword searches.
Ordering is structural (§5.1, §2.3) Operators don't commute — Â B̂ ≠ B̂ Â. Strongest framing first.
Combination is non-additive (§5.4) Adjacent sections interfere; check for emergent behavior.
Each step is irreversible (§5.6) Every instruction destroys information — load critical context early.
Ambiguity is superposition (§5.2, §1.1) User-intent ambiguity is a feature to preserve, not a defect to flush.
Temperature is a measurement parameter (§5.5) Design for sampling, not just mode collapse.
Meaning is observer-dependent (§1.2) Same prompt, different model = different result.

See references/quantum-principles.md for the operational mapping, and operators/section-operators.md for the section-as-operator catalog.


Sources

Every technique traces to published work — nothing is uncredited.

  • Classical context engineering (Anthropic, 2024–2025) — right altitude, smallest viable token set, examples over rules, long-horizon support.
  • Quantum semantic framework — Agostino et al., arXiv:2506.10077, applied here as design principles.

The complete source list, with how each was used, is in CITATIONS.md.


Repository layout

prompt-architect/
├── SKILL.md                       # Main entry point — the procedure
├── README.md                      # This file
├── CITATIONS.md                   # Every source, and how each was used
├── DEPLOY.md                      # Publishing docs/ as a GitHub Pages site
├── templates/
│   ├── shape-catalog.md           # Seven shapes with their spines
│   ├── interview-branches.md      # Adaptive interview per shape
│   └── minimum-viable-prompt.yaml # Fallback scaffold for small tasks
├── operators/
│   └── section-operators.md       # Each section as an operator
├── references/
│   ├── quantum-principles.md      # Operational mapping of quantum semantics
│   ├── reasoning-patterns.md      # Cognitive-tools and other reasoning sub-patterns
│   ├── agent-consumability.md     # Output design for agent-consumed prompts
│   ├── agent-team-topologies.md   # Four canonical multi-agent coordination patterns
│   ├── verifier-specification.md  # Per-shape verification criteria (3 layers)
│   ├── verifier-agent-patterns.md # Building runnable verifier-agents as Shape 6 prompts
│   ├── refactor-mode.md           # Audit / refactor / rewrite procedure
│   ├── audit-checklist.md         # Structural + quantum-semantic audit
│   └── evaluation-rubric.md       # Honest 3-axis scoring
└── docs/
    └── index.html                 # Guided tour (deployable via GitHub Pages — see DEPLOY.md)

A guided visual tour lives in docs/index.html — deployable as a GitHub Pages site (see DEPLOY.md).


When not to use it

  • Quick one-line questions or simple Q&A.
  • Tasks where you want the answer, not a prompt to get the answer later.
  • Throwaway exploratory prompts where rigor isn't worth the overhead.

Foundational stance

You are not finding the right keywords. You are designing operators that transform a model's semantic state into the answer you need. Section ordering matters. Section combination produces interference. Each instruction destroys information. Ambiguity is a feature. Treat prompt design as the empirical engineering discipline it is, and measure where measurement helps.



Licensed under MIT · Built on published work — see CITATIONS.md

About

A build-time meta-prompting framework for tool-calling LLM agents. Bring a task; it compiles a prompt — in the right structural shape, sections ordered as deliberate operators, audited against a checklist, scored honestly, and shipped with a verifier. No dependencies, no build step.

Topics

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages