From 8cdfbaf50d3fae0d80093cff8fdf636be21a7e2d Mon Sep 17 00:00:00 2001 From: Robert Date: Sat, 30 May 2026 04:20:54 -0600 Subject: [PATCH 1/4] Add instructions for Statsify project setup --- .github/instructions/*.instructions.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/instructions/*.instructions.md diff --git a/.github/instructions/*.instructions.md b/.github/instructions/*.instructions.md new file mode 100644 index 000000000..57f12e199 --- /dev/null +++ b/.github/instructions/*.instructions.md @@ -0,0 +1,15 @@ +# Copilot instructions — Statsify + +Statsify is a monorepo for a Hypixel/Minecraft-focused **Discord bot** and its supporting services (API, web site, support bot, skin renderer, etc). + +## Running an app (NOT needed for most changes) +Apps need external services and secrets, so avoid running them just to validate code; rely on build + lint + types + tests instead. + +## Project layout +- **`apps/`** — runnable services, each with a root `package.json` workspace script (`pnpm `): `api`, `discord-bot`, `support-bot`, `verify-server`, `site` (Next.js), `scripts`, etc. +- **`packages/`** — non-runnable shared libraries named `@statsify/{name}`: `api-client`, `assets`, `discord`, `logger`, `math`, `rendering`, `schemas`, `skin-renderer` (Rust/WASM), `util`, etc. +- Put shared logic in a package; do not duplicate it across apps. Packages must not be runnable. +- **Per-workspace scripts** are uniform: `build` (SWC → `dist/`), `test:types` (`tsc --noEmit`), `lint` (`eslint`). +- **Config (all at root):** `eslint.config.js`, `tsconfig.base.json` (NodeNext, strict, `target: esnext`), `turbo.json`, `.swcrc`, `vitest.shared.ts`, `vitest.workspace.ts`, `rustfmt.toml`, `Cargo.toml` (workspace = `packages/skin-renderer`). Build outputs (`dist`, `.next`, `pkg`) and `node_modules` are git-ignored and eslint-ignored. + +When reviewing, flag code that is inconsistent with surrounding patterns, or that isn't fast or scalable. From 837cc4520c8357a3d818e338ebccdf02e4577eab Mon Sep 17 00:00:00 2001 From: Robert Date: Sat, 30 May 2026 04:26:15 -0600 Subject: [PATCH 2/4] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/instructions/*.instructions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/instructions/*.instructions.md b/.github/instructions/*.instructions.md index 57f12e199..b81f25ebd 100644 --- a/.github/instructions/*.instructions.md +++ b/.github/instructions/*.instructions.md @@ -9,7 +9,7 @@ Apps need external services and secrets, so avoid running them just to validate - **`apps/`** — runnable services, each with a root `package.json` workspace script (`pnpm `): `api`, `discord-bot`, `support-bot`, `verify-server`, `site` (Next.js), `scripts`, etc. - **`packages/`** — non-runnable shared libraries named `@statsify/{name}`: `api-client`, `assets`, `discord`, `logger`, `math`, `rendering`, `schemas`, `skin-renderer` (Rust/WASM), `util`, etc. - Put shared logic in a package; do not duplicate it across apps. Packages must not be runnable. -- **Per-workspace scripts** are uniform: `build` (SWC → `dist/`), `test:types` (`tsc --noEmit`), `lint` (`eslint`). +- **Per-workspace scripts** are typically uniform: `build` (SWC → `dist/`), `test:types` (`tsc --noEmit`), `lint` (`eslint`). Exceptions: `apps/site` (Next.js, no `test:types`), `apps/scripts` (no `build`/`test:types`), `packages/skin-renderer` (Rust/NAPI/WASM build; `lint` runs `cargo fmt && cargo clippy`). - **Config (all at root):** `eslint.config.js`, `tsconfig.base.json` (NodeNext, strict, `target: esnext`), `turbo.json`, `.swcrc`, `vitest.shared.ts`, `vitest.workspace.ts`, `rustfmt.toml`, `Cargo.toml` (workspace = `packages/skin-renderer`). Build outputs (`dist`, `.next`, `pkg`) and `node_modules` are git-ignored and eslint-ignored. When reviewing, flag code that is inconsistent with surrounding patterns, or that isn't fast or scalable. From f217fe758a17d98e6b7847239836088ce17b5982 Mon Sep 17 00:00:00 2001 From: Robert Date: Sat, 30 May 2026 04:27:12 -0600 Subject: [PATCH 3/4] Rename *.instructions.md to instructions.md --- .github/instructions/{*.instructions.md => instructions.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/instructions/{*.instructions.md => instructions.md} (100%) diff --git a/.github/instructions/*.instructions.md b/.github/instructions/instructions.md similarity index 100% rename from .github/instructions/*.instructions.md rename to .github/instructions/instructions.md From 5598caea7f7240da41778dbab9b87e0d71e0705a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 30 May 2026 10:28:59 +0000 Subject: [PATCH 4/4] Rename Copilot instructions file to supported path --- .github/{instructions/instructions.md => copilot-instructions.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{instructions/instructions.md => copilot-instructions.md} (100%) diff --git a/.github/instructions/instructions.md b/.github/copilot-instructions.md similarity index 100% rename from .github/instructions/instructions.md rename to .github/copilot-instructions.md