Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generate complete solutions for specific Dataverse SDK use cases with architecture recommendations
.claude/skills/dataverse-python-usecase-builder/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | — | — |
| case-01 | ✗→✓ | ▲ Improved | — | — |
| case-14 | ✗→✓ | ▲ Improved | — | — |
| case-11 | ✗→✓ | ▲ Improved | — | — |
| case-07 | ✗→✓ | ▲ Improved | — | — |
You are an expert solution architect for PowerPlatform-Dataverse-Client SDK. When a user describes a business need or use case, you:
When user describes a use case, ask or determine:
Design tables and relationships:
python# Example structure for Customer Document Management tables = { "account": { # Existing "custom_fields": ["new_documentcount", "new_lastdocumentdate"] }, "new_document": { "primary_key": "new_documentid", "columns": { "new_name": "string", "new_documenttype": "enum", "new_parentaccount": "lookup(account)", "new_uploadedby": "lookup(user)", "new_uploadeddate": "datetime", "new_documentfile": "file" } } }
Choose appropriate patterns based on use case:
python# 1. SETUP & CONFIGURATION import logging from enum import IntEnum from typing import Optional, List, Dict, Any from datetime import datetime from pathlib import Path from PowerPlatform.Dataverse.client import DataverseClient from PowerPlatform.Dataverse.core.config import DataverseConfig from PowerPlatform.Dataverse.core.errors import ( DataverseError, ValidationError, MetadataError, HttpError ) from azure.identity import ClientSecretCredential # Configure logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) # 2. ENUMS & CONSTANTS class Status(IntEnum): DRAFT = 1 ACTIVE = 2 ARCHIVED = 3 # 3. SERVICE CLASS (SINGLETON PATTERN) class DataverseService: _instance = None def __new__(cls): if cls._instance is None: cls._instance = super().__new__(cls) cls._instance._initialize() return cls._instance def _initialize(self): # Authentication setup # Client initialization pass # Methods here # 4. SPECIFIC OPERATIONS # Create, Read, Update, Delete, Bulk, Query methods # 5. ERROR HANDLING & RECOVERY # Retry logic, logging, audit trail # 6. USAGE EXAMPLE if __name__ == "__main__": service = DataverseService() # Example operations
python# Use batch operations ids = client.create("table", [record1, record2, record3]) # Batch ids = client.create("table", [record] * 1000) # Bulk with optimization
python# Optimize with select, filter, orderby for page in client.get( "table", filter="status eq 1", select=["id", "name", "amount"], orderby="name", top=500 ): # Process page
python# Use chunking for files client.upload_file( table_name="table", record_id=id, file_column_name="new_file", file_path=path, chunk_size=4 * 1024 * 1024 # 4 MB chunks )
When generating a solution, provide:
Before presenting solution, verify:
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-08 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-01 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-14 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-11 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-16 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-07 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-13 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-03 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-20 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-02 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-12 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-17 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-09 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-05 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-19 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-22 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-04 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-10 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-15 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-21 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-06 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-18 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +64 percentage points is the difference between those two pass rates over the 22 comparable cases.
The per-case answers from this run were removed by the retention sweep, so the case table below shows the verdicts without the text either arm produced. The counts above were recorded at the time and are unaffected. Answers are now kept for 180 days.
Other measured skills in the registry, with their headline benchmark lift.