Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

infer-insights推断见解

Agent Skill

infer-insights 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

461

周安装

19

GitHub Stars

公开资料未说明

下载量

150
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:infer-insights(推断见解)
来源仓库:https://github.com/infer-events/skills
仓库路径:skills/infer-insights
安装命令:
npx skills add https://github.com/infer-events/skills --skill infer-insights
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/infer-events/skills --skill infer-insights

简介

用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装,需确认权限和维护状态。
  • 使用前建议核验具体用法,避免触发联网或文件读写操作。
  • 涉及敏感数据时应先确认脱敏边界和命令执行范围。

SKILL.md

Infer Insights — Automated Discovery

Update Check (non-blocking)

Run this at the start. It checks if an update is available using a 6-hour cache so it doesn't hit npm on every invocation:

_INFER_CACHE=~/.infer/last-update-check.json
_NEEDS_CHECK="yes"

# Skip check if cache is fresh (less than 6 hours old)
if [ -f "$_INFER_CACHE" ]; then
  _CACHE_AGE=$(( $(date +%s) - $(stat -f '%m' "$_INFER_CACHE" 2>/dev/null || stat -c '%Y' "$_INFER_CACHE" 2>/dev/null || echo 0) ))
  [ "$_CACHE_AGE" -lt 21600 ] && _NEEDS_CHECK="no"
fi

if [ "$_NEEDS_CHECK" = "yes" ]; then
  _SDK_LATEST=$(npm view @inferevents/sdk version 2>/dev/null || echo "unknown")
  _MCP_LATEST=$(npm view @inferevents/mcp version 2>/dev/null || echo "unknown")
  _SDK_INSTALLED=$(node -e "try{console.log(require('@inferevents/sdk/package.json').version)}catch{console.log('none')}" 2>/dev/null || echo "none")
  mkdir -p ~/.infer
  echo "{\"checked\":\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\",\"sdk_latest\":\"$_SDK_LATEST\",\"mcp_latest\":\"$_MCP_LATEST\",\"sdk_installed\":\"$_SDK_INSTALLED\"}" > "$_INFER_CACHE"
  echo "INFER_SDK_INSTALLED=$_SDK_INSTALLED INFER_SDK_LATEST=$_SDK_LATEST INFER_MCP_LATEST=$_MCP_LATEST"
else
  cat "$_INFER_CACHE"
  echo "INFER_CHECK=cached"
fi

If installed SDK version differs from latest, append this line at the END of your response: Infer update available — run /infer-upgrade to get the latest. Do NOT block or interrupt the workflow. Continue normally.

STEP ZERO: Project Summary First

Always call get_project_summary() first. This returns the compiled analytics wiki: health score, key metrics, event catalog, funnel performance, and active insight threads with annotations from previous investigations.

This gives you full context before diving into specifics. Present the summary to the user, then proceed to insights.

STEP ONE: Check ontology and insights

Call get_ontology() to see if events are classified into product categories (activation, engagement, monetization, referral, noise). If ontology exists, use it to:

  • Focus on activation and monetization events for funnel analysis
  • Skip "noise" events in health checks
  • Calculate activation rate = activation_events / total_signups
  • Weight insights by category (monetization issues > noise issues)

If no ontology exists, suggest: "Your events aren't categorized yet. Run /infer-tracking-plan or use update_ontology to classify them for richer insights."

STEP TWO: Get insights with thread context

Call get_insights() to check for pre-computed anomalies and notable patterns. The Infer backend detects these automatically every hour.

Insights now include thread context:

  • Day N — how long the issue has been ongoing
  • Note — findings from previous investigations (annotations)
  • Thread: thread_id — use this ID to annotate the thread after investigating

If insights exist, present them first, then decide whether the manual query sequence is still needed.

If get_insights returns "No new insights", proceed to the manual query sequence below. If it returns findings, present them and only run additional queries if the user asks for deeper analysis.

AFTER INVESTIGATING: Annotate the thread

After investigating any insight (running git log, querying events, checking code), always call annotate_thread(thread_id, content) to record your findings.

The thread_id is shown in the get_insights output. Your annotation will:

  • Appear in future get_insights briefings (as "Note:...")
  • Appear in get_project_summary under active threads (as "↳...")
  • Give the next agent (or your next session) immediate context

Example:

annotate_thread(
  thread_id: "t-abc-123",
  content: "Root cause: deploy abc123 removed OAuth callback URL from env vars"
)

Good annotations are specific and actionable:

  • "Root cause: deploy abc123 broke OAuth callback" ✓
  • "Seems like a problem" ✗
  • "Signup drop correlates with checkout error spike — likely same deploy" ✓
  • "Investigated, nothing found" — still useful, prevents re-investigation

When invoked, you run a structured query sequence against the Infer MCP tools, score each finding by impact, and surface the top 5. No questions asked. Just insights.

The Query Sequence

You have 3 tools. Run these 7 queries in order. Each builds on what you learn from the previous one.

Round 1: What's happening? (volume + trend)

Query 1 — Current activity

get_event_counts(event_name="page_view", time_range="last_7d")

This tells you: is anyone using the app at all? If zero, stop and say "No events recorded in the last 7 days. Either no users visited, or the SDK isn't set up correctly."

Query 2 — Core action volume

get_event_counts(event_name="signup", time_range="last_7d")

Then repeat for other likely core events: "purchase", "create", "submit", "invite", "complete". Use the event names you learned from the app's SDK integration (check src/lib/analytics.ts or similar). If you don't know the event names, try the common auto-tracked ones: "page_view", "session_start", "click", "form_submit", "error".

Query 3 — Previous period comparison Run the same queries from Q1 and Q2 but with the PREVIOUS 7 days:

get_event_counts(event_name="page_view", time_range={"start": "14 days ago ISO", "end": "7 days ago ISO"})

Calculate week-over-week change: ((current - previous) / previous) * 100

Round 2: Are users sticking? (retention)

Query 4 — Weekly retention

get_retention(start_event="signup", return_event="page_view", time_range="last_30d", granularity="week")

If "signup" returns empty, try "session_start" as the start event. This is the most important query. Retention is the single best proxy for product-market fit.

Query 5 — Activation check

get_event_counts(event_name="<core_action>", time_range="last_30d")

Compare to signup count in the same period. The ratio is your activation rate. activation_rate = core_action_users / signup_users

Round 3: What's broken? (errors + friction)

Query 6 — Error volume

get_event_counts(event_name="error", time_range="last_7d")

If count > 0, this is always worth surfacing. Errors are silent killers.

Query 7 — Churned user investigation Pick 2-3 users from the retention data who signed up but didn't return.

get_user_journey(user_id="<churned_user>", limit=30)

Look for: where did their journey end? What was the last thing they did? Did they hit an error? Did they bounce after one page?

Scoring Each Finding

After running the queries, you'll have raw data. Score each finding:

Impact Score = Surprise x Leverage x Confidence

Surprise (1-5): How unexpected is this?

  • 5: Completely unexpected (retention dropped 50% overnight)
  • 3: Notable but not shocking (signup rate up 20%)
  • 1: Expected / normal fluctuation

Leverage (1-5): Can someone act on this?

  • 5: Clear action ("users who complete onboarding retain 3x better" → improve onboarding)
  • 3: Directional ("traffic is growing" → keep doing what you're doing)
  • 1: Informational only ("most users are on Chrome")

Confidence (1-5): Is the data solid?

  • 5: Large sample (>100 users), consistent pattern
  • 3: Medium sample (30-100), clear signal
  • 1: Small sample (<30), noisy data

Multiply: Impact = Surprise x Leverage x Confidence. Rank. Take top 5.

Presenting Tool Output

CRITICAL: Do NOT reformat MCP tool results into markdown tables. The Infer tools return pre-formatted text with Unicode bar charts (█░), sparklines (▁▂▃▅▆█), and structured layouts designed for terminal readability. Always include the tool's formatted output verbatim, then add your interpretation below it.

Bad (don't do this):

| Event | Count | Users |
|-------|-------|-------|
| page_view | 9 | 6 |

Good (do this):

page_view   ████████████████████  8,420 (57%)
click       ████████████░░░░░░░░  3,210 (22%)

The bar charts, sparklines, and visual formatting ARE the product. Preserve them.

Output Format

Present insights in this exact format:

## Infer Insights — [Date]

**Data window:** [time range] | **Total events:** [N]

[Include raw tool output with bar charts here]

### 1. [Headline — the insight in one sentence]
**Impact: [score]/125** | Surprise: [N] | Leverage: [N] | Confidence: [N]

[2-3 sentences explaining what you found, what it means, and the suggested action.]

### 2. [Next insight]
...

### 3-5. [Remaining insights]
...

---
**Next check:** [When the next automated run is scheduled, if applicable]

Then you MUST call the AskUserQuestion tool to suggest next actions. Do NOT skip this step. Do NOT present options as plain text. You MUST use the tool.

Role-aware: Check the user's CLAUDE.md and conversation memory for role context. Adapt the options: PM → feature adoption, funnel. Growth → channels, conversion. Founder → PMF, retention. Engineer → errors, tracking. Default to founder framing.

Tip line: Append a tip after the question. Rotate these, don't repeat in a session: 💡 Tip: You can schedule this to run daily with /schedule so you never miss a spike 💡 Tip: Ask about a specific user's journey to see exactly where they got stuck 💡 Tip: Retention improving in newer cohorts? That's the strongest PMF signal 💡 Tip: Ask "what should I track?" and I'll read your codebase to suggest new events

Use AskUserQuestion. The question is:

Which insight do you want to dig into? 💡 Tip: [rotate from list above]

Pick 4 options tailored to the ACTUAL findings. Examples:

  • A) Investigate the retention drop — Look at churned user journeys to find where they fell off
  • B) Break down signups by source — See which channels are driving growth (or not)
  • C) Debug the error spike — Trace the errors to specific pages and user actions
  • D) Set up daily monitoring — Schedule automatic checks so you catch issues early

One option must always be about setting up automation (/schedule or /loop).

Insight Categories (what to look for)

Always check these (every run):

  • Volume trend: Are page views / signups / core actions up or down vs last period?
  • Retention health: What's week-1 and week-4 retention? Compare to benchmarks.
  • Error rate: Any errors? Trending up or down?

Surface these when detected:

  • Activation gap: Lots of signups but few core actions = broken onboarding
  • Leaky bucket: Growing signups but declining retention = acquiring users faster than keeping them
  • Power user pattern: Churned users vs retained users did different things in session 1
  • Concentration risk: 80%+ of activity from one source/country/segment
  • Silent failure: Errors spiking but no one noticed (because there's no dashboard)

Never surface these as insights:

  • Raw numbers without interpretation ("You had 1,247 page views")
  • Vanity metrics ("Total events is up!")
  • Findings with N < 10 (too noisy to be useful)
  • Obvious statements ("Most users visit the homepage first")

Interpretation References

For retention benchmarks, curve shape analysis, and framing guidance, read the infer://skill resource. It has:

  • B2C vs B2B retention benchmarks by week
  • What retention curve shapes mean
  • Small sample warnings
  • How to frame findings for non-technical users
  • What NOT to do (no causal claims, no small-sample extrapolation)

When You Don't Have Enough Data

If the app is new (< 7 days of data or < 50 total events):

## Infer Insights — [Date]

**Status:** Not enough data yet for meaningful insights.

**What I can tell you:**
- [N] total events recorded since [first event date]
- [N] unique users seen
- Events tracked: [list of event names found]

**What I need:**
- At least 7 days of data for trend analysis
- At least 50 users for retention analysis
- At least 30 users per cohort for reliable retention numbers

**Check back in [N] days.** I'll have something useful by then.

Even with limited data, you MUST still call the AskUserQuestion tool. Use AskUserQuestion:

Not enough data for insights yet, but here's what you can do now. 💡 Tip: Events need a few days to accumulate. Set up daily monitoring and you'll get notified when there's enough data.

Options:

  • A) Check what events are tracked — See which events the SDK is collecting right now
  • B) Add more tracking — Run /infer-tracking-plan to track key user actions in your codebase
  • C) Set up daily monitoring — Schedule automatic checks with /schedule so you don't have to remember
  • D) View a specific user's journey — Pick a user to see exactly what they did in your app

Automated Mode (via /schedule or /loop)

When triggered by a schedule:

  1. Call get_project_summary() first — this is pre-compiled and fast. It gives you health score, metrics, active threads, and prior annotations in one call.
  2. Call get_insights() only if the summary shows active issues (health < 8 or active_issues > 0). This avoids unnecessary API calls on quiet days.
  3. Call annotate_thread() if you discover anything during automated investigation.

Only notify the user if:

  1. Health score dropped below 7
  2. Any insight is severity "critical"
  3. Retention dropped > 10 percentage points vs previous period
  4. Error rate spiked > 2x vs previous period
  5. Zero events recorded (SDK may be broken)

For routine checks with no notable findings:

## Infer Pulse — [Date]
Health: [X]/10 | [N] events | [N] users | [N] active threads
All clear. Nothing unusual.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.16%
按下载量换算51

Claude

28.59%
按下载量换算43

Cursor

21.38%
按下载量换算32

Gemini CLI

10.16%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/infer-events/skills --skill infer-insights 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills