:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import { combineUrl } from 'kea-router'
import { FEATURE_FLAGS } from 'lib/constants'
import { urls } from 'scenes/urls'
import { ProductItemCategory, ProductKey } from '~/queries/schema/schema-general'
import { ActivityScope, ProductManifest } from '../../frontend/src/types'
export const manifest: ProductManifest = {
name: 'Skills',
activityDescribers: {
[ActivityScope.LLM_SKILL]: () =>
import('./frontend/activityDescriber').then((module) => module.skillActivityDescriber),
},
scenes: {
Skills: {
import: () => import('./frontend/LLMSkillsScene'),
projectBased: true,
name: 'Skills',
description: 'Manage versioned agent skills that any MCP-connected agent can discover and use.',
layout: 'app-container',
iconType: 'llm_prompts',
docsHref: 'https://posthog.com/docs/skills',
},
Skill: {
import: () => import('./frontend/LLMSkillScene'),
projectBased: true,
name: 'Skill',
layout: 'app-container',
iconType: 'llm_prompts',
},
CommunitySkills: {
import: () => import('./frontend/CommunitySkillsScene'),
projectBased: true,
name: 'Community skills',
description: 'Discover and install agent skills shared by the PostHog community.',
layout: 'app-container',
iconType: 'llm_prompts',
},
},
routes: {
'/skills': ['Skills', 'skills'],
// Tab routes (e.g. /skills/scouts) must precede the `/skills/:name` wildcard so they
// aren't captured as a skill named after the tab. Route order = match precedence. Every
// slug here is also in RESERVED_SKILL_NAMES so no skill can claim a shadowed name.
'/skills/scouts': ['Skills', 'skillsScouts'],
'/skills/review-hog': ['Skills', 'skillsReviewHog'],
'/skills/community': ['CommunitySkills', 'communitySkills'],
'/skills/:name': ['Skill', 'skill'],
},
redirects: {
'/community-skills': (_params, searchParams, hashParams) =>
combineUrl(urls.communitySkills(), searchParams, hashParams).url,
'/prompt-management/skills': (_params, searchParams, hashParams) =>
combineUrl(urls.skills(), searchParams, hashParams).url,
'/prompt-management/skills/:name': (params, searchParams, hashParams) =>
combineUrl(urls.skill(params.name), searchParams, hashParams).url,
'/llm-analytics/skills': (_params, searchParams, hashParams) =>
combineUrl(urls.skills(), searchParams, hashParams).url,
'/llm-analytics/skills/:name': (params, searchParams, hashParams) =>
combineUrl(urls.skill(params.name), searchParams, hashParams).url,
},
urls: {
skills: (): string => '/skills',
// A category tab under /skills (e.g. /skills/scouts). The tab key is the URL segment.
skillsCategoryTab: (categoryTab: string): string => `/skills/${categoryTab}`,
skill: (name: string, params?: { file?: string; version?: number }): string =>
combineUrl(`/skills/${name}`, params).url,
communitySkills: (): string => '/skills/community',
},
fileSystemTypes: {},
treeItemsNew: [],
treeItemsProducts: [
{
path: 'Skills',
intents: [ProductKey.SKILLS],
category: ProductItemCategory.TOOLS,
type: 'llm_skills',
iconType: 'skill',
iconColor: ['var(--color-product-skills-light)', 'var(--color-product-skills-dark)'],
href: urls.skills(),
searchKeywords: ['agent instructions', 'playbooks'],
searchTabs: [
{
name: 'Community skills',
href: urls.communitySkills(),
flag: FEATURE_FLAGS.LLM_ANALYTICS_COMMUNITY_SKILLS,
},
],
sceneKey: 'Skills',
},
],
}