aspnet-core
Build, debug, modernize, or review ASP.NET Core applications with correct hosting,…
Creates VS Code custom agent files (.agent.md) for specialized AI personas with tools, instructions, and handoffs. Use when scaffolding new custom agents, configuring agent workflows, or setting up agent-to-agent handoffs.
$ npx -y skills add managedcode/dotnet-skills --skill create-custom-agent --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/create-custom-agentContext preview
The summary Claude sees to decide when to auto-load this skill.
Creates VS Code custom agent files (.agent.md) for specialized AI personas with tools, instructions, and handoffs. Use when scaffolding new custom agents, configuring agent workflows, or setting up agent-to-agent handoffs.
name: create-custom-agent description: Creates VS Code custom agent files (.agent.md) for specialized AI personas with tools, instructions, and handoffs. Use when scaffolding new custom agents, configuring agent workflows, or setting up agent-to-agent handoffs.
This skill helps you create VS Code custom agent files that define specialized AI personas for development tasks. Custom agents configure which tools are available, provide specialized instructions, and can chain together via handoffs.
| Input | Required | Description | |-------|----------|-------------| | Agent name | Yes | Descriptive name for the agent (e.g., `planner`, `code-reviewer`) | | Description | Yes | Brief description shown as placeholder text in chat | | Purpose/Persona | Yes | What role the agent plays and how it should behave | | Tools | Recommended | List of tools or tool sets the agent can use | | Handoffs | Optional | Next-step agents to transition to after completing work |
Create a file with `.agent.md` extension in the `agents/` directory:
agents/<agent-name>.agent.md
Add the header with required and optional fields:
--- name: <agent-name> description: <brief description for chat placeholder> tools: - <tool-name> - <tool-set-name> ---
| Field | Required | Description | |-------|----------|-------------| | `name` | No | Display name (defaults to filename) | | `description` | Yes | Placeholder text shown in chat input | | `argument-hint` | No | Hint text guiding user interaction | | `tools` | No | List of available tools/tool sets | | `agents` | No | List of allowed subagents (`*` for all, `[]` for none) | | `model` | No | AI model name or prioritized array of models | | `handoffs` | No | List of next-step agent transitions | | `user-invokable` | No | Show in agents dropdown (default: true) | | `disable-model-invocation` | No | Prevent subagent invocation (default: false) | | `target` | No | Target environment: `vscode` or `github-copilot` | | `mcp-servers` | No | MCP server configs for GitHub Copilot target |
Specify which tools the agent can use:
tools: - search # Built-in tool - fetch # Built-in tool - codebase # Tool set - myServer/* # All tools from MCP server
Common tool patterns:
Configure transitions to other agents:
handoffs:
- label: Start Implementation
agent: implementation
prompt: Implement the plan outlined above.
send: false
model: GPT-5.2 (copilot)Handoff fields:
Add the agent's behavior instructions in Markdown:
You are a security-focused code reviewer. Your job is to: 1. Analyze code for security vulnerabilities 2. Check for common security anti-patterns 3. Suggest secure alternatives ## Guidelines - Focus on OWASP Top 10 vulnerabilities - Flag hardcoded secrets immediately - Review authentication and authorization logic ## Reference other files See [security guidelines](../security.md) for standards.
Tips for instructions:
Verify the agent loads correctly:
1. Open Command Palette (Ctrl+Shift+P) 2. Run "Chat: New Custom Agent" or check agents dropdown 3. Use "Diagnostics" view (right-click in Chat view) to check for errors
---
name: <agent-name>
description: <brief description for chat placeholder>
argument-hint: <optional hint for user input>
tools:
- <tool-1>
- <tool-2>
handoffs:
- label: <button-text>
agent: <target-agent>
prompt: <pre-filled-prompt>
send: false
---
# <Agent Title>
<One paragraph describing the agent's persona and purpose.>
## Role
<Describe the agent's specialized role and expertise.>
## Guidelines
- <Guideline 1>
- <Guideline 2>
- <Guideline 3>
## Workflow
1. <Step 1>
2. <Step 2>
3. <Step 3>
## Constraints
- <Constraint 1>
- <Constraint 2>---
name: planner
description: Generate an implementation plan
tools:
- search
- fetch
- codebase
handoffs:
- label: Start Implementation
agent: implementation
prompt: Implement the plan above.
---
# Planning Agent
You are a solution architect. Generate detailed implementation plans.
## Guidelines
- Analyze requirements thoroughly before planning
- Break work into discrete, testable steps
- Identify dependencies and risks
- Do NOT make code changes--- name: code-reviewer description: Review code for quality and security issues tools: - search - codebase --- # Code Review Agent You are a senior engineer performing code review. ## Focus Areas - Security vulnerabilities - Performance concerns
Stop explaining .NET to your AI. Start building. We've all been there: asking Claude to use Entity Framework, only to get EF6 patterns in a .NET 8 project. Explaining to Copilot that Blazor Server and Blazor WebAssembly aren't the same thing.
Repo: managedcode/dotnet-skills
Build, debug, modernize, or review ASP.NET Core applications with correct hosting,…
Build, upgrade, and operate Aspire 13.5.x C# or TypeScript application hosts with the current…
Build, review, or migrate Azure Functions in .NET with correct execution model, isolated…
Build and review Blazor applications across server, WebAssembly, web app, and hybrid…
Maintain or migrate EF6-based applications with realistic guidance on what to keep, what to…
Design, tune, or review EF Core data access with proper modeling, migrations, query…