Forecast 标志

Forecast

组织
microsoft
forecast

根据 Dataverse 中的销售机会数据生成加权销售预测。按销售人员和团队计算承诺、最佳情况和销售管道预测;与配额进行比较,并标记风险和增长机会。当用户询问“我的预测是什么”“季度预测”“销售管道预测”“我的销售额离目标还有多远”“预测报告”“我能完成配额吗”“销售额预测”或“收入预测”时使用。

Add to TypingMind

概览

发布者microsoft
代码仓库dataverse-business-skills
技能名称forecast
星标数
52
复刻数
9
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 microsoft 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Forecast AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/microsoft/dataverse-business-skills/tree/main/skills/forecast
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/microsoft/dataverse-business-skills.git /tmp/dataverse-business-skills
mkdir -p .claude/skills
cp -r /tmp/dataverse-business-skills/skills/forecast .claude/skills/forecast
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Forecast,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Forecast。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Forecast 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Forecast

Sales forecasting requires aggregating pipeline data across reps, applying probability weighting, and identifying where the number is at risk or has upside. This skill automates that process from Dataverse opportunity records — producing a structured forecast with committed, best-case, and pipeline totals broken down by owner and by forecast category, with risk and upside annotations.

Instructions

Step 1: Define Forecast Parameters

Accept input from the user:

  • Period: Current quarter (default), next quarter, current month, or custom date range
  • Scope: Individual rep, team/manager rollup, or full organization
  • Owner filter: Specific systemuserid, team, or all
  • Currency: Use organization default

Calculate period boundaries:

  • Current quarter start/end based on today's date and fiscal calendar
  • Period start: [quarter_start]T00:00:00Z
  • Period end: [quarter_end]T23:59:59Z
Step 2: Fetch Open Opportunities in Period
SELECT opportunityid, name, estimatedvalue, estimatedclosedate, closeprobability,
       salesstage, msdyn_forecastcategory, ownerid, customerid, accountid,
       budgetstatus, decisionmaker, need, purchasetimeframe, purchaseprocess,
       createdon, modifiedon, description
FROM opportunity
WHERE statecode = 0
AND estimatedclosedate >= '[period_start]'
AND estimatedclosedate <= '[period_end]'
ORDER BY ownerid, estimatedvalue DESC

Apply owner filter if specified.

Step 3: Fetch Already-Closed Deals in Period

Won this period (actuals):

SELECT opportunityid, name, estimatedvalue, actualclosedate, ownerid, customerid
FROM opportunity
WHERE statecode = 1
AND actualclosedate >= '[period_start]'
AND actualclosedate <= '[period_end]'
ORDER BY ownerid, actualclosedate DESC

Lost this period (for win rate context):

SELECT COUNT(opportunityid) as lost_count, SUM(estimatedvalue) as lost_value, ownerid
FROM opportunity
WHERE statecode = 2
AND actualclosedate >= '[period_start]'
AND actualclosedate <= '[period_end]'
GROUP BY ownerid
Step 4: Segment by Forecast Category

Group open opportunities by msdyn_forecastcategory:

Forecast category values:

CodeLabelDescription
100000001PipelineEarly stage, uncertain
100000002Best CasePossible with favorable conditions
100000003CommittedRep has high confidence in close
100000004OmittedExcluded from forecast
100000005WonAlready closed won (use for actuals)
100000006LostAlready closed lost

For each category, calculate:

  • Count of opportunities
  • Total value (sum of estimatedvalue)
  • Weighted value (sum of estimatedvalue × closeprobability / 100)

Run separate queries per category:

Committed:

SELECT COUNT(opportunityid) as count, SUM(estimatedvalue) as total,
       ownerid
FROM opportunity
WHERE statecode = 0
AND msdyn_forecastcategory = 100000003
AND estimatedclosedate >= '[period_start]'
AND estimatedclosedate <= '[period_end]'
GROUP BY ownerid

Repeat for Best Case (100000002) and Pipeline (100000001).

Step 5: Calculate Weighted Forecast

For each opportunity, compute:

  • Committed: Use full estimatedvalue (rep has high confidence)
  • Best Case: estimatedvalue × closeprobability / 100
  • Pipeline: estimatedvalue × closeprobability / 100

Total forecast by rep:

  • Forecast = Won (actuals) + Committed (full value) + Best Case (weighted)
  • Upside = Pipeline weighted value above Committed + Best Case
  • Gap to quota = Quota − Forecast (if quota data available)

Note: Quota data may be stored in msdyn_quotas or msdyn_forecastconfiguration if Sales Insights forecasting is enabled. Query if available:

SELECT msdyn_forecastdefinitionid, msdyn_forecastdefinitionname, msdyn_quotasource
FROM msdyn_forecastdefinition
WHERE statecode = 0

If quota is not in Dataverse, accept as a user-provided input.

Step 6: Check Forecast Accuracy Signals

For each deal in Committed category, validate:

Red flags (may deflate number):

  • No activity in last 7 days (check activitypointer)
  • Close date in current week but stage is Qualify or Develop
  • Budget not confirmed (budgetstatus = 0 or 1)
  • Decision maker not identified (decisionmaker = false/null)
  • Close date has slipped before (compare createdon to estimatedclosedate gap)

Upside signals (may inflate number):

  • Deal in Best Case with strong qualification (BANT score ≥ 8/10)
  • Deal with recent positive activity (meeting or call in last 3 days)
  • Accelerated stage velocity (moved two stages in less than 2 weeks)
Step 7: Calculate Activity Recency for Each Deal

For each Committed and Best Case opportunity:

SELECT TOP 1 activityid, activitytypecode, actualend, subject
FROM activitypointer
WHERE regardingobjectid = '[opportunityid]'
AND statecode = 1
ORDER BY actualend DESC

Flag if last activity > 7 days ago for Committed deals.

Step 8: Generate Forecast Report
SALES FORECAST REPORT
Period: Q[n] [Year] ([Start Date] – [End Date])
Scope: [Rep Name / Team / Organization]
Generated: [Today's Date]
═══════════════════════════════════════════════════════════

PERIOD SUMMARY
───────────────────────────────────────────────────────────
Quota:            $[quota]
Won (Actuals):    $[won_value]    ([n] deals)
Committed:        $[committed]    ([n] deals)
Best Case:        $[best_case_w]  ([n] deals, weighted)
Pipeline:         $[pipeline_w]   ([n] deals, weighted)
─────────────────────────────────────────────
Total Forecast:   $[won + committed + best_case_weighted]
Upside Potential: $[pipeline_weighted]
Forecast vs Quota: [n]% | [Gap: $X above/below]

FORECAST BY REP
───────────────────────────────────────────────────────────
Rep Name          | Quota    | Won     | Commit  | Best    | Fcst    | vs Quota
[Rep 1]           | $[quota] | $[won]  | $[com]  | $[bc]   | $[tot]  | [+/-n]%
[Rep 2]           | $[quota] | $[won]  | $[com]  | $[bc]   | $[tot]  | [+/-n]%

COMMITTED DEALS ([n] deals, $[value])
───────────────────────────────────────────────────────────
🟢 [Deal Name] — $[Value] | [Stage] | Close: [Date] | Rep: [Name]
   Last activity: [n] days ago | BANT: [score]/10

⚠️  [Deal Name] — $[Value] | [Stage] | Close: [Date] | Rep: [Name]
   ⚠️ No activity in 14 days | Budget not confirmed

BEST CASE DEALS ([n] deals, $[weighted_value] weighted)
───────────────────────────────────────────────────────────
[Deal Name] — $[Value] ([prob]%) = $[weighted] | [Stage] | Close: [Date]
...

PIPELINE (Unweighted: $[value] | Weighted: $[weighted])
───────────────────────────────────────────────────────────
[n] deals in pipeline category for period
Top 3 by value: [Deal 1], [Deal 2], [Deal 3]

FORECAST RISKS
───────────────────────────────────────────────────────────
🔴 [Deal Name] — $[Value] | Committed but no activity in [n] days
🔴 [Deal Name] — $[Value] | Close date today, stage = Qualify
🟡 [Deal Name] — $[Value] | Budget unconfirmed, in Committed

UPSIDE OPPORTUNITIES
───────────────────────────────────────────────────────────
⬆️  [Deal Name] — $[Value] | Best Case, BANT 9/10, meeting 2 days ago
⬆️  [Deal Name] — $[Value] | Pipeline, strong qualification, close date pull-in possible

RECOMMENDED ACTIONS
───────────────────────────────────────────────────────────
1. [Rep Name] — call [Deal Name] today; no activity in [n] days, closes this week
2. Move [Deal Name] from Committed to Best Case — budget not confirmed
3. Accelerate [Deal Name] — strong signals, could be a pull-in to this quarter
═══════════════════════════════════════════════════════════

Output Format

Deliver a three-part output:

  1. Executive summary — one-line forecast vs quota
  2. Tabular rep rollup — every rep's committed / best case / forecast vs quota
  3. Deal-level detail — Committed and Best Case deals with health signals, risks, and upside

Example Interaction

User Input: "Generate the Q1 2026 forecast for the West team."

Skill Output:

SALES FORECAST — Q1 2026 | West Team
═══════════════════════════════════════════════════════════
Quota: $1,200,000
Won (Actuals): $380,000 (32% attainment)
Committed: $420,000 | Best Case: $180,000 (w) | Pipeline: $95,000 (w)
Total Forecast: $980,000 — 82% of quota
Gap to close: $220,000

FORECAST BY REP
─────────────────────────────────────────────────────
Sarah J.  | $400K quota | $150K won | $180K commit | Fcst: $370K | 93%
Mike P.   | $400K quota | $120K won | $140K commit | Fcst: $295K | 74% ⚠️
Lisa C.   | $400K quota | $110K won | $100K commit | Fcst: $245K | 61% 🔴

RISKS
🔴 Northwind ($85K, Committed) — no activity 12 days, close date March 3
🟡 Fabrikam ($42K, Committed) — budget unconfirmed

UPSIDE
⬆️ Alpine Ski ($65K, Best Case) — BANT 9/10, meeting yesterday

Dataverse Tables Used

TablePurpose
opportunityPipeline data, categories, and values
activitypointerActivity recency per deal
accountAccount name for display
systemuserRep names and rollup
msdyn_forecastdefinitionQuota data (if Sales Insights enabled)

Key Fields Reference

opportunity:

  • estimatedvalue (MONEY) - Deal value
  • estimatedclosedate (DATE) - Expected close
  • closeprobability (INT) - Win probability % (0-100)
  • msdyn_forecastcategory (CHOICE) - Pipeline(100000001), Best Case(100000002), Committed(100000003), Omitted(100000004), Won(100000005), Lost(100000006)
  • salesstage (CHOICE) - Qualify(0), Develop(1), Propose(2), Close(3)
  • statecode (STATE) - Open(0), Won(1), Lost(2)
  • ownerid (LOOKUP) - Assigned rep (systemuser)

Configurable Parameters

  • Forecast period (default: current quarter)
  • Committed weighting method (full value vs probability-weighted)
  • Activity recency alert threshold for Committed deals (default: 7 days)
  • Minimum deal size to include in report (default: $0)
  • Quota source (Dataverse table or user-provided input)
  • Coverage ratio warning threshold (default: below 3x pipeline to quota)

Examples

Example 1: Personal Forecast

User says: "What's my forecast for this quarter?"

Actions:

  1. Determine current quarter boundaries
  2. Query open opportunities for current user
  3. Segment by forecast category
  4. Calculate weighted totals
  5. Flag risks and upside

Result:

Q1 2026 FORECAST - Sarah Johnson

QUOTA: $400,000

ACTUALS (Won): $150,000 (38%)
COMMITTED: $180,000
BEST CASE: $65,000
PIPELINE: $120,000

WEIGHTED FORECAST: $370,000 (93%)
GAP TO QUOTA: $50,000

RISKS:
🟡 Northwind ($85K) - no activity 12 days
🟡 Fabrikam ($42K) - budget unconfirmed

UPSIDE:
⬆️ Alpine Ski ($65K) - BANT 9/10, strong momentum

Example 2: Team Forecast Rollup

User says: "Show me the team forecast"

Actions:

  1. Query all reps reporting to current user (or team)
  2. Aggregate opportunities by owner
  3. Compare each rep to quota
  4. Generate team summary with risk indicators

Result:

Q1 2026 TEAM FORECAST

TEAM TOTAL: $1.2M quota | $910K forecast | 76%

BY REP:
| Rep      | Quota  | Won    | Commit | Fcst   | %   |
|----------|--------|--------|--------|--------|-----|
| Sarah J. | $400K  | $150K  | $180K  | $370K  | 93% |
| Mike P.  | $400K  | $120K  | $140K  | $295K  | 74% ⚠️|
| Lisa C.  | $400K  | $110K  | $100K  | $245K  | 61% 🔴|

AT RISK: Lisa C. needs $155K more to hit quota
COVERAGE: Mike P. has only 2.1x pipeline (below 3x threshold)

Example 3: Next Quarter Planning

User says: "What's the pipeline look like for Q2?"

Actions:

  1. Calculate Q2 date boundaries
  2. Query opportunities with Q2 close dates
  3. Analyze coverage and stage distribution
  4. Generate forward-looking view

Result:

Q2 2026 PIPELINE PREVIEW

OPEN PIPELINE: $850,000 (32 deals)

BY CATEGORY:
Committed: $120K (early commits)
Best Case: $280K
Pipeline: $450K

STAGE DISTRIBUTION:
| Stage    | Count | Value  |
|----------|-------|--------|
| Qualify  | 12    | $180K  |
| Develop  | 14    | $420K  |
| Propose  | 6     | $250K  |

COVERAGE: 2.1x to Q2 quota ($400K)
⚠️ ALERT: Need $350K more qualified pipeline by April 1

Troubleshooting

Error: Quota data not available

Cause: msdyn_forecastdefinition table not configured or empty Solution:

  • Ask user to provide quota amount manually
  • Display forecast totals without % to quota
  • Note that Sales Insights forecasting not enabled

Error: Forecast categories not populated

Cause: Reps not setting msdyn_forecastcategory on opportunities Solution:

  • Fall back to probability-based categorization
  • 80% = Committed, 50-80% = Best Case, <50% = Pipeline

  • Recommend enabling forecast category enforcement

Error: Stale pipeline data

Cause: Many deals have old modifiedon dates Solution:

  • Flag deals not updated in 30+ days
  • Recommend pipeline hygiene review
  • Apply discount factor to stale deals in weighted calc

常见问题

Forecast AI 技能有什么作用?

根据 Dataverse 中的销售机会数据生成加权销售预测。按销售人员和团队计算承诺、最佳情况和销售管道预测;与配额进行比较,并标记风险和增长机会。当用户询问“我的预测是什么”“季度预测”“销售管道预测”“我的销售额离目标还有多远”“预测报告”“我能完成配额吗”“销售额预测”或“收入预测”时使用。

为什么在 TypingMind 中使用 Forecast?

因为您只需安装一次,就能搭配任何模型使用。Forecast 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Forecast?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/microsoft/dataverse-business-skills/tree/main/skills/forecast。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Forecast?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Forecast 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Forecast 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Forecast AI 技能免费吗?

是的。microsoft 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇