[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69BEDDG27MZ3HJA3VYZAF0B":3,"skill-same:01M69BEDDG27MZ3HJA3VYZAF0B":58},{"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":7,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":33,"frontMatter":34,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":7,"ownerHtmlUrl":40,"ownerBlogUrl":41,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M69BEDDG27MZ3HJA3VYZAF0B","maf-agent-skeleton","MAF 智能体框架搭建",null,"","microsoft\u002FAKS-Lab-GitHubCopilot","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69BE5H0TP45ZP79NQ2WN8PK",10,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAKS-Lab-GitHubCopilot\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmaf-agent-skeleton\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发","SCENARIO","使用场景",[30],"maf agent skeleton","2026-11-10 10:12:30",false,"# Skill: MAF Agent Skeleton\n\nUse this skill when generating any specialist agent under `src\u002Fagents\u002F\u003Cname>\u002F`.\n\n## Reference layout\n\n```\nsrc\u002Fagents\u002F\u003Cname>\u002F\n├── __init__.py\n├── prompts.py\n├── tools.py\n├── agent.py\n├── server.py\n├── Dockerfile\n└── tests\u002F__init__.py\n```\n\n## `agent.py` template (specialist with MCP)\n\n```python\nfrom __future__ import annotations\n\nfrom dataclasses import dataclass\n\nfrom agent_framework import AgentResponse\nfrom agent_framework.github import GitHubCopilotAgent, GitHubCopilotOptions\nfrom copilot.generated.rpc import PermissionDecisionApproveOnce\nfrom copilot.session import PermissionRequestResult\n\nfrom src.shared.copilot import build_copilot_client\nfrom src.shared.settings import Settings\nfrom .prompts import SYSTEM_PROMPT\nfrom .tools import TOOLS  # usually empty: list[FunctionTool] = []\n\n\ndef _approve_all(_req: object, _ctx: dict[str, str]) -> PermissionRequestResult:\n    return PermissionDecisionApproveOnce()\n\n\n@dataclass(frozen=True)\nclass _RunnableAgent:\n    \"\"\"Adapter satisfying the shared `make_app` `_Runnable` protocol.\"\"\"\n    agent: GitHubCopilotAgent\n\n    async def run(self, message: str, \u002F) -> AgentResponse[None]:\n        return await self.agent.run(message)\n\n\nasync def build_agent(settings: Settings) -> _RunnableAgent:\n    agent = GitHubCopilotAgent(\n        instructions=SYSTEM_PROMPT,\n        client=build_copilot_client(),\n        name=\"\u003Cname>\",\n        description=\"ZavaShop \u003Cname> specialist (...).\",\n        tools=list(TOOLS),\n        default_options=GitHubCopilotOptions(\n            model=settings.copilot_model,\n            timeout=settings.copilot_timeout_seconds,\n            on_permission_request=_approve_all,\n            mcp_servers={\n                \"\u003Ckey>\": {\n                    \"type\": \"http\",\n                    \"url\": settings.\u003Cwhich>_mcp_url,\n                    \"tools\": [\"*\"],\n                    \"timeout\": int(settings.copilot_timeout_seconds * 1000),\n                },\n            },\n        ),\n    )\n    return _RunnableAgent(agent=agent)\n```\n\nRules:\n\n- One `build_agent` per agent. Async. Returns the `_RunnableAgent` adapter — `make_app` only needs `.run(message)`.\n- Settings is the only configuration source. No env reads inside `agent.py`.\n- `GitHubCopilotAgent` + `GitHubCopilotOptions` is the only allowed chat surface. **No** `GitHubCopilotChatClient`, **no** `ChatAgent(client=...)`, **no** `MCPStreamableHTTPTool` — those do not exist in agent-framework 1.3.x.\n- `client=build_copilot_client()` is mandatory so `GITHUB_TOKEN` is honored in local, AKS, and ACA runtimes.\n- `on_permission_request=_approve_all` returning `PermissionDecisionApproveOnce()` is mandatory; without it every tool call silently denies and the LLM hallucinates \"all specialists rejected\".\n- `mcp_servers[*].timeout` is milliseconds; use `int(settings.copilot_timeout_seconds * 1000)`.\n- For the orchestrator (no MCP), drop `mcp_servers` and put four `@tool`-decorated `async def ask_\u003Cpeer>(goal: str)` functions in `agent.py` itself, each calling `A2AClient.invoke(...)`. Tool signatures must be flat scalars, never Pydantic models (the SDK passes a raw dict).\n\n## `prompts.py` template\n\n```python\nSYSTEM_PROMPT = \"\"\"\\\nYou are \u003CName>Agent for ZavaShop. Role: \u003Cone sentence>.\n\nDecision rules:\n1. ...\n2. ...\n\nRefusal rules:\n- Refuse \u003Cout-of-scope topic>; redirect to the right agent.\n- Never invent SKUs, prices, or supplier names.\n\nOutput: a JSON object with keys {...}.\n\"\"\"\n```\n\n## `server.py` template\n\n```python\nfrom src.shared.server import make_app\nfrom .agent import build_agent\n\napp = make_app(name=\"\u003Cname>\", build=build_agent)\n```\n\nNo business logic in `server.py`. Ever.\n\n## `tools.py` rules\n\n- Specialist agents normally export **`TOOLS: list[FunctionTool] = []`** — external I\u002FO lives in their MCP server, not in `tools.py`.\n- If a tool *is* defined locally (orchestrator's `ask_*` delegators), use `@tool` from `agent_framework`. Signature must be flat scalars (`goal: str`), not a Pydantic input — the Copilot SDK does not marshal dicts into models.\n- Docstring must include a one-line summary, `Args:`, `Returns:`.\n- Export the `TOOLS` list at the bottom — `agent.py` consumes it.\n\n## Acceptance\n\n```bash\nuv run ruff check src\u002Fagents\u002F\u003Cname>\nuv run pyright src\u002Fagents\u002F\u003Cname>\nuv run python -c \"from src.agents.\u003Cname>.agent import build_agent; print(build_agent)\"\n```\n",{},"main","44e33846404c95b38ed9c99d06617cd89dce5467",".github\u002Fskills\u002Fmaf-agent-skeleton",31,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAKS-Lab-GitHubCopilot","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-10-29 09:47:55",{"source":9,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add microsoft\u002FAKS-Lab-GitHubCopilot --skill maf-agent-skeleton",{"tool":50,"command":51},"bunx","bunx skills add microsoft\u002FAKS-Lab-GitHubCopilot --skill maf-agent-skeleton",{"tool":53,"command":54},"pnpm","pnpm dlx skills add microsoft\u002FAKS-Lab-GitHubCopilot --skill maf-agent-skeleton","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAKS-Lab-GitHubCopilot\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmaf-agent-skeleton\u002FSKILL.md",true,[],[59,73,85,98,112,124],{"skillNo":60,"name":61,"nameZh":62,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":63,"categories":64,"keywords":71,"publishedAt":31},"01M69BEGJ4FRHZF5ZJE0P0YXXD","pydantic-contracts","Pydantic 数据契约验证","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAKS-Lab-GitHubCopilot\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fpydantic-contracts\u002FSKILL.md",[65,68],{"categoryNo":66,"categoryName":67,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":69,"categoryName":70,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BT7QVANT4709358VEJK53E","代码实现",[72],"pydantic contracts",{"skillNo":74,"name":75,"nameZh":76,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":77,"categories":78,"keywords":81,"publishedAt":31},"01M69BEEX9ND3CTPWKTR76427M","mcp-server-skeleton","MCP 服务端框架搭建","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAKS-Lab-GitHubCopilot\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmcp-server-skeleton\u002FSKILL.md",[79,80],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[82,83,84],"MCP","mcp server","mcp server skeleton",{"skillNo":86,"name":87,"nameZh":88,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":89,"categories":90,"keywords":93,"publishedAt":31},"01M69BEBM4PGHMSCBQGYDGXJEY","copilot-sdk-gpt55","Copilot SDK GPT-5.5 集成","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAKS-Lab-GitHubCopilot\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcopilot-sdk-gpt55\u002FSKILL.md",[91,92],{"categoryNo":66,"categoryName":67,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[94,95,96,97],"sdk","copilot","copilot sdk","copilot sdk gpt55",{"skillNo":99,"name":100,"nameZh":101,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":102,"categories":103,"keywords":110,"publishedAt":31},"01M69BEA91P1628K12AAXRHEG3","aks-helm","AKS Helm 应用部署","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAKS-Lab-GitHubCopilot\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Faks-helm\u002FSKILL.md",[104,107],{"categoryNo":105,"categoryName":106,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":108,"categoryName":109,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BSTR9076S7ETYWTQVVK45G","云原生计算与容器编排",[111],"aks helm",{"skillNo":113,"name":114,"nameZh":115,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":116,"categories":117,"keywords":122,"publishedAt":31},"01M69BE8V5PBXCRGERWC0Y62RG","aca-bicep","ACA Bicep 部署模板","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAKS-Lab-GitHubCopilot\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Faca-bicep\u002FSKILL.md",[118,119],{"categoryNo":108,"categoryName":109,"taxonomyType":27,"taxonomyTypeDesc":28},{"categoryNo":120,"categoryName":121,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BT9F3Z67AB1M6CHA8X75WW","云架构师",[123],"aca bicep",{"skillNo":125,"name":126,"nameZh":127,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":128,"categories":129,"keywords":136,"publishedAt":31},"01M69BE7K6CSG8HPMWJ11D86Q9","a2a-loopback-tests","A2A 回环测试","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAKS-Lab-GitHubCopilot\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fa2a-loopback-tests\u002FSKILL.md",[130,133],{"categoryNo":131,"categoryName":132,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":134,"categoryName":135,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[137,138],"a2a","a2a loopback tests"]