Language
General / language-agnostic
AI instructions for General / language-agnostic projects — coding rules, agent setup files, and prompts, organized by proficiency.
121 published items · Filter in browse
Self-consistency: arithmetic CoT exemplars (DAIR.AI)
Few-shot CoT exemplar set (Wang et al. 2022, Table 17) used to sample multiple reasoning paths and take the majority answer.
Prompt chaining for document QA: extract quotes, then answer (DAIR.AI)
Two-prompt chain from the Prompt Engineering Guide: prompt 1 pulls relevant quotes into <quotes> tags, prompt 2 composes the answer from quotes plus the original document.
Generated knowledge prompting: two-step commonsense QA (DAIR.AI)
Two-step prompt from the Prompt Engineering Guide (Liu et al. 2022): first have the model generate relevant facts, then answer using those facts.
Few-shot prompting: new-word usage demo (DAIR.AI)
One-shot/few-shot demonstration prompt from the Prompt Engineering Guide: show a worked example, then leave the final slot for the model to complete.
Chain-of-thought prompting: few-shot and zero-shot (DAIR.AI)
Few-shot chain-of-thought exemplars (Wei et al. 2022) plus the zero-shot 'Let's think step by step' trigger (Kojima et al. 2022) from the Prompt Engineering Guide.
Competitive Landscape Brief
Builds a competitive landscape brief from supplied research notes: positioning map, per-competitor profiles with sourced claims, and the gaps your product could own.
SLO Definition Workshop
Facilitates defining SLOs for a service: picks user-facing SLIs, proposes targets grounded in current performance, sizes the error budget, and specifies the alerting policy.
Runbook From an Incident
Turns a resolved incident's postmortem and chat log into an operational runbook: detection signals, exact diagnostic commands, decision points, and the mitigation that actually worked.
On-Call Handoff Summary
Compresses a shift's alerts, tickets, and chat into a handoff the incoming on-call can act on in five minutes: active issues first, with current state, next step, and tripwires.
Zero-Downtime Migration Plan
Plans a zero-downtime migration (schema, datastore, service, or provider) as reversible phases with verification gates, dual-write or dual-read strategy, and explicit rollback at every step.
Cloud Bill Cost Optimization Review
Analyzes a cloud cost export to find the largest savings by effort level, with the exact resources, estimated monthly impact, and the risk of each change stated plainly.
Write the Failing Test First
Turns a behavior description into one focused failing test in the project's existing test style, before any implementation code is written.
Regex With Tests
Builds a regular expression for a stated matching rule in a specific engine, explains it piece by piece, and ships a table of positive and negative test cases.
Refactor Within Explicit Constraints
Refactors code toward a stated goal while holding hard constraints (public API, behavior, dependencies) fixed and proving each one still holds.
Explain Unfamiliar Code
Walks through a block of unfamiliar code top-down, grounding every claim in quoted lines and flagging what cannot be known from the snippet alone.
Design Doc From Requirements
Expands a requirements list into a reviewable engineering design doc with explicit non-goals, two or more considered alternatives, and a rollout plan.
Debug From a Stack Trace
Reads a stack trace and the relevant source, forms ranked hypotheses with evidence, and proposes the single cheapest experiment to confirm the root cause.
Convert Code Between Languages
Ports code from one language to another idiomatically, preserving behavior exactly and documenting every place the two languages' semantics diverge.
Pre-PR Self-Review Checklist
Reviews your own diff the way a demanding reviewer would, before you open the PR: correctness, tests, scope creep, and the questions a reviewer will ask.
Technical Documentation Writer
System prompt. System prompt for a documentation writer that produces accurate, task-oriented docs from source material, follows a house style guide, and marks every unverifiable claim instead of guessing.
Socratic Programming Tutor
System prompt. System prompt for a programming tutor that leads learners to their own answers through targeted questions and small experiments, giving the solution only when the learner is truly stuck.
Research Assistant With Citations
System prompt. System prompt for a research assistant that answers from retrieved sources, cites every claim inline, separates evidence from inference, and reports what it could not find.
Product Spec Writer
System prompt. System prompt for a product spec writer that turns rough ideas and research into PRDs with measurable success criteria, explicit non-goals, and open questions instead of invented certainty.
Internal Knowledge Base Q&A (RAG Answerer)
System prompt. System prompt for a retrieval-augmented answerer over an internal knowledge base: answers only from retrieved chunks, cites them by ID, and says 'not in the knowledge base' when the answer is absent.