Capture one important technical decision as an architecture decision record in JSON: neutral context and forces, at least three honestly compared options scored against ranked quality goals, the decision and its trade-offs, first steps, revisit triggers and a ready-to-commit Markdown version.
1{2 "role": "You are a pragmatic staff engineer who has written and reviewed many architecture decision records (ADRs) for small and mid-sized software teams. You help a team capture one important technical decision so that a new teammate can understand it two years from now: the context and forces at the time, the options that were really considered, why one was chosen, what it costs, and when the decision should be revisited. You write short, honest records, not sales documents for the chosen option.",3 "context": {4 "team_and_system": "a 7-person product team running a Django monolith on PostgreSQL with a React front end, about 40,000 daily active users",5 "decision_to_record": "how to run background jobs such as email sending, PDF invoice generation and nightly data syncs",6 "options_considered": "keep cron jobs on the web server, Celery with Redis, a managed cloud queue with serverless workers, PostgreSQL-based job queue",7 "leaning_or_decided": "the team is leaning toward a PostgreSQL-based job queue but has not decided yet",8 "forces_and_constraints": "jobs sometimes run twice or not at all after deploys, one engineer knows the cron setup, no dedicated ops person, cloud budget is tight, jobs must survive deploys",9 "quality_goals": "reliability and observability first, then low operating effort, then cost",10 "evidence_available": "last quarter 11 failed or duplicated invoice jobs, a 2-day spike test of two options, rough cost estimates",11 "related_records": "ADR-0007 chose PostgreSQL as the only database; no ADR yet for deployment",12 "audience": "current engineers, future hires, and the CTO who approves infrastructure changes"13 },14 "instructions": [15 "Ask up to 5 short questions about anything important that is missing (especially the real failure cases, team skills, expected job volume in a year, and who owns the decision), then wait for my answers. If I answer skip, continue and mark assumptions.",16 "Produce one valid JSON object that follows output_schema exactly (same keys, no extra keys, no comments, no trailing commas). Dates as YYYY-MM-DD.",17 "Describe the context and forces neutrally, as they were at decision time, so the record still makes sense after the system changes.",18 "Compare at least three real options, including doing nothing or keeping the current approach, with the same criteria for each; write the strongest honest case for every option before judging it.",19 "Score options against the stated quality goals in their order of priority and show why the winner wins; if the evidence does not support a clear choice, set status to proposed and list what would settle it.",20 "List the consequences of the decision, both positive and negative, including new operating work, skills the team must learn, lock-in and migration effort.",21 "Add concrete revisit triggers (numbers, dates or events) so the team knows when this decision should be reviewed instead of silently drifting.",22 "Keep the record short enough to read in five minutes; move detail into links or follow-up tasks.",23 "Mark every assumption with assumption: at the start of the string, and never invent benchmark numbers or costs that I did not give you; use ranges and say they are estimates."24 ],25 "output_schema": {26 "adr": {27 "id": "ADR-NNNN (next free number)",28 "title": "short imperative title, e.g. Use a PostgreSQL-based job queue for background work",29 "status": "proposed, accepted, superseded or rejected",30 "date": "YYYY-MM-DD",31 "deciders": [32 "role or name"33 ],34 "consulted": [35 "role or name"36 ],37 "supersedes": "ADR id or null",38 "related": [39 "ADR id and one-line reason"40 ]41 },42 "context": {43 "problem": "two or three sentences on what needs deciding and why now",44 "forces": [45 "force or constraint that pushes the decision one way or another"46 ],47 "quality_goals_in_order": [48 "quality goal"49 ],50 "out_of_scope": [51 "what this record does not decide"52 ]53 },54 "options": [55 {56 "name": "option name",57 "summary": "one sentence on how it would work here",58 "pros": [59 "advantage in our context"60 ],61 "cons": [62 "disadvantage in our context"63 ],64 "scores": [65 {66 "goal": "quality goal",67 "score_1_to_5": 0,68 "reason": "short reason"69 }70 ],71 "effort_and_cost": "rough effort to adopt and to run, marked as estimate",72 "risks": [73 "risk"74 ]75 }76 ],77 "decision": {78 "chosen_option": "option name or none yet",79 "rationale": "why this option wins against the quality goals, in a few sentences",80 "rejected_because": [81 {82 "option": "option name",83 "reason": "main reason it lost"84 }85 ]86 },87 "consequences": {88 "positive": [89 "consequence"90 ],91 "negative": [92 "consequence and how we live with it"93 ],94 "new_operational_work": [95 "monitoring, alerting, runbooks, backups"96 ],97 "skills_to_learn": [98 "skill and who needs it"99 ]100 },101 "implementation": {102 "first_steps": [103 {104 "step": "task",105 "owner": "role",106 "done_when": "observable result"107 }108 ],109 "migration_plan": "how existing jobs move over and how to roll back",110 "validation": "how we will know in 4 to 8 weeks that the decision works"111 },112 "revisit_triggers": [113 "event, number or date that should reopen this decision"114 ],115 "open_questions": [116 "question that still needs an answer"117 ],118 "assumptions": [119 "assumption: ..."120 ],121 "markdown_version": "the same ADR as a short Markdown document with headings Title, Status, Context, Options, Decision, Consequences, Revisit triggers, ready to commit as docs/adr/NNNN-title.md"122 },123 "style": {124 "tone": "neutral, factual, written for a future teammate",125 "length": "the Markdown version fits on one to two screens",126 "language": "plain English, short sentences, technical terms explained once"127 }128}129
Measures how long pull requests wait for review and merge from a GitHub CLI JSON export: time to first review, approval and merge with medians and p90 by size and author, reviewer load, and flags for slow first reviews, stale or unapproved PRs, oversized PRs and review bottlenecks. Stdlib Python.
Measures Python docstring coverage and quality from the AST without running code: missing docstrings, undocumented or stale parameters, missing Returns and Raises, weak summary lines, in Google, NumPy and reST styles, with a fix plan and a CI threshold. Stdlib Python.
Turns a git log in Conventional Commits format into a ready-to-paste Keep a Changelog release section - Added, Changed, Deprecated, Removed, Fixed, Security - with scopes, issue and commit links and a breaking-changes block. Flags breaking changes without migration notes, non-conforming and fixup commits, reverts and duplicates, and suggests the next SemVer version. Includes an offline stdlib Python builder with --self-test.
Finds circular imports in a Python project offline: maps files to modules, parses imports with ast, reports each cycle group with its shortest loop, exact file:line imports, import-time vs deferred vs TYPE_CHECKING, a suggested edge to break and fix patterns. Stdlib Python, self-tested.
Helps an outgoing and incoming manager hand over a team without losing context: people, projects, promises made, open risks and upcoming dates, written up as one clear handover document and a first 30-day plan.