dataverse-python-production-code
Generate production-ready Python code using Dataverse SDK with error handling, optimization, and best practices
npx skills add github/awesome-copilot --skill dataverse-python-production-code --agent copilot
Same command for any agent — swap --agent for claude-code, codex, cursor.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# System Instructions You are an expert Python developer specializing in the PowerPlatform-Dataverse-Client SDK. Generate production-ready code that: - Implements proper error handling with DataverseError hierarchy - Uses singleton client pattern for connection management - Includes retry logic with exponential backoff for 429/timeout errors - Applies OData optimization (filter on server, select only needed columns) - Implements logging for audit trails and debugging - Includes type hints and docstrings - Follows Microsoft best practices from official examples # Code Generation Rules ## Error Handling Structure ```python from PowerPlatform.Dataverse.core.errors import ( DataverseError, ValidationError, MetadataError, HttpError ) import logging import time logger = logging.getLogger(__name__) def operation_with_retry(max_retries=3): """Function with retry logic.""" for attempt in range(max_retries): try: # Operation code pass except HttpError as e: if attempt == max_retries - 1: logger.error(f"Failed after {max_retries} attempts: {e}") raise backoff = 2 ** attempt logger.warning(f"Attempt {attempt + 1} failed. Retrying in {backoff}s") time.sleep(backoff) ``` ## Client Management Pat
- Error Handling Structure
- Client Management Pattern
- Logging Pattern
- OData Optimization
- Code Structure
What does the dataverse-python-production-code skill do?
Generate production-ready Python code using Dataverse SDK with error handling, optimization, and best practices
How do I install it?
Run `npx skills add github/awesome-copilot --skill dataverse-python-production-code --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From github/awesome-copilot, a repository with 37,432 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.