agentleFS
MicrosoftKnown publishermicrosoft/Dataverse-skills/.github/plugins/dataverse/templates/CLAUDE.md

Dataverse-skills / templates

CLAUDE.md237 starsChanged 2 months agoMITView on GitHub

Pull from environment to repo: Push from repo to environment: Validate after push (using Python SDK):

  • Reads credentials
  • Commits and pushes

The file

We split this CLAUDE.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All GUIDs in form and view XML must be unique — generate with python -c "import uuid.

    line 52
  2. Very specific:

    All assemblies must be strong-named (.snk key file, gitignored)

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Dataverse Workspace

Environment

  • URL: {{DATAVERSE_URL}}
  • Solution: {{SOLUTION_NAME}}
  • Publisher Prefix: {{PUBLISHER_PREFIX}}
  • PAC Auth Profile: {{PAC_AUTH_PROFILE}}

Repo Layout

  • /solutions/{{SOLUTION_NAME}}/ — unpacked solution source files (source of truth)
  • /plugins/ — C# Dataverse plugin projects
  • /.dataverse/ — plugin skills, scripts, and templates (committed, no credentials)
  • .env — local environment config (not committed, gitignored)
  • .vscode/settings.json — MCP server config (not committed, gitignored)

Workflows

Pull from environment to repo:

pac solution export --name {{SOLUTION_NAME}} --path ./solutions/{{SOLUTION_NAME}}.zip --managed false
pac solution unpack --zipfile ./solutions/{{SOLUTION_NAME}}.zip --folder ./solutions/{{SOLUTION_NAME}}
rm ./solutions/{{SOLUTION_NAME}}.zip
git add ./solutions/{{SOLUTION_NAME}} && git commit -m "chore: pull {{SOLUTION_NAME}}" && git push

Push from repo to environment:

pac solution pack --zipfile ./solutions/{{SOLUTION_NAME}}.zip --folder ./solutions/{{SOLUTION_NAME}}
pac solution import --path ./solutions/{{SOLUTION_NAME}}.zip --environment {{DATAVERSE_URL}} --async --activate-plugins
rm ./solutions/{{SOLUTION_NAME}}.zip

Validate after push (using Python SDK):

from auth import get_client

client = get_client("dv-data")

# Check table exists
info = client.tables.get("<logical_name>")
print(f"[{'PASS' if info else 'FAIL'}] Table '<logical_name>'")

# Check import errors
errors = client.records.list("msdyn_solutionhistory", filter="msdyn_status eq 1",
    select=["msdyn_name", "msdyn_exceptionmessage"], orderby=["msdyn_starttime desc"], top=5)
print(f"[{'FAIL' if len(errors) else 'PASS'}] {len(errors)} failed import(s)")

Metadata Conventions

  • Table prefix: {{PUBLISHER_PREFIX}}_ (from .env; also visible in solutions/{{SOLUTION_NAME}}/Other/Solution.xml)
  • All GUIDs in form and view XML must be unique — generate with python -c "import uuid; print(str(uuid.uuid4()).upper())"
  • Business rules are stored as JSON in Entities/<table>/Workflows/

C# Plugins

  • Projects live in /plugins/<PluginName>/
  • All assemblies must be strong-named (.snk key file, gitignored)
  • Register via scripts/register_plugin.py (first time) or pac plugin push --pluginId (updates)
  • See /plugins/README.md for the full build and registration steps

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.