Agent skill

Formatting

by brendanhasz in brendanhasz/probflow

Ensure consistent code formatting using the uv package manager and pre-commit.

MITAuto-check passedAI & LLM Engineering

Install Formatting

skills CLI
$ npx skills add brendanhasz/probflow --skill formatting -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install brendanhasz/probflow formatting --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/brendanhasz/probflow.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/formatting .claude/skills/formatting && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
formatting
GitHub stars
175
Token cost
~381 tokens
SKILL.md length
168 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Ensure consistent code formatting using the uv package manager and pre-commit.

  • Works in 2 steps: Running the Full Formatting and… → Address Formatting and Type-checking…
  • This whenever formatting is requested
  • SKILL.md covers Core Directives and Execution Rules
  • Calls uv

What it does

Formatting is an agent skill from brendanhasz/probflow. Ensure consistent code formatting using the uv package manager and pre-commit. Trigger this whenever formatting is requested.

Its SKILL.md is about 380 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Deep learning, Linting and formatting and Type safety. It works with Python, PyTorch and TensorFlow. The repository describes itself as: A Python package for building Bayesian models with TensorFlow or PyTorch. The licence is MIT.

When your agent uses it

  • This whenever formatting is requested
  • Tasks that involve Deep learning
  • Tasks that involve Linting and formatting

Example prompts

  • “/formatting”

Requirements

  • Python 3

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. Running the Full Formatting and Type-checking Pipeline
  2. Address Formatting and Type-checking Issues

What it can do on your machine

Read from SKILL.md and the folder at commit e2b3c71. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Formatting loads about 381 tokens when it runs. Until then it costs about 34 tokens; SKILL.md has 168 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~34
When it runs · the whole SKILL.md, loaded when a task matches
~381

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from brendanhasz/probflow at commit e2b3c71, republished under its MIT licence (© brendanhasz). 168 words, ~381 tokens.

Download SKILL.mdSave it as .claude/skills/formatting/SKILL.md (or your agent's skills folder).
name
formatting
description
Ensure consistent code formatting using the uv package manager and pre-commit. Trigger this whenever formatting is requested.
domain
development.formatting
version
1.0.0

Python Formatting Skill via uv

This skill ensures that all Python code is consistently formatted and type-checked using the uv environment and pre-commit. You must never invoke formatting commands (pre-commit, black, isort, etc.) directly on the host system. Always run the pre-commit pipeline, do not attempt to run formatting or type-checking commands manually (e.g. ruff, mypy, black, isort).

Core Directives

  • Always run full formatting pipeline via uv run pre-commit run --all-files.

Execution Rules

1. Running the Full Formatting and Type-checking Pipeline

After applying any changes and ensuring the tests pass, always run the full formatting pipeline to ensure consistent code style across the project:

bash
# To run the full formatting and type-checking pipeline on all files
uv run pre-commit run --all-files
2. Address Formatting and Type-checking Issues

If the formatting and type-checking pipeline fails, first try running a second time to check if the issues were able to be auto-fixed.

If the formatting and type-checking pipeline fails a second time, you must manually address the issues before proceeding.

Iterate this process until all formatting and type-checking issues are resolved and the pre-commit pipeline passes successfully.

© brendanhasz, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/formatting of brendanhasz/probflow.

Open the folder on GitHubat commit e2b3c71

Compare with similar skills

Formatting next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Formatting compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Formatting this skillbrendanhasz/probflow175—~381Automated safety check: PassMIT
Technology Selectiondotnet/skills5.6k2 repos~2.1kAutomated safety check: PassMIT
Ray Train Distributed TrainingOrchestra-Research/AI-Research-SKILLs13k3 repos~2.7kAutomated safety check: PassMIT
Re AI Modeldslsdzc/rev-skills125—~2.4kAutomated safety check: PassApache-2.0
ExecuTorch Cortex-M Backendpytorch/executorch5.1k—~872Automated safety check: PassCustom licence
Uv Pypi PublishML4ITS/TimeVQVAE166—~178Automated safety check: PassMIT

Similar skills

  • Official

    Guides technology selection and implementation of AI and ML features in .NET 8+ applications using ML.NET, Microsoft.Extensions.AI (MEAI), Microsoft Agent Framework (MAF), GitHub Copilot SDK, ONNX…

    5.6k GitHub starsUsed in 2 repos~2.1k tokens
    AI & LLM EngineeringAuto-check passed
  • Ray Train Distributed Training

    Orchestra-Research/AI-Research-SKILLs

    Scales PyTorch, TensorFlow and Hugging Face training from a single GPU to multi-node clusters with Ray Train, including Ray Tune sweeps and checkpoint recovery.

    13k GitHub starsUsed in 3 repos~2.7k tokens
    AI & LLM EngineeringAuto-check passed
  • Re AI Model

    dslsdzc/rev-skills

    AI 模型文件逆向与静态分析:ONNX/PyTorch/Safetensors/TFLite 格式解析、 网络结构还原、权重提取、文件级水印分析(权重 pattern/metadata/tensor hash/embedding 异常)。

    125 GitHub stars~2.4k tokensUpdated 3 days ago
    AI & LLM EngineeringAuto-check passed
  • ExecuTorch Cortex-M Backend

    pytorch/executorch

    Developer guide for the Cortex-M (CMSIS-NN) backend in ExecuTorch: quantization pipeline, pass manager, tests and adding new ops.

    5.1k GitHub stars~872 tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Uv Pypi Publish

    ML4ITS/TimeVQVAE

    Publish a Python package to PyPI using uv with credentials loaded from a local .secrets file.

    166 GitHub stars~178 tokensUpdated 7 mo ago
    AI & LLM EngineeringAuto-check passed
  • Pennylane

    davila7/claude-code-templates

    Cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry.

    32k GitHub starsUsed in 8 repos~1.9k tokens
    Research & ScienceAuto-check passed

More from brendanhasz/probflow

  • Running Tests

    brendanhasz/probflow

    Run Python unit test suites strictly using the uv package manager and pytest.

    175 GitHub stars~657 tokensUpdated 12 days ago
    Auto-check passed

Questions about Formatting

What does Formatting do?

Ensure consistent code formatting using the uv package manager and pre-commit. Formatting is an agent skill from brendanhasz/probflow. Ensure consistent code formatting using the uv package manager and pre-commit.

When should I use Formatting?

Formatting fits situations like: this whenever formatting is requested; tasks that involve Deep learning; tasks that involve Linting and formatting.

How do I install Formatting in Claude Code?

Run `npx skills add brendanhasz/probflow --skill formatting -a claude-code`. Or copy the skill folder (.github/skills/formatting in brendanhasz/probflow) into .claude/skills/formatting in your project. Claude Code loads it when a task matches its description.

How do I install Formatting in Codex?

Run `npx skills add brendanhasz/probflow --skill formatting -a codex`. Or copy the skill folder (.github/skills/formatting in brendanhasz/probflow) into .agents/skills/formatting in your project. Codex loads it when a task matches its description.

Can I use Formatting in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add brendanhasz/probflow --skill formatting -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/formatting, .gemini/skills/formatting, .github/skills/formatting and .opencode/skills/formatting in your project.

What does Formatting need to run?

Going by SKILL.md and its folder, Formatting needs the command-line tools its instructions call (uv). Our summary lists: Python 3.

Does Formatting access the network?

SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Formatting safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Formatting use?

Formatting is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Formatting use?

About 381 tokens (SKILL.md is roughly 1.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Formatting?

Skills that share tags, products or a category with Formatting: Technology Selection (dotnet/skills, 5.6k stars), Ray Train Distributed Training (Orchestra-Research/AI-Research-SKILLs, 13k stars), Re AI Model (dslsdzc/rev-skills, 125 stars) and ExecuTorch Cortex-M Backend (pytorch/executorch, 5.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Formatting?

brendanhasz (a GitHub user) maintains it in brendanhasz/probflow, which has 175 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on September 26, 2026.

Source: brendanhasz/probflow on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.