Skip to content

refactor(shared): move the SKILL.md serializer into @posthog/shared#3445

Merged
trunk-io[bot] merged 1 commit into
mainfrom
posthog-code/shared-skill-serializer
Jul 15, 2026
Merged

refactor(shared): move the SKILL.md serializer into @posthog/shared#3445
trunk-io[bot] merged 1 commit into
mainfrom
posthog-code/shared-skill-serializer

Conversation

@gantoine

Copy link
Copy Markdown
Member

Summary

Moves serializeSkillMarkdown from @posthog/workspace-server into @posthog/shared; workspace-server now re-exports it.

Why

SKILL.md is a serialization contract the cloud sandbox consumes. Any client that emits skills must produce byte-identical output. Today that's the workspace-server bundler; a browser skill bundler is coming. Sharing one implementation keeps them from drifting.

No behavior change — desktop's bundler resolves the same function through the re-export, and the existing write-skill-frontmatter tests are untouched and pass.

This is one of a few small enabling changes peeled out of the apps/web browser-host work (previously #3353).

Testing

  • @posthog/shared + @posthog/workspace-server typecheck pass.
  • workspace-server skill tests pass.
  • Biome clean.

Created with PostHog Code

serializeSkillMarkdown lived in workspace-server; move it to
@posthog/shared and have workspace-server re-export it. SKILL.md is a
serialization contract the cloud sandbox consumes, so any client that
emits skills (the workspace-server bundler today, a browser bundler
later) must produce byte-identical output — sharing one implementation
keeps them from drifting. No behavior change: desktop's bundler resolves
the same function through the re-export.

Generated-By: PostHog Code
Task-Id: 77d13a30-444d-4045-9d80-5e2a9f2e68ae
@trunk-io

trunk-io Bot commented Jul 14, 2026

Copy link
Copy Markdown

😎 Merged successfully - details.

@github-actions

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 05a66c2.

@greptile-apps

greptile-apps Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "refactor(shared): move the SKILL.md seri..." | Re-trigger Greptile

@gantoine

Copy link
Copy Markdown
Member Author

/trunk merge

@trunk-io trunk-io Bot merged commit 6dd0274 into main Jul 15, 2026
25 checks passed
@trunk-io trunk-io Bot deleted the posthog-code/shared-skill-serializer branch July 15, 2026 14:39
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.

2 participants