loom-prompt-engineering

Solid

Designs and optimizes prompts for large language models including system prompts, agent signals, and few-shot examples.

AI & Automation 54 stars 3 forks Updated today MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
58
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
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 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 Separate instructions from data with unambiguous delimiters. XML-like tags or clear headings both work; choose the convention the target model and application already use. Delimiters improve inspection, but are not a security boundary and do not make hostile text safe by themselves. ```text <instructions> Summarize the article for engineers in 2-3 sentences. </instructions> <article> {artic...

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 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
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.

135 Updated today
CodeAlive-AI
AI & Automation Listed

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.

47 Updated today
OpenCoven