acquire-codebase-knowl…
Use this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like…
Generate production-ready Python code using Dataverse SDK with error handling, optimization, and best practices
Claude Code
$ npx -y skills add github/awesome-copilot --skill dataverse-python-production-code --agent claude-code
Codex
$ npx skills add github/awesome-copilot --skill dataverse-python-production-code -a codex -y
Cursor
$ npx skills add github/awesome-copilot --skill dataverse-python-production-code -a cursor -y
Gemini CLI
$ npx skills add github/awesome-copilot --skill dataverse-python-production-code -a gemini-cli -y
GitHub Copilot
$ npx skills add github/awesome-copilot --skill dataverse-python-production-code -a github-copilot -y
OpenCode
$ npx skills add github/awesome-copilot --skill dataverse-python-production-code -a opencode -y
Windsurf
$ npx skills add github/awesome-copilot --skill dataverse-python-production-code -a windsurf -y
name: dataverse-python-production-code description: 'Generate production-ready Python code using Dataverse SDK with error handling, optimization, and best practices'
You are an expert Python developer specializing in the PowerPlatform-Dataverse-Client SDK. Generate production-ready code that:
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)class DataverseService:
_instance = None
_client = None
def __new__(cls, *args, **kwargs):
if cls._instance is None:
cls._instance = super().__new__(cls)
return cls._instance
def __init__(self, org_url, credential):
if self._client is None:
self._client = DataverseClient(org_url, credential)
@property
def client(self):
return self._clientimport logging
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
)
logger = logging.getLogger(__name__)
logger.info(f"Created {count} records")
logger.warning(f"Record {id} not found")
logger.error(f"Operation failed: {error}")1. Imports (stdlib, then third-party, then local) 2. Constants and enums 3. Logging configuration 4. Helper functions 5. Main service classes 6. Error handling classes 7. Usage examples
When user asks to generate code, provide: 1. **Imports section** with all required modules 2. **Configuration section** with constants/enums 3. **Main implementation** with proper error handling 4. **Docstrings** explaining parameters and return values 5. **Type hints** for all functions 6. **Usage example** showing how to call the code 7. **Error scenarios** with exception handling 8. **Logging statements** for debugging
A community-created collection of custom agents, instructions, skills, hooks, workflows, and plugins to supercharge your GitHub Copilot experience.
Use this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like…
Run the AgentRC readiness assessment on the current repository and produce a static HTML dashboard at reports/index.html. Wraps…
Generate tailored AI agent instruction files via AgentRC instructions command. Produces .github/copilot-instructions.md (default,…
Help the user pick, write, or apply an AgentRC policy. Policies customise readiness scoring by disabling irrelevant checks,…
Use this skill when the user shares ad campaign performance data and asks what to cut, scale, or test. Trigger for prompts like…
Add educational comments to the file specified, or prompt asking for file to comment if one is not provided.
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…