AGENTS.md — AI Agent Guide for Wargames¶
Cross-tool entry point for AI coding agents (GitHub Copilot, Claude Code, Cursor, Aider, etc.)
Project snapshot¶
- What it is: A content-only Jekyll site — a vendored markdown mirror of the OverTheWire challenges, published on GitHub Pages
- Theme source: remote (
remote_theme: bamr87/zer0-mistakes) — this repo vendors zero theme files - Theme repo: https://github.com/bamr87/zer0-mistakes
- Content: at the repo root —
index.md(homepage) andoverthewire/**(the challenge pages). There is nopages/directory and no populated Jekyll collections.
Quick commands¶
# Build (zer0-CMS's Jekyll-theme option: the theme at the tag the root workspace.yml pins, Jekyll 4.4.1
# in the image tools/jekyll/Dockerfile pins — Docker, no Ruby) into _site/
python3 ../../tools/jekyll_theme.py build wargames
# Lint (markdown prose must be one paragraph per line — CI enforces it)
python3 ../../tools/unwrap-prose.py --check # --write to fix
There is no test suite. CI is the safety net — see the workflow list in CLAUDE.md.
Operating rules¶
- Make minimal, surgical changes. Match existing style.
- Validate before declaring done — run a Jekyll build and
python3 ../../tools/unwrap-prose.py --check. - Site content lives at the repo root (
index.md,overthewire/**); site data lives in_data/. - Don't hand-edit the upstream text in
overthewire/**— those pages are vendored and re-synced from upstream byscripts/docs-aggregator/. The exceptions are the Study guide block at the end of each page (between thestudy-guidemarker comments) and the site-owned front matter (description,excerpt,title, …); after a re-sync, restore them with../../tools/unwrap-prose.py --writethentools/carry-study-guides.py(seeREADME.md). Study guides must stay spoiler-free: no passwords, payloads or finished solutions. - No theme overrides here. This repo is a pure
remote_themeconsumer with no_layouts/,_includes/,_sass/, or_plugins/— keep it that way. Theme changes belong upstream in zer0-mistakes. The theme's documented consumer layers are fine and are how the site is styled:_config.ymlkeys,_data/, page front matter, andassets/css/user-overrides.css/assets/js/user-overrides.js(loaded becauseuser_overrides: true).remote_themedoes not merge the theme's own_config.yml, so any key the chrome reads must be set in this repo's_config.yml. - Verify presentation in a browser, against what production serves — not a plain gem-theme build, which merges theme config and hides defects. See "Local development" in
README.md.
See CLAUDE.md for the fuller site-wiring reference and README.md for the reader-facing overview.