{"id":"a074a29c-7e30-4232-babb-f0024a21deaa","shortId":"xn3kM2","kind":"skill","title":"Prompt Engineering","tagline":"Antigravity Awesome Skills skill by Sickn33","description":"# Prompt Engineering Patterns\n\nAdvanced prompt engineering techniques to maximize LLM performance, reliability, and controllability.\n\n## Core Capabilities\n\n### 1. Few-Shot Learning\n\nTeach the model by showing examples instead of explaining rules. Include 2-5 input-output pairs that demonstrate the desired behavior. Use when you need consistent formatting, specific reasoning patterns, or handling of edge cases. More examples improve accuracy but consume tokens—balance based on task complexity.\n\n**Example:**\n\n```markdown\nExtract key information from support tickets:\n\nInput: \"My login doesn't work and I keep getting error 403\"\nOutput: {\"issue\": \"authentication\", \"error_code\": \"403\", \"priority\": \"high\"}\n\nInput: \"Feature request: add dark mode to settings\"\nOutput: {\"issue\": \"feature_request\", \"error_code\": null, \"priority\": \"low\"}\n\nNow process: \"Can't upload files larger than 10MB, getting timeout\"\n```\n\n### 2. Chain-of-Thought Prompting\n\nRequest step-by-step reasoning before the final answer. Add \"Let's think step by step\" (zero-shot) or include example reasoning traces (few-shot). Use for complex problems requiring multi-step logic, mathematical reasoning, or when you need to verify the model's thought process. Improves accuracy on analytical tasks by 30-50%.\n\n**Example:**\n\n```markdown\nAnalyze this bug report and determine root cause.\n\nThink step by step:\n\n1. What is the expected behavior?\n2. What is the actual behavior?\n3. What changed recently that could cause this?\n4. What components are involved?\n5. What is the most likely root cause?\n\nBug: \"Users can't save drafts after the cache update deployed yesterday\"\n```\n\n### 3. Prompt Optimization\n\nSystematically improve prompts through testing and refinement. Start simple, measure performance (accuracy, consistency, token usage), then iterate. Test on diverse inputs including edge cases. Use A/B testing to compare variations. Critical for production prompts where consistency and cost matter.\n\n**Example:**\n\n```markdown\nVersion 1 (Simple): \"Summarize this article\"\n→ Result: Inconsistent length, misses key points\n\nVersion 2 (Add constraints): \"Summarize in 3 bullet points\"\n→ Result: Better structure, but still misses nuance\n\nVersion 3 (Add reasoning): \"Identify the 3 main findings, then summarize each\"\n→ Result: Consistent, accurate, captures key information\n```\n\n### 4. Template Systems\n\nBuild reusable prompt structures with variables, conditional sections, and modular components. Use for multi-turn conversations, role-based interactions, or when the same pattern applies to different inputs. Reduces duplication and ensures consistency across similar tasks.\n\n**Example:**\n\n```python\n# Reusable code review template\ntemplate = \"\"\"\nReview this {language} code for {focus_area}.\n\nCode:\n{code_block}\n\nProvide feedback on:\n{checklist}\n\"\"\"\n\n# Usage\nprompt = template.format(\n    language=\"Python\",\n    focus_area=\"security vulnerabilities\",\n    code_block=user_code,\n    checklist=\"1. SQL injection\\n2. XSS risks\\n3. Authentication\"\n)\n```\n\n### 5. System Prompt Design\n\nSet global behavior and constraints that persist across the conversation. Define the model's role, expertise level, output format, and safety guidelines. Use system prompts for stable instructions that shouldn't change turn-to-turn, freeing up user message tokens for variable content.\n\n**Example:**\n\n```markdown\nSystem: You are a senior backend engineer specializing in API design.\n\nRules:\n\n- Always consider scalability and performance\n- Suggest RESTful patterns by default\n- Flag security concerns immediately\n- Provide code examples in Python\n- Use early return pattern\n\nFormat responses as:\n\n1. Analysis\n2. Recommendation\n3. Code example\n4. Trade-offs\n```\n\n## Key Patterns\n\n### Progressive Disclosure\n\nStart with simple prompts, add complexity only when needed:\n\n1. **Level 1**: Direct instruction\n\n   - \"Summarize this article\"\n\n2. **Level 2**: Add constraints\n\n   - \"Summarize this article in 3 bullet points, focusing on key findings\"\n\n3. **Level 3**: Add reasoning\n\n   - \"Read this article, identify the main findings, then summarize in 3 bullet points\"\n\n4. **Level 4**: Add examples\n   - Include 2-3 example summaries with input-output pairs\n\n### Instruction Hierarchy\n\n```\n[System Context] → [Task Instruction] → [Examples] → [Input Data] → [Output Format]\n```\n\n### Error Recovery\n\nBuild prompts that gracefully handle failures:\n\n- Include fallback instructions\n- Request confidence scores\n- Ask for alternative interpretations when uncertain\n- Specify how to indicate missing information\n\n## Best Practices\n\n1. **Be Specific**: Vague prompts produce inconsistent results\n2. **Show, Don't Tell**: Examples are more effective than descriptions\n3. **Test Extensively**: Evaluate on diverse, representative inputs\n4. **Iterate Rapidly**: Small changes can have large impacts\n5. **Monitor Performance**: Track metrics in production\n6. **Version Control**: Treat prompts as code with proper versioning\n7. **Document Intent**: Explain why prompts are structured as they are\n\n## Common Pitfalls\n\n- **Over-engineering**: Starting with complex prompts before trying simple ones\n- **Example pollution**: Using examples that don't match the target task\n- **Context overflow**: Exceeding token limits with excessive examples\n- **Ambiguous instructions**: Leaving room for multiple interpretations\n- **Ignoring edge cases**: Not testing on unusual or boundary inputs\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.","tags":["prompt","engineering","antigravity","awesome","skills","sickn33"],"capabilities":["skill","source-sickn33","category-antigravity-awesome-skills"],"categories":["antigravity-awesome-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/prompt-engineering","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"install_from":"skills.sh"}},"qualityScore":"0.300","qualityRationale":"deterministic score 0.30 from registry signals: · indexed on skills.sh · published under sickn33/antigravity-awesome-skills","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill:v1","enrichmentVersion":1,"enrichedAt":"2026-04-25T09:40:44.059Z","embedding":null,"createdAt":"2026-04-18T20:36:05.018Z","updatedAt":"2026-04-25T09:40:44.059Z","lastSeenAt":"2026-04-25T09:40:44.059Z","tsv":"'-3':592 '-5':42 '-50':197 '1':25,212,302,423,519,543,545,639 '10mb':131 '2':41,134,218,314,521,551,553,591,647 '3':224,257,319,330,335,523,560,567,569,582,658 '30':196 '4':232,347,526,585,587,666 '403':97,103 '5':237,431,675 '6':682 '7':692 'a/b':285 'accur':343 'accuraci':69,191,271 'across':385,442 'action':764 'actual':222 'add':109,150,315,331,538,554,570,588 'advanc':12 'altern':627 'alway':493 'ambigu':735 'analysi':520 'analyt':193 'analyz':200 'answer':149 'antigrav':3 'api':490 'appli':376 'applic':758 'area':401,415 'articl':306,550,558,574 'ask':625,802 'authent':100,430 'awesom':4 'backend':486 'balanc':73 'base':74,369 'behavior':51,217,223,437 'best':637 'better':323 'block':404,419 'boundari':750,810 'bug':202,245 'build':350,613 'bullet':320,561,583 'cach':253 'capabl':24 'captur':344 'case':65,283,744 'category-antigravity-awesome-skills' 'caus':207,230,244 'chain':136 'chain-of-thought':135 'chang':226,466,670 'checklist':408,422 'clarif':804 'clear':777 'code':102,119,391,398,402,403,418,421,508,524,688 'common':703 'compar':288 'complex':77,170,539,710 'compon':234,360 'concern':505 'condit':356 'confid':623 'consid':494 'consist':56,272,295,342,384 'constraint':316,439,555 'consum':71 'content':478 'context':603,727 'control':22,684 'convers':366,444 'core':23 'cost':297 'could':229 'criteria':813 'critic':290 'dark':110 'data':608 'default':502 'defin':445 'demonstr':48 'deploy':255 'describ':765,781 'descript':657 'design':434,491 'desir':50 'determin':205 'differ':378 'direct':546 'disclosur':533 'divers':279,663 'document':693 'doesn':89 'draft':250 'duplic':381 'earli':513 'edg':64,282,743 'effect':655 'engin':2,10,14,487,707 'ensur':383 'environ':793 'environment-specif':792 'error':96,101,118,611 'evalu':661 'exampl':35,67,78,162,198,299,388,479,509,525,589,593,606,652,716,719,734 'exceed':729 'excess':733 'execut':760 'expect':216 'expert':798 'expertis':450 'explain':38,695 'extens':660 'extract':80 'failur':618 'fallback':620 'featur':107,116 'feedback':406 'few-shot':26,165 'file':128 'final':148 'find':337,566,578 'flag':503 'focus':400,414,563 'format':57,453,516,610 'free':471 'get':95,132 'global':436 'grace':616 'guidelin':456 'handl':62,617 'hierarchi':601 'high':105 'identifi':333,575 'ignor':742 'immedi':506 'impact':674 'improv':68,190,261 'includ':40,161,281,590,619 'inconsist':308,645 'indic':634 'inform':82,346,636 'inject':425 'input':44,86,106,280,379,597,607,665,751,807 'input-output':43,596 'instead':36 'instruct':462,547,600,605,621,736 'intent':694 'interact':370 'interpret':628,741 'involv':236 'issu':99,115 'iter':276,667 'keep':94 'key':81,311,345,530,565 'languag':397,412 'larg':673 'larger':129 'learn':29 'leav':737 'length':309 'let':151 'level':451,544,552,568,586 'like':242 'limit':731,769 'llm':18 'logic':176 'login':88 'low':122 'main':336,577 'markdown':79,199,300,480 'match':723,778 'mathemat':177 'matter':298 'maxim':17 'measur':269 'messag':474 'metric':679 'miss':310,327,635,815 'mode':111 'model':32,186,447 'modular':359 'monitor':676 'multi':174,364 'multi-step':173 'multi-turn':363 'multipl':740 'n2':426 'n3':429 'need':55,182,542 'nuanc':328 'null':120 'off':529 'one':715 'optim':259 'output':45,98,114,452,598,609,787 'over-engin':705 'overflow':728 'overview':768 'pair':46,599 'pattern':11,60,375,500,515,531 'perform':19,270,497,677 'permiss':808 'persist':441 'pitfal':704 'point':312,321,562,584 'pollut':717 'practic':638 'prioriti':104,121 'problem':171 'process':124,189 'produc':644 'product':292,681 'progress':532 'prompt':1,9,13,139,258,262,293,352,410,433,459,537,614,643,686,697,711 'proper':690 'provid':405,507 'python':389,413,511 'rapid':668 'read':572 'reason':59,145,163,178,332,571 'recent':227 'recommend':522 'recoveri':612 'reduc':380 'refin':266 'reliabl':20 'report':203 'repres':664 'request':108,117,140,622 'requir':172,806 'respons':517 'rest':499 'result':307,322,341,646 'return':514 'reusabl':351,390 'review':392,395,799 'risk':428 'role':368,449 'role-bas':367 'room':738 'root':206,243 'rule':39,492 'safeti':455,809 'save':249 'scalabl':495 'scope':780 'score':624 'section':357 'secur':416,504 'senior':485 'set':113,435 'shot':28,159,167 'shouldn':464 'show':34,648 'sickn33':8 'similar':386 'simpl':268,303,536,714 'skill':5,6,756,772 'small':669 'source-sickn33' 'special':488 'specif':58,641,794 'specifi':631 'sql':424 'stabl':461 'start':267,534,708 'step':142,144,154,156,175,209,211 'step-by-step':141 'still':326 'stop':800 'structur':324,353,699 'substitut':790 'success':812 'suggest':498 'summar':304,317,339,548,556,580 'summari':594 'support':84 'system':349,432,458,481,602 'systemat':260 'target':725 'task':76,194,387,604,726,776 'teach':30 'techniqu':15 'tell':651 'templat':348,393,394 'template.format':411 'test':264,277,286,659,746,796 'think':153,208 'thought':138,188 'ticket':85 'timeout':133 'token':72,273,475,730 'trace':164 'track':678 'trade':528 'trade-off':527 'treat':685,785 'tri':713 'turn':365,468,470 'turn-to-turn':467 'uncertain':630 'unusu':748 'updat':254 'upload':127 'usag':274,409 'use':52,168,284,361,457,512,718,754,770 'user':246,420,473 'vagu':642 'valid':795 'variabl':355,477 'variat':289 'verifi':184 'version':301,313,329,683,691 'vulner':417 'work':91 'workflow':762 'xss':427 'yesterday':256 'zero':158 'zero-shot':157","prices":[{"id":"7c3ec722-c6ef-4e28-ad15-cb023ea5afd7","listingId":"a074a29c-7e30-4232-babb-f0024a21deaa","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"sickn33","category":"antigravity-awesome-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T20:36:05.018Z"}],"sources":[{"listingId":"a074a29c-7e30-4232-babb-f0024a21deaa","source":"github","sourceId":"sickn33/antigravity-awesome-skills/prompt-engineering","sourceUrl":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/prompt-engineering","isPrimary":false,"firstSeenAt":"2026-04-18T21:42:57.938Z","lastSeenAt":"2026-04-25T06:51:47.144Z"},{"listingId":"a074a29c-7e30-4232-babb-f0024a21deaa","source":"skills_sh","sourceId":"sickn33/antigravity-awesome-skills/prompt-engineering","sourceUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/prompt-engineering","isPrimary":true,"firstSeenAt":"2026-04-18T20:36:05.018Z","lastSeenAt":"2026-04-25T09:40:44.059Z"}],"details":{"listingId":"a074a29c-7e30-4232-babb-f0024a21deaa","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"sickn33","slug":"prompt-engineering","source":"skills_sh","category":"antigravity-awesome-skills","skills_sh_url":"https://skills.sh/sickn33/antigravity-awesome-skills/prompt-engineering"},"updatedAt":"2026-04-25T09:40:44.059Z"}}