文档助手
- 作者仓库星标 23,256
- 作者更新于 实时读取
- 作者仓库 maui
- 领域
- AI 智能
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 88 / 100 · 社区维护
- 作者 / 版本 / 许可
- @dotnet · 未声明 license
- Token 消耗评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- macOS · Windows
- 底层运行要求
- 无特殊要求
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 网络行为
- 允许外网请求
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: agentic-labeler
description: >- Labeling rules for the dotnet/maui repository. These rules are the canonical source of truth…
category: AI 智能
runtime: 无特殊运行时
---
# agentic-labeler 输出预览
## PART A: 任务判断
- 适用问题:提示词、Agent 工作流、模型评估或自动化推理。
- 输入要求:目标材料、限制条件、期望输出和验收方式。
- 证据边界:围绕“🚨 Scope: area- and platform/ ONLY / Label discovery / Labeling rules”读取原文规则,不把推断写成作者承诺。
## PART B: 执行结果
- **01** 任务判断:确认你的需求是否属于提示词、Agent 工作流、模型评估或自动化推理,并标出输入、限制和预期结果。
- **02** 执行计划:优先按“🚨 Scope: area- and platform/ ONLY / Label discovery / Labeling rules”拆成步骤,说明每一步会读取什么、修改什么、产出什么。
- **03** 交付结果:给出可复制的命令、文件改动、检查清单或内容草稿,并说明如何继续迭代。
- **04** 风险边界:结合 读取文件、写入/修改文件、执行终端命令、会按任务需要访问外部网络、通常不需要额外 API Key 给出执行前确认项。
## Running Rules
- 读取文件、写入/修改文件、执行终端命令;会按任务需要访问外部网络;通常不需要额外 API Key。
- 先小样例验证,再放大到真实任务。
- 交付时同时给结果、检查口径和下一步迭代建议。 原文出现了 `/platform`、`/platforms`、`/handlers`、`/android`、`/ios` 这类斜杠命令;如果你的 Agent 支持命令触发,优先用命令开场,再补充目标和边界。
告诉 Agent 目标文件或材料、期望结果、不可改范围、是否允许联网或执行命令。本 Skill 的权限画像是:读取文件、写入/修改文件、执行终端命令。
先用一个小任务确认它会围绕“🚨 Scope: area- and platform/ ONLY / Label discovery / Labeling rules”工作;涉及文件或命令时,先看 diff、日志、预览或测试结果。
检查最终产物是否包含明确结果、必要证据和下一步动作;如果输出泛泛而谈,就补充输入、边界和验收标准后重跑。
---
name: agentic-labeler
description: >- Labeling rules for the dotnet/maui repository. These rules are the canonical source of truth…
category: AI 智能
source: dotnet/maui
---
# agentic-labeler
## 什么时候使用
- 把 AI / Agent方向的常用动作沉淀成 Agent 可调用的技能 适合处理AI Agent、提示词、模型评估与自动化推理,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免 Agent 泛泛回答。 把任务拆成可执行、可检查…
- 面向提示词、Agent 工作流、模型评估或自动化推理,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「🚨 Scope: area- and platform/ ONLY / Label discovery / Labeling rules」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件、执行终端命令;会按任务需要访问外部网络;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "agentic-labeler" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> 🚨 Scope: area- and platform/ ONLY / Label discovery / Labeling rules
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> 无特殊运行时 | 读取文件、写入/修改文件、执行终端命令 | 会按任务需要访问外部网络
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} Agentic Labeler
Labeling rules for the dotnet/maui repository. These rules are the canonical source of truth for how issues and PRs should be labeled. They are consumed by the agentic-labeler gh-aw workflow and can also be used standalone for batch evaluation or interactive labeling.
🚨 Scope: area-* and platform/* ONLY
The labeler applies only two label families, and nothing else:
- Exactly one
area-*— derived from the subject matter (control name, area like layout / navigation / xaml / infrastructure / etc.). Choose the single most specific match for the dominant subsystem; see the tie-breaking rules below. - One or more
platform/*— derived from changed-file platform conventions on PRs, or from explicit platform mentions on issues. Apply all that fit.
The labeler must NOT apply any other label, ever. Specifically, do not apply:
t/*(kind:t/bug,t/enhancement ☀️,t/docs 📝,t/breaking 💥,t/native-embedding,t/desktop,t/a11y, etc.) — the issue/PR author or other automation owns these.i/*(indicators:i/regression, etc.) — set during triage based on investigation, not initial content.s/*(status:s/needs-info,s/needs-repro,s/needs-verification,s/needs-attention,s/triaged,s/verified,s/no-repro,s/not-a-bug,s/duplicate 2️⃣,s/pr-needs-author-input, etc.) — managed bydotnet-policy-service[bot]and human triagers.p/*(priority:p/0,p/1,p/2,p/3) — set by maintainers.partner/*(e.g.,partner/syncfusion) — set by partner-tracking automation.perf/*(e.g.,perf/memory-leak 💦) — set during perf investigation.backport/*,regressed-in-*,version/*— set during triage / release management.untriaged,:watch: Not Triaged— applied by repo automation on issue open.- Anything else that is not literally an
area-*orplatform/*label.
If the only labels that clearly apply are not area-* or platform/*, noop instead — see the noop section below.
If neither an area-* nor a platform/* label clearly applies, noop.
Label discovery
- Fetch the current list of labels using the
list_labelMCP tool (provided by thelabelstoolset). Note the singular name — it islist_label, notlist_labels. - Important pagination caveat: the
list_labeltool only returns the first ~100 labels (no pagination). This repo has ~440 labels, so manyarea-*andplatform/*labels will be missing from the listing. If you have a strong candidatearea-*orplatform/*label name in mind that isn't in the listing, verify it exists with theget_labeltool before adding it. - Do not create new labels — only labels that already exist in the repository will be accepted.
Labeling rules
area-* label (issues and PRs) — exactly one
Apply exactly one area-* label. Pick the single most specific match for the dominant subsystem:
- Specific control mentioned → matching
area-controls-<name>(e.g.,CollectionView→area-controls-collectionview,Entry→area-controls-entry,Map/Maps→area-controls-map,Window→area-controls-window,WebView→area-controls-webview,HybridWebView→area-controls-hybridwebview). Always use thearea-controls-<name>prefix — never invent shorter aliases (e.g., the Maps area isarea-controls-map, notarea-maps). - Layout, measure/arrange, sizing issues →
area-layout. - Navigation, Shell routing, page navigation →
area-navigation(orarea-controls-shellwhen Shell-specific). - XAML parsing, markup extensions, XamlC, source generators →
area-xaml. - Hot reload, build, MSBuild, workload, project templates, tooling →
area-tooling,area-templates, orarea-setupas appropriate. - BlazorWebView / Blazor hybrid →
area-blazor. - Essentials APIs (non-UI: connectivity, sensors, preferences, etc.) →
area-essentials. - Drawing / Microsoft.Maui.Graphics →
area-drawing. - Gestures (tap, pan, swipe, pinch) →
area-gestures. - Lifecycle, hosting, app startup, DI →
area-core-lifecycle/area-core-hosting. - Dispatcher / main thread / threading →
area-core-dispatching. - Localization / RTL / culture →
area-localization. - Docs only →
area-docs. - CI, build pipelines, Maestro / dependency flow, branch mirroring, GitHub workflows, agentic-workflow / skill files (when these are the primary subject of the PR; see Mixed PRs below) →
area-infrastructure. This covers:[dnceng-bot]codeflow/branch-mirroring issues (the standard "Branch…can't be mirrored to Azdo" issues) →area-infrastructure(do not noop these — they have a clear area).- PRs touching only
.github/workflows/,.github/skills/,.github/scripts/,eng/pipelines/,eng/common/, or other CI/agent-infra files →area-infrastructure(prefer this overarea-tooling, which is for the dev-build/MSBuild/workload surface that ships to users). - Mixed PRs (infra-primary + small product edits): if the PR is dominated by CI/agent-infra changes but also has incidental edits to product code, still apply
area-infrastructure(and omit any productarea-*). If the product-code change is the focus and the infra change is incidental (e.g., a small workflow tweak that supports a feature), prefer the productarea-*label and omitarea-infrastructure.
Tie-breaking when multiple areas could apply — pick the single most specific:
- Specific control beats generic area.
area-controls-tabbedpageoverarea-navigation;area-controls-collectionviewoverarea-layout;area-controls-shelloverarea-navigation. - Sub-area beats parent area.
area-safeareaoverarea-layout;area-core-dispatchingoverarea-core-lifecycle. - Subject-matter focus beats incidental touch. If a PR fixes a CollectionView bug by adjusting layout code, the area is the control (
area-controls-collectionview), not the layout system. - When genuinely tied, prefer the area that names the user-visible feature over the implementation-detail area.
If after applying these heuristics there is still no single best fit, noop rather than apply two area labels.
platform/* labels
This is the most important behavior for PRs.
For pull requests, infer platform/* labels primarily from the changed files, using the rules below. Each rule maps a file pattern to one or more platform labels. Apply a platform/* label if any changed file matches that pattern. The path patterns intentionally target the established MAUI source-layout conventions — match the patterns in the table below (e.g., /Platform/<Name>/, /Platforms/<Name>/, /Handlers/*/<Name>/). Do not match on a bare top-level /Android/, /iOS/, /Windows/, or /MacCatalyst/ segment that is not part of one of the patterns in the table — bare segments occur in templates, docs, and unrelated tooling paths and are not platform-specific source code.
Note on iOS / MacCatalyst: file-extension patterns and directory patterns map differently because of MAUI's compilation conventions — they are split into separate rows below.
| File pattern (changed in the PR) | Label(s) to apply |
|---|---|
*.android.cs, *.Android.cs, paths containing /Platform/Android/, /Platforms/Android/, /AndroidNative/, or handler subdirectories like /Handlers/*/Android/ |
platform/android |
*.ios.cs, *.iOS.cs (file-extension pattern — these compile for both iOS and MacCatalyst) |
platform/ios and platform/macos |
Paths containing /Platform/iOS/, /Platforms/iOS/, or handler subdirectories like /Handlers/*/iOS/ (directory pattern — these compile only for the iOS TFM) |
platform/ios only |
*.maccatalyst.cs, *.MacCatalyst.cs, paths containing /Platform/MacCatalyst/, /Platforms/MacCatalyst/, or handler subdirectories like /Handlers/*/MacCatalyst/ |
platform/macos |
*.windows.cs, *.Windows.cs, paths containing /Platform/Windows/, /Platforms/Windows/, or handler subdirectories like /Handlers/*/Windows/ |
platform/windows |
*.tizen.cs, paths containing /Platform/Tizen/, /Platforms/Tizen/ |
platform/tizen |
Notes:
- If a PR touches only shared / cross-platform code (e.g.,
src/Core/src/*.cswithout a platform suffix, orsrc/Controls/src/Core/), do not apply anyplatform/*label. - If a PR touches multiple platforms, apply each matching
platform/*label. .ios.csfiles compile for both iOS and MacCatalyst (see split table rows above)..maccatalyst.csfiles do not compile for iOS — apply onlyplatform/macosfor those.
For issues, infer platform/* labels only if the reporter clearly indicates a platform (explicit mention of Android / iOS / macOS / Windows / Tizen in the title, body, or attached logs/stack traces). Do not guess. If the report says "all platforms" or doesn't specify, apply no platform/* label.
When to noop (no labels)
Some items should not be labeled. If any of the following apply, skip labeling entirely:
- Automated inter-branch merge PRs — titles like
[automated] Merge branch 'main' => 'net11.0'or similar bot-created merge PRs. These are infrastructure, not feature/bug work. - Dependency bump PRs that already have
dependenciesandarea-infrastructurelabels. - Items where no
area-*orplatform/*label clearly fits — when the content is too vague or ambiguous to determine area or platform with confidence, or when the only labels that would apply are outside the allowedarea-*/platform/*scope.
⚠️ Do NOT noop
[dnceng-bot]codeflow/branch-mirroring issues. Despite being bot-authored, they have a clear area (area-infrastructure) and should be labeled, not noop'd. The noop rule for automated PRs above is specifically about[automated] Merge branch …titles.
What NOT to do
- Do not apply any label that is not literally
area-*orplatform/*. Not/*,i/*,s/*,p/*,partner/*,perf/*,backport/*,regressed-in-*,version/*,untriaged,:watch: Not Triaged, or anything else. See the "Scope" section at the top for the full prohibition. - Do not create new labels — apply only labels that already exist in the repository.
- Do not add
platform/*labels to PRs that don't touch platform-specific files. - Do not post a comment summarizing the labels — labels speak for themselves.
- Do not close, lock, or otherwise modify the issue/PR beyond labeling.
- Do not label automated merge PRs — these are infrastructure, not actionable items.
- Be conservative; precision beats recall. Only apply
area-*orplatform/*labels that clearly fit.
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核