Repository navigation
test(cli): a skill on a placed guide reads that guide and init writes it - #12955
josephfarina wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Requesting changes for one fix in the changeset; the new test is sound and passes.
.changeset/skills-placed-guide-test.mdhas no contributor line, sopnpm check:changesetsfails on it: add@josephfarinaon its own line after the summary, or drop the file, since test-only changes need no changeset.
The new test passes at this head (34 of 34 in skills.test.mjs) and covers the placed-guide route (acme/deploy) that the flat-topic fixtures never reached.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim, title: a skill on a placed guide is read from that guide and written by
init: verified (skills.test.mjs:182-189). - Claim: the docs-tree record lets a placed guide declare a skill and its verification asks for a guide case: verified against the record's skill requirement and verification row.
- Claim: before this change every skill fixture was a flat topic: verified (every earlier fixture comes from
skillDoc(), which sets no placement). - Claim:
docs skillslists the guide's skill: verified (skills.test.mjs:180-181). - Claim:
docs skills/<name>prints the guide's text: verified (skills.test.mjs:182-185). - Claim:
init --to skillswrites the skill's SKILL.md: verified (skills.test.mjs:186-189). - Claim: the project skill points to it: verified (
skills.test.mjs:190-192). - Claim: test only, no runtime change: verified (the only other file is the changeset).
- Claim: no internal context in public text: verified.
- Claim: the stated test command passes: verified (34 of 34).
- Changeset: a test holds the placed-guide behavior: verified against the test; the file itself fails the contributor check.
- File
.changeset/skills-placed-guide-test.md: finding (no contributor line). - File
packages/cli/api/docs/skills/skills.test.mjs: clear.
23200e2 to
aea5dcb
Compare
4a3b8ef to
49e6c71
Compare
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, since the pull request is a draft on a stacked branch.
The new test covers a skill declared on a placed guide, and it is the only test in skills.test.mjs that fails when the adapter's guide branch is removed. The changeset that failed the contributor check is gone, as test-only changes need none.
Claims and files checked
Review mode: full; reason: rebase
- Claim, title: a skill on a placed guide reads that guide and
initwrites it: verified (skills.test.mjs:180-192, passes). - Claim: the docs-tree record lets a flat topic or a placed guide declare a skill: verified against its skill requirement.
- Claim: that record's verification asks for a skill on a guide: verified.
- Claim: every earlier test declared skills on flat topics only: verified (every earlier fixture is
skillDoc(), which sets no placement). - Claim:
docs skillslists it: verified (skills.test.mjs:180-181). - Claim:
docs skills/<name>prints the guide's text: verified (skills.test.mjs:182-185). - Claim:
init --to skillswrites its SKILL.md: verified (skills.test.mjs:186-189). - Claim: the project skill points to it: verified (
skills.test.mjs:190-192). - Claim: test only, no runtime change and no changeset: verified (the one changed file is the test).
- Claim: stacked on the
docs --helpchange: verified (the base branch's tip is that change); landing with the stack is the author's plan. - Claim: no internal context in public text: verified.
- Claim: the stated test command passes: verified (35 of 35).
- File
packages/cli/api/docs/skills/skills.test.mjs: clear.
aea5dcb to
513937f
Compare
49e6c71 to
640eb12
Compare
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, since the pull request is a draft on a stacked branch.
The new test covers a skill declared on a placed guide, and it is the only test in skills.test.mjs that fails when the adapter's guide branch is removed. It passes at this head with the rest of the file (35 of 35).
Claims and files checked
Review mode: full; reason: rebase
- Claim, title: a skill on a placed guide reads that guide and
initwrites it: verified (skills.test.mjs:180-192, passes). - Claim: the docs-tree record lets a flat topic or a placed guide declare a skill, and its verification row names a skill on a guide: verified (the record's skill requirement and its verification table).
- Claim: every earlier test declared skills on flat topics only: verified (the only earlier skill fixture,
skillDoc()atskills.test.mjs:92-106, has no placement). - Claim: one test, with a namespace and a guide placed in it that declares
skill: verified (skills.test.mjs:159-179). - Claim:
docs skillslists it,docs skills/<name>prints the guide's text,init --to skillswrites its SKILL.md, and the project skill points to it: verified (skills.test.mjs:180-181,:182-185,:186-189,:190-192). - Claim: test only, no runtime change and no changeset: verified (one changed file, the test).
- Claim: scope is the CLI's docs skills tests: verified.
- Claim: public text contains no internal context: verified (title, body, branch, commit message and added lines).
- Claim: the docs skills test file passes under Vitest's node project with
CI=1: verified (35 of 35 at this head). - File
packages/cli/api/docs/skills/skills.test.mjs: clear.
- #12953 fix(cli): a skill whose integration has a doc that did not load is unread, not left out Author: @josephfarina - #12954 docs(cli): astryx docs --help names docs skills Author: @josephfarina - #12955 test(cli): a skill on a placed guide reads that guide and init writes it Author: @josephfarina - #12956 refactor(cli): one renderer for the SKILL.md files Astryx manages Author: @josephfarina - #13001 test(cli): the swizzle proof renders Lab's MediaPlayer with its required label Author: @josephfarina
|
Landed in #12993. |
Stacked on the
docs --helplayer; it lands with the stack.Why
spec:AST-046FR15 lets a flat topic or a placed guide declare a skill, and its verification row names a skill on a guide, but every test declared skills on flat topics only.Change
One test: an integration with a namespace and a guide placed in it that declares
skill.docs skillslists it,docs skills/<name>prints the guide's text,init --to skillswrites its SKILL.md, and the project skill points to it. Test only; no runtime change and no changeset.Scope
Components: cli (docs skills tests)
Testing
vitest run --project node packages/cli/api/docs/skillswithCI=1.