Agent skill

Python Style

by open-edge-platform in open-edge-platform/anomalib

Reviews anomalib Python style, typing, imports, and public API conventions

Apache-2.0Auto-check passedLegal & Compliance

Install Python Style

skills CLI
$ npx skills add open-edge-platform/anomalib --skill python-style -a claude-code

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

GitHub CLI
$ gh skill install open-edge-platform/anomalib python-style --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/open-edge-platform/anomalib.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/python-style .claude/skills/python-style && 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
python-style
GitHub stars
6.2k
Token cost
~689 tokens
SKILL.md length
352 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
Apache-2.0

At a glance

Reviews anomalib Python style, typing, imports, and public API conventions

  • Legal & Compliance work in your project
  • SKILL.md covers Purpose and scope, Core rules, Request changes when and Typing, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Python Style is an agent skill from open-edge-platform/anomalib. Reviews anomalib Python style, typing, imports, and public API conventions

Its SKILL.md is about 690 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 Legal & Compliance. It works with Python. The repository describes itself as: An anomaly detection library comprising state-of-the-art algorithms and features such as experiment management, hyper-parameter optimization, and edge inference. The licence is Apache-2.0.

When your agent uses it

  • Legal & Compliance work in your project

Example prompts

  • “Use the python-style skill to review anomalib Python style, typing, imports, and public API conventions”
  • “/python-style”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 6f54715. 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

    No scripts in the folder and no shell commands in SKILL.md.

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

  • Network

    No URLs in SKILL.md.

    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

Python Style loads about 689 tokens when it runs. Until then it costs about 22 tokens; SKILL.md has 352 words of instructions outside code blocks.

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

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 open-edge-platform/anomalib at commit 6f54715, republished under its Apache-2.0 licence (© open-edge-platform). 352 words, ~689 tokens.

Download SKILL.mdSave it as .claude/skills/python-style/SKILL.md (or your agent's skills folder).
name
python-style
description
Reviews anomalib Python style, typing, imports, and public API conventions

Anomalib Python Style Review

Use this skill when reviewing Python code in src/anomalib/ or tests/.

Purpose and scope

This skill covers Python style, typing, imports, exports, copyright headers, and basic code hygiene.

Core rules

  • Target the repository's Python baseline.
  • Follow the Ruff-configured line length of 120 characters.
  • Match nearby anomalib code before suggesting stylistic rewrites.
  • Prefer explicit, readable code over clever shortcuts.

Request changes when

  • public APIs are missing type annotations;
  • new code introduces weak typing such as unnecessary Any or untyped public **kwargs;
  • imports or exports drift from nearby package patterns;
  • a touched Python file is missing the expected copyright/SPDX header;
  • error handling becomes less explicit or debug code is left behind.

Typing

  • Public functions, methods, and constructors should have explicit type annotations.
  • Prefer repository-established typing patterns such as X | None, type[...], Sequence[...], TypeVar, and Generic where they fit.
  • Do not weaken types without a strong reason.
  • Flag vague escape hatches such as unnecessary Any, broad untyped **kwargs, or type suppressions that hide real issues.

Imports and exports

  • Keep imports grouped as standard library, third-party, then local imports.
  • Prefer absolute imports inside anomalib.
  • When a public symbol is added to an __init__.py, verify that __all__ stays accurate.
Show full SKILL.md (154 more words)Show less
  • Python source files should include the standard Intel copyright and SPDX header used across the repository.
  • For a new file, use the current year only, for example:
    • # Copyright (C) 2026 Intel Corporation
    • # SPDX-License-Identifier: Apache-2.0
  • For an existing file updated in 2026, ensure the year or year range includes 2026.
    • Example: update 2024 to 2024-2026.
    • Example: keep 2026 for a single-year file created in 2026.

Error handling and code hygiene

  • Catch specific exceptions instead of broad or silent failure patterns.
  • Ask for explicit exceptions and informative error messages.
  • Flag debug prints, dead code, commented-out code, and magic values that should be named constants or config.
  • Prefer explicit validation with raised exceptions over fragile assumptions.

Repo-grounded review anchors

  • pyproject.toml defines Ruff, pydocstyle, mypy, pytest, and Commitizen expectations.

Reviewer checklist

  • Check typing on public APIs.
  • Check imports and exports.
  • Check the copyright/SPDX header on touched Python files.
  • Check for obvious code hygiene regressions.

© open-edge-platform, Apache-2.0. 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 .agents/skills/python-style of open-edge-platform/anomalib.

Open the folder on GitHubat commit 6f54715

Compare with similar skills

Python Style 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.

Python Style compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Python Style this skillopen-edge-platform/anomalib6.2k—~689Automated safety check: PassApache-2.0
PCI DSS Compliancewshobson/agents40k11 repos~1.9kAutomated safety check: PassMIT
Design Award PipelineSeanJ1ang/design-judge-skills712—~725Automated safety check: PassApache-2.0
Alkahest Developerinternet-court/internet-court-skill6.4k1 repos~2.3kAutomated safety check: PassMIT
Analyzing Dependenciesjeremylongshore/tons-of-skills-marketplace2.8k—~1.7kAutomated safety check: PassMIT
HIPAA Safe Harbor Coverage Auditmaziyarpanahi/openmed5.5k—~1.7kAutomated safety check: PassApache-2.0

Similar skills

  • PCI DSS Compliance

    wshobson/agents

    Reference for building payment systems that meet PCI DSS: the 12 requirements, merchant levels, data that must never be stored, tokenization and encryption.

    40k GitHub starsUsed in 11 repos~1.9k tokens
    Legal & ComplianceAuto-check passed
  • Design Award Pipeline

    SeanJ1ang/design-judge-skills

    Route and coordinate an end-to-end design-award workflow across winner research, evidence-based evaluation, award matching, entry-text preparation, and final submission checking.

    712 GitHub stars~725 tokensUpdated 1 mo ago
    Legal & ComplianceAuto-check passed
  • Alkahest Developer

    internet-court/internet-court-skill

    Help developers write code that interacts with Alkahest escrow contracts using the TypeScript, Rust, or Python SDK

    6.4k GitHub starsUsed in 1 repo~2.3k tokens
    Legal & ComplianceAuto-check passed
  • Analyzing Dependencies

    jeremylongshore/tons-of-skills-marketplace

    Analyze dependencies for known security vulnerabilities and outdated versions.

    2.8k GitHub stars~1.7k tokensUpdated today
    Legal & ComplianceAuto-check passed
  • Checks OpenMed de-identified clinical text against the 18 HIPAA Safe Harbor identifier categories and reports gaps and residual re-identification risk.

    5.5k GitHub stars~1.7k tokensUpdated today
    Legal & ComplianceAuto-check passed
  • Tw Legal RAG

    aa0101181514/tw-legal-rag

    Retrieve real Taiwan court judgments with verifiable citations before answering any question about Taiwan law or case law.

    327 GitHub stars~580 tokensUpdated 4 days ago
    Legal & ComplianceAuto-check passed

More from open-edge-platform/anomalib

All 17 skills in this repo
  • Anomalib Adding A Datamodule

    open-edge-platform/anomalib

    Adds a new dataset/datamodule to anomalib under src/anomalib/data/.

    6.2k GitHub stars~3.7k tokensUpdated yesterday
    Auto-check passed
  • Anomalib Adding A Model

    open-edge-platform/anomalib

    Adds a new anomaly-detection model to anomalib under src/anomalib/models/.

    6.2k GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed
  • Anomalib Benchmarking

    open-edge-platform/anomalib

    Runs the anomalib benchmarking pipeline to train/evaluate a grid of model + dataset (+ category) combinations and collect metrics into a results CSV.

    6.2k GitHub stars~1k tokensUpdated yesterday
    Auto-check passed
  • Anomalib Tiled Ensemble

    open-edge-platform/anomalib

    Runs and configures the anomalib tiled-ensemble pipeline, which trains/evaluates one model per image tile and merges results (with optional seam smoothing) for high-resolution anomaly detection.

    6.2k GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Anomalib Training

    open-edge-platform/anomalib

    Trains an anomalib model on a dataset via the Python API or CLI, including training on a custom folder-structured dataset with the Folder datamodule.

    6.2k GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Model Sample Image Export

    open-edge-platform/anomalib

    Export, validate, and publish model sample-result images into docs/source/images and reference them from README/docs pages.

    6.2k GitHub stars~874 tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Python Style

What does Python Style do?

Reviews anomalib Python style, typing, imports, and public API conventions. Python Style is an agent skill from open-edge-platform/anomalib.

When should I use Python Style?

Python Style fits situations like: legal & Compliance work in your project.

How do I install Python Style in Claude Code?

Run `npx skills add open-edge-platform/anomalib --skill python-style -a claude-code`. Or copy the skill folder (.agents/skills/python-style in open-edge-platform/anomalib) into .claude/skills/python-style in your project. Claude Code loads it when a task matches its description.

How do I install Python Style in Codex?

Run `npx skills add open-edge-platform/anomalib --skill python-style -a codex`. Or copy the skill folder (.agents/skills/python-style in open-edge-platform/anomalib) into .agents/skills/python-style in your project. Codex loads it when a task matches its description.

Can I use Python Style 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 open-edge-platform/anomalib --skill python-style -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/python-style, .gemini/skills/python-style, .github/skills/python-style and .opencode/skills/python-style in your project.

What does Python Style need to run?

SKILL.md names no scripts, command-line tools or credentials: Python Style is instructions for the agent only. Our summary lists: Python 3.

Does Python Style access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Python Style 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 Python Style use?

Python Style is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Python Style use?

About 689 tokens (SKILL.md is roughly 2.8k 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 Python Style?

Skills that share tags, products or a category with Python Style: PCI DSS Compliance (wshobson/agents, 40k stars), Design Award Pipeline (SeanJ1ang/design-judge-skills, 712 stars), Alkahest Developer (internet-court/internet-court-skill, 6.4k stars) and Analyzing Dependencies (jeremylongshore/tons-of-skills-marketplace, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Python Style?

open-edge-platform (a GitHub organization) maintains it in open-edge-platform/anomalib, which has 6,226 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 7, 2026.

Source: open-edge-platform/anomalib on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.