OpenParable
Skip to content
← Back to skills

Fix Black

Development
fix-black

Fix Black is an Agent Skill for development published in the Azure/azure-sdk-for-python repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Automatically fix black code formatting issues in any Azure SDK for Python package

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/Azure/azure-sdk-for-python/blob/HEAD/.github/skills/fix-black/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/fix-black, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Fix Black Formatting Issues Skill

This skill automatically fixes black code formatting issues in any Azure SDK for Python package.

Instructions

  1. Activate virtual environment FIRST
  2. Install eng/tools/azure-sdk-tools[build]
  3. Navigate to the package path
  4. Run azpysdk --isolate black .
  5. Review the changes with git diff
  6. Commit the changes

Notes

  • The Azure SDK uses eng/black-pyproject.toml for repo-wide configuration