xiaohongshu
xiaohongshu
m365-agent-scaffolder
Quickly scaffolds new Microsoft 365 Copilot declarative agent (M365 agent, copilot agent, agent, declarative copilot, copilot) projects using ATK CLI. Collects project information and creates the initial project structure. Use only when creating a new empty M365 Copilot agent project from scratch.
Full skill instructions
Copy this command EXACTLY. Replace <project-name> with the user's project name:
npx -p @microsoft/m365agentstoolkit-cli@latest atk new -n <project-name> -c declarative-agent -with-plugin type-spec -i false
| ❌ INVALID COMMAND | WHY IT FAILS |
|---|---|
atk init | DOES NOT EXIST - there is no init command |
atk init --template | DOES NOT EXIST - there is no init command or --template flag |
atk create | DOES NOT EXIST - there is no create command |
atk scaffold | DOES NOT EXIST - there is no scaffold command |
--template anything | DOES NOT EXIST - there is no --template flag |
--template declarative-copilot | DOES NOT EXIST - this is completely made up |
--template m365-agent | DOES NOT EXIST - this is completely made up |
Any command without npx -p @microsoft/m365agentstoolkit-cli@latest prefix | WILL FAIL - atk might not be installed globally |
✅ CORRECT:
npx -p @microsoft/m365agentstoolkit-cli@latest atk new -n my-agent -c declarative-agent -with-plugin type-spec -i false
❌ WRONG (DO NOT USE):
atk init my-agent --template declarative-copilot
❌ WRONG (DO NOT USE):
atk init my-agent --template m365-agent
❌ WRONG (DO NOT USE):
atk create my-agent
This skill does ONE thing: creates new M365 Copilot agent project structures. It:
All architecture, planning, implementation, and deployment is handled by the m365-agent-developer skill.
Use this skill ONLY when:
Do NOT use this skill when:
Follow these exact steps when creating a new M365 Copilot agent project:
Action: Verify the user wants to create a NEW M365 Copilot agent project.
Check for:
If existing project: Stop and recommend using m365-agent-developer skill.
Action: First, check if the current directory is empty. Then ask for the project name.
Directory Check (CRITICAL):
ls -A to check if current directory is empty.) when evaluating if directory is empty:
.claude, .copilot, .github are configuration/metadata folders❌ Error: Current directory is not empty!
This skill requires an empty directory to scaffold a new M365 Copilot agent project.
Please navigate to an empty directory or create a new one first.
If directory is empty, collect:
Example question:
What would you like to name your M365 Copilot agent project?
Action: Execute the scaffolding command, then move files from the ATK-created subfolder to the current directory.
Commands to execute sequentially:
npx -p @microsoft/m365agentstoolkit-cli@latest atk new -n <project-name> -c declarative-agent -with-plugin type-spec -i false
BEFORE YOU RUN ANY COMMAND, VERIFY:
npx -p @microsoft/m365agentstoolkit-cli@latestatk new (NOT atk init, NOT atk create)-c declarative-agent (NOT --template)-with-plugin type-spec-i falseIF YOUR COMMAND LOOKS LIKE ANY OF THESE, STOP - IT IS WRONG:
atk init ... → WRONG, use atk new--template ... → WRONG, use -c declarative-agentnpx -p @microsoft/m365agentstoolkit-cli@latest → WRONGParameters:
-n <project-name>: The project name provided by the user (ONLY parameter to customize)-c declarative-agent: Create a declarative agent (REQUIRED - do not change)-with-plugin type-spec: Include TypeSpec plugin scaffolding (REQUIRED - do not change)-i false: Non-interactive mode (REQUIRED - do not change)Note: ATK will create a subfolder named <project-name> with all project files.
mv <project-name>/* <project-name>/.* . 2>/dev/null || true
rmdir <project-name>
Why this is important:
Action: Provide a simple confirmation message and automatically continue to m365-agent-developer skill.
Message template:
✅ Project created in current directory: <absolute-current-directory-path>
Your empty M365 Copilot agent project structure is ready.
🎯 Continuing with the m365-agent-developer skill to help you design and implement your agent...
Then immediately invoke m365-agent-developer skill:
For detailed examples of how to use this skill, see the Examples Reference.
For detailed best practices when scaffolding M365 Copilot agent projects, see the Best Practices Reference.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience