agentleFS
olisticolistic/warriorjs/CLAUDE.md

warriorjs

CLAUDE.md9.5k starsChanged 9 months agoMITView on GitHub

A game that teaches JavaScript and TypeScript through interactive coding challenges. Players write code to control a warrior navigating through towers full of enemies. Run a single package's tests: npx vitest run apps/cli/ pnpm monorepo with Turborepo. Code is organized into three top-level directories: Dependency flow: spatial → abilities → units → towers, spatial → core → scoring → cli. Each package compiles with tsc to dist/.

  • Installs packages

Trending

Quiet this year.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the olistic/warriorjs repository that our weekly crawl found: only 6 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

The file

We split this CLAUDE.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run a single package's tests: npx vitest run apps/cli/

    line 15
  2. Very specific:

    All imports use .js extensions (ES modules with NodeNext resolution)

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

WarriorJS

A game that teaches JavaScript and TypeScript through interactive coding challenges. Players write code to control a warrior navigating through towers full of enemies.

Commands

pnpm install        # Install dependencies
pnpm build          # Build all packages (Turborepo handles ordering)
pnpm test           # Run all tests
pnpm lint           # Check linting/formatting (Biome)
pnpm lint:fix       # Auto-fix linting/formatting

Run a single package's tests: npx vitest run apps/cli/

Architecture

pnpm monorepo with Turborepo. Code is organized into three top-level directories:

  • apps/ — End-user applications
    • @warriorjs/cli — CLI for offline play
  • libs/ — Shared libraries
    • @warriorjs/core — Game engine, level runner, player code loader
    • @warriorjs/abilities — Warrior abilities (walk, attack, feel, etc.)
    • @warriorjs/units — Game units/enemies
    • @warriorjs/effects — Status effects system
    • @warriorjs/spatial — Spatial/direction utilities (foundational, no deps)
    • @warriorjs/scoring — Score calculation and grade letters
  • towers/ — Built-in tower definitions
    • @warriorjs/tower-the-narrow-path / tower-the-powder-keep — The Narrow Path and The Powder Keep

Dependency flow: spatial → abilities → units → towers, spatial → core → scoring → cli.

Each package compiles with tsc to dist/.

Conventions

  • Biome enforces formatting and linting — don't manually fix style, run pnpm lint:fix
  • Lefthook pre-commit hook auto-formats staged files
  • All imports use .js extensions (ES modules with NodeNext resolution)
  • Tests live next to source: src/Foo.test.ts
  • Coverage thresholds: 80% (lines, functions, branches, statements)
  • Conventional Commits with scope: feat(cli): add language choice, fix(core): handle edge case

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.