AGENT SKILL

on-device-delegate

Saves cloud-model context by briefing one bounded, read-heavy sub-task (more than about 25 KB of prose, or many files that no single command can answer) to the local-coding plugin's on-device worker, which runs on the local MAI Code 1.1 Flash model. Use for log and test triage, summarizing many files, or extracting facts from large inputs. When the user names this skill, call the skill tool in the same response as your first other tool call, never as a separate step.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 4.1w
Forks
5.4k

01 前言 Front Matter

name
on-device-delegate
description
Saves cloud-model context by briefing one bounded, read-heavy sub-task (more than about 25 KB of prose, or many files that no single command can answer) to the local-coding plugin's on-device worker, which runs on the local MAI Code 1.1 Flash model. Use for log and test triage, summarizing many files, or extracting facts from large inputs. When the user names this skill, call the skill tool in the same response as your first other tool call, never as a separate step.
compatibility
GitHub Copilot CLI on Windows with experimental features on, MAI Code 1.1 Flash installed from /model, and the local-coding plugin installed (it provides the on-device worker agent).

02 资源文件 2

03 SKILL.md 正文

On-Device Delegate

Send the bulky reading in a task to the on-device worker, then check its answer once. The main session keeps planning and answering. The worker reads the big inputs on the local model, so they never enter the main context.

Steps

  1. Gate on what you would read. If one command or a short script can compute the answer, do it yourself now: no plan, no notes about this skill. Delegate only when you would otherwise READ more than about 25 KB of text into your context (prose, many files). Never delegate security review or design decisions.

  2. Check the worker. The worker is the custom agent local-coding:on-device-worker (the plugin id). If the task tool lists it as plain on-device-worker instead (copied into an agents folder), use that. If neither is available, work normally.

  3. Brief. Do not read the big input first. Make ONE task call:

    • name: "on-device-<short-kebab>"

    • description: 3-5 words

    • agent_type: the worker id from step 2

    • mode: "sync"

    • model: the on-device model id named in the session's routing line, exactly (if there is none: "winml-azureml-mai-code-1.1-flash-on-device/MAI-Code-1.1-Flash-On-Device"). The worker does not pin a model, so without this it runs on your own model.

    • prompt, exactly:

      GOAL: <one sentence>
      INPUTS: <exact paths>
      RULES: Read only INPUTS. At most 8 tool calls. Edit nothing but OUTPUT. No questions.
      OUTPUT: <file path and exact format, or: reply only>
      ANSWER: Reply ONCE with only <exact format>, then stop.
      If you cannot, reply only: UNABLE: <reason>
      
  4. Check once. At most ONE cheap check (format, a count, or one spot check). Never recompute the answer or re-read the input. If the answer is wrong, UNABLE, or the task call fails: do it yourself. Then finish.

Example

User: "Use the on-device-delegate skill. From the logs under logs\, list every distinct error message with its count, most frequent first."

Task prompt:

GOAL: Count each distinct error message in the logs.
INPUTS: logs\
RULES: Read only INPUTS. At most 8 tool calls. Edit nothing but OUTPUT. No questions.
OUTPUT: reply only
ANSWER: Reply ONCE with only lines of the form "<count> <message>", most frequent first, then stop.
If you cannot, reply only: UNABLE: <reason>

Check: confirm the lines match the format and spot-check one count with a single search. Then answer the user.

Limits

  • The worker can return a confident but wrong answer. The single check catches format errors, not every wrong fact. Tell the user what you checked.
  • Expect minutes, not seconds, per delegated task, especially on the first call while the local model loads.

Setup scripts

scripts/ holds two setup scripts for the user, described in the local-coding plugin README. They are not part of a task: never run them while you work on the user's request.

04 同仓库更多 Skills

github
github/awesome-copilot

sap-cloud-integration

SAP Cloud Integration (CPI, part of SAP Integration Suite) runtime-specific guidance for building and troubleshooting iFlows. Use when writing or reviewing CPI Groovy scripts, choosing headers vs. exchange properties, designing exception subprocesses, JMS retry, idempotency or data store patterns, or diagnosing adapter errors (SFTP, HTTP/OAuth, SOAP, IDoc, OData, AS2, Cloud Connector) from Message Processing Log (MPL) text. Not for SAP PI/PO, ABAP development, or generic Java/Groovy outside CPI.

★ 4.1w
github
github/awesome-copilot

scout-issue

Use when a developer wants to find the best GitHub issues to contribute to in a repository. Invoke with /scout-issue or ask to find good first issues, beginner-friendly issues, or open source work. Asks about experience level, technical skills, time, and contribution type, then searches GitHub issues, scores them, and presents ranked recommendations with match analysis.

★ 4.1w
github
github/awesome-copilot

supabase-rls-policies

Write, review, and test Supabase Row Level Security (RLS) policies so that one user cannot read or change another user's rows. Use when creating or changing tables, policies, views, or security definer functions in a Supabase project, when reviewing a migration that touches RLS, or when asked to prove user isolation with pgTAP tests that sign in as two users.

测试与质量Skill与智能体开发
★ 4.1w
github
github/awesome-copilot

skill-distribution-audit

Audit a skill collection before release or investigate installer omissions, archived/template leakage, duplicate identities, and manifest drift. Reconcile the intended public source set, distribution manifest, and actual discovery output for a specified consumer version. Includes a deterministic set-comparison helper.

Skill与智能体开发
★ 4.1w
github
github/awesome-copilot

logicapps-custom-code-net10-migration

Migrate Azure Logic Apps Standard local-function custom-code projects from .NET 8 to .NET 10. Use for legacy Logic Apps custom-code workspace upgrades, project/package configuration, custom-worker settings, publication, and integrated VS Code debugging. Not for ordinary .NET applications, standalone Azure Functions, Consumption workflows, or cloud deployment.

开发工程师
★ 4.1w
github
github/awesome-copilot

winmd-api-search

Find and explore Windows desktop APIs. Use when building features that need platform capabilities — camera, file access, notifications, UI controls, AI/ML, sensors, networking, etc. Discovers the right API for a task and retrieves full type details (methods, properties, events, enumeration values).

开发工程师后端与接口
★ 4.1w