Skip to content

PRD — Bashcrawl

The product requirements for Bashcrawl — problem, users, goals, features and open questions — derived from the README, agent docs, config and code, with anything those sources do not state marked TBD.

1. Overview / problem

Bashcrawl teaches real POSIX terminal skills through a fantasy dungeon crawl where the filesystem is the game: directories are rooms, scroll files are lessons, and executable scripts are encounters. It ships two doors — the classic dungeon in a real terminal and a free browser trainer (courses, story, practice arcade, reference) built from the same content. Derivative of Seth Kenlon's bashcrawl, GPL-3.0-only.

1.1 Missions

Bashcrawl's direction is to become the ultimate open home for all things terminal learning — data, tools, resources and transparency, gathered in one place that anyone can inspect and reuse.

  1. Provide data, tools, resources and transparency for all stakeholders, learners, educators, terminal practitioners and the general public. Beginners, teachers, contributors, and the general public are first-class audiences. The aim is a shared, open commons: the same lessons, the same tools, and the same trail of evidence for everyone.
  2. Teach real POSIX terminal skills through a fantasy dungeon crawl where the filesystem is the game: directories are rooms, scroll files are lessons, and executable scripts are encounters. Lessons stay correct; a wrong command in a scroll is a defect. The classic dungeon runs in a real terminal.
  3. Put that dungeon in every learner's hands through two doors — the classic terminal dungeon and a free browser trainer built from the same content. Courses, story, practice arcade and reference ship alongside the dungeon, under GPL-3.0-only, in the lineage of Seth Kenlon's bashcrawl — an open toolkit for working with all things terminal learning.

These missions set the course; they do not claim the work is finished. They serve the existing constitution and PRD: real POSIX skills, two doors, and the GPL-3.0-only lineage. The earlier mission paragraph is absorbed into these three. Attribution and license principles are kept. Every feature must trace to them.

2. Target users

  • Beginners learning the Linux/macOS terminal
  • Educators running terminal courses
  • Learners on mobile/browser without a shell

3. Goals and non-goals

Goals

  • Teach real, transferable commands (pwd, ls, cd, cat, grep, find, pipes, variables, permissions, vim)
  • Zero-install browser experience plus the original terminal game
  • Keep browser and terminal content generated from one source

Non-goals

  • Teaching shell features that do not work on real POSIX systems
  • Changing the upstream GPL licensing

4. Core features (current)

  • Web app (bamr87.github.io/bashcrawl): Learn courses beside an emulated shell, Story mode, Practice Arcade (Path Navigator, grep/find Hunt, Pipe Puzzle, Command Flash, Vim Catacombs), Reference cheatsheets
  • Classic terminal dungeon (entrance/, setup.sh)
  • XP/score persistence across modes
  • Content data (rooms, recommendations) and transcript-based tests

Feature catalog

Every user-facing capability has a stable id in the feature catalog features/features.yml. Each entry names the PRD requirements it serves (prd:); the trace below is the reverse view.

ID Feature Status Where Requirements
BASHCRAWL-001 Web app (bamr87.github.io/bashcrawl) shipped web/index.html · README.md FR1, FR2, FR5, FR6, NFR1, NFR2
BASHCRAWL-002 Classic terminal dungeon shipped entrance · README.md FR3, FR4, NFR4
BASHCRAWL-003 XP/score persistence across modes shipped README.md FR2
BASHCRAWL-004 Content data shipped src/help/data/rooms.yaml · README.md FR9
BASHCRAWL-005 Learn courses shipped courses · docs/authoring-courses.md FR1, FR7
BASHCRAWL-006 Course labs shipped bin/bashcrawl · README.md FR7, FR8
BASHCRAWL-007 Skills map shipped termforge/core/mastery.js · README.md FR2, FR7
BASHCRAWL-008 Spaced-repetition review shipped termforge/core/mastery.js · README.md FR2, FR7
BASHCRAWL-009 Offline command explainer shipped termforge/core/explain.js · README.md FR7
BASHCRAWL-010 Story mode quests and hidden rooms shipped entrance · docs/gameplay.md FR4
BASHCRAWL-011 Hints and fog-of-war map shipped web/assets/js/runtime.js · README.md FR4
BASHCRAWL-012 Practice Arcade mini-games shipped web/assets/js/arcade.js · README.md FR2, FR5
BASHCRAWL-013 Vim Catacombs shipped web/src/arcade/VimStage.tsx · README.md FR5
BASHCRAWL-014 Reference cheatsheets shipped web/src/screens/ReferenceScreen.tsx · README.md FR6
BASHCRAWL-015 16-bit RPG web UI shipped web/src/app/App.tsx · AGENTS.md FR13, NFR1, NFR2
BASHCRAWL-016 Training Arena and speed run shipped web/assets/js/plugins/arena.js · AGENTS.md FR5
BASHCRAWL-017 Progression: ranks, achievements, daily challenge, bestiary shipped web/assets/js/plugins · AGENTS.md FR2, FR9
BASHCRAWL-018 Save and load shipped web/assets/js/storage.js · docs/generated/runtime-commands.md FR2, FR12
BASHCRAWL-019 Launcher bin/bashcrawl shipped bin/bashcrawl · README.md FR8, NFR4
BASHCRAWL-020 TermForge terminal framework and TTY HUD shipped termforge · termforge/README.md FR10
BASHCRAWL-021 Telnet server and shared hub shipped termforge/node/host-telnet.js · README.md FR10
BASHCRAWL-022 Context help shipped help.sh · src/help/README.md FR3, FR9
BASHCRAWL-023 Dungeon reset shipped lib/reset.sh · README.md FR3
BASHCRAWL-024 AI playtest harness shipped src/playtest · README.md FR11
BASHCRAWL-025 Effects layer and chiptune SFX shipped web/src/fx · AGENTS.md FR13
BASHCRAWL-026 Feedback widget shipped web/src/chrome/Feedback.tsx · README.md TBD
BASHCRAWL-027 Missions in constitution §1 planned docs/constitution.md §1.1

Requirement → feature trace

Requirement Features
FR1 BASHCRAWL-001, BASHCRAWL-005
FR2 BASHCRAWL-001, BASHCRAWL-003, BASHCRAWL-007, BASHCRAWL-008, BASHCRAWL-012, BASHCRAWL-017, BASHCRAWL-018
FR5 BASHCRAWL-001, BASHCRAWL-012, BASHCRAWL-013, BASHCRAWL-016
FR6 BASHCRAWL-001, BASHCRAWL-014
NFR1 BASHCRAWL-001, BASHCRAWL-015
NFR2 BASHCRAWL-001, BASHCRAWL-015
FR3 BASHCRAWL-002, BASHCRAWL-022, BASHCRAWL-023
FR4 BASHCRAWL-002, BASHCRAWL-010, BASHCRAWL-011
NFR4 BASHCRAWL-002, BASHCRAWL-019
FR9 BASHCRAWL-004, BASHCRAWL-017, BASHCRAWL-022
FR7 BASHCRAWL-005, BASHCRAWL-006, BASHCRAWL-007, BASHCRAWL-008, BASHCRAWL-009
FR8 BASHCRAWL-006, BASHCRAWL-019
FR13 BASHCRAWL-015, BASHCRAWL-025
FR12 BASHCRAWL-018
FR10 BASHCRAWL-020, BASHCRAWL-021
FR11 BASHCRAWL-024
TBD BASHCRAWL-026
§1.1 BASHCRAWL-027

5. Requirements

Functional

  • FR1: Course objectives are checked as the learner types (BASHCRAWL-001, BASHCRAWL-005)
  • FR2: Scores and bests persist locally (BASHCRAWL-001, BASHCRAWL-003, BASHCRAWL-007, BASHCRAWL-008, BASHCRAWL-012, BASHCRAWL-017, BASHCRAWL-018)
  • FR3: The classic dungeon plays in a real terminal with only bash: directories are rooms, scroll files are lessons, executables are encounters (BASHCRAWL-002, BASHCRAWL-022, BASHCRAWL-023)
  • FR4: Story progression is driven by real commands: quests, hints, a map, and hidden rooms revealed by ls -a, grep, find, mv, variables and symlinks (BASHCRAWL-002, BASHCRAWL-010, BASHCRAWL-011)
  • FR5: Timed practice games run on the same emulator and feed XP back to the story hero (BASHCRAWL-001, BASHCRAWL-012, BASHCRAWL-013, BASHCRAWL-016)
  • FR6: Searchable reference cheatsheets and a glossary cover every command the dungeon teaches (BASHCRAWL-001, BASHCRAWL-014)
  • FR7: A learning platform offers courses with labs, a skill map, spaced-repetition review and an offline command explainer (BASHCRAWL-005, BASHCRAWL-006, BASHCRAWL-007, BASHCRAWL-008, BASHCRAWL-009)
  • FR8: One launcher reaches every surface and reports what the machine can run (BASHCRAWL-006, BASHCRAWL-019)
  • FR9: Browser and terminal content is generated from one set of content registries (BASHCRAWL-004, BASHCRAWL-017, BASHCRAWL-022)
  • FR10: One terminal framework hosts the game in the browser, a terminal HUD and over telnet (BASHCRAWL-020, BASHCRAWL-021)
  • FR11: An AI agent can playtest the real dungeon in a sandbox and report content gaps (BASHCRAWL-024)
  • FR12: Players can save and restore their game state (BASHCRAWL-018)
  • FR13: The web trainer presents the game as an RPG with a hero, HUD and feedback effects (BASHCRAWL-015, BASHCRAWL-025)

Non-functional

  • NFR1: Node ≥ 22.22 for the web build; typecheck, lint and tests in CI (BASHCRAWL-001, BASHCRAWL-015)
  • NFR2: Works on mobile (BASHCRAWL-001, BASHCRAWL-015)
  • NFR3: GPL-3.0-only (project-wide; no single feature)
  • NFR4: The classic dungeon and launcher need no dependencies beyond bash and run on macOS /bin/bash 3.2 (BASHCRAWL-002, BASHCRAWL-019)

6. Success metrics (proposed — not defined in sources)

  • Course completion rate
  • Return-player rate: TBD (no analytics source identified)

7. Roadmap / open questions

  • Roadmap beyond v3.x: TBD