Learning resourcesReviewed · GitHub

GitHub Copilot SDK: Custom skills (documentation page)

This is GitHub's documentation page on loading reusable skills (SKILL.md instruction folders) into GitHub Copilot SDK sessions, written for developers building apps on the SDK, and its main catch is that the skill-provider and supporting-files features are marked experimental while the page gives no pricing or licence terms. It covers file-based skills, disabling skills, an experimental provider API for serving skills from your own storage, built-in skill handling, reloading, combining skills with custom agents and MCP servers, limits and troubleshooting, with examples in TypeScript, Python, Go, .NET, Java and, for providers, Rust.

Researched 15 Nov 2026

In short.

This is GitHub's documentation page on loading reusable skills (SKILL.md instruction folders) into GitHub Copilot SDK sessions, written for developers building apps on the SDK, and its main catch is that the skill-provider and supporting-files features are marked experimental while the page gives no pricing or licence terms. A skill is a named directory with a SKILL.md markdown file whose text is injected into the Copilot session context; you point the SDK at skill directories when you create a session, and you can disable named skills. The page also documents an experimental provider interface (list skills and read skill) for serving skills from a database or other application storage, optional supporting files for provider skills, hard limits such as 1,024 skills per catalog and 30-second call timeouts, and trust and permission rules. Nothing was run, so every behaviour described here is the documentation's claim, not a tested result.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is the complete selected page at [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/copilot-sdk/features/skills], retrieved 15 November 2026 as one 35,455-byte text file. Pages it links to (the SDK quickstart, multi-tenancy and sessionFs guide, MCP guide, Java README and agentskills.io) were excluded, and so were the SDK and CLI source code. No licence text, pricing or SDK/CLI version numbers were provided. The page does specify relative compatibility requirements for provider supporting files. Nothing was executed: no SDK was installed, no sample code ran, and no skill was loaded. All behaviour described is what the documentation states.

The overview

What this resource is

This resource is a single page in GitHub Docs titled Custom skills, located under the Copilot SDK how-to features at [https://docs.github.com/en/copilot/how-tos/copilot-sdk/features/skills] (the reviewed text was retrieved from the docs API body endpoint for that path). It is documentation, not a software package: it explains a feature of the GitHub Copilot SDK rather than shipping code of its own.

The page defines skills as reusable prompt modules that extend Copilot's capabilities, loaded from directories to give Copilot specialised abilities for specific domains or workflows. The reviewed text is about 35 KB and contains code samples for TypeScript, Python, Go, .NET and Java, plus Rust samples in the provider section. The page text names no SDK version or release number.

The SDK packages it refers to include @github/copilot-sdk for Node.js, github.com/github/copilot-sdk/go for Go, GitHub.Copilot for .NET, com.github.copilot for Java and github_copilot_sdk for Rust. Those packages are not part of the reviewed page, so their contents and licences are not assessed here.

Overall assessment

As a reference for one specific feature, the page is detailed and concrete. It shows the same operation in several languages, gives the SKILL.md layout and frontmatter, states numeric limits and timeouts, explains what happens when things fail, and spells out trust and permission boundaries. An experienced SDK developer could plan an implementation from it without guessing at the main rules.

Its weaknesses are mostly omissions and a few rough edges. It gives no cost, licence, version or compatibility matrix for the SDK, it does not say how to install the SDK or authenticate, and it offers no evidence about how well skills improve Copilot's output. One inconsistency is worth knowing: the loading examples pass individual skill folders such as ./skills/code-review in skillDirectories, while the directory-structure section says the option points to the parent directory (for example ./skills) and that the CLI discovers SKILL.md files in immediate subdirectories. The page does not reconcile the two, so check which form your SDK version expects.

Net: a useful, specific how-to for developers already building on the Copilot SDK. It is less suited to someone who only wants a conceptual introduction to skills.

Who it is for

The main audience is developers building applications or services on the GitHub Copilot SDK who want to package instructions (code review rules, documentation style, release-note formats, domain knowledge) and reuse them across sessions or projects. The page names these uses: packaging domain expertise, sharing behaviours across projects, organising complex agent configurations and enabling or disabling capabilities per session.

The provider section targets teams running a service, such as a multi-tenant application that keeps skills in a database. The page links to multi-tenancy and server deployment guidance and recommends mode: empty as a baseline there, so operators of shared services are an intended reader.

Beginners can follow the plain-language definition of a skill, which is a folder with a markdown file of instructions. The code samples assume you already know how to create an SDK client and session and how permission handlers work. The quickstart the page links to was outside the reviewed scope. The page does not say whether the same SKILL.md files are used in other Copilot surfaces, such as editors, so that is unknown from this evidence.

What the documented feature can do

File-based skills: point the session at directories (skillDirectories in Node.js, skill_directories in Python, SkillDirectories in Go and .NET) and Copilot gets the skills found there. Each skill is a subdirectory with a SKILL.md file with optional YAML frontmatter. The documented frontmatter fields are name, used as the identifier and defaulting to the directory name, and description.

Selective disabling: a disabledSkills list (disabled_skills in Python) turns off named skills while keeping others active.

Skill providers (experimental): an application-supplied object with two operations, list skills (name, description, and optionally userInvocable, disableModelInvocation and argumentHint) and read skill (returns the markdown or a not-found result). Provider skills join the same catalog as file-based skills, the model loads them on demand through the skill tool, and users can invoke them like other skills. A provider skill with the same name as a file-based skill replaces it and produces a reload warning.

Supporting files (experimental): a listed provider skill can set a directory so the model is shown a base directory and related-files list and reads files with ordinary file tools. Scripts can run only when that folder is on local disk, not through a session filesystem.

Built-in skills: the runtime bundles built-in skills. In mode: empty the SDK excludes them by default, and includedBuiltinSkills lets you allow chosen ones. Custom skills remain usable in that mode.

Combinations: skills listed in a custom agent's skills field are eagerly preloaded into that agent's context, and skills can sit alongside MCP server configuration. Reloading is done through a skills.reload RPC.

Using it

What you need

From the page: one of the SDKs (Node.js, Python, Go, .NET or Java for the file-based examples; Rust also appears in the provider section) and a client and session created through the SDK. The loading examples configure permission handlers, and the page states that the permission handler decides every tool request. The text says the CLI discovers SKILL.md files, so a Copilot CLI is part of the runtime, and supporting files need a CLI at least as new as the SDK release that adds them. An older CLI rejects the whole skill catalog if any listed skill sets a directory.

Language-specific requirements for the experimental provider API: in .NET the provider types raise the GHCP001 diagnostic, which you suppress with #pragma warning disable GHCP001 or a project-level NoWarn setting. In Java the provider API is marked experimental and the consuming class or method must opt in with @AllowCopilotExperimental or compile with -Acopilot.experimental.allowed=true.

Not stated on the page: SDK installation steps, which CLI or SDK versions are needed for the base feature, the Copilot plan or account needed, and how authentication works. The examples name a model, gpt-5.4, but the page does not say which models are available to you.

How it works

A skill is a directory containing SKILL.md. When a skill is loaded, its markdown body is injected into the session context, so Copilot follows those instructions. The frontmatter name is the identifier, and the description is a short summary.

For file-based skills, directories are scanned when skills first load, including directories that are missing or empty at that point. Later filesystem changes do not refresh the catalog automatically. You call skills.reload on the session, or change the configured directories, to refresh it.

For provider skills, the runtime calls list skills when it loads the session's skills to get catalog metadata, and calls read skill only when a skill is actually loaded. The model loads provider skills on demand through the skill tool. Provider content may carry frontmatter. If it does, any omitted field inherits the listed value and any included field must match the listed value or the skill fails to load. allowed-tools is read only from frontmatter, and it does not grant permissions in SDK sessions: it is reported in the allowedTools field of the skill.invoked event, and your permission handler still decides every tool request.

With supporting files, the runtime lists the folder after read skill returns and tells the model the base directory and related files. The runtime itself never reads, copies or writes those files, and the model reads them with its normal file tools.

Lifecycle rules: a provider is bound to one session and is never persisted, so you pass it again when resuming (resuming without it removes it). Sub-agents use their parent session's provider. The runtime may call the provider concurrently, so both operations must be safe for concurrent use. Whether file-based skills are loaded eagerly or on demand is not fully spelled out beyond the statement that content is injected when a skill is loaded.

Setting it up

The documented path for file-based skills is: create a skills folder with one subfolder per skill, each holding a SKILL.md with name and description frontmatter and a markdown body; create the SDK client and a session with the skill directories and a permission handler; send a prompt; and call skills.reload after you add, edit or remove skills. For a provider, implement list skills and read skill, pass the provider when creating or resuming the session, and make sure names match the allowed pattern.

If a skill folder lives on local disk for a provider skill, the runtime treats it like a configured skillDirectories folder: reads under it skip the outside-workspace path prompt and sandboxed processes get read-only access, while reads still go to your permission handler. The page warns not to return a broad directory such as a home folder or a folder holding every tenant's files. With a session filesystem, the runtime adds no access, so your permission handler should approve reads under the folder and, if the sandbox is on, you add it to the sandbox readonlyPaths.

The page's best practices are to organise skills by domain, include name and description frontmatter, document tool or MCP server dependencies, test skills in isolation, and use relative paths. Its troubleshooting steps for skills not loading are to check that the path exists and contains subdirectories with SKILL.md files, check read permissions, check the markdown and YAML are well formed, and set logLevel to debug. For conflicting skills it suggests disabledSkills or reorganising directories.

None of these steps were carried out for this report.

Worked example from the page

The page's SKILL.md example is a code-review skill. Its frontmatter sets name: code-review and description: Specialized code review capabilities. Its body tells Copilot to check security vulnerabilities such as SQL injection and XSS, performance issues such as N+1 queries and memory leaks, code style, and test coverage, and to give specific line-number references and suggested fixes. A session created with that skill's directory and the prompt Review this code for security issues should then have those instructions in context, according to the page.

The provider example in TypeScript builds a small in-memory map with one skill, release-notes, described as Writes release notes in the team's format, with the body Group changes by feature area and link each pull request. listSkills returns the name and description, and readSkill returns the markdown or null. The provider is passed as skillProvider when creating the session.

A further example gives that provider a directory of /srv/skills/release-notes and returns a body telling the model to run python3 scripts/changelog.py and fill in templates/notes.md, which shows how supporting files are meant to be used. These are the page's samples. They were not executed, and the page presents no output from them.

Assessment & evidence

Limitations and risks

Experimental status: skill providers and supporting files are marked experimental, and the page says the API can change in future SDK releases. Cloud sessions do not support skill providers, and the SDK rejects the configuration before creating the session.

Documented limits: provider names must match ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$ and be unique ignoring case; a catalog holds at most 1,024 skills and 1 MiB of metadata; descriptions and argument hints are capped at 1,024 characters; each skill's markdown is capped at 1 MiB; each provider call must finish within 30 seconds. Folder listing for supporting files has a 15-second limit, hides build and dependency folders, summarises folders with more than 50 entries, skips files nested more than 10 folders deep, and shows at most 100 files.

Behavioural caveats: after conversation compaction the model keeps a provider skill's instructions but not its folder path, so the skill must be invoked again to show it. With a session filesystem, grep, glob and shell commands do not reach the files, so scripts cannot run. The Java SDK has no sessionFs, so Java providers use local disk. The text of errors your provider throws or returns is never forwarded into the conversation, and a failed read gives the model only a generic load failure. A failed reload keeps the last successful provider skills. File-based catalogs do not refresh by themselves.

Security considerations: the examples use permissive handlers such as approve-once or approveAll. Because skill content is trusted input and permission handlers decide every tool request, a real deployment needs a deliberate permission policy. Outside the sandbox, or inside the workspace, the model can write to a supporting-files folder unless your handlers refuse.

Documentation gaps: frontmatter is described in two places, with name and description in the file-format section and user-invocable, disable-model-invocation, argument-hint and allowed-tools only in the provider sections. The page also does not say how skill quality or effectiveness is measured, and it gives no benchmarks.

Reasoning behind this assessment

The positive judgement comes from how specific the page is. It gives loading and disabling samples in five languages, a complete SKILL.md example with frontmatter, provider implementations in six languages, and explicit rules: the provider name pattern, catalog and size caps, 30-second provider call timeouts, the 15-second folder-listing window, frontmatter matching rules, and lifecycle behaviour such as providers not being persisted across resumes. Where the page is silent (cost, licence, version numbers, installation, authentication), those items are marked unknown.

The fit judgements are inferences from what the page covers. Developers who already build on the Copilot SDK and want to package instructions get a clear explanation of the mechanism and its boundaries. Operators of shared services get specific guidance on trust, permissions and per-tenant folders. People who only want an introduction to skills may find the SDK-specific setup and permission details heavy, because the page assumes SDK knowledge.

The main inconsistency is between the loading examples, which pass individual skill folders in skillDirectories, and the directory-structure text, which says the option points to the parent folder. It matters because a reader who picks the wrong form could end up with a skill that does not load. The closest guidance the page offers is its troubleshooting step to check that the path contains subdirectories with SKILL.md files. The page also supplies no execution results, sample output or effectiveness benchmarks, so how much skills change Copilot's behaviour cannot be judged from it.

Alternatives and related options

The page itself points to neighbouring features. Custom agents carry a name, description and prompt, such as a security auditor focused on OWASP Top 10 issues, and can preload specific skills. A skill is lighter-weight text guidance that can be shared across agents and sessions, but sub-agents do not inherit skills from the parent unless you list them for each agent.

MCP servers (the example configures a local Postgres MCP server) supply external tools, and the page says skills can complement them. Skills are instructions, so for executable capability you would use tools or MCP servers, or supporting scripts that the model runs through its ordinary tools on local disk. The page also links to custom tools and to external guidance on using scripts in skills at [https://agentskills.io/skill-creation/using-scripts].

Comparisons with other vendors' skill or instruction mechanisms were not assessed, because the reviewed evidence contains none.

Evidence base and confidence

The evidence is the full text of the selected GitHub Docs page, one 35,455-byte file captured on 15 November 2026. It covers the overview, loading and disabling samples, the SKILL.md format, the experimental provider and supporting-files sections with their Rust samples, tables for SessionConfig skill fields, supporting-file directory fields, cancellation signals and reload calls, built-in skill handling under mode: empty, best practices, combinations with custom agents and MCP servers, and troubleshooting.

Limits: the page is GitHub's own documentation, so it describes intended behaviour, not observed results. It supplies no execution results, sample output or effectiveness benchmarks. No independent source, release notes, SDK source code or user reports are part of the evidence, and linked pages such as the quickstart, multi-tenancy guide, MCP guide and the Java README fall outside it. No code was executed and no SDK or CLI was installed, so real-world behaviour is unverified.

Access & freshness

Costs

The page states no prices, quotas or plan requirements, so the cost of using the SDK, the Copilot CLI or the models named in the examples is unknown from this evidence. Whether using skills changes billing or usage limits is also not stated.

As an inference, not a claim from the page: skill text injected into session context adds input for the model to process. The page does not quantify that, though it caps each provider skill's markdown at 1 MiB of UTF-8. A provider can use in-memory data or application storage. Any additional hosting or storage charges are unknown.

Rights and reuse

The reviewed text contains no licence statement, so the terms for reusing the page's text or sample code are unknown from this evidence, as are the licences of the SDK packages and the Copilot CLI. Nothing here grants redistribution rights, and no library file is offered for redistribution with this report.

The page does speak to trust and responsibility. It says to treat provider skills like skill directories, since their content is trusted input and the model follows a skill's instructions. It advises not to serve text that end users or other tenants can edit unless you would let them author a skill file, and to generate frontmatter yourself when building skills from user input. It also says your application owns the supporting-files folder, including its location, lifetime, cleanup and protection from model changes.

Freshness

The reviewed text was retrieved on 15 November 2026. The page text carries no publication or update date and no SDK or CLI version, so how current it is relative to the SDK releases is unknown.

Several parts are explicitly experimental and subject to change, and the page's compatibility note says supporting files need a Copilot CLI at least as new as the SDK release that adds them, without naming a version. The examples use a model name, gpt-5.4, that may change. Check the live page and your installed SDK and CLI versions before relying on any detail.

What to do next

If you build on the Copilot SDK, start with file-based skills: create one small skills folder with a single SKILL.md including name and description, load it in a session, and confirm which directory form (the parent folder or the individual skill folder) works with your SDK version. Use skills.reload after edits.

Before copying the samples into anything shared, replace the approve-once or approve-all permission handlers with a policy that fits your risk, particularly if skills reference scripts or files. Treat provider and supporting-files features as experimental, pin versions, and keep skill content under your control rather than user-editable.

Look elsewhere for what this page does not cover: pricing and plan requirements, SDK and CLI installation and authentication, licence terms for the SDK and the docs, and any evidence of how much skills improve results in your own tasks.

Evidence for this report

selected-page.txtselected · checked 2026-11-15