[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6999HBKYE97E1HK56YPD2BF":3,"skill-same:01M6999HBKYE97E1HK56YPD2BF":87},{"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":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":50,"ownerHtmlUrl":51,"ownerBlogUrl":52,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M6999HBKYE97E1HK56YPD2BF","testing-course-samples","课程 Notebook 与代码测试","Use when asked to validate, test, smoke-test, or run the course's notebook and code samples against a live Microsoft Foundry \u002F Azure OpenAI configuration. Covers environment setup (.env, az login, packages), the scripts\u002Fvalidate-notebooks.ps1 runner, interpreting PASS\u002FFAIL results, and which lessons need extra resources (Azure AI Search, GitHub MCP, Foundry Local, Playwright).","在需要针对真实的 Microsoft Foundry \u002F Azure OpenAI 配置验证、测试、冒烟测试或运行课程的 notebook 和代码示例时使用。涵盖环境设置（.env、az login、依赖包）、scripts\u002Fvalidate-notebooks.ps1 运行器、解读 PASS\u002FFAIL 结果，以及哪些课程需要额外资源（Azure AI Search、GitHub MCP、Foundry Local、Playwright）。","microsoft\u002Fai-agents-for-beginners","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M6998ZK2275KMJE6Y5SEA2X2",79626,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fai-agents-for-beginners\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting-course-samples\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34,35,36,10,37,38,39],"testing","testing course samples","MCP","github","playwright","test","foundry","foundry local","microsoft foundry","2026-11-10 10:12:30",false,"---\nname: \"testing-course-samples\"\ndescription: \"Use when asked to validate, test, smoke-test, or run the course's notebook and code samples against a live Microsoft Foundry \u002F Azure OpenAI configuration. Covers environment setup (.env, az login, packages), the scripts\u002Fvalidate-notebooks.ps1 runner, interpreting PASS\u002FFAIL results, and which lessons need extra resources (Azure AI Search, GitHub MCP, Foundry Local, Playwright).\"\n---\n\n# Testing the Course Samples\n\nValidate that the lesson notebooks and code samples run against a live\nMicrosoft Foundry \u002F Azure OpenAI setup. The repo ships a runner at\n[`scripts\u002Fvalidate-notebooks.ps1`](..\u002F..\u002F..\u002Fscripts\u002Fvalidate-notebooks.ps1) that\nexecutes every Python notebook headlessly and prints a PASS\u002FFAIL matrix.\n\n## When to use\n- \"Validate all the notebooks \u002F samples against my Azure subscription.\"\n- \"Smoke-test the course after upgrading packages or changing models.\"\n- \"Which lessons still pass \u002F fail live?\"\n\nDo **not** use this for the AI Smoke Test GitHub Action (that validates *deployed*\nhosted agents — see [`tests\u002FREADME.md`](..\u002F..\u002F..\u002Ftests\u002FREADME.md)). This skill\nruns the notebooks locally.\n\n## Prerequisites (check first)\n1. **Python 3.12+** with course deps: `python -m pip install -r requirements.txt`\n   plus the executor: `python -m pip install nbconvert ipykernel`.\n2. **`.env` at the repo root** (copy from [`.env.example`](..\u002F..\u002F..\u002F.env.example)) with at least:\n   - `AZURE_AI_PROJECT_ENDPOINT` — Foundry project endpoint\n     (`https:\u002F\u002F\u003Caccount>.services.ai.azure.com\u002Fapi\u002Fprojects\u002F\u003Cproject>`)\n   - `AZURE_AI_MODEL_DEPLOYMENT_NAME` — a non-deprecated deployment (e.g. `gpt-5-mini`)\n   - `AZURE_OPENAI_ENDPOINT` (`https:\u002F\u002F\u003Caccount>.openai.azure.com`) and `AZURE_OPENAI_DEPLOYMENT`\n     for lessons that call Azure OpenAI directly (Lesson 06, 02-azure-openai, 14 handoff\u002Fhuman-loop).\n3. **`az login`** completed — samples authenticate with `AzureCliCredential` (Entra ID, keyless).\n4. Verify the model deployment exists:\n   `az cognitiveservices account deployment list -g \u003Crg> -n \u003Caccount> -o table`.\n\n## Running the validation\n```powershell\n# All Python notebooks (skips .NET, .venv, site-packages, translations, skill assets)\npwsh scripts\u002Fvalidate-notebooks.ps1\n\n# A single lesson, with a longer per-cell timeout\npwsh scripts\u002Fvalidate-notebooks.ps1 -Filter '08-*' -Timeout 600\n\n# Just list what would run (no execution)\npwsh scripts\u002Fvalidate-notebooks.ps1 -List\n\n# Explicit interpreter (if `python` is not on PATH, e.g. Windows Store alias)\npwsh scripts\u002Fvalidate-notebooks.ps1 -Python \"C:\u002Fpath\u002Fto\u002Fpython.exe\"\n```\nThe script writes executed copies, per-notebook logs, and `results.json` to\n`$env:TEMP\\aiab-nbval` and exits with the number of failures.\n\nTransient failures (shared-subscription HTTP 429 rate limits, an occasional\n`AzureCliCredential` token hiccup, or a timeout) are retried automatically\n(`-Retries`, default 2, with `-RetryDelaySeconds` backoff, default 20). If a\nmodel deployment is regularly 429-ing, check the subscription's GlobalStandard\nTPM quota (`az cognitiveservices usage list -l \u003Cregion>`) — raising a single\ndeployment's capacity does not help when the *subscription* quota is exhausted.\n\n## Interpreting results\n- `PASS` — the notebook ran end-to-end with no cell error.\n- `FAIL` — the first `*Error` \u002F `*Exception` line is shown; open the matching\n  `log_*.txt` in the output dir for the full traceback.\n- A single notebook's failure is bounded by `-Timeout` (per cell), so a hung\n  human-in-the-loop cell surfaces as `StdinNotImplementedError` rather than hanging.\n\n## Lessons that need extra resources (expected to fail without them)\n| Lesson | Extra requirement |\n|--------|-------------------|\n| 05 Agentic RAG | Azure AI Search (`AZURE_SEARCH_SERVICE_ENDPOINT`, key) — has an in-memory fallback path |\n| 11 MCP \u002F GitHub | GitHub MCP server + PAT |\n| 13 memory (cognee) | `cognee` configured with a model provider |\n| 15 browser-use | Playwright browsers installed (`playwright install`) + `AZURE_OPENAI_CHAT_DEPLOYMENT_NAME` |\n| 17 local agent | Foundry Local runtime + a downloaded Qwen model (on-device, no cloud) |\n| `*-dotnet-*` notebooks | .NET Interactive kernel (excluded by default; use `-IncludeDotnet`) |\n\n## Reporting back\nSummarise as a PASS\u002FFAIL table grouped by lesson. Separate genuine regressions\n(code\u002Fconfig bugs to fix) from environment gaps (missing Search\u002FFoundry Local\u002FPAT),\nand cite the failing `log_*.txt` for each real failure.\n","# Testing the Course Samples\n\nValidate that the lesson notebooks and code samples run against a live\nMicrosoft Foundry \u002F Azure OpenAI setup. The repo ships a runner at\n[`scripts\u002Fvalidate-notebooks.ps1`](..\u002F..\u002F..\u002Fscripts\u002Fvalidate-notebooks.ps1) that\nexecutes every Python notebook headlessly and prints a PASS\u002FFAIL matrix.\n\n## When to use\n- \"Validate all the notebooks \u002F samples against my Azure subscription.\"\n- \"Smoke-test the course after upgrading packages or changing models.\"\n- \"Which lessons still pass \u002F fail live?\"\n\nDo **not** use this for the AI Smoke Test GitHub Action (that validates *deployed*\nhosted agents — see [`tests\u002FREADME.md`](..\u002F..\u002F..\u002Ftests\u002FREADME.md)). This skill\nruns the notebooks locally.\n\n## Prerequisites (check first)\n1. **Python 3.12+** with course deps: `python -m pip install -r requirements.txt`\n   plus the executor: `python -m pip install nbconvert ipykernel`.\n2. **`.env` at the repo root** (copy from [`.env.example`](..\u002F..\u002F..\u002F.env.example)) with at least:\n   - `AZURE_AI_PROJECT_ENDPOINT` — Foundry project endpoint\n     (`https:\u002F\u002F\u003Caccount>.services.ai.azure.com\u002Fapi\u002Fprojects\u002F\u003Cproject>`)\n   - `AZURE_AI_MODEL_DEPLOYMENT_NAME` — a non-deprecated deployment (e.g. `gpt-5-mini`)\n   - `AZURE_OPENAI_ENDPOINT` (`https:\u002F\u002F\u003Caccount>.openai.azure.com`) and `AZURE_OPENAI_DEPLOYMENT`\n     for lessons that call Azure OpenAI directly (Lesson 06, 02-azure-openai, 14 handoff\u002Fhuman-loop).\n3. **`az login`** completed — samples authenticate with `AzureCliCredential` (Entra ID, keyless).\n4. Verify the model deployment exists:\n   `az cognitiveservices account deployment list -g \u003Crg> -n \u003Caccount> -o table`.\n\n## Running the validation\n```powershell\n# All Python notebooks (skips .NET, .venv, site-packages, translations, skill assets)\npwsh scripts\u002Fvalidate-notebooks.ps1\n\n# A single lesson, with a longer per-cell timeout\npwsh scripts\u002Fvalidate-notebooks.ps1 -Filter '08-*' -Timeout 600\n\n# Just list what would run (no execution)\npwsh scripts\u002Fvalidate-notebooks.ps1 -List\n\n# Explicit interpreter (if `python` is not on PATH, e.g. Windows Store alias)\npwsh scripts\u002Fvalidate-notebooks.ps1 -Python \"C:\u002Fpath\u002Fto\u002Fpython.exe\"\n```\nThe script writes executed copies, per-notebook logs, and `results.json` to\n`$env:TEMP\\aiab-nbval` and exits with the number of failures.\n\nTransient failures (shared-subscription HTTP 429 rate limits, an occasional\n`AzureCliCredential` token hiccup, or a timeout) are retried automatically\n(`-Retries`, default 2, with `-RetryDelaySeconds` backoff, default 20). If a\nmodel deployment is regularly 429-ing, check the subscription's GlobalStandard\nTPM quota (`az cognitiveservices usage list -l \u003Cregion>`) — raising a single\ndeployment's capacity does not help when the *subscription* quota is exhausted.\n\n## Interpreting results\n- `PASS` — the notebook ran end-to-end with no cell error.\n- `FAIL` — the first `*Error` \u002F `*Exception` line is shown; open the matching\n  `log_*.txt` in the output dir for the full traceback.\n- A single notebook's failure is bounded by `-Timeout` (per cell), so a hung\n  human-in-the-loop cell surfaces as `StdinNotImplementedError` rather than hanging.\n\n## Lessons that need extra resources (expected to fail without them)\n| Lesson | Extra requirement |\n|--------|-------------------|\n| 05 Agentic RAG | Azure AI Search (`AZURE_SEARCH_SERVICE_ENDPOINT`, key) — has an in-memory fallback path |\n| 11 MCP \u002F GitHub | GitHub MCP server + PAT |\n| 13 memory (cognee) | `cognee` configured with a model provider |\n| 15 browser-use | Playwright browsers installed (`playwright install`) + `AZURE_OPENAI_CHAT_DEPLOYMENT_NAME` |\n| 17 local agent | Foundry Local runtime + a downloaded Qwen model (on-device, no cloud) |\n| `*-dotnet-*` notebooks | .NET Interactive kernel (excluded by default; use `-IncludeDotnet`) |\n\n## Reporting back\nSummarise as a PASS\u002FFAIL table grouped by lesson. Separate genuine regressions\n(code\u002Fconfig bugs to fix) from environment gaps (missing Search\u002FFoundry Local\u002FPAT),\nand cite the failing `log_*.txt` for each real failure.\n",{"name":5,"description":7},"main","f09e94ffe170f8af6d3db7c42987bbe4db227723",".agents\u002Fskills\u002Ftesting-course-samples",26075,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fai-agents-for-beginners","https:\u002F\u002Faka.ms\u002Fai-agents-beginners","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-07 12:51:12",{"source":9,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add microsoft\u002Fai-agents-for-beginners --skill testing-course-samples",{"tool":61,"command":62},"bunx","bunx skills add microsoft\u002Fai-agents-for-beginners --skill testing-course-samples",{"tool":64,"command":65},"pnpm","pnpm dlx skills add microsoft\u002Fai-agents-for-beginners --skill testing-course-samples","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fai-agents-for-beginners\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting-course-samples\u002FSKILL.md",true,[69,75,79,83],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"agents\u002Fopenai.yaml","REFERENCE","参考文档",308,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fopc-methodology\u002Fskills\u002Fopc-dashboard-review\u002Fagents\u002Fopenai.yaml",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Freview-metrics.md",156,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fopc-methodology\u002Fskills\u002Fopc-dashboard-review\u002Freferences\u002Freview-metrics.md",{"path":80,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fstop-loss-rules.md",172,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fopc-methodology\u002Fskills\u002Fopc-dashboard-review\u002Freferences\u002Fstop-loss-rules.md",{"path":84,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fweekly-review-template.md",134,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fopc-methodology\u002Fskills\u002Fopc-dashboard-review\u002Freferences\u002Fweekly-review-template.md",[88,99,114,129,145,155],{"skillNo":89,"name":5,"nameZh":90,"description":17,"descriptionZh":91,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":92,"categories":93,"keywords":98,"publishedAt":40},"01M69A206TRZ8KK0CW0HYJF5V5","测试课程示例","","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fai-agents-for-beginners\u002Fblob\u002Fmain\u002Ftranslations\u002Fzh-TW\u002F.agents\u002Fskills\u002Ftesting-course-samples\u002FSKILL.md",[94,95],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":96,"categoryName":97,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSYDSNXQT2W2GMZGF0ZHH4","示例与演示技能",[31,32],{"skillNo":100,"name":101,"nameZh":102,"description":17,"descriptionZh":91,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":103,"categories":104,"keywords":111,"publishedAt":40},"01M69A1XRB2SFHYRMEH0K08EKZ","microsoft-docs","Microsoft 文档查询","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fai-agents-for-beginners\u002Fblob\u002Fmain\u002Ftranslations\u002Fzh-TW\u002F.agents\u002Fskills\u002Fmicrosoft-docs\u002FSKILL.md",[105,108],{"categoryNo":106,"categoryName":107,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考",{"categoryNo":109,"categoryName":110,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",[112,10,113],"docs","microsoft docs",{"skillNo":115,"name":116,"nameZh":117,"description":17,"descriptionZh":91,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":118,"categories":119,"keywords":126,"publishedAt":40},"01M69A1VPZFJQ1HNGTZQ5P3WSC","local-ai-agents","本地 AI 智能体","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fai-agents-for-beginners\u002Fblob\u002Fmain\u002Ftranslations\u002Fzh-TW\u002F.agents\u002Fskills\u002Flocal-ai-agents\u002FSKILL.md",[120,123],{"categoryNo":121,"categoryName":122,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",{"categoryNo":124,"categoryName":125,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发",[127,128],"ai agents","local ai agents",{"skillNo":130,"name":131,"nameZh":132,"description":133,"descriptionZh":134,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":135,"categories":136,"keywords":143,"publishedAt":40},"01M69A1S947N7MM6V9JF85S2E7","jupyter-notebook","Jupyter 笔记本创建与编辑","當使用者要求建立、搭建或編輯 Jupyter 筆記本（`.ipynb`）用於實驗、探索或教學時使用；優先使用隨附範本並執行輔助腳本 `new_notebook.py` 來產生一個乾淨的起始筆記本。","当用户要求创建、搭建或编辑 Jupyter 笔记本（`.ipynb`）用于实验、探索或教学时使用；优先使用随附模板并执行辅助脚本 `new_notebook.py` 来生成一个干净的起始笔记本。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fai-agents-for-beginners\u002Fblob\u002Fmain\u002Ftranslations\u002Fzh-TW\u002F.agents\u002Fskills\u002Fjupyter-notebook\u002FSKILL.md",[137,140],{"categoryNo":138,"categoryName":139,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD4CMBM6B4PWSM1NXGT9","数据分析与报告",{"categoryNo":141,"categoryName":142,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5CX980XNXCJKQF70BY","数据分析师",[144],"jupyter notebook",{"skillNo":146,"name":147,"nameZh":148,"description":17,"descriptionZh":91,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":149,"categories":150,"keywords":153,"publishedAt":40},"01M69A1Q8EXPWKZSQK69V6WF22","deploying-scalable-agents","可扩展智能体部署","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fai-agents-for-beginners\u002Fblob\u002Fmain\u002Ftranslations\u002Fzh-TW\u002F.agents\u002Fskills\u002Fdeploying-scalable-agents\u002FSKILL.md",[151,152],{"categoryNo":121,"categoryName":122,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":124,"categoryName":125,"taxonomyType":28,"taxonomyTypeDesc":29},[154],"deploying scalable agents",{"skillNo":156,"name":157,"nameZh":158,"description":17,"descriptionZh":91,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":159,"categories":160,"keywords":165,"publishedAt":40},"01M69A1MHZTH3RH9N8VYSYG74X","azure-openai-to-responses","Azure OpenAI 迁移至 Responses API","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fai-agents-for-beginners\u002Fblob\u002Fmain\u002Ftranslations\u002Fzh-TW\u002F.agents\u002Fskills\u002Fazure-openai-to-responses\u002FSKILL.md",[161,162],{"categoryNo":121,"categoryName":122,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":163,"categoryName":164,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QVANT4709358VEJK53E","代码实现",[166],"azure openai to responses"]