summaryrefslogtreecommitdiff
path: root/AGENTS.md
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2025-12-12 16:52:27 +0100
committerMathias Magnusson <mathias@magnusson.space>2025-12-13 00:58:39 +0100
commit2dd1bfa26f6cc4dd221891b81e93e91c7636516a (patch)
treed0ab9cd5126e45226c74191f168b85a2516b57ab /AGENTS.md
parente1f4ffd8b6b4fa8b396a421d470ad51fb3c58236 (diff)
downloadchalle-anka-2dd1bfa26f6cc4dd221891b81e93e91c7636516a.tar.gz
create, join, and archive ctf instances
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/AGENTS.md b/AGENTS.md
new file mode 100644
index 0000000..641eb22
--- /dev/null
+++ b/AGENTS.md
@@ -0,0 +1,16 @@
+# Agent Notes (fleg-bout)
+
+## Commands
+- Install deps: `bun install`
+- Run bot locally: `timeout 5 bun run .`
+- Check types: `bun typecheck`
+- Tests: we don't do tests
+
+## Code Style
+- TypeScript ESM (`"type": "module"`); prefer `import type { ... }` for types.
+- Use 4-space indentation, double quotes, and semicolons.
+- Keep imports grouped and sorted: external first, then local.
+- Prefer `let`, early returns, and `async/await` over nested callbacks.
+- Handle `strict` TS + `noUncheckedIndexedAccess`: null-check before use.
+- Errors: `throw new Error(...)` (avoid throwing strings); log context, don’t log secrets.
+- Naming: `camelCase` for vars/functions, `PascalCase` for classes/types, `SCREAMING_SNAKE_CASE` for constants.