python-code-style

python-code-style is a skill for Claude Code, Codex from sagar-shirwalkar/servicenow-atlas. It costs 52 tokens per session (1,059 once invoked), scanned A, original, Apache-2.0.

A set of rules for keeping Python code formatted and named consistently. It covers imports, quotation marks, names, documentation strings, and linter setup; a linter is a tool that checks code for problems and style violations.

In plain words
What is it for?
Use it when writing or reviewing Python code, setting up Ruff or another linter, or bringing a new contributor up to speed.
Why use it?
It removes repeated style decisions and makes code easier to read, review, and maintain across a project. It also gives new contributors clear conventions to follow.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sagar-shirwalkar/servicenow-atlas/python-code-style
Any agent
npx skills add sagar-shirwalkar/servicenow-atlas --skill python-code-style
Clone the repo
git clone --depth 1 https://github.com/sagar-shirwalkar/servicenow-atlas

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for python-code-style

README.md
[![agentmods](https://agentmods.dev/badge/skills/sagar-shirwalkar/servicenow-atlas/python-code-style.svg)](https://agentmods.dev/skills/sagar-shirwalkar/servicenow-atlas/python-code-style)
Your own site
<a href="https://agentmods.dev/skills/sagar-shirwalkar/servicenow-atlas/python-code-style"><img src="https://agentmods.dev/badge/skills/sagar-shirwalkar/servicenow-atlas/python-code-style.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,059 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.01059
Opus 5 $0.00026 $0.00530
Sonnet 5 $0.00010 $0.00212
Haiku 4.5 $0.00005 $0.00106

Measured 5d ago against content hash bae8b05e74fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

python-code-style scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/python-code-style/SKILL.md · 157 lines

How it starts

The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When to use

  • Writing new Python files for the project
  • Reviewing code for style consistency
  • Configuring ruff or another linter/formatter
  • Onboarding a new contributor

Project conventions

These are the conventions established by the existing codebase at atlas/.

Import ordering

Three groups separated by a blank line:

import re
from pathlib import Path

import numpy as np
import yaml

from .base import Embedder
Group Contents
1 — Standard library os, re, pathlib, argparse, json, etc.
2 — Third-party numpy, yaml, mcp, onnxruntime, transformers, etc.
3 — Local (relative) from .base import ..., from .chunk import ...

Within each group, sort alphabetically. Use import module over from module import symbol unless you need fewer than 3 symbols from a module.

String quoting

Double quotes for all strings and docstrings:

name = "servicenow-atlas"
description = f"Bundle version {version}"

Single quotes are allowed only to avoid escaping inside f-strings:

f"    - {h['publication']}/{h['file']}"

Naming conventions

Category Style Example
Modules/packages snake_case chunk.py, make_bundle.py
Classes PascalCase OnnxEmbedder, MlxEmbedder
Functions/methods snake_case parse_frontmatter, embed_with_progress
Constants UPPER_CASE DEFAULT_MODEL_ID, _MAX_CHUNK_CHARS
Private (_ prefix) _single_leading _resolve_model_dir, _FRONTMATTER_RE
Type variables _T or descriptive

Docstrings

Triple double quotes ("""..."""). Module-level docstrings provide design context. Function docstrings describe parameters, return values, and edge cases.

For RST cross-references to other code, use :meth:, :class:, :mod::

"""...as described in :meth:`Embedder.embed`..."""

When documenting parameters inline (not via Google-style section headers), place the description after --:

def chunk_file(path: Path, repo_root: Path) -> list[dict]:
    """Chunk a single markdown file, splitting on H2 boundaries.

    Malformed YAML frontmatter is logged and treated as no frontmatter.
    """

Read the full file on GitHub · 157 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 157 lines · 52 tokens per session scan A bae8b05e74fa

Subscribe to this mod's changes

python-code-style is a skill published in the GitHub repository sagar-shirwalkar/servicenow-atlas (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 52 tokens to every session and 1,059 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

idapython

IDA Pro Python scripting for reverse engineering. Use when writing IDAPython scripts, analyzing binaries, working with IDA's API for disassembly, decompilation (Hex-Rays), type systems, cross-references, functions, segments, or any IDA database manipulation. Covers ida modules (50+), idautils iterators, and common…

mrexodia/ida-pro-mcp · 77 tokens

vibeue

Unreal Engine 5 development using the VibeUE Python API. Use when working in Unreal Engine — blueprints, state trees, materials, actors, landscapes, animation, niagara, widgets, sound, foliage, gameplay tags, enhanced input, skeletons, PCG (procedural content generation), and more. VibeUE is an extension of Unreal's…

kevinpbuckley/VibeUE · 82 tokens

n8n-code-python

Write Python code in n8n Code nodes. Use when writing Python in n8n, using input/json/node syntax, working with standard library, or need to understand Python limitations in n8n Code nodes. Use this skill when the user specifically requests Python for an n8n Code node. Note — JavaScript is recommended for 95% of use…

czlonkowski/n8n-mcp · 157 tokens

touchdesigner-self-debug

A generic workflow for self-starting TouchDesigner via computer-use (or an already-running instance), loading mcpwebserverbase.tox, and verifying any TD-side Python change (td/modules/) directly from the Textport — reading back real TD runtime values and reconciling them. Use after changing TD-side code in the…

8beeeaaat/touchdesigner-mcp · 134 tokens

code-helper

Helps users write cleaner, more readable Python code.

sinewaveai/agent-security-scanner-mcp · 13 tokens

use-settings-not-environ

Read env vars through ggapicore.settings.getsettings(), not os.environ. Triggers when adding a new env-driven config or reviewing code that calls os.environ / os.getenv.

GitGuardian/ggmcp · 41 tokens