Skip to content

test(cli): a skill on a placed guide reads that guide and init writes it - #12955

Closed
josephfarina wants to merge 1 commit into
skills-fu2from
skills-fu3
Closed

josephfarina wants to merge 1 commit into
skills-fu2from
skills-fu3

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on the docs --help layer; it lands with the stack.

Why

spec:AST-046 FR15 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 skills lists it, docs skills/<name> prints the guide's text, init --to skills writes its SKILL.md, and the project skill points to it. Test only; no runtime change and no changeset.

Scope

Components: cli (docs skills tests)

  • Test only.
  • Public text and artifacts contain no internal Meta context.

Testing

  • vitest run --project node packages/cli/api/docs/skills with CI=1.

@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 19, 2026 7:23pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 19, 2026
@astracat-bot

astracat-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 19, 2026, 7:27 PM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes for one fix in the changeset; the new test is sound and passes.

  • .changeset/skills-placed-guide-test.md has no contributor line, so pnpm check:changesets fails on it: add @josephfarina on 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 skills lists 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 skills writes 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.

Automated review (maintainer link)

Comment thread .changeset/skills-placed-guide-test.md Resolved

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 init writes 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 skills lists 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 skills writes 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 --help change: 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.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 init writes 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() at skills.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 skills lists it, docs skills/<name> prints the guide's text, init --to skills writes 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.

Automated review (maintainer link)

josephfarina added a commit that referenced this pull request Nov 19, 2026
- #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
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed in #12993.

@github-actions
github-actions Bot deleted the skills-fu3 branch November 20, 2026 06:06

This branch was successfully deployed

1 active deployment
Preview — 640eb12b Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant