prompt-engineering
Structure or improve prompts, templates, agent instructions, and output schemas using clear hierarchy, semantic boundaries, placeholders, and attention control.
Skill by lilCnid
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/lilcnid-prompt-engineering-eec0e5
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/prompt-engineering
What's inside
- Skill name
prompt-engineering- Description
- Structure or improve prompts, templates, agent instructions, and output schemas using clear hierarchy, semantic boundaries, placeholders, and attention control.
- License
- CC-BY-4.0
- Instructions
- 102 lines in SKILL.md · view on GitHub
Files (4)
- LICENSE.md
- NOTICE
- SKILL.md
- openai.yaml · agents/
SKILL.md (first lines)
# Prompt Engineering: structural clarity and manifold alignment
> Core axiom: effective prompting is not about "magic words" but about **structural clarity** and **manifold alignment**.
## The toolkit
### A. Semantic tagging (the container)
Wrap distinct information blocks in XML-style tags to prevent context bleeding. The tag name is a **categoric primitive**: name the category the block *is*. The vocabulary is open — task, instruction, context, data, persona, examples, whatever the block actually holds — so name what fits instead of forcing a block into a borrowed tag. Common instances:
- `<context>`: environmental or historical state.
- `<task>` or `<instruction>`: the core objective.
- `<constraints>`: the non-negotiable logic bounds.
- `<output_instructions>`: the target format (JSON / MD / table).
- `<examples>`: worked examples, labelled so the model can tell an illustration from the request.
Tags take attributes for characteristics of the block — `<output_format format="json">`, `<style tone="formal">` — and nest, where the outer tag is the operation applied to the inner one.
### B. Hierarchical markers (the skeleton)
Use explicit outlining to define topological depth.
- `# Main Topic` / `## Sub-Topic` / `- Structural Detail`.
- Match marker style to the content's natural hierarchy: numbered lists for sequential processes, bullets for parallel items, nested headers for domain decomposition.
### C. Structured placeholders (the manifest)
A placeholder is a **container** holding a **fill**. Two decisions, not one taxonomy.
The containers — what kind of slot this is:
- `${...}` user-provided input.
- `{...}` objects or "libraries" — task components, functions, or conceptual objects representing complex operations.
- `[...]` list or array.
- `(...)` option or decision — enumerate the alternatives inline: `(formal|informal)`, `(basic|detailed|comprehensive)`.
- `<...></...>` semantic block (section A).
Reach into an object with a dot path: `{productDetails.name}`.
The fill — `...` is the primitive: structure with no content, and it goes inside any container. It is spread and ellipsis at once, because those are the same move — structure applied to the unspecified, the null array that contains every array.
Load a fill by replacing `...` with a name, as far as the surrounding structure needs and no further: `{...}` → `{Methodology}` → `{Methodology_Named_As_Its_Procedure}`. Underscores-as-spaces keep a full phrase parseable as one token-position.
### D. Collections (the data layer)
Structure multiple data points as collections:
- Simple lists for enumeration.
- Key-value pairs for attribute sets.
- Nested objects for multi-property items.
- Tables for comparison and batch processing.
### E. Attention management (the priority signal)
- Use formatting for emphasis: bold, italics, caps sparingly, or a delimited attention zone. A zone is a matched pair — open it and close it, so the boundary is unmistakable.
- Order strategically: place the most important instructions where the model attends most strongly, the beginning and end of the prompt.
- Group related constraints into attention zones so they reinforce each other.
- Prioritize explicitly: "If any constraint conflicts, prioritize X over Y."
## The master template (a hypershot)
A hypershot is a structural frame with free variables rather than filled-in ones — still a worked example, carrying a *form* rather than a specific shape, so it primes structure without priming content. Same practice, two altitudes: a filled example when the specific shape should be copied, a frame when it should vary. Full technique: the hypershot-protocol skill.
```xml
<request type="Structural_Synthesis">
<context>
Intelligence: ${Agent_Name}
Substrate: ${Platform_Or_Environment}
</context>
<instruction>
Act as ${Role}.
1. Parse the [Data_Collection].
2. Apply {Methodology}.
3. Generate high-fidelity output.
</instruction>
<constraints>
*** CRITICAL INSTRUCTIONS ***
- ${Non_Negotiable_Constraint_1}
- ${Non_Negotiable_Constraint_2}
- ${Format_Or_Style_Requirement}
****************************
</constraints>
<output_instructions>
Format: ${Target_Format}
Audience: ${Intended_Reader}
Length: ${Constraint}
</output_instructions>
</request>
```
## Best practices
1. **Topological mapping.** Map the informatic distance between the prompt's starting state and the desired output before you generate. Locate the work on the axes that will shape it — how much structure it needs, what it must do, how much of the reasoning it should carry, how bounded its context is, what kind of knowledge it rests on — and let those positions decide the prompt's form.
2. **Phase alignment.** Match tone, register, and technical depth to the context.
3. **Decoherence prevention.** Turn ambiguity into stable, unambiguous instruction. Every vague term is a fork where the model guesses instead of follows.
4. **Positive instruction framing.** Tell the model what TO DO, not what to avoid. "Make it exciting and engaging" beats "Don't make it boring"; negation words like "don't" or "not" can be lost during processing, inverting your meaning. Positive framing creates fault-tolerant instructions that maintain their core meaning even if some processing degradation occurs. Where a prohibition genuinely is the constraint, state it sparingly and give it emphasis.
5. **Iterative refinement (the learning loop).** Evaluate the output, find where the model diverged from intent, tighten the prompt at the point of divergence, and repeat.
6. **Uncontaminated context.** A prompt for another agent carries exactly what that agent cannot derive cold and needs in order to look — provenance, addresses, what counts as evidence here. That is its *ground*, and it is the whole of what a ground block may carry. What you expect it to find is not ground: it is content placed where it will be attended to, so the agent hands it back and no report separates a returned expectation from a finding — most of all when the expectation is true. The probe that produced the expectation falls on the same side: handing over the method hands over the finding with one step of deniability attached. One question sorts them: *does this let the agent look, or does it tell the agent what looking will turn up?* An expectation has no layer in the prompt at all, so it has one destination and it is not a prompt: end the turn and put it to the collaborator — before reaching for any lever that installs standing configuration, because settling an ambiguity by configuring answers your own question with your own guess and keeps that answer for every later turn.
## Lineage
Derived from the Lexideck Prompt Engineering Curriculum, "Talking to AIs Effectively," a nine-part series by Matthew Murphy. Sections A–E compress Parts 4–8, one to one and in the order Part 3 sets out. Best practices 4 and 5 come from Parts 1 and 9. Practices 1 and 3 come from Murphy's WonderPrompt — the topological meta-prompt framework in WonderSuite 2.0, whose Purpose Mapping and Coherence Calibration they compress — rather than from this curriculum. Practice 6 and the master template are OpenCnid's, written in the curriculum's idiom rather than compressed from it.
The curriculum carries a novice to an intermediate level and remains the canonical authority; this skill is the deployed artifact, addressed to a reader who is already past that. Departures, omissions, and their rulings are recorded in `DEVIATIONS.md`. Full curriculum on Patreon (patreon.com/c/LexideckTechnologies).From lilCnid/dovetail-codex, CC-BY-4.0.
More from lilCnid/dovetail-codex
- 0.526score
self-play
lilCnid
Evaluate prompts, skills, policies, or generated artifacts through clean-room Codex runs, adversarial cases, and evidence-backed revision.
SkillBFreshness: BClaude Code +9 - 0.526score
upsum
lilCnid
Close a work session by appending a durable record, rebuilding a fixed-size recency-weighted summary, carrying open work forward, and running repository checks.
SkillBFreshness: BClaude Code +9 - 0.526score
judge-composition
lilCnid
Design and run reliable Codex judges with explicit rubrics, blinded evidence, calibration cases, and auditable verdicts.
SkillBFreshness: BClaude Code +9 - 0.526score
better-skill-creator
lilCnid
Create or revise Codex skills with precise routing, progressive disclosure, UI metadata, native validation, and behavior-focused evaluation.
SkillBFreshness: BClaude Code +9 - 0.526score
spark-steering
lilCnid
Diagnose a stuck or drifting Codex workflow by locating the wrong control surface, lifecycle, or owner before adding tools or permissions.
SkillBFreshness: BClaude Code +9 - 0.526score
subagent-composition
lilCnid
Partition a Codex task into bounded parallel investigations, choose delegated context deliberately, coordinate shared files, and consolidate evidence.
SkillBFreshness: BClaude Code +9 - 0.516score
hypershot-protocol
lilCnid
Design prompt templates and model-facing artifacts with abstract structural examples that prime form without importing task-specific content.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 3, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- CC-BY-4.0
- Repository
- github.com/lilCnid/dovetail-codex
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from lilCnid
- 0.574score
better-skill-creator
lilCnid
Use this skill for anything to do with authoring, fixing, or measuring Claude skills.
SkillBFreshness: B★ 4Claude Code +9 - 0.569score
subagent-composition
lilCnid
Compose a Claude Code sub-agent on the fly — persona, inherited-context transfer, tool budget, and return contract — as either an ephemeral Agent-tool call or…
SkillBFreshness: B★ 4Claude Code +9 - 0.569score
self-play
lilCnid
Run a clean-room self-play search over a problem space you have not solved yet — an AlphaGo-shaped loop over text where isolated sub-agent players (a blind…
SkillBFreshness: B★ 4Claude Code +9 - 0.569score
upsum
lilCnid
Close a working session: append what happened to a growing record, re-derive a fixed-length summary that holds the newest entries at full detail and collapses…
SkillBFreshness: B★ 4Claude Code +9 - 0.569score
judge-composition
lilCnid
Compose an adaptable four-role judge panel (grounding, coherence, corroboration, audit) to evaluate a candidate for promotion — a belief, claim, record entry…
SkillBFreshness: B★ 4Claude Code +9 - 0.564score
hypershot-protocol
lilCnid
Meta-prompting technique using zero-contamination structural examples.
SkillBFreshness: B★ 4Claude Code +9
Cite this page
prompt-engineering skill. Agent Mart. https://agentmart.dev/skills/lilcnid-prompt-engineering-eec0e5 (last updated 2026-10-24)