Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,13 @@ jobs:
# Upload skill-menu.json (used by the wizard to discover available skills)
echo "Uploading skill-menu.json..."
gh release upload "$RELEASE_TAG" dist/skills/skill-menu.json --clobber
# Upload reference docs (used by the wizard for runtime-specific overrides)
for file in dist/skills/*.md; do
[ -f "$file" ] || continue
filename=$(basename "$file")
echo "Uploading $filename..."
gh release upload "$RELEASE_TAG" "$file" --clobber
done

- name: Update latest tag
env:
Expand Down
14 changes: 14 additions & 0 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,20 @@ async function main() {
fs.writeFileSync(skillMenuPath, JSON.stringify(skillMenu, null, 2));
console.log(` ✓ skill-menu.json (${Object.keys(skillsByCategory).length} categories, ${skills.length} skills)`);

// Write fetched docs marked as release_asset to skills dir (uploaded as release assets)
const releaseAssetDocs = docEntries.filter(d => d.release_asset);
if (releaseAssetDocs.length > 0) {
console.log('\nWriting release-asset docs...');
for (const doc of releaseAssetDocs) {
const content = docContents[doc.id];
if (content) {
const filename = `${doc.id}.md`;
fs.writeFileSync(path.join(skillsDir, filename), content);
console.log(` ✓ ${filename} (${content.length} chars)`);
}
}
}

// Create bundled archive
console.log('\nCreating bundled archive...');
const bundlePath = path.join(distDir, 'skills-mcp-resources.zip');
Expand Down
8 changes: 8 additions & 0 deletions transformation-config/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@ docs:
tags: [core, users, identity]
urls:
- https://posthog.com/docs/getting-started/identify-users.md

- id: cloudflare-workers
display_name: Cloudflare Workers
description: Runtime-specific overrides for PostHog on Cloudflare Workers (env access, event flushing, Node.js compat)
tags: [runtime, cloudflare, workers, edge]
release_asset: true # Also write as standalone .md for wizard to fetch directly
urls:
- https://posthog.com/docs/libraries/cloudflare-workers.md
Loading