本文へスキップ
Skillpedia
APIとサーバー(バックエンド)40k · #7167

dataverse-python-usecase-builder

できること

このAIエージェントは、Microsoftのデータベースであるdataverseを使った完全なソリューション作成を支援します。データ構造を設計し、情報の整理方法を提案し、すべてを動かすために必要なコードを生成します。

使う場面

  • ✓顧客情報を整理する必要があるとき。
  • ✓文書やファイルを管理する必要があるとき。
  • ✓他のシステムのデータを統合する必要があるとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/github/awesome-copilot/blob/main/skills/dataverse-python-usecase-builder/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“顧客の書類を管理するソリューションが必要です。アップロード、種類ごとの整理、送信者の記録を含めてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントはあなたのニーズを分析し、テーブルや列などのデータの保存方法を定義し、最適なプログラミングの手法を選んで、すぐに使えるコードを提供します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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"],

…
よくある質問

Dataverseとは何ですか?

業務情報を保存・管理するための、賢いデータベースのように機能するMicrosoftのサービスです。

「完全なソリューション」とはどういう意味ですか?

エージェントがコードを提供するだけでなく、データをどのように構造化すべきか、機能を実装する最適な方法、すべてがどのように組み合わさるかも考慮することを意味します。

これを使うのにプログラミングの知識は必要ですか?

いいえ、エージェントがすぐに使えるコードを生成することが目的です。プログラミングの経験がなくても、技術的な複雑さはエージェントが処理します。

詳細

作者による元の説明

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

repo: github/awesome-copilot

人気

GitHubのスター
40k
ランキング
#7167
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル