[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BCRC4ATFJDNK0ZA6A1F9E2":3,"skill-same:01M7BCRC4ATFJDNK0ZA6A1F9E2":86},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7BCRC4ATFJDNK0ZA6A1F9E2","add-knowledge",null,"Add a knowledge source (public website, SharePoint, OneDrive, or a locally uploaded file) to a locally-cloned Copilot Studio agentic-loop agent by writing the modern capabilities\u002Fknowledge YAML. Use when the user asks to add, attach, or ground a knowledge source (a public website, SharePoint or OneDrive link, or an uploaded file) on a locally-cloned Copilot Studio agent.","microsoft\u002FAgentHosting.Cli","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M7BCR6G7N1NS2AMC54WAFGN5",3,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgentHosting.Cli\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fmsagent-assistant\u002Fskills\u002Fadd-knowledge\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: add-knowledge\ndescription: Add a knowledge source (public website, SharePoint, OneDrive, or a locally uploaded file) to a locally-cloned Copilot Studio agentic-loop agent by writing the modern capabilities\u002Fknowledge YAML. Use when the user asks to add, attach, or ground a knowledge source (a public website, SharePoint or OneDrive link, or an uploaded file) on a locally-cloned Copilot Studio agent.\nmetadata:\n  argument-hint: A URL (website \u002F SharePoint \u002F OneDrive) or a local file path, plus an optional name\u002Fdescription\nallowed-tools: Read Write Glob Grep\n---\n\n# Add a Knowledge Source\n\nAdd one knowledge source to a locally-cloned Copilot Studio agentic-loop agent. This skill only\nauthors local files; it does not push or publish. Never invent behavior the files do not support.\n\nInitial request: $ARGUMENTS\n\n## 1. Resolve the target and input\n\n1. If an agent workspace was supplied, resolve that exact directory first and require its\n   root-level `settings.mcs.yml`. If it is missing, invalid, or ambiguous, stop and report the\n   supplied target; never substitute a discovered workspace. Only when no workspace was supplied,\n   auto-discover with `Glob: **\u002Fsettings.mcs.yml`. A cloned agentic-loop workspace contains\n   `settings.mcs.yml` at its root. **Never hardcode an agent name.**\n2. If none is found, tell the user this skill needs a **locally-cloned agentic-loop agent**. Direct\n   them to the `clone-agent` workflow, which uses `msagent agent create --agent-type MCSAgent` with\n   either `--mcs-clone-agent-id` or `--mcs-clone-agent-schemaname`, plus the source environment and\n   project root. Do not clone implicitly or bypass that workflow. Stop.\n3. If several are found, ask the user which agent to add the knowledge to.\n4. Read the agent's **`schemaName`** from `settings.mcs.yml` (e.g. `crbab_guitarcoach_dcF_b3`) — it is\n   the filename prefix for source-backed knowledge components.\n   Parse the settings with an available local YAML parser. Verify a versioned `cliagent-`\n   template and the GitHub Copilot harness: `configuration.authoringModel: CliCopilot` or\n   `configuration.recognizer.kind: CLICopilotRecognizer`. If another harness or a non-CLI\n   template is identified, stop before any writes. If identity is unknown, ask for\n   clarification; do not infer support from the schema name or folder alone.\n5. Extract the source URL or local file path, plus any requested name\u002Fdescription. Ask for missing\n   input; do not create directories or files yet.\n\n## 2. Select and load the authoring contract\n\nRead only the references required for the selected source, completely, before writing any YAML or\ncopying any payload. Resolve every reference from this skill's own directory, never from a plugin\nroot or sibling skill. If a required reference cannot be read, stop and report its path.\n\nEvery source requires [common schema and naming rules](references\u002Fknowledge-schema.md), plus:\n\n| Input | Selected source reference | Additional required reference |\n|---|---|---|\n| Absolute HTTPS URL on a `-my.sharepoint.*` host with `\u002Fpersonal\u002F...` | [OneDrive file](references\u002Fonedrive.md) | [SharePoint\u002FOneDrive URL normalization](references\u002Fsharepoint-url.md) |\n| HTTPS URL on `*.sharepoint.com`, `*.sharepoint.us`, `*.sharepoint.cn`, or `*.sharepoint-mil.us` | [SharePoint file\u002Ffolder](references\u002Fsharepoint.md) | [SharePoint\u002FOneDrive URL normalization](references\u002Fsharepoint-url.md) |\n| Other absolute HTTPS URL | [Public website](references\u002Fwebsite.md) | None |\n| Existing regular local file | [Uploaded file](references\u002Fuploaded-file.md) | None |\n\nAll URLs must have no embedded username or password. Reject unsupported or ambiguous inputs and\nexplain the problem; ask for a supported source rather than guessing. Apply the selected reference's\nvalidation before authoring.\n\n## 3. Optional access check\n\nOnly for SharePoint\u002FOneDrive, offer the author-only check or honor an explicit request for it.\nExplain that each end user's permissions govern runtime retrieval: author access does not prove\nend-user access. Explain that delegated `Files.ReadWrite` consent grants read\u002Fwrite access to files\nthe signed-in user can access, before asking the user to opt in.\n\nRead [access-check setup and results](references\u002Faccess-precheck.md) only after the user opts in,\nbefore authenticating. If the user declines, do not load it, resolve the helper, or authenticate.\nThe check is optional and best-effort. If its reference\u002Fhelper or setup is unavailable, report that\nthe check could not run and continue adding the source without it.\n\n## 4. Author and report\n\nFollow the loaded common and selected-source contracts exactly. Encode externally derived YAML\nstrings using `JSON.stringify(value)` semantics. Check the 100-character schema-name budget and\ncomponent collisions before writing. Never overwrite an uploaded payload or sidecar without\nexplicit replacement consent; stop if replacement cannot identify exactly one existing sidecar.\n\nRe-read and parse every written YAML artifact with an available local YAML parser. Verify\nthe selected source kind, exact normalized URL or relative payload path, unique component\nidentity, and 100-character schema budget against the loaded contracts. For uploads, verify\nthe copied file's bytes match the source. Review the diff (or before\u002Fafter file inventory for\nan untracked workspace): only the intended knowledge component and approved payload\u002Fsidecar\nmay change; preserve unrelated content and leave `.config\u002F`, `.mcs\u002F`, and `agent.sync.yaml`\nuntouched. If parsing, artifact validation, or diff review cannot complete, report the failure\nand do not claim success.\n\nReport the source kind, normalized `siteUrl` or copied file, and written component path. State that\nthe changes remain local. To upload a draft, direct the user to the `deploy-agent` workflow\n(`msagent agent deploy`); to make the knowledge live, direct them to `publish-agent`\n(`msagent agent deploy --publish`), which requires explicit publication confirmation.\nBoth routes require the registered MSAGENT project root and an explicit deployment ID or name;\nthe authored agent workspace is not the registration root. There is no standalone pack step.\nDo not run either lifecycle workflow as part of adding knowledge. Use the common contract's\nlimitations for unsupported knowledge types.\n","# Add a Knowledge Source\n\nAdd one knowledge source to a locally-cloned Copilot Studio agentic-loop agent. This skill only\nauthors local files; it does not push or publish. Never invent behavior the files do not support.\n\nInitial request: $ARGUMENTS\n\n## 1. Resolve the target and input\n\n1. If an agent workspace was supplied, resolve that exact directory first and require its\n   root-level `settings.mcs.yml`. If it is missing, invalid, or ambiguous, stop and report the\n   supplied target; never substitute a discovered workspace. Only when no workspace was supplied,\n   auto-discover with `Glob: **\u002Fsettings.mcs.yml`. A cloned agentic-loop workspace contains\n   `settings.mcs.yml` at its root. **Never hardcode an agent name.**\n2. If none is found, tell the user this skill needs a **locally-cloned agentic-loop agent**. Direct\n   them to the `clone-agent` workflow, which uses `msagent agent create --agent-type MCSAgent` with\n   either `--mcs-clone-agent-id` or `--mcs-clone-agent-schemaname`, plus the source environment and\n   project root. Do not clone implicitly or bypass that workflow. Stop.\n3. If several are found, ask the user which agent to add the knowledge to.\n4. Read the agent's **`schemaName`** from `settings.mcs.yml` (e.g. `crbab_guitarcoach_dcF_b3`) — it is\n   the filename prefix for source-backed knowledge components.\n   Parse the settings with an available local YAML parser. Verify a versioned `cliagent-`\n   template and the GitHub Copilot harness: `configuration.authoringModel: CliCopilot` or\n   `configuration.recognizer.kind: CLICopilotRecognizer`. If another harness or a non-CLI\n   template is identified, stop before any writes. If identity is unknown, ask for\n   clarification; do not infer support from the schema name or folder alone.\n5. Extract the source URL or local file path, plus any requested name\u002Fdescription. Ask for missing\n   input; do not create directories or files yet.\n\n## 2. Select and load the authoring contract\n\nRead only the references required for the selected source, completely, before writing any YAML or\ncopying any payload. Resolve every reference from this skill's own directory, never from a plugin\nroot or sibling skill. If a required reference cannot be read, stop and report its path.\n\nEvery source requires [common schema and naming rules](references\u002Fknowledge-schema.md), plus:\n\n| Input | Selected source reference | Additional required reference |\n|---|---|---|\n| Absolute HTTPS URL on a `-my.sharepoint.*` host with `\u002Fpersonal\u002F...` | [OneDrive file](references\u002Fonedrive.md) | [SharePoint\u002FOneDrive URL normalization](references\u002Fsharepoint-url.md) |\n| HTTPS URL on `*.sharepoint.com`, `*.sharepoint.us`, `*.sharepoint.cn`, or `*.sharepoint-mil.us` | [SharePoint file\u002Ffolder](references\u002Fsharepoint.md) | [SharePoint\u002FOneDrive URL normalization](references\u002Fsharepoint-url.md) |\n| Other absolute HTTPS URL | [Public website](references\u002Fwebsite.md) | None |\n| Existing regular local file | [Uploaded file](references\u002Fuploaded-file.md) | None |\n\nAll URLs must have no embedded username or password. Reject unsupported or ambiguous inputs and\nexplain the problem; ask for a supported source rather than guessing. Apply the selected reference's\nvalidation before authoring.\n\n## 3. Optional access check\n\nOnly for SharePoint\u002FOneDrive, offer the author-only check or honor an explicit request for it.\nExplain that each end user's permissions govern runtime retrieval: author access does not prove\nend-user access. Explain that delegated `Files.ReadWrite` consent grants read\u002Fwrite access to files\nthe signed-in user can access, before asking the user to opt in.\n\nRead [access-check setup and results](references\u002Faccess-precheck.md) only after the user opts in,\nbefore authenticating. If the user declines, do not load it, resolve the helper, or authenticate.\nThe check is optional and best-effort. If its reference\u002Fhelper or setup is unavailable, report that\nthe check could not run and continue adding the source without it.\n\n## 4. Author and report\n\nFollow the loaded common and selected-source contracts exactly. Encode externally derived YAML\nstrings using `JSON.stringify(value)` semantics. Check the 100-character schema-name budget and\ncomponent collisions before writing. Never overwrite an uploaded payload or sidecar without\nexplicit replacement consent; stop if replacement cannot identify exactly one existing sidecar.\n\nRe-read and parse every written YAML artifact with an available local YAML parser. Verify\nthe selected source kind, exact normalized URL or relative payload path, unique component\nidentity, and 100-character schema budget against the loaded contracts. For uploads, verify\nthe copied file's bytes match the source. Review the diff (or before\u002Fafter file inventory for\nan untracked workspace): only the intended knowledge component and approved payload\u002Fsidecar\nmay change; preserve unrelated content and leave `.config\u002F`, `.mcs\u002F`, and `agent.sync.yaml`\nuntouched. If parsing, artifact validation, or diff review cannot complete, report the failure\nand do not claim success.\n\nReport the source kind, normalized `siteUrl` or copied file, and written component path. State that\nthe changes remain local. To upload a draft, direct the user to the `deploy-agent` workflow\n(`msagent agent deploy`); to make the knowledge live, direct them to `publish-agent`\n(`msagent agent deploy --publish`), which requires explicit publication confirmation.\nBoth routes require the registered MSAGENT project root and an explicit deployment ID or name;\nthe authored agent workspace is not the registration root. There is no standalone pack step.\nDo not run either lifecycle workflow as part of adding knowledge. Use the common contract's\nlimitations for unsupported knowledge types.\n",{"name":5,"metadata":24,"description":7,"allowed-tools":26},{"argument-hint":25},"A URL (website \u002F SharePoint \u002F OneDrive) or a local file path, plus an optional name\u002Fdescription","Read Write Glob Grep","main","97fdf024eeb83f969d05278268d1fa7bebf26ee3",".github\u002Fplugins\u002Fmsagent-assistant\u002Fskills\u002Fadd-knowledge",1,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgentHosting.Cli","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 12:14:06",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add microsoft\u002FAgentHosting.Cli --skill add-knowledge",{"tool":42,"command":43},"bunx","bunx skills add microsoft\u002FAgentHosting.Cli --skill add-knowledge",{"tool":45,"command":46},"pnpm","pnpm dlx skills add microsoft\u002FAgentHosting.Cli --skill add-knowledge","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgentHosting.Cli\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fmsagent-assistant\u002Fskills\u002Fadd-knowledge\u002FSKILL.md",true,[50,56,60,64,68,72,76,80],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Faccess-precheck.md","REFERENCE","参考文档",4299,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgentHosting.Cli\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fmsagent-assistant\u002Fskills\u002Fadd-knowledge\u002Freferences\u002Faccess-precheck.md",{"path":57,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fknowledge-schema.md",5348,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgentHosting.Cli\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fmsagent-assistant\u002Fskills\u002Fadd-knowledge\u002Freferences\u002Fknowledge-schema.md",{"path":61,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fonedrive.md",686,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgentHosting.Cli\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fmsagent-assistant\u002Fskills\u002Fadd-knowledge\u002Freferences\u002Fonedrive.md",{"path":65,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fsharepoint-url.md",1317,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgentHosting.Cli\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fmsagent-assistant\u002Fskills\u002Fadd-knowledge\u002Freferences\u002Fsharepoint-url.md",{"path":69,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fsharepoint.md",1234,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgentHosting.Cli\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fmsagent-assistant\u002Fskills\u002Fadd-knowledge\u002Freferences\u002Fsharepoint.md",{"path":73,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fuploaded-file.md",1792,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgentHosting.Cli\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fmsagent-assistant\u002Fskills\u002Fadd-knowledge\u002Freferences\u002Fuploaded-file.md",{"path":77,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fwebsite.md",1047,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgentHosting.Cli\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fmsagent-assistant\u002Fskills\u002Fadd-knowledge\u002Freferences\u002Fwebsite.md",{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"scripts\u002Fverify-knowledge-access.bundle.js","SCRIPT","脚本",631676,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgentHosting.Cli\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fmsagent-assistant\u002Fskills\u002Fadd-knowledge\u002Fscripts\u002Fverify-knowledge-access.bundle.js",[87,94,101,108,115,122],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7BCSYRMZGY1AJZVDHHMDK8K","skill-1","description of skill 1","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgentHosting.Cli\u002Fblob\u002Fmain\u002Fsrc\u002FMicrosoft.Agents.Hosting.Cli.E2E\u002Ffixtures\u002FMCSCliAgent\u002Fbehaviors\u002Fskill-1\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7BCSX3HRX1623FFGXV5DFKM","my-skill-1","description of my skill 1","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgentHosting.Cli\u002Fblob\u002Fmain\u002Fsrc\u002FMicrosoft.Agents.Hosting.Cli.E2E\u002Ffixtures\u002FMCSCliAgent\u002Fbehaviors\u002Fmy-skill-5\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7BCSSJMXHY3GZSPY1E8YGKP","get-us-weather","Get the current weather (temperature, sky conditions, wind, humidity) for any city or town in the United States. Use when the user asks about the current weather, temperature, or conditions in a US city, e.g. \"what's the weather in Seattle\" or \"how hot is it in Austin right now\".","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgentHosting.Cli\u002Fblob\u002Fmain\u002Fsrc\u002FMicrosoft.Agents.Hosting.Cli.E2E\u002Ffixtures\u002FMCSCliAgent\u002Fbehaviors\u002Fget-us-weather\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M7BCSNYQSFKF1X2TPE2B0GV7","get-us-temperature","MD2-162228 - Get the current observed temperature for any city or town in the United States. Use when the user asks for the current temperature, how hot or cold it is, or the temperature in a US city, e.g. \"what is the temperature in Seattle\" or \"how cold is it in Austin right now\".","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgentHosting.Cli\u002Fblob\u002Fmain\u002Fsrc\u002FMicrosoft.Agents.Hosting.Cli.E2E\u002Ffixtures\u002FMCSCliAgent\u002Fbehaviors\u002Fget-us-temperature\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":19},"01M7BCSGN5NZYNNTEMVXF9B8MY","pull-agent","Pull remote Copilot Studio agent changes into an existing registered MSAGENT project with `msagent agent pull`. Use when the user asks to pull, sync down, refresh, or download remote changes into a local agent project.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgentHosting.Cli\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fmsagent-assistant\u002Fskills\u002Fpull-agent\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":19},"01M7BCSCAETQJ8WTMARBWZWBHY","publish-agent","Push and publish a registered Copilot Studio agent with the `--publish` route of `msagent agent deploy`. Use when the user asks to publish, activate, or make a local MSAGENT project's agent live.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgentHosting.Cli\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fmsagent-assistant\u002Fskills\u002Fpublish-agent\u002FSKILL.md",[],[]]