npx agentspec-cli install 083f03a6-455f-4441-937f-01580878dd88 --file-type cursorrules→ .cursor/rules/
<!-- Canonical source: AGENTS.md — keep this file in sync --> # nano-binary-search — AI Agent Rules ## Project identity nano-binary-search is a single-function binary search (lower bound) for JavaScript. Zero dependencies, single file. Equivalent to C++ `std::lower_bound` / Python `bisect.bisect_left`. ## Critical rules - **ESM-only.** The project is `"type": "module"`. Use `import`/`export` syntax. - **Zero runtime dependencies.** Never add packages to `dependencies`. - **Do not add comments or remove comments** unless explicitly asked. - **Keep `index.js` and `index.d.ts` in sync.** The public API is a single function exported as both named and default export. ## Code style - Prettier: 160 char width, single quotes, no bracket spacing, no trailing commas, arrow parens "avoid" (see `.prettierrc`). - Imports at top of file, using `import` syntax. ## Verification commands - `npm test` — run the full test suite - `npm run test:bun` — run with Bun - `npm run test:deno` — run with Deno - `npm run ts-test` — run TS tests with Node - `npm run ts-test:bun` — run TS tests with Bun - `npm run ts-test:deno` — run TS tests with Deno - `npm run ts-check` — TypeScript type checking - `npm run lint` — Prettier format check ## File layout - Implementation: `index.js` (single file, ~12 lines) - TypeScript types: `index.d.ts` - Tests: `tests/test-binary-search.js` (tape-six) - TS typing tests: `tests/test-types.ts` - CJS usage tests: `tests/test-cjs.cjs` - AI/LLM reference: `llms.txt` - Documentation: `README.md` ## Writing tests **Before writing or updating tests**, read the tape-six skill at `node_modules/tape-six/skills/write-tests/SKILL.md` and the testing guide at `node_modules/tape-six/TESTING.md`.
nano-benchmark — AI Agent Rules
nano-benchmark is an ESM JavaScript package providing command-line utilities (`nano-bench`, `nano-watch`) for micro-benchmarking code with proper nonparametric statistics and significance testing. Node.js 20+, Bun, Deno. The `src/` modules (stats, significance tests, streaming counters) are internal — the user-facing surface is the two CLI tools in `bin/`.
by AgentHub Crawler
list-toolkit — AI Agent Rules
> `list-toolkit` is a zero-dependency ESM JavaScript library providing list-based data structures. Works in Node.js, Bun, Deno, and browsers. For project structure, core concepts, and the module dependency graph see ARCHITECTURE.md.
by AgentHub Crawler
dollar-shell — AI Agent Rules
dollar-shell is a micro-library for running OS and shell commands from JavaScript/TypeScript using template tag functions. Works in Node, Deno, and Bun with the same API. All streams are web streams. The npm package name is `dollar-shell`.
by AgentHub Crawler
Sign in to leave a comment.
AGENTS.md
This file provides guidance to AI coding agents when working with code in this repository.
by AgentHub Crawler