microsoft/employee-self-service-agent-developer-kit/cleanup
Claude Code and agent skill by microsoft/employee-self-service-agent-developer-kit
- vendor
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install microsoft/employee-self-service-agent-developer-kit/cleanupSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as microsoft/employee-self-service-agent-developer-kit/cleanup.
Cleanup Skill
<!-- markdownlint-disable MD001 -->
This skill scans a cloned ESS agent for compile errors and walks the user through fixing them.
Distinguish local fixes from changes pushed to the agent. Use the normal topic update or delete owner for approved changes and the general Push prompt for a selected batch. Carry scoped approval forward without repeating it.
Rules
- Before proposing or applying topic-file fixes or deletions, read and apply Authoring policy for this release in the shared topic contract. Carry template-protected deletions and independently blocked operations into the report as unchanged with their specific reason, not as fixed; continue read-only scanning and independently eligible work.
- Do NOT run terminal commands or scripts EXCEPT the kit's own helper scripts under
scripts/, including the selected topic owner's preview and approved execution commands. For everything else - file edits, validation, lookups - use your built-in file reading, writing, and editing tools only. Do NOT use Python, PowerShell, Node.js, or any other scripting language to do work the editing tools can do. - Do NOT fix errors automatically without user confirmation. Present each group of errors and ask the user before making changes.
- Do NOT modify the source template files in
src/. Only modify files inside the agent folder (the cloned agent at the workspace root). - After fixing errors, re-scan to verify the fix worked. Show the updated error count.
- Communication: Follow the communication rules in
copilot-instructions.md. Use the status definitions below for observed results. Keep internal tooling terms out of maker-facing messages. - Pending verification: Preserve a completed edit without repeatedly applying it when diagnostics have not refreshed. Report the edit and verification state separately; do not count an unconfirmed diagnostic result as resolved.
Cleanup status updates
Read the shared foundation, including Status update markers and Presentation and scope, before scanning. Use the local definitions below, not a native todo list or progress checklist. Bind counts to the current deduplicated local scan. Delegated topic edits and deletions emit through their performing owners; cleanup does not repeat their updates.
| Reporting point | Completion condition | Completion message | |
|---|---|---|---|
cleanup-scan | Both local error sources have been read for the selected agent and their current results merged and deduplicated. | ✅ Checked the local agent files: {Error count} errors found. | |
cleanup-checkpoint | The checkpoint operation confirms a saved snapshot before any approved edit. | ✅ Saved a checkpoint of your agent files. | |
cleanup-verification | A fresh combined scan reflects the post-change files and establishes the remaining local error count. | ✅ Rechecked the local agent files: {Remaining count} errors remain. |
For missing, failed or stale scan evidence, state what remains unverified rather than claiming zero errors or resolved findings. Preserve confirmed edits and remote outcomes separately. A failed checkpoint leaves fixes unstarted. For partial work, name completed changes and the remaining issue in the Final Report. A local scan does not verify remote behavior.
Step 1: Read Config
Read .local/config.json to get the agent details:
agent.folder— the name of the cloned agent folder (e.g.,Employee Self-Service HR)agent.slug— the slugified name (e.g.,employee-self-service-hr)
If .local/config.json doesn't exist or doesn't have agent.folder, tell the user: "I can't find your agent configuration. Run /setup first." Then STOP.
Step 2: Quick Scan (before checkpoint)
Before asking the user to checkpoint, do a quick pre-scan to see if there are any errors at all. Gather errors from both sources described in Step 3 below (VS Code Problems panel + agent folder scan), merge and deduplicate.
{EMIT_STATUS_UPDATE: cleanup-scan}
If the error count is zero, skip the checkpoint entirely and jump straight to Step 6 (Final Report) with 0 errors before / 0 fixed / 0 remaining. Do NOT ask the user to confirm a checkpoint — there's nothing to fix.
If the error count is greater than zero, continue to Step 2b.
Step 2b: Checkpoint
Tell the user:
{Target context}I found {count} errors. Before making any changes, I'll save a checkpoint of your agent files. This lets you restore the local files if needed; it does not restore changes already pushed to the agent.
Resolve {Target context} using the shared Target context binding. A checkpoint does not approve edits or a remote Push. Use the shared native-question conventions. Call ask_user:
Wait for Save checkpoint before continuing. Not now stops without edits.
When confirmed:
- Run in the terminal:
python scripts/checkpoint.py "pre-scan-fixes" - This saves a full snapshot of all working files before any modifications.
{EMIT_STATUS_UPDATE: cleanup-checkpoint}
Continue only after the checkpoint is confirmed.
- Record anonymous usage telemetry (best-effort, non-blocking — no user-facing
message, and it never fails the step): python scripts/emit_capability.py cleanup
Step 3: Scan for Errors (detailed categorization)
Gather errors from TWO sources and combine them into a single list:
- VS Code Problems panel — Use the error/diagnostics tool with NO file path filter (get all errors across the workspace). Filter the results to only include errors from files inside
{agent.folder}/. - Agent folder scan — Use the error/diagnostics tool specifically on
{agent.folder}/.
Merge both lists and deduplicate (the same error may appear in both). Use the combined list for the rest of this flow. Reuse the quick scan while still current; report only a new scan assessment here.
{EMIT_STATUS_UPDATE: cleanup-scan}
After scanning, group the errors into these categories:
Category 1: ModelDescription Too Long
Error message: Property 'ModelDescription' exceeds maximum length of 1024 characters What it means: The topic's modelDescription field (under beginDialog) is longer than 1024 characters, which Copilot Studio doesn't allow. Fix: Truncate or rewrite the modelDescription to fit within 1024 characters while preserving the key intent information.
Category 2: Missing CloudFlow
Error message: CloudFlow with id '{guid}' not found What it means: The topic references a Power Automate workflow (via InvokeFlowAction with a flowId) that wasn't included in the clone. This usually happens with add-on workflows (ADP, D365, password reset, catalog) that aren't part of the core ESS package. Fix options:
- Review topic deletion: Use the delete owner to assess eligibility, effects and local-only versus pushed deletion. A missing workflow in local extraction does not establish its absence at runtime.
- Skip: Leave it unchanged and report the unresolved error and any known impact.
Category 3: Missing Dialog Reference
Error message: Dialog with id '{schema}.topic.{name}' not found What it means: The topic references another topic using a BeginDialog action, but the schema name in the reference is wrong. Common cause: truncated schema name (e.g., msdyn_copilotforemployeeselfservice instead of msdyn_copilotforemployeeselfservicehr). Fix: Look at the incorrect dialog reference. Read .local/config.json to get the correct agent.schemaName. Replace the wrong schema prefix with the correct one. For example, if the error says msdyn_copilotforemployeeselfservice.topic.WorkdayManagerCheck and the correct schemaName is msdyn_copilotforemployeeselfservicehr, replace msdyn_copilotforemployeeselfservice with msdyn_copilotforemployeeselfservicehr in the file.
Unknown Errors
If you find errors that don't match any of the above categories, list them separately and tell the user: "I found some errors I don't have an automatic fix for. Here's what they are:" Then list them and suggest the user check the Copilot Studio documentation.
Step 4: Present Summary
Show the user a summary table:
##### SCAN RESULTS{Target context}I found {total} errors across {file_count} files:| Error Type | Files Affected | Fix || ------------------------- | -------------- | ------------------------------- || ModelDescription too long | {count} topics | Truncate to fit 1024-char limit || Missing CloudFlow | {count} topics | Review topic deletion or skip || Missing Dialog reference | {count} topics | Correct the schema name |
Then say: "Let's walk through each file. I'll explain what's wrong and propose fixes for your approval before making any changes."
Step 5: Fix Errors — File by File
Work through errors one file at a time. If a single file has multiple error types (e.g., both a ModelDescription issue AND a missing dialog reference), present ALL fixes for that file together so the user can approve them in one go.
For each file with errors:
- Read the full topic file.
- Name the topic under an H5 TOPIC heading, include
{Target context}once in the review and list all its errors under H5 ERRORS. - Propose fixes under H5 PROPOSED FIXES using the applicable guidance below, identifying the local-only edit scope, then show the native control.
ModelDescription Too Long
- Find the
modelDescriptionfield underbeginDialog. - Rewrite it to be under 1024 characters. Keep the essential information:
- What the topic does (1-2 sentences)
- When to trigger it (valid scenarios)
- When NOT to trigger it (invalid scenarios)
- Remove redundant examples, excessive formatting, or verbose explanations.
- Show the user the proposed new description and its character count.
Missing Dialog Reference
- Show the incorrect reference and what it should be (using
agent.schemaNamefrom config). - If the file has multiple bad references, include all of them in the same proposal.
Missing CloudFlow
- Tell the user the topic references a workflow that wasn't included in the clone. Include the topic's
componentNameand what it appears to do. - Offer to review deletion or skip. A choice to review enters
src/skills/topics/delete/SKILL.md; it is not destructive approval. Use that owner's policy, impact review, choices and scoped execution. - If the file also has other fixable errors, use this review/skip decision first. Skip the other fixes only after the delete owner confirms removal; selecting a deletion review alone does not remove anything.
After presenting all remaining proposed fixes for the file, call ask_user:
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 24 Nov 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsolutions/ess-maker-skills/src/skills/cleanup/SKILL.md
Popularity
- Repository stars
- 15
- Repository forks
- 6
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
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/employee-self-service-agent-developer-kit/cleanup)