From c89bf0c30c61d63383d0ed9907106126df3f1a53 Mon Sep 17 00:00:00 2001 From: Jack Amadeo Date: Wed, 13 May 2026 22:10:42 -0400 Subject: [PATCH] remove goose2 related skills (#9189) --- .agents/skills/code-review/SKILL.md | 366 ------------------ .agents/skills/create-app-e2e-test/SKILL.md | 173 --------- .agents/skills/create-pr/SKILL.md | 88 ----- .agents/skills/edge-case-finder/SKILL.md | 149 ------- .../references/edge-case-categories.md | 188 --------- 5 files changed, 964 deletions(-) delete mode 100644 .agents/skills/code-review/SKILL.md delete mode 100644 .agents/skills/create-app-e2e-test/SKILL.md delete mode 100644 .agents/skills/create-pr/SKILL.md delete mode 100644 .agents/skills/edge-case-finder/SKILL.md delete mode 100644 .agents/skills/edge-case-finder/references/edge-case-categories.md diff --git a/.agents/skills/code-review/SKILL.md b/.agents/skills/code-review/SKILL.md deleted file mode 100644 index ee3e1c41..00000000 --- a/.agents/skills/code-review/SKILL.md +++ /dev/null @@ -1,366 +0,0 @@ ---- -name: code-review -description: >- - Senior engineer code review focused on catching issues before they become PR - comments. Reviews only changed lines, categorizes issues by priority, and fixes - them one by one. Includes a focused ui/goose2 refactor-quality pass for - maintainability, decomposition, layering, type hygiene, duplication, and dead - code. Use when the user says "code review", "review my code", "review this - branch", or wants pre-PR feedback. ---- - -# Pre-PR Code Review - -You are a senior engineer conducting a thorough code review. Review **only the lines that changed** in this branch (via `git diff main...HEAD`) and provide actionable feedback on code quality. Do not flag issues in unchanged code. - -## Determine Files to Review - -**Before starting the review**, identify which files to review by checking: - -1. **Run git commands** to check both: - - Committed changes: `git diff --name-only main...HEAD` - - Unstaged/staged changes: `git status --short` - -2. **Ask the user which set to review** if both exist: - - If there are both committed changes AND unstaged/staged changes, ask: "I see you have both committed changes and unstaged/staged changes. Which would you like me to review?" - - **Option A**: Committed changes in this branch (compare against main) - - **Option B**: Current unstaged/staged changes - - **Option C**: Both - -3. **Proceed automatically** if only one set exists: - - If only committed changes exist → review those - - If only unstaged/staged changes exist → review those - - If neither exist → inform the user there are no changes to review - -4. **Get the file list** based on the user's choice: - - For committed changes: Use `git diff --name-only main...HEAD` - - For unstaged/staged: Use `git diff --name-only` and `git diff --cached --name-only` - - Filter to only include files that exist (some may be deleted) - -**Only proceed with the review once you have the specific list of files to review.** - -## Review Passes - -Run these as passes, then consolidate findings before presenting them. A finding should appear once, even if multiple sections support it. - -- Use the baseline pass for correctness, regressions, async state, API/backend contracts, accessibility, i18n completeness, CI failures, and obvious cleanup. -- For `ui/goose2` maintainability, use `UI Refactor Quality` as the authoritative pass for decomposition, layering, hooks vs helpers, type hygiene, duplication, naming, module boundaries, and refactor structure. -- Do not duplicate the same underlying concern across the baseline pass and the `UI Refactor Quality` pass. Prefer the `UI Refactor Quality` framing for `ui/goose2` maintainability issues. - -### Baseline Safety Pass - -#### React Best Practices -- **Components**: Are functional components with hooks used consistently? -- **State Management**: Is `useState` and `useEffect` used properly? Any unnecessary re-renders? -- **Props**: Are prop types properly defined with TypeScript interfaces? -- **Keys**: Are list items using proper unique keys (not array indices)? -- **Hooks Rules**: Are hooks called at the top level and in the correct order? - -#### TypeScript Best Practices -- **const vs let vs var**: Is `const` used by default? Is `let` only used when reassignment is needed? Is `var` avoided entirely? -- **Type Safety**: Are types explicit and avoiding `any`? Are proper interfaces/types defined? -- **Type Assertions**: Are type assertions (`as`) used sparingly and only when necessary? -- **Non-null Assertions**: Are non-null assertions (`!`) avoided? They bypass TypeScript's null safety and hide bugs. Use proper null checks or optional chaining instead. -- **React Ref Types**: Are React refs properly typed as nullable (`useRef(null)` with `RefObject`)? Refs are null on first render and during unmount. -- **Optional Chaining**: Is optional chaining (`?.`) used appropriately for potentially undefined values? -- **Enums vs Union Types**: Are union types preferred over enums where appropriate? - -#### Design System & Styling -- **Component Usage**: Are design system components used instead of raw HTML elements (`