building-a-dashboard
यह क्या करती है
यह स्किल सही इनसाइट चुनकर, मौजूदा इनसाइट दोबारा इस्तेमाल करके और ज़रूरी चार्ट जोड़कर डैशबोर्ड बनाती या अपडेट करती है। यह उन लोगों के लिए है जो रिटेंशन या राजस्व जैसे विषय पर साफ़ डैशबोर्ड चाहते हैं, बिना हर चार्ट हाथ से बनाए।
कब इस्तेमाल करें
- ✓जब आपको एक्टिवेशन, रिटेंशन या राजस्व जैसे विषय पर नया डैशबोर्ड चाहिए।
- ✓जब आप पहले से मौजूद डैशबोर्ड में इनसाइट जोड़ना, हटाना या बदलना चाहें।
- ✓जब आप अपनी टीम के लिए एक पेज पर कई मेट्रिक चाहें।
Skill का लिंक
https://github.com/PostHog/posthog/blob/master/products/dashboards/skills/building-a-dashboard/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हमारे एक्टिवेशन फ़नल के लिए मुख्य मेट्रिक और रिटेंशन चार्ट वाला डैशबोर्ड बनाइए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI पहले मौजूदा डैशबोर्ड, टेम्पलेट और इनसाइट खोजता है जो फिट बैठें, फिर जो चार्ट गायब हों उन्हें बनाता है। वह उन्हें पढ़ने लायक लेआउट में सजाता है, और मौजूदा डैशबोर्ड बदलने से पहले उसकी सामग्री जाँचता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Building a dashboard
A dashboard is a collection of insight tiles on one page. Your job is to figure out which insights belong on it, reuse what already exists, create what's missing, and lay them out sensibly — not to blindly generate charts.
When the dashboard needs explanatory text, keep user copy and agent context separate. Use the
writing-user-facing-copy skill for text that people read. Use agent_context for information that an agent needs to
maintain the dashboard.
PostHog's Data Catalog is the semantic layer. Store canonical metric definitions there. Never use agent_context as
a substitute for a Data Catalog metric.
Create vs update
First work out whether you're creating a new dashboard or changing an existing one.
- Search existing dashboards with
dashboards-get-all(itssearchparam does fuzzy name/description matching). If the user is clearly describing something that already exists, they probably want an update. - Read a candidate with
dashboard-getto see its current tiles before you change anything. - If the request is ambiguous — "get my financial metrics together" could mean build new or add to an existing one — ask a short clarifying question rather than guessing.
Use templates as reference
PostHog ships vetted dashboard templates for common topics, and orgs can share their own. Consult them before you build — they're a strong signal of which insights pair well on a topic.
dashboard-templates-list— browse templates (usesearchfor a topic,scopeto narrow to global / team / organization). This returns names, descriptions, and tags only.dashboard-templates-retrieve— open the closest template to see itstiles: which insights it groups together and how each is queried.
Treat templates as examples, not a spec. Take inspiration from the insights and their groupings, but tailor every insight to the user's own events, properties, and intent. Don't copy a template verbatim, and don't force a template onto a request it doesn't fit — a good bespoke dashboard beats a mismatched template every time.
Select the insights
Prefer reusing existing insights over recreating them.
- Search with
insights-listand read promising ones withinsight-getto check they match the user's intent and actually have data. Full-text search misses things named differently, so list broadly before concluding an insight doesn't exist. - For anything missing, read
querying-posthog-databefore choosing its query method. After Data Catalog routing, default to typed runners for each supported product-analytics tile: trends (including simple counts, unique users, sums, and breakdowns), funnels, retention, stickiness, paths, and lifecycle. Run the query to verify it, then save its native query node withinsight-create. Use SQL-backed insights for explicit SQL requests or calculations the typed schemas cannot express, such as custom joins. SQL used to discover events or existing insights does not determine the query type of new tiles. Keep valid existing insights rather than rebuilding them. - Follow
querying-posthog-datafor presenting verified query results: some harnesses show charts inline, while others need a separate top-levelrender-uicall with the same query tool and input. Rendering support does not determine the saved insight's query type. - Keep the set minimal — only the insights the request needs. A focused dashboard is more useful than an exhaustive one.
Use Data Catalog for reusable metrics
Use PostHog's Data Catalog as the source of truth for reusable business and telemetry metrics. Do this before you derive a metric from raw data or copy a definition from an existing dashboard:
- Call
posthog:metric-listand follow pagination until you have checked the complete catalog. - Call
posthog:metric-describefor each possible match. Use only anapproved, non-drifted exact match as a canonical definition. - Call
posthog:data-catalog-metric-runto verify an approved match. Use its definition when you build or update the related dashboard insight. - If the dashboard introduces a reusable metric with no governed match, follow the
setting-up-data-catalogskill and create a proposed metric withposthog:data-catalog-metric-create. Usesource_insight_short_idwhen the definition comes from an insight. A proposed metric is not canonical until a human approves it.
Do not copy the metric definition into dashboar
अक्सर पूछे जाने वाले सवाल
क्या यह बिना पूछे डैशबोर्ड बना देगा?
अगर अनुरोध साफ़ नहीं है, तो यह पहले एक छोटा सवाल पूछता है, जैसे नया बनाना है या मौजूदा अपडेट करना है।
क्या यह मेरे मौजूदा चार्ट दोबारा इस्तेमाल करता है?
हाँ। यह मौजूदा इनसाइट खोजता है और नए तभी बनाता है जब ज़रूरत हो।
आधिकारिक मेट्रिक की परिभाषाएँ कहाँ जाएँ?
वे PostHog के डेटा कैटलॉग में जानी चाहिए, डैशबोर्ड के नोट्स में नहीं।
जानकारी
लेखक का मूल विवरण
Build a new dashboard, or update an existing one, from a set of insights — the same job the in-app assistant does with its upsert-dashboard tool, but over MCP. Use when a user asks to create a dashboard, put several metrics/charts together on one page, assemble a dashboard for a topic (product analytics, retention, revenue, activation, etc.), or add/remove/replace insights on a dashboard they already have. Covers deciding create vs update, reusing existing insights vs creating new ones, and using PostHog's vetted dashboard templates as reference for what a strong dashboard on a topic looks lik
repo: PostHog/posthog
लोकप्रियता
- GitHub स्टार
- 41k
- रैंकिंग में स्थान
- #6846
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
depot-ci
41kयह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।
depot-container-builds
41kयह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।
depot-github-runners
41kयह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।
editing-agents-md
41kयह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।