Repository navigation
Description
plugins/onboarding/skills/agent-readiness-report/scripts/scan_build_env.sh (at 599cc4d) under-detects repositories that use just as their task runner, in two ways.
1. Only Justfile is checked, not justfile
Lines 21 and 31 test [ -f Justfile ]. just accepts justfile in any capitalization, and lowercase justfile is the name its documentation uses. On a case-sensitive filesystem (Linux, including most CI runners and containers), a repository with a justfile gets no "Setup scripts" entry and its justfile is not scanned for build commands. On macOS and Windows, whose filesystems usually ignore case, the same repository is detected, so the output depends on the OS.
2. The build-command grep has no just pattern
Line 23 matches make build, npm run build, cargo build, go build, gradle build, mvn.*package and bundle exec, but not just. A README or AGENTS.md that documents just build reports zero build command references.
Why it matters
The criteria accept a task runner (#41) and single-command setup (#65), and a justfile provides both. The scanner output is what points the agent at evidence, so on Linux the report can under-credit these repositories, or grade the same repository differently on Linux and macOS.
Repro (Linux)
mkdir /tmp/jf && cd /tmp/jf
printf 'build:\n\techo build\n' > justfile
printf 'Run `just build` to build.\n' > README.md
bash /path/to/scan_build_env.sh .Expected: ./justfile under "-- Setup scripts --" and a build command reference for README.md. Actual (Linux), both sections empty:
-- Build commands --
-- Setup scripts --
-- Dev container --
Suggested fix
- Lines 21 and 31: also check
justfile(and.justfile, which just also accepts). - Line 23: add a
justpattern, e.g.just [A-Za-z0-9_-]*build.
OpenHands AI triage
The following comments and acceptance criteria were added by the OpenHands AI agent.
Triage
Verified the report against plugins/onboarding/skills/agent-readiness-report/scripts/scan_build_env.sh: identical at the referenced commit (599cc4d) and at current main (b98ac06). Lines 21 and 31 test only Justfile, and the line-23 grep has no just pattern; reproduced on Linux - a repo with a lowercase justfile and a README documenting just build shows empty "-- Build commands --" and "-- Setup scripts --". references/criteria.md feature 41 (Task runner) cites Justfile and feature 65 (Single-command dev setup) cites just setup, so the gaps affect reported scores, and detection currently depends on the host filesystem's case handling.
Scope: make scan_build_env.sh detect the just task-runner files in any capitalization (Justfile, justfile, .justfile) in both the setup-scripts and build-commands file lists, and add a just build-command pattern to the existing grep.
Non-goals: adding other task runners; changing the script's exit codes or argument handling; changing scoring methodology or references/criteria.md; scanning justfiles outside the repository root.
No prior user reports or production impact are on record and the reproduction is synthetic, so this is priority:low.
Acceptance Criteria
- On a case-sensitive filesystem (e.g., Linux), running
bash plugins/onboarding/skills/agent-readiness-report/scripts/scan_build_env.sh <fixture>on a repository whose root contains only lowercasejustfile(noJustfile) prints./justfileunder-- Setup scripts --. - A root
.justfileis likewise listed under-- Setup scripts --. - A README.md or AGENTS.md containing
just buildproduces a nonzero "build command references" line for that file. - The build-commands scan also inspects the justfile variants it now detects (e.g., a
justfilewhose contents mentionjust buildis counted). - A repository without just-related files keeps its previous output (e.g., a Makefile-only fixture still lists
./Makefilein both sections). - Automated coverage in the repository's pytest suite runs the scanner against a justfile fixture (lowercase file, README with
just build) and passes.
Activity
austinchennn commentedon Nov 19, 2026
I would like to take this ready-for-dev issue. I will keep the change to the scanner and regressions: detect root justfile variants without double-counting on case-insensitive filesystems, include them in both existing sections, and recognize documented just build commands. I will preserve the existing script exit behavior and scoring/argument boundaries, and run the actual scanner on case-sensitive Linux as well as local pytest fixtures. AI assistance will be disclosed. The PR template's HUMAN section will remain untouched by me, so any submission will stay draft until a human completes that required section.