AGENT SKILL

Fabric 需求发现与项目初始化

fabric-discover

收集需求信息(项目名称 + 问题陈述)、搭建项目脚手架、推断架构信号,并产出发现简报(Discovery Brief)。这是默认的首个技能——对于任何描述数据、分析、报表或集成问题的新用户请求都要调用它,无论其表述方式如何。信号映射器负责关键词匹配;路由只需先把用户引导到这里。有疑问时,调用 fabric-discover——误判的需求收集可以纠正;自行发挥的回答则不可挽回。常见触发词包括「IoT 传感器」「批处理 ETL」「实时分析」「数据仓库」「合规」「仪表板」「流式处理」「我们需要分析」或「哪种任务流适合我的需求」,但任何对数据问题的描述都符合条件。不用于架构设计(使用 fabric-design)、部署(使用 fabric-deploy)或验证(使用 fabric-test)。

License 许可
MIT
最近更新
2026-05-22
Stars
★ 50
Forks
16

01 前言 Front Matter

name
fabric-discover
description
Collects intake (project name + problem statement), scaffolds the project, infers architectural signals, and produces a Discovery Brief. This is the DEFAULT first skill — invoke it for ANY new user request that describes a data, analytics, reporting, or integration problem, no matter how it is phrased. The signal mapper handles keyword matching; routing just needs to get the user here first. When in doubt, invoke fabric-discover — a false-positive intake is recoverable; a freelanced answer is not. Common triggers include "IoT sensors", "batch ETL", "real-time analytics", "data warehouse", "compliance", "dashboard", "streaming", "we need analytics", or "what task flow fits my needs", but any description of a data problem qualifies. Do NOT use for architecture design (use fabric-design), deployment (use fabric-deploy), or validation (use fabric-test).

02 资源文件 4

03 SKILL.md 正文

Fabric Discovery

Instructions

Step 1: Collect Intake

If the problem statement and project name are already provided (e.g., from auto-chain), use them directly — do NOT re-ask.

Otherwise, ask the user for:

  • Project name — short, creative, descriptive. You MAY suggest examples, but MUST NOT proceed until the user explicitly confirms one.
  • Problem statement — "What problems does your project need to solve?"

Step 2: Scaffold and Review Signals

python _shared/scripts/run-pipeline.py start "Project Name" --problem "problem statement text"

The start command runs signal-mapper.py as pre-compute — review its output above. Do NOT run signal-mapper.py again manually.

Step 2b: Run the Semantic Capability Mapper

The lexical signal mapper handles vocabulary; the capability mapper handles intent → required Fabric items. It catches what users mean even when they don't use the literal keywords (e.g., "mountain of data to put in data scientists' hands" → Notebook + Lakehouse).

python .github/skills/fabric-discover/scripts/capability-mapper.py \
  --project <project> \
  --text-file _projects/<project>/.problem-statement.txt \
  --emit-prompt-bundle \
  --format json

Exit code handling:

  • Exit 0 — deterministic coverage met. Output already includes required_capabilities and required_items. Move to Step 3.
  • Exit 2 — coverage below threshold. The script wrote _projects/<project>/docs/.capability-llm-prompt.json containing the problem text + candidate intents. You (the agent) MUST:
    1. Read the prompt bundle.
    2. For each candidate_intents[*], decide if the problem text actually expresses that intent. Be conservative — only return high/medium-confidence intents and cite a short quote in rationale.
    3. Persist the response:
      python .github/skills/fabric-discover/scripts/capability-writer.py \
        --project <project> --response-file <path-to-your-json>
      
      (Or --response-json '{...}' for inline.)
    4. Re-run capability-mapper.py (omit --emit-prompt-bundle) — it now merges your LLM intents with deterministic ones and exits 0.

The output is cached at _projects/<project>/docs/.capability-llm-cache.json keyed by (problem_hash, registry_version) — same inputs produce the same merged result indefinitely.

Step 3: Close 4 V's Gaps (loop until confidence floor met)

For each V not already stated in the problem statement, ask the user one at a time via ask_user. Do NOT proceed to Step 4 with any V still unknown.

V What to Assess
Volume Size per load/day
Velocity Batch / near-real-time / real-time
Variety Sources: DBs, files, APIs, streaming
Versatility Low-code / code-first / mixed

If the signal mapper generated follow-up questions, use them as templates.

Once all four V's are resolved, persist them:

python .github/skills/fabric-discover/scripts/intake-writer.py \
  --project <project> \
  --volume "<value>"       --volume-source user|inferred \
  --velocity "<value>"     --velocity-source user|inferred \
  --variety "<value>"      --variety-source user|inferred \
  --versatility "<value>"  --versatility-source user|inferred

Use --*-source user when the user stated the value, inferred when they deferred to your best guess. If confidence_floor_met is false in the output, loop back and ask more questions.

Step 4: Render the Deterministic Discovery Summary

python _shared/scripts/run-pipeline.py discovery-summary --project <project>

Copy-paste the entire rendered block into your chat response as a fenced code block — the user cannot see tool output directly.

After the block, ask_user with three choices:

  • Confirm — proceed to write the Discovery Brief (Step 5).
  • Correct — capture corrections; re-run intake-writer.py with updated values, then re-render.
  • Restart — abandon and re-collect the problem statement.

Step 5: Produce Discovery Brief

Write to _projects/[name]/docs/discovery-brief.md (file is pre-scaffolded — replace full content via edit tool):

## Problem Statement
[user's exact words]

### Inferred Signals
| Signal | Value | Confidence | Source |

### 4 V's Assessment
| V | Value | Confidence | Source |

### Confirmed with User
- [confirmations/corrections]

### Architectural Judgment Calls
- [max 20 words each]

Constraints

  • Use signal-mapper.py for all signal lookups — do not access registry files directly
  • Use intake-writer.py to persist 4 V's — do not hand-edit .discovery-intake.json
  • Step 4 recap MUST be rendered via run-pipeline.py discovery-summary — never improvise the block
  • Discovery Brief: max 60 lines
  • Signal table cells: max 15 words
  • Architectural Judgment Calls: max 20 words each
  • Integration-first: assume coexistence unless user says migrate
  • Never recommend a final task flow — suggest candidates only

04 同仓库更多 Skills

microsoft
microsoft/fabric-task-flows

会话交接文档生成

handoff

将当前对话压缩整理为交接文档,供另一个智能体(agent)接手继续工作。

知识工作者会话上下文交接
★ 50
microsoft
microsoft/fabric-task-flows

方案质询与文档更新

grill-with-docs

质询会话:依据现有领域模型挑战你的方案、精炼术语,并随着决策逐步明确即时更新文档(CONTEXT.md、ADRs)。当用户希望依据项目自身的术语和已记录的决策对方案进行压力测试时使用。

系统架构师方案质询与决策压力测试
★ 50
microsoft
microsoft/fabric-task-flows

测试计划与部署验证

fabric-test

QA 技能——从可测试性角度审查架构、根据验收标准创建测试计划,并验证部署。当用户说 “create test plan”、“validate deployment”、“run validation”、“review architecture”、“check items”、“what should we test”,或在架构定稿或部署完成后使用。不用于架构设计(使用 fabric-design)或部署(使用 fabric-deploy)。

测试工程师测试与质量保障
★ 50
microsoft
microsoft/fabric-task-flows

Signal Mapper 覆盖自愈

fabric-heal

通过迭代生成问题以及关键词/能力补丁,提升 signal mapper 关键词覆盖率和能力覆盖率(ADR-0002)的自愈技能。当用户说 “heal signal mapper”、“improve keyword coverage”、“improve capability coverage”、“generate problem statements”、“run healing loop”、“patch signal mapper”,或询问 “signal mapper gaps”、“capability gaps” 时使用。不用于项目架构或部署。

AI 工程师智能体开发
★ 50
microsoft
microsoft/fabric-task-flows

项目简报文档生成

fabric-document

将所有流水线交接成果综合为一份人类可读的项目简报。当用户说 “generate docs”、“create documentation”、“document the project”,或在验证通过后使用。不用于部署(使用 fabric-deploy)或架构设计(使用 fabric-design)。

技术文档工程师技术文档编写
★ 50
microsoft
microsoft/fabric-task-flows

Microsoft Fabric 架构设计

fabric-design

架构师(Architect)技能——设计 Microsoft Fabric 架构并产出最终的架构交接成果。当用户说「设计架构」「采用哪种任务流」「medallion 还是 lambda」「创建架构」,或询问 Fabric 架构模式时使用。不用于部署(使用 fabric-deploy)、测试(使用 fabric-test)或需求发现(使用 fabric-discover)。

云架构师云解决方案架构设计
★ 50