Repository navigation
openRepoShape command + the worked example (Northwind starts Atlas) + setup.sh clones where you stand - #37
Conversation
The README stated the one-liner and the mechanics and never walked a newcomer through what they would see and what they would have afterwards. The example does: whose gh account the act runs under and why git needs credentials of its own (the repositories are created with `gh repo create`, the first commits pushed with plain `git push` over HTTPS); the four things setup.sh does before it asks; the one question and that the human answers it; the tree a scaffold writes today, agent files included; the private-leg CI credential in one sentence with a pointer to the section that owns it; the daily loop (work in the legs, advance the project with `bump-leg`); and the variants (adopt, family, update-shape). Neutral throughout: an organisation's workflow overlay attaches afterwards and is its own. README 573 -> 659. Closes #36. Lane: codex-intake-shape Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
@codex review |
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 1 day and 1 hour by commenting @sourcery-ai review. Upgrade to get a review now.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Reviewer's GuideThis PR adds a detailed, implementation-grounded README walkthrough for starting and operating a Northwind/Atlas project, clarifying authentication and human-confirmation boundaries, generated layout, CI credentials, pin advancement, and lifecycle variants; it also updates the README length guard with a dated rationale for the expanded documentation. Sequence diagram for Northwind Atlas project setupsequenceDiagram
actor Dana
participant Setup as setup.sh
participant GH as gh CLI
participant Git as git
participant GitHub as GitHub
Dana->>GH: gh auth login
Dana->>GH: gh auth setup-git
Dana->>Setup: setup.sh --org Northwind --project Atlas --visibility private --elected-by Dana Okafor
Setup->>GH: gh auth status
Setup->>Setup: preflight and naming checks
Setup-->>Dana: scaffold plan and confirmation question
Dana->>Setup: Type yes
Setup->>GH: gh repo create
GH->>GitHub: Create Atlas repositories
Setup->>Git: git push
Git->>GitHub: Push initial commits
Setup->>Setup: make bootstrap
Flow diagram for the Atlas daily pin-advancement loopflowchart LR
A[Work in spec or code repository] --> B[Commit and open pull request]
B --> C[python3 scripts/bump-leg.py --root ../Atlas --leg code --to commit]
C --> D[git push -u origin branch]
D --> E[Open root pull request]
E --> F[make validate and CI]
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
🟢 Approval recommended
The documentation updates are consistent with the referenced scripts/workflows, and the corresponding hygiene-test cap adjustment is appropriately justified.
Pull request overview
Adds an end-to-end “worked example” walkthrough to the root README to help first-time users run setup.sh in a brand-new GitHub organisation, and updates the repo hygiene test to accommodate the additional documentation.
Changes:
- Add a “A worked example: Northwind starts Atlas” subsection covering prerequisites (auth + git creds), the exact one-liner, what the user sees, the resulting tree, private-leg CI credential pointers, the daily
bump-legloop, and variants (adopt/family/update-shape). - Increase the README line-count cap in
tests/test_repo_hygiene.py, with a dated justification comment tied to issue #36.
File summaries
| File | Description |
|---|---|
| README.md | Adds a comprehensive newcomer-facing worked example for first project setup and ongoing maintenance. |
| tests/test_repo_hygiene.py | Raises the README line cap (with rationale) so the new documentation is allowed by hygiene tests. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…hape Atlas`; setup.sh self-bootstrap clones where you stand The way in was a long `curl … | bash -s -- --org … --project …` line. `openRepoShape` (bash, at the repository root) is the short form: `openRepoShape <Project> [--org <org>] [setup.sh options] [-- <scaffold flags>]`. It ADDS NO BEHAVIOUR — it fetches setup.sh from opensoft/openRepoShape (`gh api` FIRST, authenticated and so usable where raw downloads are blocked; the raw URL as fallback; $OPENREPOSHAPE_REPO/$OPENREPOSHAPE_REF overridable, --shape-ref forwarded so the script that runs and the standard it clones are one commit) and runs it AS A FILE, not from a pipe, so setup.sh can still ask for the project name and the one `yes`. The organisation comes from --org, $OPENREPOSHAPE_ORG or a prompt and is NEVER defaulted. `openRepoShape --install` copies itself (or, run from stdin, fetches itself) into ~/.local/bin, idempotent by content — installed / updated / unchanged — and prints the PATH line when needed. Found on the way (#39): in self-bootstrap mode setup.sh derived the clone's parent from `..` of its TEMPORARY checkout, so the README one-liner cloned every new project into /tmp/<Project> and deleted the checkout beside it. The re-exec now passes `--into "$INVOCATION_DIR"` before the caller's own arguments — theirs is parsed later and wins — so the project appears where the person stood, the developer path's `..` is untouched, and the fix holds even when --shape-ref pins an older standard. README: the worked example is restructured as Brett asked — Prerequisites in two parts (Requirements, then Login: whose gh account the act runs under and why git needs credentials of its own), Install the command (download-and-install or the long line), Run — and says where the clone lands. AGENTS.md §2 names the command. Tests: 18 for the command (offline through setup.sh's --local-remote-dir), 2 for the clone location; the shipped-bash checks now cover both scripts. README 659 -> 700, AGENTS.md 266 -> 269. 435 passed. Closes #38. Closes #39. Lane: codex-intake-shape Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
There was a problem hiding this comment.
🟡 Changes recommended
The new openRepoShape script has verified argument-handling bugs that can break forwarding (word-splitting) and incorrectly allows extra args in --install mode.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 7/7 changed files
- Comments generated: 2
- Review effort level: Lite
| # Fetched at $REF, so setup.sh self-bootstraps its checkout at $REF too: | ||
| # otherwise the script that runs and the standard it clones are two commits. | ||
| [ -z "${OPENREPOSHAPE_REF:-}" ] || ARGS+=(--shape-ref "$REF") | ||
| ARGS+=(${PASSTHROUGH[@]+"${PASSTHROUGH[@]}"}) |
| if [ "$MODE" = "install" ]; then | ||
| [ -z "$PROJECT" ] && [ ${#PASSTHROUGH[@]} -eq 0 ] || | ||
| die "--install takes no other arguments; it only installs this command." | ||
| install_self | ||
| exit 0 |



Lane: codex-intake-shape
Claim: #36 (comment)
Claims (same object set): #38 (comment) · #39 (comment)
What
Closes #36, #38, #39 — one branch, two commits.
The command (#38).
openRepoShapeat the repository root:openRepoShape Atlas --org Northwindfetchessetup.sh(gh apifirst — authenticated, works where raw downloads are blocked — raw URL as fallback), runs it AS A FILE so it can still prompt, turns the positional<Project>into--project, passes everything else through, never defaults the organisation, and forwards--shape-refwhenOPENREPOSHAPE_REFpins one.openRepoShape --installputs it in~/.local/binidempotently (installed / updated / unchanged) and prints the PATH line if needed; run from a pipe it fetches itself. It adds no behaviour of its own.The example (#36).
### A worked example: Northwind starts Atlas, restructured as ruled:#### Prerequisitesin two parts — 1. Requirements, 2. Login (whose gh accountgh repo createruns under; why git needs its own credentials for the HTTPS pushes;--elected-byauthenticates nothing) — then#### Install the command(download-and-install, with the link to the file, or the long line), then#### Run, then what Dana sees, the tree, private legs, daily work withbump-leg, and the variants.The defect (#39). Self-bootstrap
setup.shderived the clone's parent from..of its TEMPORARY checkout, so the README one-liner cloned new projects into/tmp/<Project>. The re-exec now passes--into "$INVOCATION_DIR"before the caller's arguments (theirs is parsed later and wins), so the project lands where the person stood; the developer path's..is unchanged; the fix holds under--shape-refto an older standard. The example says where the clone lands.Evidence
python3 -m pytest tests -q: 435 passed (18 new for the command, offline via--local-remote-dir; 2 new for the clone location, offline from a scratch cwd; shipped-bash checks parametrised oversetup.shandopenRepoShape).bash -nclean on both scripts (shellcheck not installed here).Ruled by Brett Heap, 2026-09-05: "add this example to the openRepoShape README"; "the before starting is to set so we can use gh under Dana's creds?"; "make this more clear… prerequisite… requirements and then the login… a downloadable script that can be installed as a cmd… if the api is more stable, use that… name it openRepoShape so the usage is openRepoShape Atlas".
🤖 Generated with Claude Code
Summary by Sourcery
Provide an installable
openRepoShapefront door, document its end-to-end use, and correct self-bootstrap clone placement.New Features:
openRepoShapecommand for running project setup with a positional project name, organisation handling, self-installation, and pinned standard references.Bug Fixes:
--intooverrides.Enhancements:
Documentation:
Tests: