Chuyển đến nội dung
Skillpedia
API và máy chủ (backend)40k · #7167

dataverse-python-usecase-builder

Skill này làm gì

Agent AI này giúp tạo các giải pháp hoàn chỉnh cho Dataverse, một cơ sở dữ liệu của Microsoft. Nó thiết kế cấu trúc dữ liệu, gợi ý cách tổ chức thông tin và tạo code cần thiết để mọi thứ hoạt động.

Khi nào nên dùng

  • ✓Khi bạn cần sắp xếp thông tin khách hàng.
  • ✓Khi bạn cần quản lý tài liệu và tệp.
  • ✓Khi bạn cần tích hợp dữ liệu từ các hệ thống khác.

Liên kết skill

https://github.com/github/awesome-copilot/blob/main/skills/dataverse-python-usecase-builder/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/github/awesome-copilot/blob/main/skills/dataverse-python-usecase-builder/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi cần một giải pháp để quản lý tài liệu của khách hàng, gồm tải lên, phân loại theo loại và ghi rõ ai đã gửi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent phân tích nhu cầu của bạn, xác định cách lưu trữ dữ liệu (như bảng và cột), chọn các thực hành lập trình tốt nhất và cung cấp code sẵn sàng dùng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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:

# 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

# 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

# Use batch operations
ids = client.create("table", [record1, record2, record3])  # Batch
ids = client.create("table", [record] * 1000)  # Bulk with optimization

For Complex Queries

# Optimize with select, filter, orderby
for page in client.get(
    "table",
    filter="status eq 1",
    select=["id", "name", "amount"],

…
Câu hỏi thường gặp

Dataverse là gì?

Đó là dịch vụ của Microsoft đóng vai trò như một cơ sở dữ liệu thông minh để lưu trữ và quản lý thông tin kinh doanh.

“Giải pháp hoàn chỉnh” nghĩa là gì?

Nghĩa là agent không chỉ cung cấp code mà còn xem xét cách cấu trúc dữ liệu, cách tốt nhất để triển khai tính năng và cách mọi thứ kết nối với nhau.

Tôi có cần biết lập trình để dùng công cụ này không?

Không. Mục tiêu là để agent tạo code sẵn sàng dùng cho bạn, kể cả khi bạn không biết lập trình. Agent xử lý phần phức tạp về kỹ thuật.

Chi tiết

Mô tả gốc của tác giả

Generate complete solutions for specific Dataverse SDK use cases with architecture recommendations

repo: github/awesome-copilot

Độ phổ biến

Sao GitHub
40k
Vị trí xếp hạng
#7167
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự