agentleFS
MicrosoftKnown publishermicrosoft/skills-for-copilot-studio/skills/validate/SKILL.md

validate

Skill459 starsChanged 8 months agoMITView on GitHub

Validate Copilot Studio agent YAML files using the LSP binary's full diagnostics (YAML structure, Power Fx, schema, cross-file references). Use when the user asks to check, validate, or verify YAML files.

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use explore, plan and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • genomewalkerSkill

    explore

    RLM-style recursive memory exploration - dynamically navigate the memory graph

    Also in 3 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 10 projects that use this

  • MicrosoftSkill

    worktree

    Create, reuse or clean up a dedicated git worktree for working on a pull request or a private branch. Use from any PR-scoped workflow that needs an isolated checkout to keep current code and build output untouched.

    Also in 3 projects that use this

  • Hugging FaceSkill

    implement

    Make tests pass. Invoke after /write-tests produces failing tests.

    Also in 6 projects that use this

  • AnthropicSkill

    status

    Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.

    Also in 4 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 8 projects that use this

The file

Files
SKILL.md

Validate Agent YAML

Validate Copilot Studio agent YAML files using the LanguageServerHost binary's full diagnostics — the same validation engine used by the VS Code Copilot Studio extension.

Instructions

  1. Locate the agent workspace. Find the directory containing .mcs/conn.json. If a specific file was requested, use the workspace that contains it.
  2. Run LSP-based validation:

    node ${CLAUDE_SKILL_DIR}/../../scripts/manage-agent.bundle.js validate \
      --workspace "<path-to-agent-folder>" \
      --tenant-id "<tenantId>" \
      --environment-id "<envId>" \
      --environment-url "<envUrl>" \
      --agent-mgmt-url "<mgmtUrl>"

    This validates all .mcs.yml files in the workspace using the LSP binary's full diagnostics: YAML structure, Power Fx expressions, schema validation, cross-file references, and environment-specific checks.

    Connection details come from .mcs/conn.json — read it to get tenant-id, environment-id, environment-url, and agent-mgmt-url.

  3. Parse the JSON output:
    • valid: true → all files pass (may still have warnings)
    • valid: false + summary.errors > 0 → report errors as FAIL items
    • summary.warnings > 0 → report as WARN items
    • Each file with diagnostics is listed with severity, message, code, and line range
  4. If the user asked about a specific file, filter the output to show only that file's diagnostics.
  5. For additional context on specific errors, use schema lookup:
    node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js resolve <kind>
  6. Report findings:

    Validation Results for: <agent-name>
    
    [PASS] <filename> — no issues
    [FAIL] <filename> — <error message> (line X)
    [WARN] <filename> — <warning message> (line X)
    
    Summary: X files checked, Y errors, Z warnings

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.