Declare fern-docs agent skill via docs.yml page-actions#5773
Open
matlegault wants to merge 4 commits into
Open
Declare fern-docs agent skill via docs.yml page-actions#5773matlegault wants to merge 4 commits into
matlegault wants to merge 4 commits into
Conversation
Vendor the fern-docs skill from fern-api/skills into fern/.well-known/skills/ so the docs publish uploads it (per fern-api/fern#16446, ADR 0015) and serves it at /.well-known/skills/. This makes `npx skills add https://buildwithfern.com/learn` work end-to-end and sources the install-skills page-action modal's live skill list. Bundle: index.json discovery manifest + fern-docs/SKILL.md + references/changelog.md. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
|
🌿 Preview your docs: https://fern-preview-matlegault-skills-modal-content.docs.buildwithfern.com/learn Here are the markdown pages you've updated: |
Picks up the merged changelog/products/cross-ref updates: adds references/products.md, refreshes SKILL.md and changelog.md, and lists the new reference in index.json so installs deliver the complete skill. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…bundle Replace the vendored fern/.well-known/skills/ bundle with a page-actions config that points the Install-skills modal at fern-api/skills, so Fern's own skills are installed directly from the source repo. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The skills page-action config requires CLI >= 5.47.0; the repo pinned 5.7.5, which rejected page-actions.options.skills. Bumping also enables a newer changelog-feed URL validation rule, so give the self-hosted "Releases" changelog an explicit release-notes slug (with a redirect from the old /releases URL and updated internal links). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
|
||
| <Tip> | ||
| See [recent releases](/learn/docs/self-hosted/releases) to pin to a specific version instead of `:latest`. | ||
| See [recent releases](/learn/docs/self-hosted/release-notes) to pin to a specific version instead of `:latest`. |
Contributor
There was a problem hiding this comment.
[FernStyles.Current] Avoid time-relative terms like 'latest' that become outdated
devalog
approved these changes
Jun 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Declares the
fern-docsagent skill via thepage-actionsconfig infern/docs.yml, replacing the previous approach of vendoring afern/.well-known/skills/bundle into this repo.This uses the new docs.yml surface from fern-api/fern#16446 and the platform support in fern-api/fern-platform#11947. The "Install skills" page action now points the modal directly at fern-api/skills, so visitors install Fern's own skills straight from the source repo — no vendored copy to keep in sync.
Config
install-command: npx skills add fern-api/skillspoints the modal at the GitHub repo, so the skills are installed from source. Per the platform semantics in #16446, a custom install command is rendered verbatim and disables per-skill checkbox selection.skills:list reflects the live contents of fern-api/skills (currently one skill,fern-docs); the description matches itsSKILL.mdfrontmatter and theurldeep-links to it.Why this over the well-known bundle
fern/.well-known/skills/, which would go stale as fern-api/skills changes. Declaring via docs.yml keeps a single source of truth in the skills repo.docs.ymlblock.The skills config only parses on Fern CLI >= 5.47.0 (where #16446 landed); this repo pinned 5.7.5, which failed CI with
Invalid object at path $.page-actions.options. So this PR bumpsfern/fern.config.jsonto 5.47.1 — a 40-minor-version jump that affects how the whole site builds, worth checking the preview deploy.The bump in turn surfaced a pre-existing, unrelated bug: the self-hosted "Releases" changelog lived at
/learn/docs/self-hosted/releases, but the docs server only serves changelog RSS/Atom/JSON feeds when the URL contains a segment likechangelogorrelease-notes— so that page's feed has been silently 404ing. The old CLI never validated this; 5.47.1 does, as a build-blocking error. Fix included here:slug: release-noteson the changelog entry → page now lives at/learn/docs/self-hosted/release-notes(feeds work)/learn/docs/self-hosted/releases→/learn/docs/self-hosted/release-notesso existing inbound links don't breakThis fix is out of scope for skills but required for CI to pass on the bumped CLI. Happy to split the bump + changelog fix into a separate PR that lands first if reviewers prefer.
🤖 Generated with Claude Code