Find anti-patterns with line refs: catch-all swallowing errors, catch+log-only
提示词编程开发232026年9月21日Logging, Metrics & Observability Designer
Adds useful telemetry (structured logs, traces, RED/USE metrics) without cardinality explosions or PII leaks.
提示词编程开发222026年9月21日Critical user journeys → one trace per journey; define spans, attributes, and
提示词编程开发252026年9月21日Metrics: RED (rate/errors/duration) per endpoint/dependency, USE for resources,
提示词编程开发232026年9月21日Logs: structured (JSON) schema with ts/level/trace_id/span_id/user_hash/
提示词编程开发242026年9月21日Alerts: SLO-based burn-rate alerts (multi-window), symptoms over causes,
提示词编程开发212026年9月21日Inventory unsafety: any/as casts, non-null assertions, @ts-ignore, untyped
提示词编程开发222026年9月21日Rank by risk (external boundary types first). For each: model the real shape
提示词网络安全232026年9月21日For JSON/API responses, generate types from the OpenAPI/JSON schema instead of
提示词编程开发252026年9月21日Submit in small commits: enable stricter rule per directory, fix violations,
提示词编程开发222026年9月21日Architecture in one page: entry points (server bootstrap, routes, CLI), request
提示词网站开发252026年9月21日Conventions: how errors, config, auth, logging, tests, migrations, and feature
提示词编程开发252026年9月21日"Where would I change X?" map for 5 common changes (add endpoint, add field,
提示词编程开发242026年9月21日Confusing/dead-looking areas and questions to ask the team — label your
提示词编程开发242026年9月21日Test-Coverage Gap Analyzer
Identifies untested critical paths (not line coverage) and writes the highest-value missing tests first.
提示词编程开发202026年9月21日Map behaviors (not lines) to tests: which business rules, branches, and
提示词编程开发272026年9月21日Rank gaps by risk: money/auth/data-loss/permissions > complex branching >
提示词编程开发262026年9月21日Identify WEAK tests: no assertions, assertion-free mocks, tests that would pass
提示词编程开发232026年9月21日Write the top 5 missing tests (boundary + failure paths), table-driven, with
提示词编程开发212026年9月21日Recommend a realistic coverage policy: critical-package threshold + mandatory
提示词编程开发242026年9月21日