microsoft/discovery/discovery-design-tasks
Claude Code and agent skill by microsoft/discovery
- vendor
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install microsoft/discovery/discovery-design-tasksSKILL.md
The same SKILL.md was published earlier as microsoft/discovery/discovery-design-tasks.
--- name: discovery-design-tasks description: "Generate a Microsoft Discovery task design (markdown only) for a user-specified local-app or cloud-service Foundry agent set using one (or all) of the three advanced investigation patterns: Deterministic, Guided Exploration, and Autonomous Research. For cloud-service task design or task creation, first look for a Discovery MCP server or Discovery proxy to resolve cloud workspaces, projects, agents, investigations, and tasks; if none is available, try Azure CLI before asking the user for another access route. Use when asked to plan a Discovery investigation, draft task trees, or choose an investigation pattern for an existing agent set." argument-hint: "Optional: --target local|cloud --agents all|select --pattern deterministic|guided|autonomous|all --out <folder>" user-invocable: true
Discovery Task Design
This skill produces a markdown task design file and must never overwrite an existing `task-design.md`.
What This Skill Does
Generates a task-design.md document that describes a Discovery investigation using one or all of the three patterns from the Microsoft Discovery advanced investigation patterns documentation:
- Deterministic Investigation — fully specified parent + numbered subtasks with explicit agents and dependencies.
- Guided Exploration — high-level phases with broad validation; cognition picks agents inside each phase.
- Autonomous Research — single root-task prompt with validation requirements only.
The full canonical markdown example is embedded in Appendix A at the bottom of this file — use it as the byte-for-byte structural reference.
Inputs to Collect
Before generating anything, gather these inputs (use the ask-questions tool if any are missing or ambiguous — do NOT guess). Reuse values already present in the conversation or active editor when possible. Collect the Discovery target first by itself; if the user chooses Discovery cloud service, ask the cloud workspace, project, and investigation name in the next question before asking for the objective, pattern, or output folder.
| Input | Required | Notes | |
|---|---|---|---|
| Discovery target | Yes | Ask whether the task design is for the Discovery local app or the Discovery cloud service. | |
| Cloud access route | Conditional | Required only when Discovery target is cloud service. Look for an available Discovery MCP server or Discovery proxy before resolving cloud workspaces, projects, agents, investigations, or tasks. If none is available, try Azure CLI (az) before asking the user to connect/provide another route. | |
| Cloud workspace/project/investigation | Conditional | Required only when Discovery target is cloud service. Ask for the workspace name, project name, and investigation name. Use the workspace/project to resolve Foundry agents; use the investigation name as the task destination. | |
| Agent selection mode | Yes | After resolving the available agents for the chosen target, choose the best-fit agents for the user's objective. Ask for manual selection only if the user explicitly requests it or if the objective is too ambiguous to choose responsibly. This applies to both Discovery local app and Discovery cloud service, and to both task designs and task creation. | |
| Agent set | Yes | Name + one-line role for each best-fit or user-selected agent. For cloud-service designs and task creation, derive the available list from the Foundry agents in the specified workspace/project. Do not use the local catalog, local .github/agents, or an investigation-scoped list as the cloud task-design source. Always exclude any agent whose exact name is Discovery. | |
| Investigation objective | Yes | The scientific goal, target molecules, therapeutic area, dataset, or open-ended question. | |
| Pattern(s) | Yes | deterministic, guided, autonomous, or all. Default to all if the user just asks for "a task design". | |
| Task creation pattern | Conditional | Required when creating tasks from an existing task-design.md that contains more than one pattern example. Inspect the design first, list the available patterns found, and ask the user to choose exactly one before creating any tasks. Do not default to deterministic in this case. | |
| Output folder | Yes | Where to write the task design. Default: tasks in the current workspace. If task-design.md already exists in that folder, preserve it and write a timestamped sibling file named task-design-YYYYMMDD-HHMMSS.md instead. |
Agent Source Resolution
Always resolve the Discovery target before resolving the agent set:
- Discovery local app — look for available agents in the workspace's
.github/agentsfolder. Read the.agent.mdfiles there to identify agent names and one-line roles. If the folder is missing or no matching agents are present, surface the mismatch before generating tasks. - Discovery cloud service — ask the user for the cloud workspace name, project name, and investigation name. Before making any cloud lookup or mutation, look for a connected Discovery MCP server or Discovery proxy that can list workspaces/projects, Foundry agents, investigations, and tasks. Prefer that MCP/proxy for all cloud-service resolution and task creation. If no Discovery MCP server/proxy is available, check whether Azure CLI (
az) is installed and authenticated, then try to resolve the same cloud resources through Azure CLI commands before asking the user for another route. Resolve the available agent list from the Foundry agents in that cloud workspace/project, not from the local catalog, local.github/agents, or an investigation-scoped list. Then look up the named investigation in the project: if it exists, create the task design for that existing investigation; if it does not exist, create a new investigation with that exact name before creating tasks. If neither a Discovery MCP/proxy nor Azure CLI can resolve the service, report what is missing and ask the user to connect a Discovery MCP server/proxy, sign in/configure Azure CLI, provide proxy details, or switch to Discovery local app. If the user has not supplied the workspace, project, and investigation name, ask before generating tasks. - If the user explicitly provides an agent list, still ask for the Discovery target so the generated design is grounded in the correct runtime context, then verify the requested agents against the resolved available list for that target.
- In every target mode and source path, remove any agent whose exact name is
Discoveryfrom the resolved available list and from any user-provided selection before writing task designs or creating tasks. Never listDiscoveryin Available Agents, assign it to a deterministic task, mention it as a selectable agent for guided/autonomous work, or create a cloud task assigned to it. - After the available list is resolved and filtered, select only the best-fit agents for the user's objective. Use the agents whose tools, data sources, or reasoning capabilities directly contribute to evidence retrieval, computation, validation, synthesis, or reporting for the stated investigation. Do not include broad catalog capacity in Available Agents just because it exists.
- If the user explicitly asks to use all agents, force every selected agent into the design only when the objective can support meaningful task assignments for each one; otherwise explain the mismatch and ask whether to broaden the objective or proceed with the best-fit subset.
- If the user explicitly asks to select specific agents, present the filtered available agents by name and role using a multi-select question or allow typed names. Validate exact names against the filtered available list and surface any mismatch before generating tasks.
- If the objective is too ambiguous to identify best-fit agents, ask one focused clarification question about the scientific goal before generating tasks.
Cloud MCP / Proxy / Azure CLI Resolution
For Discovery cloud service targets, always establish the service access route before designing or creating cloud tasks. Prefer a Discovery MCP server/proxy; use Azure CLI as the fallback route when no MCP/proxy is available.
The canonical Discovery MCP endpoint is https://mcp.discovery.azure.com/mcp. For scripted runs in this workspace, use the local stdio proxy pattern from .vscode/discovery-mcp-proxy.ps1 before trying Azure CLI. The proxy mints an Entra token for https://discovery.azure.com, forwards JSON-RPC requests to https://mcp.discovery.azure.com/mcp, preserves the Mcp-Session-Id, and avoids waiting for VS Code to surface deferred mcp_microsoft-dis_* tools mid-session.
- Search the available tool catalog / MCP registry for a callable Discovery MCP server or Discovery proxy. Use likely names and keywords such as
discovery,microsoft discovery,foundry,workspace,project,investigation,tasks,mcp, andproxy. Also check whether.vscode/discovery-mcp-proxy.ps1exists; if it does, invokehttps://mcp.discovery.azure.com/mcpthrough that proxy directly rather than waiting for VS Code MCP tools to appear. - If more than one candidate is available, choose the one that explicitly exposes Discovery cloud workspaces/projects, Foundry agents, investigations, and task creation APIs. If the capabilities are ambiguous, ask the user which Discovery MCP/proxy to use.
- Use the selected MCP/proxy to resolve the cloud workspace and project, list the project's Foundry agents, resolve or create the target investigation, and create cloud tasks when task creation is requested. When using the scripted proxy path, send MCP
initialize,notifications/initialized, thentools/listto discover the exact task and investigation tool names before callingtools/call. - If no Discovery MCP/proxy is available, try Azure CLI before stopping:
- Check for
azwithGet-Command azor equivalent. - Check authentication and selected tenant/subscription with
az account show. - If needed and non-interactive account context is unavailable, ask the user which subscription, resource group, workspace, or project values to use. Do not request secrets.
- Use installed Azure CLI commands or extensions that can list Discovery/Foundry workspaces, projects, agents, investigations, and tasks. If the required command group or extension is missing, try
az extension list-available/az extension addonly when the extension name is known from Azure CLI output or official command discovery; otherwise ask the user for the expected CLI extension or proxy route. - Use Azure CLI output only when it confirms the cloud workspace/project, Foundry agent list, and investigation destination. Do not infer missing cloud objects from local files.
- Do not fall back to the local
discovery_catalog, local.github/agents, cached examples, or guessed agent names for cloud-service designs unless the user explicitly switches the target to Discovery local app. - If neither a Discovery MCP/proxy nor Azure CLI can resolve the service, stop before generating the cloud task design and tell the user what is missing. The user can connect a Discovery MCP server/proxy, sign in/configure Azure CLI, provide proxy details, or switch the target to Discovery local app.
Cloud Task Creation Protocol
When the user asks to create cloud tasks from a task design, use the Discovery MCP CreateOrUpdateInvestigation, CreateTask, UpdateTask, ListTasks, and optionally AddTaskComment tools through the selected MCP/proxy. Do not use the local tasks tool for cloud-service task creation.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 6 Oct 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/discovery-design-tasks/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/discovery/discovery-design-tasks)