SPB Git

spb/zyquo-cloud-web Public MIT

Zyquo Cloud Web — every cloud model, one beautiful chat, entirely in your browser.

TypeScript 81.9% CSS 8.9% JavaScript 7.5% Shell 1.1% HTML 0.6%
35.1 KB · 565 lines typescript
Raw Blame History
1/*2 *  promptLibraryData.ts3 *  Zyquo Cloud Web4 *5 *  Author: Simon-Pierre Boucher6 *  Mail: contact@spboucher.ai7 */89// Built-in prompt template library (56 templates, 8 categories), ported10// verbatim from native Zyquo Cloud11// (Sources/ZyquoCloud/Services/PromptLibraryData.swift).12// IDs are stable slugs so favorites/references stay stable across sessions.13// Every body contains {{input}} exactly once.1415export interface PromptTemplate {16  /** Stable slug derived from the template title. */17  id: string18  title: string19  category: string20  /** The complete template body, verbatim, containing {{input}}. */21  body: string22}2324export const PROMPT_TEMPLATES: readonly PromptTemplate[] = [25  // MARK: - Writing2627  {28    id: 'executive-summary',29    title: 'Executive Summary',30    category: 'Writing',31    body: `You are a chief-of-staff who writes summaries executives actually read. Condense the material below into an executive summary of at most 150 words: one bold takeaway sentence, then 3–5 bullets covering findings, risks, and the recommended decision. Cut all hedging and background; keep every number that matters. End with a single "Next step:" line.3233Material:34{{input}}`,35  },36  {37    id: 'rewrite-for-clarity',38    title: 'Rewrite for Clarity',39    category: 'Writing',40    body: `You are a plain-language editor. Rewrite the text below so a busy reader grasps it in one pass: short sentences (average under 18 words), active voice, one idea per sentence, zero jargon unless it is defined. Preserve every fact and the original intent — do not add new claims. Then list the 3 most important changes you made and why, as bullets under "What changed".4142Text:43{{input}}`,44  },45  {46    id: 'blog-post-draft',47    title: 'Blog Post Draft',48    category: 'Writing',49    body: `You are a senior content writer known for posts that rank and get shared. Using the topic and notes below, draft a 700–900 word blog post: a hook that names the reader's pain in the first two sentences, descriptive H2 subheadings every 150–200 words, one concrete example or mini-story per section, and a closing with a single clear call to action. Write in a confident, conversational voice; no filler phrases like "in today's world".5051Topic and notes:52{{input}}`,53  },54  {55    id: 'professional-email',56    title: 'Professional Email',57    category: 'Writing',58    body: `You are an executive communications coach. Turn the situation below into a professional email: subject line under 8 words, greeting, context in one sentence, the ask or key message in the first paragraph, supporting details as short bullets if needed, and a specific closing with a deadline or next step. Maximum 150 words in the body. Match the tone to the relationship described; if none is described, default to warm-but-direct.5960Situation and what I need to say:61{{input}}`,62  },63  {64    id: 'punch-up-the-hook',65    title: 'Punch Up the Hook',66    category: 'Writing',67    body: `You are a headline doctor for a major publication. The opening below is losing readers. Produce 5 alternative openings (2–3 sentences each) using distinct techniques: (1) a surprising statistic or fact, (2) a provocative question, (3) a vivid scene, (4) a bold contrarian claim, (5) a direct "you" address. Label each technique, then state which one you would ship and the one-sentence reason.6869Current opening:70{{input}}`,71  },72  {73    id: 'press-release',74    title: 'Press Release',75    category: 'Writing',76    body: `You are a PR professional writing for tier-1 tech journalists. Turn the announcement details below into a press release: headline (under 12 words, no hype adjectives), dateline, a lead paragraph answering who/what/when/why-it-matters, one invented-but-realistic executive quote clearly marked [QUOTE — replace], two paragraphs of substance, and a boilerplate section. Follow AP style. Flag any claim in my details that a journalist would challenge.7778Announcement details:79{{input}}`,80  },81  {82    id: 'adjust-the-tone',83    title: 'Adjust the Tone',84    category: 'Writing',85    body: `You are a versatile ghostwriter. Rewrite the text below in three distinct tones, preserving all facts and roughly the same length: (1) formal and authoritative, (2) friendly and conversational, (3) concise and neutral. Present them under clear headings. After the three versions, add one line recommending which tone fits which audience.8687Text:88{{input}}`,89  },9091  // MARK: - Coding9293  {94    id: 'fix-explain-bug',95    title: 'Fix & Explain Bug',96    category: 'Coding',97    body: `You are a senior engineer doing a live debugging session. For the code and problem below: (1) state the root cause in one sentence before anything else, (2) show the minimal fix as a diff or corrected snippet, (3) explain why the bug happens, walking through the failing execution path, (4) point out any nearby latent bugs of the same class, (5) suggest one test that would have caught this. Do not rewrite unrelated code.9899Code and problem description:100{{input}}`,101  },102  {103    id: 'code-review',104    title: 'Code Review',105    category: 'Coding',106    body: `You are a staff engineer reviewing a pull request. Review the code below and report issues in severity order: Blocker (bugs, security, data loss), Major (correctness risks, API design), Minor (naming, style). For each issue give file/line reference if possible, the problem, and a concrete fix — show code, don't just describe. Also name one thing done well. Do not invent issues to seem thorough; if it's clean, say so.107108Code:109{{input}}`,110  },111  {112    id: 'refactor-for-readability',113    title: 'Refactor for Readability',114    category: 'Coding',115    body: `You are a maintainability-obsessed engineer. Refactor the code below with strictly preserved behavior: extract well-named functions, remove duplication, replace magic values with named constants, simplify conditionals, and improve names. Output the full refactored code, then a bullet list of each transformation applied and the readability principle behind it. If any change could alter behavior, flag it explicitly instead of making it silently.116117Code:118{{input}}`,119  },120  {121    id: 'write-unit-tests',122    title: 'Write Unit Tests',123    category: 'Coding',124    body: `You are a test engineer who believes tests are documentation. For the code below, write a complete unit test suite in the idiomatic framework for its language: happy path, boundary values, error/exception paths, and one property or invariant if applicable. Use descriptive test names that read as specifications ("returns empty list when input is nil"). Keep each test focused on one behavior. After the tests, list any code paths you could NOT test and what refactoring would make them testable.125126Code:127{{input}}`,128  },129  {130    id: 'explain-this-code',131    title: 'Explain This Code',132    category: 'Coding',133    body: `You are a patient senior engineer onboarding a new teammate. Explain the code below in three layers: (1) one-paragraph summary of what it does and why it exists, (2) a walkthrough of the flow in execution order, explaining any non-obvious idioms or tricks, (3) a "gotchas" section: hidden assumptions, side effects, and what would break if inputs were unusual. Pitch the explanation at a competent developer new to this codebase, not a beginner.134135Code:136{{input}}`,137  },138  {139    id: 'regex-builder',140    title: 'Regex Builder',141    category: 'Coding',142    body: `You are a regex expert who writes patterns other people can maintain. Build a regular expression for the requirement below. Deliver: (1) the pattern, (2) a commented/expanded version explaining each part, (3) 5 strings it should match and 5 it must reject, verified against your pattern, (4) known edge cases where it will fail and whether that's acceptable, (5) a note if a parser would be more appropriate than regex here. State which regex flavor you are targeting.143144What I need to match:145{{input}}`,146  },147  {148    id: 'optimize-performance',149    title: 'Optimize Performance',150    category: 'Coding',151    body: `You are a performance engineer who measures before optimizing. Analyze the code below: (1) identify the algorithmic complexity and the true bottleneck — state your reasoning, (2) rank optimization opportunities by expected impact, (3) implement the top one or two, showing before/after code, (4) estimate the improvement and the conditions under which it holds, (5) call out any readability or correctness trade-offs. Refuse to micro-optimize anything that isn't on the hot path.152153Code (and performance context if I have it):154{{input}}`,155  },156157  // MARK: - Analysis158159  {160    id: 'pros-cons-matrix',161    title: 'Pros & Cons Matrix',162    category: 'Analysis',163    body: `You are a decision analyst. For the decision below, build a structured comparison: identify the realistic options (including "do nothing"), then a table of pros and cons per option with each item weighted High/Medium/Low impact. Follow with the strongest argument FOR and AGAINST the leading option, second-order consequences people usually miss, and your recommendation with confidence level (low/medium/high) and the single piece of information that would change it.164165Decision:166{{input}}`,167  },168  {169    id: 'root-cause-analysis',170    title: 'Root Cause Analysis',171    category: 'Analysis',172    body: `You are an incident investigator trained in the "5 Whys" and fishbone methods. For the problem below: (1) restate the problem precisely — separate observed symptoms from assumed causes, (2) run a 5-Whys chain, showing each step, (3) identify contributing factors across people, process, and tooling, (4) distinguish the root cause from triggers and amplifiers, (5) propose fixes at both the symptom and root level, with effort estimates. If key facts are missing, list exactly what you'd need to know.173174Problem:175{{input}}`,176  },177  {178    id: 'summarize-key-findings',179    title: 'Summarize Key Findings',180    category: 'Analysis',181    body: `You are a research analyst who never buries the lede. Distill the material below into: (1) the 3–7 key findings, each one sentence in bold followed by 1–2 sentences of supporting evidence from the text, (2) surprises — anything that contradicts common assumptions, (3) limitations or caveats present in the material, (4) what the findings imply for action. Quote exact figures rather than approximating. Do not include anything not supported by the material.182183Material:184{{input}}`,185  },186  {187    id: 'steelman-both-sides',188    title: 'Steelman Both Sides',189    category: 'Analysis',190    body: `You are a debate coach committed to intellectual honesty. For the contested question below, construct the strongest possible case for each side — arguments their smartest advocates would actually make, with the best evidence, not strawmen. Format: Side A's steelman (3–4 arguments), Side B's steelman (3–4 arguments), the crux — the underlying disagreement about values or facts that drives the dispute, and which specific evidence would most move the debate. Do not declare a winner unless I ask.191192Question:193{{input}}`,194  },195  {196    id: 'interpret-this-data',197    title: 'Interpret This Data',198    category: 'Analysis',199    body: `You are a skeptical data analyst. Examine the data below and report: (1) the headline pattern in one sentence, (2) notable trends, outliers, and anomalies with the numbers that support each, (3) at least two rival explanations for the main pattern — including boring ones like seasonality, sample bias, or measurement change, (4) what the data does NOT show, i.e., conclusions people will be tempted to draw that it can't support, (5) which follow-up data would discriminate between the explanations.200201Data:202{{input}}`,203  },204  {205    id: 'risk-assessment',206    title: 'Risk Assessment',207    category: 'Analysis',208    body: `You are a risk officer who is neither alarmist nor complacent. For the plan below, produce a risk register: each risk with likelihood (1–5), impact (1–5), score, early warning signs, and a specific mitigation or contingency. Cover technical, people, timeline, financial, and external categories. Then name the single most underestimated risk and the "unknown unknown" area deserving investigation. Finish with a one-line overall verdict: proceed / proceed with changes / stop.209210Plan:211{{input}}`,212  },213  {214    id: 'compare-contrast',215    title: 'Compare & Contrast',216    category: 'Analysis',217    body: `You are an evaluation specialist. Compare the items below rigorously: (1) establish the 5–8 criteria that actually matter for this comparison and briefly justify them, (2) score each item per criterion in a table with a one-line rationale per cell, (3) highlight where the items are genuinely different versus practically equivalent, (4) give a recommendation per use case ("choose X if…, choose Y if…") rather than a single winner. Note where your information may be incomplete or dated.218219Items to compare (and my context):220{{input}}`,221  },222223  // MARK: - Translation & Language224225  {226    id: 'translate-keep-the-voice',227    title: 'Translate, Keep the Voice',228    category: 'Translation & Language',229    body: `You are a literary-grade translator. Translate the text below into the target language I specify (if I didn't specify one, ask me first in one line, then wait). Preserve tone, register, humor, and idioms — translate meaning, not words: replace idioms with natural equivalents rather than literal renderings. After the translation, add a "Translator's notes" section listing any wordplay, cultural references, or ambiguities where you made a judgment call, with the alternatives you considered.230231Text (and target language):232{{input}}`,233  },234  {235    id: 'idiomatic-english-polish',236    title: 'Idiomatic English Polish',237    category: 'Translation & Language',238    body: `You are a native-English copyeditor specialized in polishing text written by non-native speakers. Rewrite the text below into fully natural, idiomatic English while keeping the author's voice and meaning intact. Then list every correction in a table: original phrase → revised phrase → one-line reason (article usage, collocation, word order, false friend, register…). Group recurring error patterns at the end so the author learns from them.239240Text:241{{input}}`,242  },243  {244    id: 'grammar-style-check',245    title: 'Grammar & Style Check',246    category: 'Translation & Language',247    body: `You are a meticulous proofreader following Chicago style. Check the text below for grammar, punctuation, spelling, subject-verb agreement, tense consistency, and awkward constructions. Output: (1) the corrected text with no other changes — do not rewrite for style beyond fixing genuine errors, (2) an error log listing each fix with its rule ("comma splice", "dangling modifier"…), (3) a "style suggestions" section, clearly separated, for optional improvements I may accept or ignore.248249Text:250{{input}}`,251  },252  {253    id: 'localize-for-an-audience',254    title: 'Localize for an Audience',255    category: 'Translation & Language',256    body: `You are a localization strategist, not just a translator. Adapt the content below for the target market/audience I describe: adjust cultural references, examples, units, currencies, date formats, humor, and formality norms so it reads as if originally written for that audience. Flag anything that could be confusing or offensive in the target culture. Deliver the localized version, then a change log explaining each adaptation and the cultural reasoning behind it.257258Content and target audience:259{{input}}`,260  },261  {262    id: 'plain-language-rewrite',263    title: 'Plain-Language Rewrite',264    category: 'Translation & Language',265    body: `You are an expert at translating specialist jargon into plain language without dumbing it down. Rewrite the text below for an intelligent reader with zero background in the field: define or replace every technical term, use one concrete analogy for the hardest concept, and keep all quantitative claims accurate. Target reading level: a curious 15-year-old. Then list the terms you replaced with their plain equivalents, so I can reuse the vocabulary.266267Text:268{{input}}`,269  },270  {271    id: 'vocabulary-coach',272    title: 'Vocabulary Coach',273    category: 'Translation & Language',274    body: `You are a language coach who teaches words in context, never as bare lists. For the word, phrase, or text below: explain nuance and connotation, give register (formal/neutral/casual/slang), show 3 example sentences in increasing difficulty, list 3 near-synonyms with a precise note on how each differs, common collocations, and one mistake learners typically make with it. If I gave a whole text, do this for the 5 most useful words in it.275276Word/phrase/text:277{{input}}`,278  },279  {280    id: 'build-a-bilingual-glossary',281    title: 'Build a Bilingual Glossary',282    category: 'Translation & Language',283    body: `You are a terminologist preparing a translation glossary. From the source material below, extract the domain-specific terms and produce a glossary table: source term → target-language equivalent (target language as I specify; ask in one line if missing) → part of speech → definition in context → usage note or warning (false friends, terms that must NOT be translated, preferred variants). Sort by importance to the domain, not alphabetically. Aim for the 15–30 terms a translator would actually need.284285Source material (and target language):286{{input}}`,287  },288289  // MARK: - Business290291  {292    id: 'swot-analysis',293    title: 'SWOT Analysis',294    category: 'Business',295    body: `You are a strategy consultant who writes SWOTs that lead to decisions, not wall posters. For the business/product below: build the SWOT with 4–6 specific, evidence-based items per quadrant — ban generic entries like "strong team". Then do what most SWOTs skip: pair the quadrants into strategies (Strength→Opportunity offensive plays, Weakness→Threat defensive plays), and end with the 3 moves you would prioritize this quarter and why.296297Business/product and context:298{{input}}`,299  },300  {301    id: 'notes-to-action-items',302    title: 'Notes → Action Items',303    category: 'Business',304    body: `You are an elite executive assistant. Convert the raw meeting notes below into: (1) Decisions made — each in one sentence, (2) Action items in a table: action, owner, deadline (mark [OWNER?] or [DATE?] where unstated rather than inventing), (3) Open questions parked for later, (4) a 3-sentence summary suitable to send to someone who missed the meeting. Preserve exactly who said what committed to what; never assign an action to someone the notes don't support.305306Meeting notes:307{{input}}`,308  },309  {310    id: 'one-page-prd',311    title: 'One-Page PRD',312    category: 'Business',313    body: `You are a senior product manager known for crisp PRDs. Turn the feature idea below into a one-page PRD: Problem (user pain with evidence), Goals and explicit Non-goals, Target users, User stories ("As a…, I want…, so that…"), Requirements split into Must/Should/Won't-have, Success metrics with target numbers, Key risks and open questions. Be opinionated — make the scoping calls and mark them [ASSUMPTION] so reviewers can push back on specifics.314315Feature idea:316{{input}}`,317  },318  {319    id: 'elevator-pitch',320    title: 'Elevator Pitch',321    category: 'Business',322    body: `You are a pitch coach who has prepped founders for demo day. From the description below, craft: (1) a 10-second pitch (one sentence: for [who] who [pain], [name] is [category] that [key benefit]), (2) a 30-second pitch adding traction/proof and differentiation, (3) a 2-minute narrative version with a hook, problem story, solution, and ask. Then list the 3 hardest questions an investor or exec would fire back, with strong one-line answers.323324What I'm pitching:325{{input}}`,326  },327  {328    id: 'negotiation-prep',329    title: 'Negotiation Prep',330    category: 'Business',331    body: `You are a negotiation advisor trained in principled negotiation. For the situation below, prepare my brief: (1) my interests vs. my positions — and the other side's likely interests, (2) my BATNA and theirs, honestly assessed, (3) the ZOPA and where to anchor, (4) 3 tradeable variables beyond the headline number, (5) likely tactics they'll use and calm counter-moves, (6) my opening line, word for word. Finish with the walk-away condition I should commit to before entering the room.332333Situation:334{{input}}`,335  },336  {337    id: 'draft-okrs',338    title: 'Draft OKRs',339    category: 'Business',340    body: `You are an OKR coach who despises vanity objectives. From the goals/context below, draft OKRs: 1–3 Objectives that are qualitative, inspiring, and time-bound, each with 2–4 Key Results that are measurable outcomes (not tasks or outputs) with baseline → target numbers. Mark any KR where I gave no baseline as [BASELINE?]. Then stress-test your own draft: for each KR, state how it could be gamed and adjust if needed. Keep the whole set achievable at ~70% as a stretch.341342Goals and context:343{{input}}`,344  },345  {346    id: 'customer-reply',347    title: 'Customer Reply',348    category: 'Business',349    body: `You are a customer-experience lead famed for turning angry users into fans. Write a reply to the customer message below: acknowledge the specific frustration in their own terms (no "we apologize for any inconvenience"), state plainly what happened if known, what you're doing about it, and one concrete next step with a timeframe. Offer a goodwill gesture only if the situation warrants it. Under 150 words, human tone, no corporate hedging. Add an internal note (separate, marked INTERNAL) on the root issue to escalate.350351Customer message and context:352{{input}}`,353  },354355  // MARK: - Learning356357  {358    id: 'socratic-tutor',359    title: 'Socratic Tutor',360    category: 'Learning',361    body: `You are a Socratic tutor: you teach by asking, never by lecturing. I want to understand the topic below. Rules of engagement: ask me ONE question at a time, starting from what I likely already know; adapt each next question to my answer; when I'm wrong, don't correct me — ask the question that exposes the contradiction; give a direct explanation only if I'm stuck twice on the same point, then return to questioning. Begin with your first question now, and keep each turn short.362363Topic:364{{input}}`,365  },366  {367    id: 'explain-like-im-five',368    title: "Explain Like I'm Five",369    category: 'Learning',370    body: `You are a science communicator in the tradition of Feynman. Explain the concept below at three levels, clearly separated: (1) age 5 — one paragraph with a physical, everyday analogy, (2) high-schooler — the real mechanism with correct vocabulary introduced gently, (3) undergraduate — precise treatment including the main equation or formal statement if one exists, plus what the popular simplifications get wrong. Never sacrifice correctness for cuteness; if an analogy leaks, say where it leaks.371372Concept:373{{input}}`,374  },375  {376    id: 'build-my-study-plan',377    title: 'Build My Study Plan',378    category: 'Learning',379    body: `You are a learning scientist who designs plans around spaced repetition and active recall, not passive review. For the goal below, create a study plan: (1) break the subject into a dependency-ordered topic tree, (2) a week-by-week schedule fitted to the time I said I have (assume 5 h/week if unstated, marked [ASSUMED]), mixing new material, retrieval practice, and spaced reviews, (3) one concrete practice activity per topic — problems, teaching aloud, building something, (4) checkpoints with pass/fail criteria so I know I'm actually progressing, (5) the most common trap learners hit in this subject and how to avoid it.380381Learning goal, deadline, and available time:382{{input}}`,383  },384  {385    id: 'make-flashcards',386    title: 'Make Flashcards',387    category: 'Learning',388    body: `You are a spaced-repetition expert who follows the "minimum information principle": one atomic fact per card. From the material below, create 15–25 flashcards as "Q:" / "A:" pairs. Rules: no card answerable by pattern-matching the question's wording; use cloze-style or "why/how" prompts over pure definitions; include 2–3 reversed cards for key term↔concept pairs; answers maximally short. Order cards from foundational to advanced, and flag any card that depends on another card's content.389390Material:391{{input}}`,392  },393  {394    id: 'quiz-me',395    title: 'Quiz Me',396    category: 'Learning',397    body: `You are a rigorous but encouraging examiner. Quiz me on the topic/material below. Protocol: ask ONE question at a time and wait for my answer; mix formats (recall, application, "spot the error", scenario); start moderate and adapt difficulty to my performance; after each answer, grade it (correct / partially / incorrect), explain briefly, and note what I missed; every 5 questions, give a running score and the pattern in my mistakes. Begin with question 1 now.398399Topic or material:400{{input}}`,401  },402  {403    id: 'map-the-concepts',404    title: 'Map the Concepts',405    category: 'Learning',406    body: `You are a knowledge cartographer. For the subject below, build a concept map in text form: (1) the 8–15 core concepts, each with a one-line definition, (2) the relationships between them written as labeled edges ("X enables Y", "A is a special case of B", "P trades off against Q"), (3) the 3 concepts everything else hangs on — master these first, (4) common misconceptions about the trickiest links. Format the map as an indented outline grouped by cluster, so I can study it top-down.407408Subject:409{{input}}`,410  },411  {412    id: 'feynman-check',413    title: 'Feynman Check',414    category: 'Learning',415    body: `You are running the Feynman technique on me. Below is my own explanation of a concept, written from memory. Your job: (1) identify every gap, hand-wave, or circular definition — places where I used a term I couldn't define or skipped a causal step, (2) identify anything actually wrong, gently but precisely, (3) for each gap, ask the one question I should answer to close it, (4) rate my understanding: solid / partial / illusory, with a one-line justification. Do not re-explain the whole concept yourself unless I ask.416417My explanation:418{{input}}`,419  },420421  // MARK: - Creativity422423  {424    id: 'brainstorm-20-ideas',425    title: 'Brainstorm 20 Ideas',426    category: 'Creativity',427    body: `You are a facilitator who knows the first ten ideas are always the obvious ones. Generate exactly 20 ideas for the challenge below: ideas 1–5 may be conventional (get them out of the way), 6–12 must each borrow a mechanism from a different unrelated domain (name the domain), 13–17 must invert an assumption baked into the challenge (state which), 18–20 should be deliberately absurd — then, for each absurd one, extract the usable kernel. Finish by marking your top 3 with one line on why each could actually work.428429Challenge:430{{input}}`,431  },432  {433    id: 'short-story-sketch',434    title: 'Short Story Sketch',435    category: 'Creativity',436    body: `You are a fiction writer who believes stories live or die on desire and obstacle. From the premise below, develop a short-story sketch: protagonist with a concrete want and a contradictory inner need, the inciting incident, three escalating obstacles (each raising the stakes and forcing a choice), the crisis decision, and the ending beat — plus what changed in the character. Then write the opening 150 words of the story itself, in a voice matched to the material. Avoid clichés of the genre; if you use a trope, twist it.437438Premise:439{{input}}`,440  },441  {442    id: 'naming-machine',443    title: 'Naming Machine',444    category: 'Creativity',445    body: `You are a professional namer for brands and products. For the thing described below, generate 15 name candidates across styles: descriptive, evocative/metaphorical, invented/coined, compound, and playful. For each: the name, one line on its logic, and a pronunciation flag if non-obvious. Then score your top 5 on memorability, spellability, meaning-fit, and trademark-collision risk (based on how generic/common the words are — note this is not legal advice), and crown a winner with runner-up.446447What needs a name:448{{input}}`,449  },450  {451    id: 'metaphor-finder',452    title: 'Metaphor Finder',453    category: 'Creativity',454    body: `You are a writer with a gift for analogy. For the concept below, generate 8 metaphors or analogies drawn from deliberately varied source domains — cooking, sports, nature, machinery, music, relationships, cities, games. For each: the metaphor in one vivid sentence, where the mapping is strong, and where it breaks down (every metaphor lies somewhere — say where). End by recommending the best metaphor for (a) a general audience and (b) an expert audience, since they're rarely the same one.455456Concept:457{{input}}`,458  },459  {460    id: 'what-if-scenarios',461    title: 'What-If Scenarios',462    category: 'Creativity',463    body: `You are a scenario planner and speculative thinker. Take the premise below and run it forward rigorously: (1) first-order effects — immediate, obvious consequences, (2) second-order effects — how people and systems adapt to the first-order ones, (3) third-order effects — the surprising equilibria after adaptation, (4) who wins, who loses, and what new problems appear, (5) the weakest assumption in the whole chain. Reason causally at every step; no hand-waving from premise straight to conclusion.464465What if:466{{input}}`,467  },468  {469    id: 'character-builder',470    title: 'Character Builder',471    category: 'Creativity',472    body: `You are a character designer for novels and games. From the seed below, build a fully realized character: core contradiction (the trait pair that generates drama), want vs. need, backstory in 5 beats that explains — not excuses — who they are, speech pattern with 3 sample lines of dialogue that only THIS character would say, habits and tells, what they do under pressure, and their secret. Skip physical description unless the seed demands it — character is behavior. End with the story situation this character was born to detonate.473474Character seed:475{{input}}`,476  },477  {478    id: 'headline-variations',479    title: 'Headline Variations',480    category: 'Creativity',481    body: `You are a copywriter who A/B tests everything. For the content described below, write 12 headline variations grouped by strategy: 3 curiosity-gap, 3 concrete-benefit, 3 number/list, 3 bold-claim-or-question. Rules: no clickbait that the content can't cash, under 70 characters each, strong verbs, no "ultimate guide" clichés. Then pick your top 2 for click-through and your top 1 for trust/brand, and note the audience for which each would win.482483Content:484{{input}}`,485  },486487  // MARK: - Productivity488489  {490    id: 'prioritize-my-tasks',491    title: 'Prioritize My Tasks',492    category: 'Productivity',493    body: `You are a productivity coach who uses Eisenhower and impact/effort thinking without the buzzword theater. Take my task list below and: (1) classify each task — do now, schedule, delegate, or delete — with a one-line justification, (2) identify the ONE task that makes several others easier or unnecessary, (3) sequence today's top 3 in execution order, noting realistic time blocks, (4) call out anything that looks urgent but isn't, and anything quietly important that I'm avoiding. Be direct; if a task should die, say so.494495My tasks (and any deadlines/context):496{{input}}`,497  },498  {499    id: 'plan-my-week',500    title: 'Plan My Week',501    category: 'Productivity',502    body: `You are a calendar-realist planner: you design weeks people actually keep. From my goals and constraints below, build a weekly plan: (1) pick at most 3 priority outcomes for the week and state what "done" means for each, (2) a day-by-day block schedule with deep-work blocks in the morning (or my stated peak hours), meetings/shallow work batched, and explicit buffer — leave 20% unscheduled, (3) one daily "shutdown" checkpoint question per day, (4) what to drop or defer if the week goes sideways, decided now rather than in the moment.503504My goals, commitments, and constraints this week:505{{input}}`,506  },507  {508    id: 'decision-framework',509    title: 'Decision Framework',510    category: 'Productivity',511    body: `You are a decision coach who separates the decision from the outcome. Walk the decision below through a structured process: (1) classify it — reversible or one-way door, and calibrate effort accordingly, (2) clarify the actual objective and constraints in one sentence each, (3) list the options including at least one I probably haven't considered, (4) evaluate against 3–5 weighted criteria in a table, (5) run a premortem: it's a year later and this failed — why?, (6) give your recommendation, your confidence, and the cheapest test that would raise that confidence before committing.512513Decision I'm facing:514{{input}}`,515  },516  {517    id: 'meeting-agenda',518    title: 'Meeting Agenda',519    category: 'Productivity',520    body: `You are a meeting designer who believes most meetings should be shorter or emails. For the meeting described below: (1) first verify it deserves to be a meeting — if not, say so and draft the email instead, (2) otherwise produce an agenda: purpose in one sentence, the decision(s) to be made, timeboxed items with an owner and a format each (discuss/decide/inform), pre-reading to send in advance, and the last-5-minutes wrap: decisions recap + actions + owners, (3) suggest the minimal attendee list and total duration, defaulting shorter.521522Meeting purpose and context:523{{input}}`,524  },525  {526    id: 'delegation-brief',527    title: 'Delegation Brief',528    category: 'Productivity',529    body: `You are an operations lead who delegates outcomes, not tasks. Turn the work below into a delegation brief someone could execute without pinging me hourly: (1) the outcome and what "great" looks like, with an example if possible, (2) context — why this matters and how it'll be used, (3) constraints and non-negotiables vs. areas of full autonomy, clearly separated, (4) resources and points of contact, (5) checkpoints: when to check in and what triggers an immediate escalation, (6) deadline and priority relative to their other work. Keep it under a page.530531Work to delegate (and to whom, if known):532{{input}}`,533  },534  {535    id: 'break-down-a-project',536    title: 'Break Down a Project',537    category: 'Productivity',538    body: `You are a project planner allergic to vague milestones. Decompose the project below into an executable plan: (1) restate the end state in one testable sentence, (2) work backwards to milestones, each with a binary done/not-done criterion, (3) break the first milestone into concrete next actions of 2 hours or less, each starting with a verb, (4) map dependencies — what blocks what — and the critical path, (5) flag the riskiest assumption and schedule its validation FIRST, (6) estimate effort per milestone in ranges, not false-precision points.539540Project:541{{input}}`,542  },543  {544    id: 'standup-update',545    title: 'Standup Update',546    category: 'Productivity',547    body: `You are a communication-efficiency editor. Turn my raw notes below into a crisp standup update: Yesterday (done — outcomes, not activities), Today (top 1–3 intentions, specific enough to verify tomorrow), Blockers (each with what I need, from whom, by when — or "none"). Maximum 80 words total, scannable, no throat-clearing. If my notes reveal something the team genuinely needs to discuss beyond standup, add a single "Flag:" line proposing where to take it.548549My raw notes:550{{input}}`,551  },552] as const553554/** Template categories in native order. */555export const TEMPLATE_CATEGORIES: readonly string[] = [556  'Writing',557  'Coding',558  'Analysis',559  'Translation & Language',560  'Business',561  'Learning',562  'Creativity',563  'Productivity',564] as const565