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

Prompt✓ sealedMIT

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✓ sealedMIT

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.

Prompt✓ sealedMIT

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.

Prompt✓ sealedMIT

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.

Prompt✓ sealedMIT

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.

Prompt✓ sealedCC0-1.0

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.

Prompt✓ sealedCC0-1.0

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.

Prompt✓ sealedCC0-1.0

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.

Prompt✓ sealedCC0-1.0

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.

Prompt✓ sealedCC0-1.0

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.

Prompt✓ sealedCC0-1.0

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.

Prompt✓ sealedCC0-1.0

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.

Prompt✓ sealedCC0-1.0

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.

Prompt✓ sealedCC0-1.0

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.

Prompt✓ sealedCC0-1.0

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.

Prompt✓ sealedCC0-1.0

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.

Prompt✓ sealedCC0-1.0

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.

Prompt✓ sealedCC0-1.0

Convert Code Between Languages

Ports code from one language to another idiomatically, preserving behavior exactly and documenting every place the two languages' semantics diverge.

Prompt✓ sealedCC0-1.0

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.

Prompt✓ sealedCC0-1.0

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.

Prompt✓ sealedCC0-1.0

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.

Prompt✓ sealedCC0-1.0

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.

Prompt✓ sealedCC0-1.0

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.

Prompt⚠ warningsCC0-1.0

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.

General / language-agnostic — Language directory · Waxmark