编程开发
代码生成、调试优化、技术文档等编程辅助提示词
675 个提示词
Removes `any`/`unknown`-escape hatches and nullable pitfalls from a TS/Python code area in safe, reviewable steps.
Type Safety / Strict-Mode Enforcer
metric increments on success/failure paths.…
Code instrumentation examples and tests asserting trace attributes and
runbook link per alert; dashboard list (golden signals + business).
Alerts: SLO-based burn-rate alerts (multi-window), symptoms over causes,
route/status/duration_ms/dependency.error; log levels guide (WARN = investigate, ERROR =…
Logs: structured (JSON) schema with ts/level/trace_id/span_id/user_hash/
plus 3-5 business metrics. Specify name, type (counter/histogram/gauge), labels, and…
Metrics: RED (rate/errors/duration) per endpoint/dependency, USE for resources,
context propagation across HTTP/queue boundaries. Include trace sampling policy.
Critical user journeys → one trace per journey; define spans, attributes, and
Adds useful telemetry (structured logs, traces, RED/USE metrics) without cardinality explosions or PII leaks.
Logging, Metrics & Observability Designer
the error type/mapping and that resources are released.…
Provide the corrected code plus tests for each failure path, asserting both
typed result where exceptions are inappropriate, retry policy (max attempts,…
Design the error boundary: domain exceptions mapped to transport codes,
on critical paths, rethrow without context/cause, returning null on failure,…
Find anti-patterns with line refs: catch-all swallowing errors, catch+log-only
Audits error handling: swallowed errors, over-broad catches, leaked internals, missing retries, and inconsistent boundaries.
Exception/Error-Handling Reviewer
Finds genuinely unused code and accidental coupling using evidence, avoiding deletion of reflection/DI/routed entry points.
Dead Code / Architecture Decay Analyst
Safely upgrades libraries/frameworks across major versions with a diff of breaking changes, codemods, and verification.
Dependency Upgrade / Breaking-Change Migrator
Diagnoses flaky tests by category (async timing, order dependence, shared state, date/randomness) and gives deterministic fixes.
Flaky Test Eliminator
Finds and fixes race conditions, deadlocks, and ordering bugs by constructing interleavings, with deterministic tests.
Concurrency Bug / Race Condition Investigator
Diagnoses leaks (heap growth, fds, connections) methodically with tool-specific steps for the runtime.
Memory Leak / Resource Leak Hunter
Evidence-driven performance work: measure first, find the bottleneck, apply the cheapest effective fix, verify improvement. Works for CPU/memory/IO.
Performance Profiling & Optimization Coach
Takes one oversized class/file and produces a concrete extraction plan + first extraction fully coded with tests.
God Class / Spaghetti Decomposer
Before changing tangled code: identifies seams, sequences refactor steps that keep tests green at every commit, and prevents "rewrite everything" disasters.
Refactoring Planner (Safe, Incremental)
Runs a blameless postmortem for an incident: timeline, root causes, contributing factors, and durable system fixes — not human blame.
Root-Cause Analysis (5 Whys / Blameless Postmortem)
A rigorous, prioritized PR review that distinguishes blockers from nits and checks correctness, security, concurrency, and maintainability — like a senior reviewer.
Staff-Engineer Pull Request Review
cases, equivalent logging, and comparable performance characteristics. 4. Port the tests;…
Provide the target implementation with the same public behavior, same edge
goroutines→asyncio/Task, slices→list, dict→Map, structs→dataclass/interface).
Map source constructs to target idioms (error values→exceptions/Result,
Translates implementations across languages while preserving idioms, semantics, and gotchas (time zones, floats, concurrency, sorting) rather than line-by-line.