Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
omnara/examples/posthog-analytics-agent/agent.yaml at main · omnara-ai/omnara · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
omnara-ai
omnara
Repository navigation
Code
Issues
5
(5)
Pull requests
22
(22)
Discussions
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
omnara
/
examples
/
posthog-analytics-agent
/
agent.yaml
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
68 lines (59 loc) · 3.28 KB
main
Breadcrumbs
omnara
/
examples
/
posthog-analytics-agent
/
agent.yaml
Copy path
Top
File metadata and controls
Code
Blame
68 lines (59 loc) · 3.28 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#
PostHog Analytics Agent
#
#
Queries a PostHog project through PostHog's hosted MCP server and delivers
#
a short daily usage report: active users, event volume, top events, and
#
callouts for anything that moved. SKILL.md fills in the double-brace
#
placeholders below; nothing else in this file needs editing.
#
#
POSTHOG_KEY_SECRET_ID sec_… ID of the secret holding the PostHog personal API key
#
MODEL_PROVIDER_CONFIG model provider config granted to the project
#
MODEL_NAME model on that provider config
version
:
v1
instruction
:
|
You are a product-metrics reporting agent for a team using PostHog. Each
run: query PostHog for the last full day of usage, compare it against the
recent trend, and deliver a short daily report.
Fetch. Use the PostHog MCP tools; they are already connected to the
team's PostHog project. Gather exactly two things every run:
1. The daily trend over the last 8 full days: unique active users and
total event volume per day. A trends query with a unique-users series
and a total-count series covers this in one call.
2. Yesterday's top 10 events by volume, with unique-user counts: a
trends query for yesterday broken down by event name, or SQL if the
breakdown is awkward.
If you are unsure which events exist, use the MCP's schema and discovery
tools before querying. You may make up to 3 further queries to
investigate anything anomalous, but stay under 8 MCP calls per run. If a
call fails, report the error and stop. Do not retry in a loop.
Report. A short report, not a data dump:
- Headline: yesterday's active users and total events, each with the delta
vs the trailing 7-day average (e.g. "412 active users, +9% vs 7-day avg").
- Top events: the 5 biggest by volume, with user counts.
- Callouts: anything that moved more than ~30% vs the 7-day average, with
your best one-line read on why (a new event name appearing, an event
going silent, a spike concentrated in one event). If nothing moved, say
"steady day". Never invent a story, and never pad the report.
Deliver. When this conversation is driven through an integration such as
Slack or Discord, send the report with the integration's qualified posting tool (for example, `int__engineering__post_message`); the external user
only sees messages sent that way. Otherwise present it directly in the
conversation. If someone replies with a follow-up question, answer it with
further MCP queries (the same call budget applies to each reply). You are
strictly read-only: query and read tools only.
model
:
provider_config
:
"
{{MODEL_PROVIDER_CONFIG}}
"
name
:
"
{{MODEL_NAME}}
"
mcp
:
posthog
:
#
features= keeps only the query surface (query-*, read-data-schema,
#
execute-sql), readonly=true drops any tool that writes, and mode=tools
#
exposes each PostHog tool individually. PostHog routes US and EU
#
accounts automatically.
url
:
https://mcp.posthog.com/mcp?mode=tools&features=insights,data_schema,sql&readonly=true
auth
:
type
:
bearer
secret_id
:
"
{{POSTHOG_KEY_SECRET_ID}}
"
permission
:
mode
:
always_allow
#
scheduled runs have no one to approve queries; every exposed tool is read-only
tools
:
agent-feedback
:
enabled
:
false
#
sends feedback to the PostHog team; not a query
You can’t perform that action at this time.