Skip to content

Serve the Cerebrium agent skill exactly as cerebrium-skills defines it - #318

Open
mathew-builds wants to merge 7 commits into
masterfrom
fm/gtm-docs-skill-michael-examples-ask
Open

Serve the Cerebrium agent skill exactly as cerebrium-skills defines it#318
mathew-builds wants to merge 7 commits into
masterfrom
fm/gtm-docs-skill-michael-examples-ask

Conversation

@mathew-builds

@mathew-builds mathew-builds commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

What

Root skill.md now serves the Cerebrium Agent Skill exactly as CerebriumAI/cerebrium-skills defines it. Its body is a byte-for-byte copy of skills/cerebrium/SKILL.md from that repository at commit ece67a982675d0a59a52d0d8b6fc455af671068e (sha256 962e6b09ca5ab8cba5b83ef88e996efaa1c81eb5ba33c5d4398d019f15793458), with rule 3 taken verbatim from cerebrium-skills PR #3, which rewords it.

The served body is 9002 bytes, sha256 88a723f688f4617766174e56ed42e68c36836c115c3f0a258c2ebc2262a36fe6. That is the state cerebrium-skills master reaches once PR #3 and PR #4 both land. PR #4 deliberately leaves rule 3 alone so that PR #3 still applies cleanly, so matching PR #3's wording here is what keeps the sameness check green on their master afterwards.

This replaces the separate document an earlier revision of this PR added. That document and the skill every marketplace installs were about to be two different things under one name. CerebriumAI/cerebrium-skills is the source of truth, and this repository serves it rather than paraphrasing it.

Why the copy is exact

tools/check_skill_sameness.py in CerebriumAI/cerebrium-skills (its open PR #4) fails that repository's CI whenever the two copies drift. It compares the body byte for byte, plus the frontmatter description and license. The frontmatter name and the whole metadata block are allowed to differ, because Mintlify needs its own page name and its own metadata keys. Nothing else may differ.

name: Cerebrium and the mintlify-proj / version metadata are kept from the shape Mintlify already deployed green on this branch. description and license are copied verbatim, folded block form and all.

Do not edit the body of skill.md in this repository. Any reword, reflow, or re-wrap breaks the byte identity and turns cerebrium-skills CI red. Changes to the skill belong upstream.

Merge order

Merge this PR before CerebriumAI/cerebrium-skills PR #4. That PR stays red until this one lands, because its checker reads the copy served out of this repository.

cerebrium-skills PR #3 reworks rule 3 and is already reflected here, so the check stays green on their master once both of those land.

Michael's ask

Both items are present in the served document:

  • The examples repository is in "Rules for agents", rule 5: skill.md:48, https://github.com/CerebriumAI/examples
  • The licence is in the frontmatter: skill.md:9, license: MIT

Verification

The upstream checker was fetched at the same pinned commit and run against the bytes this branch serves, with the source as its local side:

python3 check_skill_sameness.py --local-path source-SKILL.md --remote-url <served skill.md>
source-SKILL.md matches <served skill.md>
CHECKER EXIT: 0

The body comparison used to gate this change reports bodies identical, exit status 0.

The checker was also shown not to pass vacuously: changing a single word in the body fails it, re-wrapping two lines without changing any words fails it, and the document this revision replaces fails it, while changing name and metadata still passes.

Two supporting files

Byte identity could not survive on skill.md alone, so two other files changed:

  • .prettierignore exempts /skill.md. .github/workflows/build-only.yml runs Prettier with --write over **/*.md on every push and commits the result back. It had already rewritten skill.md on this branch once, in commit 546c181 "Prettified Code!". Without the exemption the next push would silently destroy the byte identity. Verified with the same glob CI uses: prettier --list-different '**/*.md' no longer lists skill.md, and prettier --file-info skill.md reports "ignored": true.
  • CLAUDE.md gains a short note marking skill.md as vendored, so the repo-wide writing rules are not applied to a file that must never be edited here.

One known issue is deliberately left alone. Rule 3 links references/config.md as a relative path, which resolves to a page that does not exist on the docs site. Fixing it here would break byte identity, so it is registered upstream against cerebrium-skills instead.

mathew-builds and others added 2 commits August 24, 2026 15:34
Mintlify generates skill.md from the docs pages and serves it at
/skill.md and the /.well-known/skills endpoints. The generated file
links to no example code and carries no licence.

Adding more links to the docs pages would not change that. The examples
repository URL already appears 26 times across 19 pages and the
generated skill still contains no reference to it, so an override is the
only way to surface it.

A skill.md at the repository root overrides the generated file. This
copies the currently served content verbatim and adds exactly two
things: a link to the examples repository under Resources, and
license: MIT in the frontmatter.

Kept as a single root file rather than a .mintlify/skills/ directory,
because multiple skill files turn /skill.md into a redirect to a JSON
index, which would break the `npx skills add https://cerebrium.ai/docs`
instruction in docs.json.
@mintlify

mintlify Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
cerebrium 🟢 Ready View Preview Aug 24, 2026, 10:05 AM

Replace the root skill.md body with a byte-identical copy of
skills/cerebrium/SKILL.md from CerebriumAI/cerebrium-skills, and copy the
frontmatter description and license verbatim. Only name and metadata differ,
which the sameness check in that repository permits so Mintlify keeps its own
keys.
@mathew-builds mathew-builds changed the title Add skill.md to override the auto-generated agent skill feat: serve the Cerebrium agent skill verbatim from cerebrium-skills Aug 25, 2026
@mathew-builds mathew-builds changed the title feat: serve the Cerebrium agent skill verbatim from cerebrium-skills Serve the Cerebrium agent skill exactly as cerebrium-skills defines it Aug 25, 2026
Rule 3 is reworded in CerebriumAI/cerebrium-skills PR #3, which PR #4
deliberately left alone. Once both land, the copy published here would no
longer match that repository's master and its sameness check would fail.

Rule 3 is taken verbatim from PR #3, relative reference link included. Body is
9002 bytes, sha256 88a723f688f4617766174e56ed42e68c36836c115c3f0a258c2ebc2262a36fe6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant