loom-prompt-engineering

Solid

Designs and optimizes prompts for large language models including system prompts, agent signals, and few-shot examples. Use for instruction design, prompt security, chain-of-thought reasoning, and in-context learning for orchestrated agents.

AI & Automation 53 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
58
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 Order matters — most models weight later instructions and the very start/end of context most heavily. 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 Separate instructions from data with unambiguous delimiters. Claude models respond best to **XML tags**; they make roles machine-clear and reduce injection surface. ```text <instructions> Summarize the article for engineers in 2-3 sentences. </instructions> <article> {article_text} </article> ``` Prefer tags/headings over prose for multi-part prompts. Never interpolate untrusted content outside a delimiter. ## Few-shot: selection over quantity...

Details

Author
cosmix
Repository
cosmix/loom
Created
8 months ago
Last Updated
today
Language
Rust
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

prompt-engineer

Design, optimize, test, and evaluate prompts for large language models. Use when: (1) crafting or refining system prompts, user prompts, or prompt templates, (2) optimizing token usage or cost of existing prompts, (3) designing few-shot examples or chain-of-thought reasoning, (4) setting up prompt evaluation, A/B testing, or regression testing, (5) building production prompt management systems (versioning, monitoring, safety), (6) debugging inconsistent or low-quality LLM outputs, (7) selecting prompt patterns (zero-shot, few-shot, CoT, ToT, ReAct, role-based). Triggers on: prompt engineering, optimize prompt, reduce tokens, prompt template, few-shot, chain-of-thought, prompt evaluation, A/B test prompts, prompt versioning.

39 Updated today
OpenCoven
AI & Automation Solid

prompt-engineering

Universal prompt engineering techniques for any LLM. Use when crafting, optimizing, or reviewing prompts for AI models. Triggers on requests like "improve this prompt", "write a system prompt", "optimize my instructions", "help me prompt engineer", "audit this prompt", "review my prompt", or when building agentic systems that need structured prompts.

125 Updated today
CodeAlive-AI
AI & Automation Listed

prompt-engeneering

Universal prompt engineering techniques for any LLM. Use when crafting, optimizing, or reviewing prompts for AI models. Triggers on requests like "improve this prompt", "write a system prompt", "optimize my instructions", "help me prompt engineer", "audit this prompt", "review my prompt", or when building agentic systems that need structured prompts.

1 Updated today
Layneformalized225