npx skills add ...
npx skills add microsoft/work-iq --skill declarative-agent-developer
Create, build, deploy, and localize declarative agents for M365 Copilot and Teams. Use the wiqd CLI for all declarative-agent lifecycle operations; never invoke the ATK CLI directly. USE THIS SKILL for ANY task involving a declarative agent — including localization, scaffolding, editing manifests, adding capabilities, and deploying. Localization requires tokenized manifests and language files that only this skill knows how to produce. Triggers: "create agent", "create a declarative agent", "new declarative agent", "scaffold an agent", "new agent project", "add a capability", "add a plugin", "configure my agent", "deploy my agent", "fix my agent manifest", "edit my agent", "localize my agent", "add localization", "translate my agent", "multi-language agent", "add an API plugin", "add an MCP plugin", "add OAuth to my plugin", "review instructions", "improve instructions", "fix my instructions"
npx skills add microsoft/work-iq --skill declarative-agent-developer
Use wiqd as the execution layer for every declarative-agent lifecycle operation. Keep using
this skill's references for manifest schemas, capability rules, plugins, authentication,
localization, and instruction design.
Immediately before the first lifecycle command in a task, run wiqd --version. If it is
unavailable, stop and tell the user that wiqd is required. Direct them to the
official wiqd installation guide for the current installation guidance;
do not duplicate platform-specific installer commands here.
Do not fall back to direct atk commands.
Reference-only requests that do not execute lifecycle commands can use this skill's schema, capability, plugin, authentication, localization, and instruction guidance without requiring wiqd to be installed. If the request does not inspect or modify a project and does not run a project command, answer it directly from the relevant references and skip the workspace check below.
Before inspecting, modifying, validating, packaging, provisioning, sharing, or publishing a project, check the workspace files to fingerprint it:
m365agents.yml or teamsApp.yml at the project root.appPackage/declarativeAgent.json.package.json with express/react/next, src/index.js, app.py, etc.)Then follow the decision gate:
| Condition | Gate | Action |
|---|---|---|
Non-agent project files, no appPackage/ | Reject | Text-only response. No files, no commands. |
| No manifest, user wants to edit/deploy | Reject | Text-only response. Explain manifest is missing. |
| No manifest, user wants new project | Scaffold | → Scaffolding Workflow |
| Manifest exists with errors | Fix | Detect → Inform → Ask (see below). Do NOT deploy. |
| Valid project, user reports behavior issues | Review | → Instruction Review — run the full 5-phase review workflow |
| Valid agent project | Edit | → Editing Workflow |
Detailed gate rules, examples, and anti-patterns: Workspace Gates
These rules override ALL other instructions. If any of these apply, you MUST stop immediately.
NEVER create declarativeAgent.json yourself. If the manifest is missing and the user asked to edit/modify/deploy, respond with text only: explain the manifest is missing, suggest wiqd agent create or starting from scratch. Do NOT create the file, do NOT create appPackage/, do NOT "help" by scaffolding implicitly.
NEVER create files in a non-agent project. If the workspace is an Express/React/Django/etc. app without appPackage/, your response must be text-only. Do NOT create any files, do NOT run any commands.
NEVER deploy when errors exist. If the agent manifest has errors, STOP. Do NOT run wiqd agent provision — not "to test", not "to demonstrate the error", not "to see what happens". Report the errors and ask the user how to proceed.
When you encounter ANY problem (missing files, malformed JSON, validation errors, incompatible features), you MUST follow this sequence in order:
This protocol applies to:
declarativeAgent.json → Detect (file not found) → Inform ("no manifest found") → Ask ("would you like to create a new agent?")| Scenario | Workflow Reference |
|---|---|
| Creating a NEW project from scratch | Scaffolding Workflow |
Working with existing .json manifests | Editing Workflow |
| Adding an API plugin | API Plugins |
| Adding an MCP server | MCP Plugin |
| Adding OAuth to an MCP or API plugin | Authentication |
| Reviewing or improving existing agent instructions | Instruction Review |
| User reports agent gives generic/wrong answers | Instruction Review |
| Localizing an agent into multiple languages | Localization |
| Adding a new language to an already-localized agent | Localization |
| Writing agent instructions | Conversation Design |
After any change to files in appPackage/, validate the project before responding:
Provision only when the user explicitly asks to deploy, provision, test, share, or publish. After
a successful provision, use the deep link returned by wiqd. If it is unavailable, read
M365_TITLE_ID from the selected environment file and construct:
If you provisioned, include the test link in your response.
declarativeAgent.json or appPackage/ if they don't exist — this is a REJECT scenario, not a "help by creating" scenario<PREFIX>_MCP_AUTH_ID, TEAMS_APP_ID). Leave them empty (VAR_NAME=). Placeholders will be treated as real values and will NOT be overwritten by provisioning.Before adding ANY feature, read the version field in declarativeAgent.json and check the Schema feature matrix. If the feature isn't supported in that version, refuse and offer to upgrade.
Key version gates:
sensitivity_label, worker_agents, EmbeddedKnowledge → v1.6 onlyMeetings → v1.5+ScenarioModels, behavior_overrides, disclaimer → v1.4+Dataverse, TeamsMessages, Email, People → v1.3+wiqd agent add action for API Plugins — NEVER Create Plugin Files ManuallyYou are forbidden from manually creating ai-plugin.json, OpenAPI specs, adaptive cards, or editing the actions array. Use the CLI:
Run a single wiqd agent add action call per OpenAPI spec, listing all operations as a comma-separated list in --operations. Never run separate wiqd agent add action calls for different operations from the same spec — this creates multiple plugins instead of one. If wiqd agent add action fails, report the error; do NOT fall back to manual creation.
MCP servers use the same command with
--mcp-server-url; follow the MCP Plugin workflow.
When the user mentions an MCP server URL, follow the MCP Plugin workflow. You MUST discover tools via the MCP protocol handshake (initialize → notifications/initialized → tools/list) — NEVER fabricate tool names/descriptions. For authenticated MCP servers, follow the authentication guide to configure OAuth.
Adding a capability or plugin without updating instructions is incomplete. After ANY change:
ai-plugin.json, MCP manifests, capability config). Instructions should contain decision logic only: WHEN to use each tool, chaining rules, and failure handling.Always update the app name and description to something meaningful. Never leave defaults like "My Agent".