feat(prompts): add format to save code snippet (#5007)
Signed-off-by: Roshan kr singh <roshan.kr.singh9911@gmail.com> Co-authored-by: Rizel Scarlett <rizel@squareup.com>
This commit is contained in:
committed by
GitHub
parent
13314515bb
commit
15b141e2ad
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"id": "code-snippet-saver",
|
||||
"title": "Code Snippet Saver",
|
||||
"description": "Save useful code snippets with descriptions and tags so you can quickly recall and reuse them later across projects",
|
||||
"category": "productivity",
|
||||
"job": "engineering",
|
||||
"example_prompt": "Save this retry logic snippet: async function retry(fn, retries=3) { for(let i=0; i<retries; i++) { try { return await fn(); } catch(e) { if(i===retries-1) throw e; } } }",
|
||||
"example_result": "I'll help you save this retry logic snippet using the memory extension. Let me confirm the details:\n\n**Category**: \"javascript\" (since this is a JavaScript snippet)\n**Tags**: #retry #async #error-handling\n**Scope**: Would you like this to be stored globally (available across all projects) or locally (only for this project)?\n\nWould you like me to proceed with saving this snippet?",
|
||||
"extensions": [
|
||||
{
|
||||
"name": "memory",
|
||||
"command": "memory",
|
||||
"is_builtin": true,
|
||||
"environmentVariables": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user