microsoft-365-agents-toolkit
Installation
SKILL.md
Microsoft 365 Agents Toolkit Skill
Build Microsoft 365 agents and Teams apps using the ATK CLI.
AI Behavior Guidelines
-
Testing Strategy: Recommend Agents Playground first (faster, no M365 needed). Use Teams workflow only if user explicitly requests it.
-
Environment Variables: NEVER hardcode secrets or make up placeholder values. Always ask users for real values.
-
Error Handling: Read error messages carefully. Check
env/.env.local,.localConfigs, andatk auth list. Common pitfalls:AADSTS7000229→aadApp/createmissinggenerateServicePrincipal: truein YAML — add it and re-provision- Missing
TENANT_IDin.localConfigs→ SDK uses wrong token authority → 401 from Bot Connector - 401 persists after auth fix → devtunnel URL may be blacklisted — create a fresh tunnel
- See troubleshoot/troubleshoot.md for full diagnostic steps
-
Long-Running Commands — WAIT for completion:
atk new,atk provision,atk deploycan take several minutes- Always wait for completion before running the next step (timeout 120000ms+)