{"kind":"Skill","metadata":{"namespace":"community","name":"typespec-create-agent","version":"0.1.0"},"spec":{"description":"Generate a complete TypeSpec declarative agent with instructions, capabilities, and conversation starters for Microsoft 365 Copilot","files":{"SKILL.md":"---\nname: typespec-create-agent\ndescription: 'Generate a complete TypeSpec declarative agent with instructions, capabilities, and conversation starters for Microsoft 365 Copilot'\n---\n\n# Create TypeSpec Declarative Agent\n\nCreate a complete TypeSpec declarative agent for Microsoft 365 Copilot with the following structure:\n\n## Requirements\n\nGenerate a `main.tsp` file with:\n\n1. **Agent Declaration**\n   - Use `@agent` decorator with a descriptive name and description\n   - Name should be 100 characters or less\n   - Description should be 1,000 characters or less\n\n2. **Instructions**\n   - Use `@instructions` decorator with clear behavioral guidelines\n   - Define the agent's role, expertise, and personality\n   - Specify what the agent should and shouldn't do\n   - Keep under 8,000 characters\n\n3. **Conversation Starters**\n   - Include 2-4 `@conversationStarter` decorators\n   - Each with a title and example query\n   - Make them diverse and showcase different capabilities\n\n4. **Capabilities** (based on user needs)\n   - `WebSearch` - for web content with optional site scoping\n   - `OneDriveAndSharePoint` - for document access with URL filtering\n   - `TeamsMessages` - for Teams channel/chat access\n   - `Email` - for email access with folder filtering\n   - `People` - for organization people search\n   - `CodeInterpreter` - for Python code execution\n   - `GraphicArt` - for image generation\n   - `GraphConnectors` - for Copilot connector content\n   - `Dataverse` - for Dataverse data access\n   - `Meetings` - for meeting content access\n\n## Template Structure\n\n```typescript\nimport \"@typespec/http\";\nimport \"@typespec/openapi3\";\nimport \"@microsoft/typespec-m365-copilot\";\n\nusing TypeSpec.Http;\nusing TypeSpec.M365.Copilot.Agents;\n\n@agent({\n  name: \"[Agent Name]\",\n  description: \"[Agent Description]\"\n})\n@instructions(\"\"\"\n  [Detailed instructions about agent behavior, role, and guidelines]\n\"\"\")\n@conversationStarter(#{\n  title: \"[Starter Title 1]\",\n  text: \"[Example query 1]\"\n})\n@conversationStarter(#{\n  title: \"[Starter Title 2]\",\n  text: \"[Example query 2]\"\n})\nnamespace [AgentName] {\n  // Add capabilities as operations here\n  op capabilityName is AgentCapabilities.[CapabilityType]\u003c[Parameters]\u003e;\n}\n```\n\n## Best Practices\n\n- Use descriptive, role-based agent names (e.g., \"Customer Support Assistant\", \"Research Helper\")\n- Write instructions in second person (\"You are...\")\n- Be specific about the agent's expertise and limitations\n- Include diverse conversation starters that showcase different features\n- Only include capabilities the agent actually needs\n- Scope capabilities (URLs, folders, etc.) when possible for better performance\n- Use triple-quoted strings for multi-line instructions\n\n## Examples\n\nAsk the user:\n1. What is the agent's purpose and role?\n2. What capabilities does it need?\n3. What knowledge sources should it access?\n4. What are typical user interactions?\n\nThen generate the complete TypeSpec agent definition.\n"},"import":{"commit_sha":"541b7819d8c3545c6df122491af4fa1eae415779","imported_at":"2026-05-18T20:05:35Z","license_text":"MIT License\n\nCopyright GitHub, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","owner":"github","repo":"github/awesome-copilot","source_url":"https://github.com/github/awesome-copilot/tree/541b7819d8c3545c6df122491af4fa1eae415779/plugins/typespec-m365-copilot/skills/typespec-create-agent"}},"content_hash":[139,169,66,174,4,150,7,41,200,93,232,54,113,2,7,194,28,16,95,180,221,238,83,135,254,250,2,55,233,138,101,26],"trust_level":"unsigned","yanked":false}
