loom-prompt-engineering

Installation
SKILL.md

Prompt Engineering

Overview

Craft prompts for LLMs and orchestrated agents (system prompts, agent signals, few-shot). Optimize for output quality, consistency, and injection-resistance. Bias toward measurable iteration over intuition.

Prompt anatomy

Use named sections to make the contract inspectable. The best order and amount of context are model- and task-dependent; evaluate them for the target system. A structured prompt has:

  1. Role — who the model is ("You are a Rust reviewer"). Sets vocabulary and priors; keep it short.
  2. Instructions — the task as explicit, ordered directives. Positive imperatives ("Return X") beat prohibitions.
  3. Context — data, code, conventions the task needs, clearly delimited (below).
  4. Examples — few-shot demonstrations when format/behavior must be consistent.
  5. Output contract — exact format, schema, length, and what to do on failure.

Tell the model what TO do, not just what to avoid. Replace vague verbs ("analyze") with the concrete deliverable ("list each bug as file:line — description").

Delimiters & structure

Installs
22
Repository
cosmix/loom
GitHub Stars
66
First Seen
May 20, 2026