Skip to content

docs: correct what the README says the commands print - #11

Open
otsobide wants to merge 1 commit into
devfrom
feature/docs-audit
Open

docs: correct what the README says the commands print#11
otsobide wants to merge 1 commit into
devfrom
feature/docs-audit

Conversation

@otsobide

Copy link
Copy Markdown
Owner

Audited the docs by running every example against the binaries rather than reading them. Six things were wrong or stale.

Wrong

Documented Actually prints
mind validate skill/commit-style: ok skill:commit-style: ok
flayer install hand-drawn ASCII, borders not aligned the real ratatui frame
flayer gather list three spaces between columns two — table pads to the widest cell
the three listing examples three different setups one workspace, seen from two levels

The validate one is the interesting one: the qualifier has been a colon since the kinds landed, and the same README explains why a slash would be wrong four paragraphs above the example that used a slash.

Stale

  • Gathering still called installing from the shelf "the next piece of work", in a document that documents it two sections down.
  • A workspace "will know" where to put a skill. It knows — that is what flayer install reads.

Honest about the PATH

make dev/link no longer claims to put anything on your PATH. Its default is ~/.cargo/bin, which is on it if rustup put it there and is not if Rust came from a system package. The cargo-watch note gains the failure that actually happens rather than the one that is easy to write: installed, on no PATH, and reported by make dev/watch as missing.

One finding that was not a docs bug

docs/architecture.md now records an asymmetry the audit surfaced: gathering keeps the folder name the source used, installing files the copy under the name the skill declares. That is deliberate — upstream a mismatch is something validate should report, inside a project it is a skill that lists fine and never loads — but it was nowhere written down.

Worse, the test that claimed to cover it did not. the_folder_is_named_after_the_skill_rather_than_after_its_shelf_folder built its fixture with both names spelled the same way, so it asserted nothing the ordinary case did not already. It now gathers from skills/a-different-folder/ declaring deploy, and asserts both halves: the shelf keeps a-different-folder, the project gets deploy.

Verified

make fmt/check, make lint (clean), make test — 198 passing, 0 failing. Every command example in the README was reproduced against the real binaries; the install frame is a paste of what TestBackend renders. The three internal anchors resolve.

https://claude.ai/code/session_01V2osQx2Q4LKUBXTLJCiMDR

Audited by running every example against the binaries rather than
reading them, which turned up four things that were wrong and two that
had gone stale:

- `mind validate` was shown printing `skill/commit-style`. It prints
  `skill:commit-style`; the qualifier has been a colon since the kinds
  landed, for the reason the same document explains four paragraphs
  earlier.
- The install screen was hand-drawn ASCII that did not line up with what
  ratatui renders. Replaced with the real frame.
- `flayer gather list` was shown with three spaces between columns;
  `table` pads to the widest cell and adds two.
- The three listing examples described three different setups while
  claiming to be one workspace seen from two levels.
- Gathering still said installing from the shelf was "the next piece of
  work", in a document that documents it two sections down.
- A workspace "will know" where to put a skill. It knows.

`make dev/link` no longer claims to put anything on your PATH: its
default is `~/.cargo/bin`, which is on it if rustup put it there and is
not if Rust came from a system package. The `cargo-watch` note gains the
failure that actually happens — installed, on no PATH, and reported as
missing.

`docs/architecture.md` records the asymmetry the audit surfaced: the
shelf keeps the folder name a source used, and installing files the copy
under the name the skill declares. Upstream a mismatch is something
`validate` should report; inside a project it is a skill that lists fine
and never loads.

The test that claimed to cover that asymmetry did not — its fixture
spelled both names the same way, so it asserted nothing the ordinary case
did not already. It now gathers from a folder that disagrees with the
front matter.

Claude-Session: https://claude.ai/code/session_01V2osQx2Q4LKUBXTLJCiMDR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant