thepolytheist/goblin-commander

Goblin Commander, the command line horde management game written in Python.

F 43/100

Goblin Commander has tests, pytest config and a clear run path, but lacks agent instructions, test CI, type checking and linting.

The README gives a concrete venv, pip install -r requirements.txt and python3 src/goblincommander/main.py sequence, so an agent can install and launch the game. Testing is implied by the pytest testpaths in pyproject.toml but never documented, and requirements.txt may not even include pytest. There is no type checker, linter or pinned Python version, so an agent cannot verify style or types and must guess the interpreter version.

Graded Nov 26, 2026 · python

Your README badge

Agent ready: F
[![Agent ready: F](https://masonemery.com/ready/thepolytheist/goblin-commander/badge.svg)](https://masonemery.com/ready/thepolytheist/goblin-commander)

The badge shows your latest grade and updates when you re-check.

Fix these first

  1. Add a CLAUDE.md with setup, run and test commands

    No agent instructions exist, so an agent must infer the layout and the test command from scattered files.

    # CLAUDE.md
    
    Goblin Commander: a command line monster army control game written in Python.
    
    ## Layout
    - src/goblincommander/ - game source (entry point: src/goblincommander/main.py)
    - tests/ - pytest test suite (configured via [tool.pytest.ini_options] in pyproject.toml)
    - setup.py / pyproject.toml - setuptools packaging
    
    ## Setup
    ```
    python3 -m venv venv
    source ./venv/bin/activate
    pip3 install -r requirements.txt
    ```
    
    ## Run
    ```
    python3 src/goblincommander/main.py
    ```
    
    ## Test
    ```
    pytest
    ```
    TODO: confirm pytest is installed by requirements.txt; if not, run `pip3 install pytest` first.
    
    ## Notes
    - Run all commands from the repository root.
    - No environment variables are required.
    - See CONTRIBUTING.md for contribution conventions.
    - Before finishing a change, run pytest and make sure it passes.
  2. Add a GitHub Actions workflow that runs pytest

    The only workflow is CodeQL, so test regressions in pull requests go unnoticed by CI.

    name: Tests
    
    on:
      push:
        branches: [ main ]
      pull_request:
        branches: [ main ]
    
    jobs:
      test:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4
          - uses: actions/setup-python@v5
            with:
              python-version: '3.x'
          - run: pip install -r requirements.txt pytest
          - run: pytest
  3. Configure ruff and mypy in pyproject.toml

    With no linter or type checker configured, an agent has no fast way to confirm its edits are clean and type-correct.

    [tool.ruff]
    line-length = 120
    src = ["src", "tests"]
    
    [tool.mypy]
    files = ["src"]
    ignore_missing_imports = true
  4. Pin the Python version

    No .python-version or requires-python exists, so agents and CI must guess which interpreter the game targets.

    [project]
    requires-python = ">=3.9"
    
    # or add a .python-version file at the repo root containing e.g. 3.11
  5. Document testing in the README

    The README covers playing the game but never says how to run the test suite.

    ## Running Tests
    With the virtual environment active, from the root folder run
    ```commandline
    pytest

Breakdown

Agent instructions

0/25
  • ✕ Agent instructions file 0/10
    No CLAUDE.md, AGENTS.md or similar agent instructions file.
  • ✕ Instructions have substance 0/5
    Nothing to read yet.
  • ✕ Instructions say how to build and test 0/7
    Nothing to read yet.
  • ✕ Instructions are a sensible size 0/3
    Nothing to read yet.

Tests

20/20
  • ✓ One command runs the tests 10/10
    pytest/tox is configured.
  • ✓ Test files exist 10/10
    Found tests/.

Type & lint checks

0/15
  • ✕ Type checking 0/8
    No mypy or pyright configuration.
  • ✕ Linter or formatter 0/7
    No linter or formatter configuration.

CI

9/15
  • ✓ CI is set up 5/5
    1 GitHub Actions workflow.
  • ✕ CI runs the tests 0/6
    No workflow appears to run the tests.
  • ✓ CI runs type or lint checks 4/4
    A workflow runs type or lint checks.

Setup clarity

7/15
  • ◐ README explains setup 2/5
    README exists but has no clear install/run section with commands.
  • ◐ Dependencies are locked 2/4
    requirements.txt but no lockfile.
  • ✕ Runtime version is pinned 0/3
    No .nvmrc, .tool-versions, engines or similar; agents guess the runtime version.
  • ✓ Environment variables are documented 3/3
    No environment variables appear to be required.

Guardrails

7/10
  • ✓ Contribution guide 3/3
    Has a CONTRIBUTING guide.
  • ✕ Pre-commit hooks 0/3
    No pre-commit hooks (pre-commit, husky, lefthook).
  • ✓ No committed junk 4/4
    No build output, dependencies or secrets committed at the root.

Grade another repo →