diff --git a/.agents/guides/code-review.md b/.agents/guides/code-review.md deleted file mode 100644 index 79e0ac2..0000000 --- a/.agents/guides/code-review.md +++ /dev/null @@ -1,37 +0,0 @@ -# Code Review Instructions (Selection Review) - -Prioritize correctness, clarity, maintainability, and standards alignment. -Avoid noise: fewer, higher-signal comments. - -## Review rubric (in order) - -### 1) Correctness & contracts -- Does the code do what it claims? -- Are edge cases handled (invalid input, nulls, empty, timeouts, abort)? -- Are contracts consistent (e.g., endpoint definition vs handler behavior)? - -### 2) Failure modes & safety -- Are errors explicit at boundaries (network/storage/etc)? -- Any secret leakage risk in logs? -- Any unsafe patterns (eval, string-built SQL, unvalidated inputs, etc)? - -### 3) Types & schema alignment -- Avoid `any`; prefer `unknown` + narrowing, generics, unions. -- If Zod is involved, don’t prescribe `.strict()` globally. - - Evaluate whether encode/decode/transform behavior matches intent. - - If proposing schema changes, describe behavioral impact. - -### 4) Readability & educational clarity -- Naming should be approachable and intent-revealing. -- Comments should explain why; if logic is non-obvious (regex/bitwise/tricky boolean), also explain what/how plainly. -- If the change’s intent isn’t obvious from the diff, suggest improving: - - naming and/or comments/docstrings - - OR the PR description to clearly state motivation and impact - -### 5) Consistency & style -Match repo formatting and import conventions. - -## Output format -- Use tags: [BLOCKER], [IMPORTANT], [SUGGESTION], [NIT] -- Provide concrete fix suggestions for BLOCKER/IMPORTANT. -- Avoid generic feedback like “improve quality”; always tie comments to a specific behavior, risk, or readability issue. diff --git a/.agents/guides/pull-requests.md b/.agents/guides/pull-requests.md deleted file mode 100644 index 0ba9ee9..0000000 --- a/.agents/guides/pull-requests.md +++ /dev/null @@ -1,46 +0,0 @@ -# Pull Request Title + Description Instructions - -## PR Title -Use Conventional Commit style: -`type(scope optional): outcome` - -- Prefer outcome-focused summaries (“return RFC7807 on validation failure”) -- Avoid vague titles (“update handler”, “misc fixes”) -- Scope is optional; only include it when it’s obvious. -- The title must describe an observable outcome (behavior, contract, or workflow), not “add guidelines / improve quality.” - -## PR Description (structured, but narrative) -Write for reviewers and future archaeology. Be concrete. - -### Summary -1–3 bullets describing the outcome and what changed (name the subsystem). -Avoid generic goals like “improve quality” unless tied to a specific behavior change. - -### Problem / Motivation -Describe the real issue (bug, inconsistency, missing feature, confusing workflow). -Anchor it: “Before, X happened…” / “Clients couldn’t…” / “Reviewers had to…” - -### Solution -What you changed, at a high level, and where (folders/modules). -If this introduces conventions/docs, say what confusion it eliminates. - -### Behavior changes -If anything observable changes, list it plainly: -- API response shape changes -- error format changes -- caching behavior changes -- performance/limits changes - -### Verification -- List commands or manual checks. -- If not verified, propose the best verification steps (don’t claim you ran them). - -### Risk & rollout (when relevant) -- What could break? -- Edge cases / failure modes -- Mitigations - -## Writing constraints -- Prefer short bullets and concrete nouns. -- Avoid memo-speak (“enhance process”, “ensure quality”, “various aspects”). -- Do not invent issue numbers, links, or test results.