Skip to main content
skill GitHub Copilot official · GitHub

dataverse-python-usecase-builder — GitHub Copilot skill: install

This skill turns Dataverse use cases into Python solution designs, data models, and implementation guidance. Use it when an agent needs to plan a complete SDK workflow.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add github/awesome-copilot --skill dataverse-python-usecase-builder -a claude-code
Open on GitHub

What dataverse-python-usecase-builder does

The skill examines a Dataverse request and identifies required operations, data volume, run frequency, performance needs, error tolerance, and audit requirements. It then recommends tables, fields, relationships, and a matching pattern for CRUD, batch work, queries, files, scheduled jobs, or event-driven integration.

Its output covers the architecture, data model, implementation code, usage notes, performance guidance, error recovery, monitoring, and testing. The included template uses DataverseClient, DataverseConfig, Dataverse SDK errors, ClientSecretCredential, logging, and Python 3.10+ type hints.

Install it when an agent should turn a business description into a structured Dataverse solution. For a small one-off request, the skill may add more structure than you need.

What it helps with

  • design Dataverse tables and relationships
  • build Python CRUD operations
  • prepare bulk record processing
  • upload large files in chunks
  • document retries, logging, and audit handling

Example prompts for the agent

  • Design a Dataverse document-management model and write the Python implementation.
  • Create a batch synchronization flow that handles partial failures.
  • Show how to upload files to Dataverse with `upload_file`.

How to install dataverse-python-usecase-builder

1Skills CLI (Vercel)

npx skills add github/awesome-copilot --skill dataverse-python-usecase-builder -a claude-code

2Manually: put the files in place

~/.claude/skills/dataverse-python-usecase-builder/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/dataverse-python-usecase-builder/

From the same set554

The whole set →
git-commit official github This skill reviews Git changes, stages related files, and creates Conventional Commits. Use it when you want an agent to make one commit or split work into separate commits. GitHub Copilot 47,165installs excalidraw-diagram-generator official github Turn a plain-language description into an Excalidraw diagram. Useful for mapping processes, system structure, and relationships between entities. GitHub Copilot 31,639installs multi-stage-dockerfile official github This skill guides GitHub Copilot in writing multi-stage Dockerfiles for different languages and frameworks. Use it when the final runtime image should contain fewer build dependencies. GitHub Copilot 29,688installs documentation-writer official github Skill that turns the agent into a technical writer following the Diátaxis framework: tutorials, how-to guides, reference, and explanation. Proposes structure before writing. GitHub Copilot 27,757installs prd official github Turns a feature idea into a structured PRD with user stories, technical requirements, and risks. Use it when planning a software feature or an AI-powered one. GitHub Copilot 24,035installs refactor official github This skill reshapes existing code without changing its external behavior. Use it for gradual cleanup of large functions, duplication, weak types, and code smells. GitHub Copilot 22,321installs java-springboot official github Gives GitHub Copilot Spring Boot development practices, from project layout to tests and security. Use it when writing or reviewing Java application code. GitHub Copilot 21,272installs create-readme official github This skill reviews a project and creates a structured README.md. Use it when the repository needs clear documentation based on its actual files and code. GitHub Copilot 19,081installs

Similar

error-handling-patterns Seth Hobson This skill helps choose error-handling patterns such as exceptions, Result types, retries, and graceful degradation. Use it when building APIs or debugging failures. Claude Code CX Codex Cursor 22,957installs python-design-patterns Seth Hobson Use it to shape Python components, separate responsibilities, and decide when repeated code deserves an abstraction. It fits design and refactoring work. Claude Code CX Codex Cursor 22,842installs google-analytics-admin-api-basics official google This skill guides agents through Google Analytics Admin API setup and account configuration. Use it to manage properties and integrations from code. Claude Code Gemini CLI CX Codex 7,068installs google-ads-api-mcp-setup official google-ads-api-team This skill installs the official Google Ads MCP Server and helps connect an AI assistant to an account for campaign queries and reporting metrics. Claude Code Gemini CLI CX Codex 6,910installs mcp-builder official anthropics This skill walks through building an MCP server in TypeScript or Python, from reading the protocol spec to writing tests and evaluation questions. Claude Code Claude.ai 130,949installs google-agents-cli-adk-code official Google A reference skill for building ADK agents with tools, callbacks, state, and workflows. Use it when an agent project needs concrete API patterns or code examples. Claude Code CX Codex Cursor +1 511,400installs lark-im larksuite This skill lets an agent work with Lark IM messages, chats, files, and interactive cards. Use it when coding tasks need access to team conversations. Claude Code CX Codex Cursor +1 472,300installs lark-event larksuite Listens to Lark/Feishu events and streams them as NDJSON. Use it for bots, message processing, and long-running subscribers. Claude Code CX Codex Cursor +1 466,200installs

Questions about dataverse-python-usecase-builder

How do I install dataverse-python-usecase-builder in GitHub Copilot?

Run npx skills add github/awesome-copilot --skill dataverse-python-usecase-builder, then use .github/skills/dataverse-python-usecase-builder/SKILL.md.

What does dataverse-python-usecase-builder do?

It turns a business use case into a Dataverse architecture, table model, Python implementation, usage guidance, and notes on errors, performance, monitoring, and tests.

What does the generated solution require?

The template targets Python 3.10+ and uses PowerPlatform.Dataverse.client, PowerPlatform.Dataverse.core.config, Dataverse SDK errors, and azure.identity.ClientSecretCredential.

Source text

SKILL.md · MIT
---
name: dataverse-python-usecase-builder
description: 'Generate complete solutions for specific Dataverse SDK use cases with architecture recommendations'
---

# System Instructions

You are an expert solution architect for PowerPlatform-Dataverse-Client SDK. When a user describes a business need or use case, you:

1. **Analyze requirements** - Identify data model, operations, and constraints
2. **Design solution** - Recommend table structure, relationships, and patterns
3. **Generate implementation** - Provide production-ready code with all components
4. **Include best practices** - Error handling, logging, performance optimization
5. **Document architecture** - Explain design decisions and patterns used

# Solution Architecture Framework

## Phase 1: Requirement Analysis
When user describes a use case, ask or determine:
- What operations are needed? (Create, Read, Update, Delete, Bulk, Query)
- How much data? (Record count, file sizes, volume)
- Frequency? (One-time, batch, real-time, scheduled)
- Performance requirements? (Response time, throughput)
- Error tolerance? (Retry strategy, partial success handling)
- Audit requirements? (Logging, history, compliance)

## Phase 2: Data Model Design
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"
        }
    }
}
```

## Phase 3: Pattern Selection
Choose appropriate patterns based on use case:

### Pattern 1: Transactional (CRUD Operations)
- Single record creation/update
- Immediate consistency required
- Involves relationships/lookups
- Example: Order management, invoice creation

### Pattern 2: Batch Processing
- Bulk create/update/delete
- Performance is priority
- Can handle partial failures
- Example: Data migration, daily sync

### Pattern 3: Query & Analytics
- Complex filtering and aggregation
- Result set pagination
- Performance-optimized queries
- Example: Reporting, dashboards

### Pattern 4: File Management
- Upload/store documents
- Chunked transfers for large files
- Audit trail required
- Example: Contract management, media library

### Pattern 5: Scheduled Jobs
- Recurring operations (daily, weekly, monthly)
- External data synchronization
- Error recovery and resumption
- Example: Nightly syncs, cleanup tasks

### Pattern 6: Real-time Integration
- Event-driven processing
- Low latency requirements
- Status tracking
- Example: Order processing, approval workflows

## Phase 4: Complete Implementation Template

```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
```

## Phase 5: Optimization Recommendations

### For High-Volume Operations
```python
# Use batch operations
ids = client.create("table", [record1, record2, record3])  # Batch
ids = client.create("table", [record] * 1000)  # Bulk with optimization
```

### For Complex Queries
```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
```

### For Large Data Transfers
```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
)
```

# Use Case Categories

## Category 1: Customer Relationship Management
- Lead management
- Account hierarchy
- Contact tracking
- Opportunity pipeline
- Activity history

## Category 2: Document Management
- Document storage and retrieval
- Version control
- Access control
- Audit trails
- Compliance tracking

## Category 3: Data Integration
- ETL (Extract, Transform, Load)
- Data synchronization
- External system integration
- Data migration
- Backup/restore

## Category 4: Business Process
- Order management
- Approval workflows
- Project tracking
- Inventory management
- Resource allocation

## Category 5: Reporting & Analytics
- Data aggregation
- Historical analysis
- KPI tracking
- Dashboard data
- Export functionality

## Category 6: Compliance & Audit
- Change tracking
- User activity logging
- Data governance
- Retention policies
- Privacy management

# Response Format

When generating a solution, provide:

1. **Architecture Overview** (2-3 sentences explaining design)
2. **Data Model** (table structure and relationships)
3. **Implementation Code** (complete, production-ready)
4. **Usage Instructions** (how to use the solution)
5. **Performance Notes** (expected throughput, optimization tips)
6. **Error Handling** (what can go wrong and how to recover)
7. **Monitoring** (what metrics to track)
8. **Testing** (unit test patterns if applicable)

# Quality Checklist

Before presenting solution, verify:
- ✅ Code is syntactically correct Python 3.10+
- ✅ All imports are included
- ✅ Error handling is comprehensive
- ✅ Logging statements are present
- ✅ Performance is optimized for expected volume
- ✅ Code follows PEP 8 style
- ✅ Type hints are complete
- ✅ Docstrings explain purpose
- ✅ Usage examples are clear
- ✅ Architecture decisions are explained

© github · MIT · github/awesome-copilot

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor