[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699CK5959JPKA5JGJPV87AZ":3,"skill-same:01M699CK5959JPKA5JGJPV87AZ":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":60,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M699CK5959JPKA5JGJPV87AZ","auth","认证与凭据管理","Activate when code touches token management, credential resolution, git auth flows, GITHUB_APM_PAT, ADO_APM_PAT, AuthResolver, HostInfo, AuthContext, or any remote host authentication -- even if 'auth' isn't mentioned explicitly.","当代码涉及令牌管理、凭据解析、git 认证流程、GITHUB_APM_PAT、ADO_APM_PAT、AuthResolver、HostInfo、AuthContext 或任何远程主机认证时激活——即使未明确提及 'auth'。","microsoft\u002Fapm","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M699CC41JR5QW38C9PDX6101",4369,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fapm\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fauth\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRK82SYBDNZ3SG8YAH5A3D","凭证与密钥管理","SCENARIO","使用场景",[5,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"when","github","token management","flows","remote","ado","host","resolution","token","activate","credential","pat","management","apm","git","authentication","code","2026-11-10 10:12:30",false,"---\nname: auth\ndescription: >\n  Activate when code touches token management, credential resolution, git auth\n  flows, GITHUB_APM_PAT, ADO_APM_PAT, AuthResolver, HostInfo, AuthContext, or\n  any remote host authentication -- even if 'auth' isn't mentioned explicitly.\n---\n\n# Auth Skill\n\n[Auth expert persona](..\u002F..\u002F..\u002F.apm\u002Fagents\u002Fauth-expert.agent.md)\n\n## When to activate\n\n- Any change to `src\u002Fapm_cli\u002Fcore\u002Fauth.py` or `src\u002Fapm_cli\u002Fcore\u002Ftoken_manager.py`\n- Code that reads `GITHUB_APM_PAT`, `GITHUB_TOKEN`, `GH_TOKEN`, `ADO_APM_PAT`\n- Code using `git ls-remote`, `git clone`, or GitHub\u002FADO API calls\n- Error messages mentioning tokens, authentication, or credentials\n- Changes to `github_downloader.py` auth paths\n- Per-host or per-org token resolution logic\n\n## Key rule\n\nAll auth flows MUST go through `AuthResolver`. No direct `os.getenv()` for token variables in application code.\n\n## Canonical reference\n\nThe full per-org -> global -> credential-fill -> fallback resolution flow is in [`docs\u002Fsrc\u002Fcontent\u002Fdocs\u002Fgetting-started\u002Fauthentication.md`](..\u002F..\u002F..\u002Fdocs\u002Fsrc\u002Fcontent\u002Fdocs\u002Fgetting-started\u002Fauthentication.md) (mermaid flowchart). Treat it as the single source of truth; if behavior diverges, fix the diagram in the same PR.\n\n## Bearer-token authentication for ADO\n\nAzure DevOps Services (`dev.azure.com`, `*.visualstudio.com`) use this chain:\n\n1. `ADO_APM_PAT` env var if set\n2. AAD bearer via `az account get-access-token --resource 499b84ac-1321-427f-aa17-267ca6975798` if `az` is installed and `az account show` succeeds\n3. Operation-time path-scoped `git credential fill` after HTTP 401\u002F403 or a recognized Git authentication failure (`is_ado_auth_failure_signal`)\n4. Otherwise: `AdoAuthChainExhaustedError` from `try_with_fallback`, or `build_error_context` on resolve-time failures\n\nAzure DevOps Server hosts (`ADO_HOST` \u002F `APM_ADO_HOSTS`) skip az bearer: PAT, then fill.\n\n`ADO_APM_PAT` is the env var name used by the auth flow. The AAD bearer source constant lives in `src\u002Fapm_cli\u002Fcore\u002Ftoken_manager.py` as `GitHubTokenManager.ADO_BEARER_SOURCE = \"AAD_BEARER_AZ_CLI\"`.\n\n**Stale-PAT fallback:** on HTTP 401\u002F403 or a recognized Git authentication failure, APM tries an available az bearer. A successful bearer retry emits:\n\n```\n[!] ADO_APM_PAT was rejected for {host}; fell back to az cli bearer.\n[!]     Consider unsetting the stale variable.\n```\n\n**Verbose source line** (one per host, emitted under `--verbose`):\n\n```\n[i] dev.azure.com -- using bearer from az cli (source: AAD_BEARER_AZ_CLI)\n[i] dev.azure.com -- token from ADO_APM_PAT\n```\n\n**Diagnostic cases** (`build_error_context` + `AdoAuthChainExhaustedError` in `src\u002Fapm_cli\u002Fcore\u002Fauth.py`):\n\nInitial PAT\u002Fbearer diagnostics do not describe the later helper retry.\n\n1. No PAT, no `az`: `Azure DevOps requires authentication. You have two options` -> install `az` and `az login`, or set `ADO_APM_PAT`.\n2. No PAT, `az` not signed in: same two-options copy with `az login` first.\n3. No PAT, wrong tenant: `Your az cli session (tenant: ...) returned a bearer token, but Azure DevOps rejected it (HTTP 401).` -> `az login --tenant \u003Ccorrect-tenant>`, or set `ADO_APM_PAT`.\n4. PAT set, request failed: `ADO_APM_PAT is set, but the Azure DevOps request failed.` -> rotate the PAT, `az login` on Services, or store a GCM credential.\n5. Helper empty or rejected: `AdoAuthChainExhaustedError` names only attempted steps -> refresh PAT, `az login` on Services, or store a repository credential in GCM. DNS, TLS, and timeout failures re-raise without unlocking fill or becoming auth exhaustion.\n6. Server, no PAT: `Azure DevOps Server requires ADO_APM_PAT or a Git credential helper.` -> set `ADO_APM_PAT` or store a GCM credential (`az` does not apply).\n","# Auth Skill\n\n[Auth expert persona](..\u002F..\u002F..\u002F.apm\u002Fagents\u002Fauth-expert.agent.md)\n\n## When to activate\n\n- Any change to `src\u002Fapm_cli\u002Fcore\u002Fauth.py` or `src\u002Fapm_cli\u002Fcore\u002Ftoken_manager.py`\n- Code that reads `GITHUB_APM_PAT`, `GITHUB_TOKEN`, `GH_TOKEN`, `ADO_APM_PAT`\n- Code using `git ls-remote`, `git clone`, or GitHub\u002FADO API calls\n- Error messages mentioning tokens, authentication, or credentials\n- Changes to `github_downloader.py` auth paths\n- Per-host or per-org token resolution logic\n\n## Key rule\n\nAll auth flows MUST go through `AuthResolver`. No direct `os.getenv()` for token variables in application code.\n\n## Canonical reference\n\nThe full per-org -> global -> credential-fill -> fallback resolution flow is in [`docs\u002Fsrc\u002Fcontent\u002Fdocs\u002Fgetting-started\u002Fauthentication.md`](..\u002F..\u002F..\u002Fdocs\u002Fsrc\u002Fcontent\u002Fdocs\u002Fgetting-started\u002Fauthentication.md) (mermaid flowchart). Treat it as the single source of truth; if behavior diverges, fix the diagram in the same PR.\n\n## Bearer-token authentication for ADO\n\nAzure DevOps Services (`dev.azure.com`, `*.visualstudio.com`) use this chain:\n\n1. `ADO_APM_PAT` env var if set\n2. AAD bearer via `az account get-access-token --resource 499b84ac-1321-427f-aa17-267ca6975798` if `az` is installed and `az account show` succeeds\n3. Operation-time path-scoped `git credential fill` after HTTP 401\u002F403 or a recognized Git authentication failure (`is_ado_auth_failure_signal`)\n4. Otherwise: `AdoAuthChainExhaustedError` from `try_with_fallback`, or `build_error_context` on resolve-time failures\n\nAzure DevOps Server hosts (`ADO_HOST` \u002F `APM_ADO_HOSTS`) skip az bearer: PAT, then fill.\n\n`ADO_APM_PAT` is the env var name used by the auth flow. The AAD bearer source constant lives in `src\u002Fapm_cli\u002Fcore\u002Ftoken_manager.py` as `GitHubTokenManager.ADO_BEARER_SOURCE = \"AAD_BEARER_AZ_CLI\"`.\n\n**Stale-PAT fallback:** on HTTP 401\u002F403 or a recognized Git authentication failure, APM tries an available az bearer. A successful bearer retry emits:\n\n```\n[!] ADO_APM_PAT was rejected for {host}; fell back to az cli bearer.\n[!]     Consider unsetting the stale variable.\n```\n\n**Verbose source line** (one per host, emitted under `--verbose`):\n\n```\n[i] dev.azure.com -- using bearer from az cli (source: AAD_BEARER_AZ_CLI)\n[i] dev.azure.com -- token from ADO_APM_PAT\n```\n\n**Diagnostic cases** (`build_error_context` + `AdoAuthChainExhaustedError` in `src\u002Fapm_cli\u002Fcore\u002Fauth.py`):\n\nInitial PAT\u002Fbearer diagnostics do not describe the later helper retry.\n\n1. No PAT, no `az`: `Azure DevOps requires authentication. You have two options` -> install `az` and `az login`, or set `ADO_APM_PAT`.\n2. No PAT, `az` not signed in: same two-options copy with `az login` first.\n3. No PAT, wrong tenant: `Your az cli session (tenant: ...) returned a bearer token, but Azure DevOps rejected it (HTTP 401).` -> `az login --tenant \u003Ccorrect-tenant>`, or set `ADO_APM_PAT`.\n4. PAT set, request failed: `ADO_APM_PAT is set, but the Azure DevOps request failed.` -> rotate the PAT, `az login` on Services, or store a GCM credential.\n5. Helper empty or rejected: `AdoAuthChainExhaustedError` names only attempted steps -> refresh PAT, `az login` on Services, or store a repository credential in GCM. DNS, TLS, and timeout failures re-raise without unlocking fill or becoming auth exhaustion.\n6. Server, no PAT: `Azure DevOps Server requires ADO_APM_PAT or a Git credential helper.` -> set `ADO_APM_PAT` or store a GCM credential (`az` does not apply).\n",{"name":5,"description":7},"main","2920043258932f0f67e6f01df7b9047eb42f358c",".agents\u002Fskills\u002Fauth",426,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fapm","https:\u002F\u002Fmicrosoft.github.io\u002Fapm\u002F","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 10:21:38",{"source":9,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add microsoft\u002Fapm --skill auth",{"tool":69,"command":70},"bunx","bunx skills add microsoft\u002Fapm --skill auth",{"tool":72,"command":73},"pnpm","pnpm dlx skills add microsoft\u002Fapm --skill auth","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fapm\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fauth\u002FSKILL.md",true,[77],{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"agents\u002Fopenai.yaml","REFERENCE","参考文档",291,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F.agents\u002Fskills\u002Fgstack-setup-deploy\u002Fagents\u002Fopenai.yaml",[84,93,98,110,119,128],{"skillNo":85,"name":86,"nameZh":17,"description":87,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":88,"licenseFileUrl":17,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":92},"01M78JKQKRC85N30WT8HPN3EHM","autopilot-issue-accept","Use this skill to accept ONE microsoft\u002Fapm issue with a declared scope. The canvas Accept button, or a maintainer asking to accept an issue, starts it. Draft only from the latest triage proposed scope, get exact-text approval in this chat from a GOVERNANCE roster human, post that comment as that human, then add status\u002Faccepted. Do not invent scope, do not accept pull requests, and do not implement the issue.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fapm\u002Fblob\u002Fmain\u002Fpackages\u002Fautopilot\u002Fautopilot-issue-accept\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":94,"name":86,"nameZh":17,"description":87,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":88,"licenseFileUrl":17,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":92},"01M78JK63ZWG0XX043NVHZHNH9","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fapm\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fautopilot-issue-accept\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":101,"description":17,"descriptionZh":102,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":103,"categories":104,"keywords":109,"publishedAt":48},"01M699JMZBYWPBT7JYWBSB95Z6","hello","问候示例","","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fapm\u002Fblob\u002Fmain\u002Ftests\u002Fintegration\u002Ffixtures\u002Ftarget_resolution\u002Fshared\u002Fminimal_skill\u002F.apm\u002Fskills\u002Fhello\u002FSKILL.md",[105,106],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":107,"categoryName":108,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSYDSNXQT2W2GMZGF0ZHH4","示例与演示技能",[100],{"skillNo":111,"name":112,"nameZh":113,"description":17,"descriptionZh":102,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":114,"categories":115,"keywords":118,"publishedAt":48},"01M699JKAMZ4DH1PYJMXHE4FG4","placeholder","占位符","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fapm\u002Fblob\u002Fmain\u002Ftests\u002Fintegration\u002Ffixtures\u002Ftarget_resolution\u002Fs25_copilot_alias\u002F.apm\u002Fskills\u002Fplaceholder\u002FSKILL.md",[116,117],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":107,"categoryName":108,"taxonomyType":28,"taxonomyTypeDesc":29},[112],{"skillNo":120,"name":112,"nameZh":113,"description":17,"descriptionZh":102,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":121,"categories":122,"keywords":127,"publishedAt":48},"01M699JHR9DKJ7BZHAPF6DZX2Z","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fapm\u002Fblob\u002Fmain\u002Ftests\u002Fintegration\u002Ffixtures\u002Ftarget_resolution\u002Fs24_priority_override\u002F.apm\u002Fskills\u002Fplaceholder\u002FSKILL.md",[123,126],{"categoryNo":124,"categoryName":125,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BS5011KJDVSRXG1DC4P666","普通用户",{"categoryNo":107,"categoryName":108,"taxonomyType":28,"taxonomyTypeDesc":29},[112],{"skillNo":129,"name":112,"nameZh":113,"description":17,"descriptionZh":102,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":130,"categories":131,"keywords":134,"publishedAt":48},"01M699JG5BJBZSWM25F1VMJ2H6","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fapm\u002Fblob\u002Fmain\u002Ftests\u002Fintegration\u002Ffixtures\u002Ftarget_resolution\u002Fs23_error_renderer\u002F.apm\u002Fskills\u002Fplaceholder\u002FSKILL.md",[132,133],{"categoryNo":124,"categoryName":125,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":107,"categoryName":108,"taxonomyType":28,"taxonomyTypeDesc":29},[112]]