Skip to content

docs(cli): the computer-level skill starts a page with build - #12037

Merged
josephfarina merged 2 commits into
mainfrom
josephfarina/computer-text-build-first
Nov 16, 2026
Merged

josephfarina merged 2 commits into
mainfrom
josephfarina/computer-text-build-first

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Reader impact

Agents read the skill the CLI writes for the computer (and the Claude Code and Codex plugin skill made from it). It told them to start with astryx search, so agents asked for a page searched first and reached build a step later. With the new line they start the page from the template build names.

Source of truth

spec:AST-081 FR8 (the computer-level text) and the shared page workflow in foundation/agent-docs/agent-doc-state.mjs, whose first step is astryx build. This PR changes one FR8 sentence, so it needs the record owner's approval.

Correction

Before: "Its docs, components, templates, and themes are all reachable through astryx. Start with astryx search '<what you need>'."

After: "Its docs, components, templates, and themes are all reachable through astryx. To make a page, run astryx build "<what the page is for>" first, as the WORKFLOW below says. Start with astryx search '<what you need>' for anything else."

The sentence that starts with "Start with astryx search '" stays, so skillCommandOfreads old and new skill files the same way.init --user` help and FR8 say the same thing.

Evidence

Blind runs with public coding agents (Claude Code and Codex). Each run had a fresh home with the global CLI 0.7.16 and this skill, and got a casual page request that did not name Astryx ("Make me a dashboard page for my team's on-call: …", "I need a settings page for an internal tool: …"). Four runs per arm per agent:

per run skill before (8 runs) this skill (8 runs)
used Astryx 8/8 8/8
ran build 8/8 8/8
build was its first Astryx step 4/8 8/8
scaffolded the page template 8/8 8/8
ran doctor 8/8 8/8
the app builds 8/8 8/8

Codex started with search in 4 of 4 runs before and with build in 4 of 4 after. Claude Code started with build in both arms.

Held-out tasks, written and scored separately (two other page requests, the same two agents, two runs each): build was the first Astryx step in 5 of 8 runs before and 8 of 8 after (Codex 1/4 → 4/4). Using Astryx, scaffolding, doctor and the app build stayed at 8 of 8 in both arms.

Scope

Components: cli (computer-level agent text, init docs), plugins/astryx skill (generated), spec AST-081 FR8

  • This PR changes documentation only, or names every necessary generated artifact.
  • Runtime, API, visual, and policy changes were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

  • pnpm exec vitest run --project node packages/cli/foundation/agent-docs/computer-agent-text.test.mjs packages/cli/api/init/init.test.mjs: 49 passed.
  • node scripts/generate-agent-plugin-skill.mjs --check: in sync.
  • node packages/cli/scripts/generate-cli-readme.mjs --check: in sync.
  • pnpm check:knowledge: aligned.

Writing rubric results

Scope: the one changed FR8 sentence of spec:AST-081.

R1 narration: none; the sentence states what the text tells an agent, in the present tense.
R2 research: none in the record; the blind-run results stay in this description.
R3 evidence: none changed.
R4 rejected alternatives: none added.
R5 change references: none.
R6 open questions: none touched.
R7 project status: none.

The skill the CLI writes for agents on the computer told them to start
with `astryx search`, so agents searched first and reached `build` a
step later, or not at all. It now says to start a page with `build` and
anything else with `search`. The plugin skill is generated from the same
text.
@vercel

vercel Bot commented Nov 16, 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 16, 2026 8:52am UTC

Request Review

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

astracat-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 16, 2026, 9:01 AM UTC

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 16, 2026
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 12d2171

Storybook · Sandbox · built from this PR's head

Package size: @astryxdesign/cli 5.12 MB packed (+76 B); no new dependencies.

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 5697e04

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 16, 2026

@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.

Changes requested: one docs page still describes the old skill.

The FR8 rewording is approved by an engineering owner for this head, and the skill line, the generated plugin skill, the init --user help and the tests agree with it.

  • packages/cli/assets/docs/tree/computer-agent-guide.doc.mjs:43 still tells readers the skill says "to start with search"; update it to say the skill starts a page with build and anything else with search, as the init --user help now does.
Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim: the computer skill and the plugin skill now say to start a page with build and anything else with search — verified (computer-agent-text.mjs:264, SKILL.md:10; the plugin-skill check passes).
  • Claim: the old skill told agents to start with search — verified (base computer-agent-text.mjs:264).
  • Claim: the shared page workflow's first step is astryx build — verified (agent-doc-state.mjs:45).
  • Claim: only one FR8 sentence changes and it needs owner approval — verified (spec.md:468-471); approved for this head.
  • Claim: the kept "Start with … search" phrase lets skillCommandOf read old and new skill files alike — verified (computer-agent-text.mjs:289).
  • Claim: the init --user help and FR8 say the same thing — verified (init.doc.mjs:73); the global docs guide page does not (finding above).
  • Claim: blind agent runs moved the first step to build — author-reported; not reproducible from the repository.
  • Claim: 49 tests pass, the plugin skill and README are in sync, and the knowledge check is aligned — verified by rerunning each.
  • Claim: no internal context in public text — verified.
  • File .changeset/computer-skill-build-first.md — clear.
  • File docs/specs/AST-081-global-mode/spec.md — clear (owner-approved).
  • File packages/cli/clients/cli/commands/init.doc.mjs — clear.
  • File packages/cli/foundation/agent-docs/computer-agent-text.mjs — clear.
  • File packages/cli/foundation/agent-docs/computer-agent-text.test.mjs — clear.
  • File plugins/astryx/skills/astryx/SKILL.md — clear (generated, in sync).

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 12d2171

@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: the CI workflow on this head stopped with "CI is full" before its build and test jobs ran; re-run it so the required checks can pass.

The computer-level skill, the generated plugin skill, the init --user help, the global guide page and spec:AST-081 FR8 now all say to start a page with astryx build and anything else with astryx search, and the FR8 rewording carries an engineering owner's approval for this head. The guide-page sentence flagged in the last review now matches.

Claims and files checked

Review mode: incremental; reason: none

  • Claim (changeset and description): the computer skill and the plugin skill say to start a page with build and anything else with search. Verified: computer-agent-text.mjs:264, SKILL.md:10; the plugin-skill check passes.
  • Claim: the old skill told agents to start with search. Verified: base computer-agent-text.mjs:264.
  • Claim: the shared page workflow's first step is astryx build. Verified: agent-doc-state.mjs:45.
  • Claim: only one FR8 sentence changes, and it needs owner approval. Verified: spec.md:468; approved for this head.
  • Claim: keeping the "Start with … search" phrase lets skillCommandOf read old and new skill files alike. Verified: computer-agent-text.mjs:288-289.
  • Claim: the init --user help and FR8 say the same thing. Verified: init.doc.mjs:73; the guide page agrees too (computer-agent-guide.doc.mjs:43).
  • Claim: blind agent runs moved the first step to build. Author-reported; not reproducible from the repository.
  • Claim: 49 tests pass, the plugin skill and README are in sync, and the knowledge check is aligned. Verified by rerunning each.
  • Claim: documentation only, every generated artifact named, no runtime, API, visual or policy change, no internal context. Verified: the plugin skill is the only generated file and is in sync; no API change.
  • File .changeset/computer-skill-build-first.md: clear.
  • File docs/specs/AST-081-global-mode/spec.md: clear (owner-approved).
  • File packages/cli/assets/docs/tree/computer-agent-guide.doc.mjs: clear.
  • File packages/cli/clients/cli/commands/init.doc.mjs: clear.
  • File packages/cli/foundation/agent-docs/computer-agent-text.mjs: clear.
  • File packages/cli/foundation/agent-docs/computer-agent-text.test.mjs: clear.
  • File plugins/astryx/skills/astryx/SKILL.md: clear (generated, in sync).

Automated review (maintainer link)

@josephfarina
josephfarina merged commit 118dcc5 into main Nov 16, 2026
126 of 132 checks passed
@github-actions
github-actions Bot deleted the josephfarina/computer-text-build-first branch November 17, 2026 06:03

This branch was successfully deployed

1 active deployment
Preview — 12d2171b Deployed Nov 16, 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