Agent skill
glean-webhooks-events
Implement event-driven Glean indexing triggered by source system webhooks from GitHub, Confluence, Notion, and other content platforms. Trigger: "glean webhooks", "glean event indexing", "incremental glean index".
Install this agent skill to your Project
npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/main/plugins/saas-packs/glean-pack/skills/glean-webhooks-events
SKILL.md
Glean Webhooks & Events
Overview
Glean does not send webhooks. Instead, build event-driven connectors that receive webhooks from source systems (GitHub, Confluence, Notion) and push incremental updates to the Glean Indexing API.
Instructions
GitHub Webhook -> Glean Indexing
// Receive GitHub wiki/page webhooks, index into Glean
app.post('/webhooks/github', async (req, res) => {
const event = req.body;
if (event.action === 'created' || event.action === 'edited') {
await glean.indexDocuments('github_wiki', [{
id: `wiki-${event.page.sha}`,
title: event.page.title,
url: event.page.html_url,
body: { mimeType: 'text/html', textContent: event.page.body },
author: { email: event.sender.email },
updatedAt: new Date().toISOString(),
permissions: { allowAnonymousAccess: true },
}]);
}
res.sendStatus(200);
});
Confluence Webhook -> Glean Indexing
app.post('/webhooks/confluence', async (req, res) => {
const { event, page } = req.body;
if (event === 'page_updated' || event === 'page_created') {
const content = await fetchConfluencePage(page.id);
await glean.indexDocuments('confluence_custom', [{
id: `conf-${page.id}`,
title: content.title,
url: `${CONFLUENCE_URL}/wiki/spaces/${content.space.key}/pages/${page.id}`,
body: { mimeType: 'text/html', textContent: content.body.storage.value },
updatedAt: content.version.when,
}]);
}
if (event === 'page_removed') {
await glean.deleteDocument('confluence_custom', `conf-${page.id}`);
}
res.sendStatus(200);
});
Resources
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
dockerfile-generator
Dockerfile Generator - Auto-activating skill for DevOps Basics. Triggers on: dockerfile generator, dockerfile generator Part of the DevOps Basics skill category.
branch-naming-helper
Branch Naming Helper - Auto-activating skill for DevOps Basics. Triggers on: branch naming helper, branch naming helper Part of the DevOps Basics skill category.
readme-generator
Readme Generator - Auto-activating skill for DevOps Basics. Triggers on: readme generator, readme generator Part of the DevOps Basics skill category.
makefile-generator
Makefile Generator - Auto-activating skill for DevOps Basics. Triggers on: makefile generator, makefile generator Part of the DevOps Basics skill category.
gitignore-generator
Gitignore Generator - Auto-activating skill for DevOps Basics. Triggers on: gitignore generator, gitignore generator Part of the DevOps Basics skill category.
pre-commit-hook-setup
Pre Commit Hook Setup - Auto-activating skill for DevOps Basics. Triggers on: pre commit hook setup, pre commit hook setup Part of the DevOps Basics skill category.
Didn't find tool you were looking for?