Skip to content

feat: publish a standalone setup skill for workos.com/SKILL.md - #66

Merged
nicknisi merged 2 commits into
mainfrom
nicknisi/setup-skill-md
Oct 28, 2026
Merged

nicknisi merged 2 commits into
mainfrom
nicknisi/setup-skill-md

Conversation

@nicknisi

@nicknisi nicknisi commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Why

workos.com should have one URL a user can paste into a coding agent ("Add WorkOS to my app: workos.com/SKILL.md"). I first drafted that skill as a string in the workos.com worker (workos/workos#77892). But it condenses the router's "Start here" section, so it belongs here, next to what it summarizes, reviewed and released with it.

  • well-known/setup/SKILL.md is a self-contained workos-setup skill. It covers the plan to confirm with the user, WORKOS_MODE=agent npx workos@latest install, the router's completion checks, and profile claim only when a new environment was created. The checks are sign-in, sign-out, and a sign-in started outside the app through the Initiate login URI, plus reporting any URL settings the installer left unfinished. It links to absolute URLs for everything else.
  • The release build validates its frontmatter and attaches it as SKILL.md next to index.json. workos/workos#77892 proxies workos.com/SKILL.md from releases/latest/download/SKILL.md.
  • It sits two directories deep and outside plugins/. The plugins don't ship it, it isn't in the well-known index, and npx skills add workos/skills (which only scans top-level folders once it finds skills) still installs just workos and workos-widgets.
  • accountless-install.spec.ts now covers it too: install leads the description and body, the first code block is the agent-mode install, Verify keeps the outside-sign-in and unfinished-settings checks, and it claims with profile claim like the router. AGENTS.md says to update it alongside "Start here".

Proof

  • npx skills add <this checkout> --list still finds exactly 2 skills: workos and workos-widgets.
  • build-well-known.spec.ts now runs the script with the release workflow's arguments. It writes index.json, both archives and SKILL.md, byte-identical to well-known/setup/SKILL.md. Deleting the copySetupSkill(...) call from the entrypoint fails the spec.
  • The same text, served by the worker in wrangler dev, parsed as the workos-setup skill with npx skills add http://localhost:8787/SKILL.md --list. The text only changed afterwards to use this repo's install and profile claim spellings.
  • Every command and flag it uses exists in workos 0.24.0 (--help for install, profile claim, doctor, auth login).

Add well-known/setup/SKILL.md, a self-contained workos-setup skill that
condenses the router's "Start here" section for agents fetching a single
URL. The release build validates its frontmatter and attaches it as
SKILL.md, which workos.com proxies from the latest release. It sits two
directories deep, outside plugins/, so neither the plugins nor
`npx skills add workos/skills` install it alongside the router.
@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with both previous concerns addressed and no new actionable issues found.

Summary

Adds a standalone workos-setup skill and publishes it as SKILL.md alongside the release archives.

  • A standalone WorkOS skill guides agents through setting up sign-in.
  • The release build adds the setup guide as a separate SKILL.md file.

No new actionable issues were found. Tests were inspected but not run.

Reviews (2) · Last reviewed commit: "fix: verify outside sign-in and test the..." · Reviewed by Greptile

Comment thread well-known/setup/SKILL.md Outdated
Comment thread scripts/tests/build-well-known.spec.ts Outdated
The setup skill now checks sign-in started outside the app (invitations
and password-reset emails reach the Initiate login URI), points agents
at the URLs the installer left unset, and requires reporting any that
remain, matching the router's completion checklist.

The build spec now runs scripts/build-well-known.ts with the release
workflow's arguments, so it fails if the release stops publishing
SKILL.md. Nothing imports the script any more, so drop its exports.
@nicknisi

Copy link
Copy Markdown
Member Author

@greptileai review

@nicknisi
nicknisi merged commit 27eb861 into main Oct 28, 2026
5 checks passed
@nicknisi
nicknisi deleted the nicknisi/setup-skill-md branch October 28, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant