Borrowing it
Nothing to install: this file belongs to sagar-shirwalkar/servicenow-atlas. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/sagar-shirwalkar/servicenow-atlas/main/.agents/skills/python-code-style/SKILL.mdgit clone --depth 1 https://github.com/sagar-shirwalkar/servicenow-atlasWrote 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.
[](https://agentmods.dev/skills/sagar-shirwalkar/servicenow-atlas/python-code-style)<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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00052 | $0.01059 |
| Opus 5.5 | $0.00021 | $0.00424 |
| Sonnet 5.5 | $0.00010 | $0.00212 |
| Haiku 4.5 | $0.00005 | $0.00106 |
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 1mo 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.
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.
"""
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.
- 1mo ago First seen · 157 lines · 52 tokens per session scan A bae8b05e74fa
python-code-style is a skill published in the GitHub repository sagar-shirwalkar/servicenow-atlas (2 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 52 tokens to every session and 1,059 once invoked, about $0.0002 per session on Opus 5.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.
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…
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…
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…
python-api
This skill should be used when writing, editing, or debugging Python code that runs inside TouchDesigner — scripts, expressions, DAT callbacks, Extensions, or one-off snippets passed to executepythonscript — or whenever there is uncertainty about a td class's methods, members, or module-level API. Trigger phrases…
python-design-pattern
Python design patterns and anti-patterns. Use when designing new components, refactoring, reviewing code for common mistakes, choosing abstractions, or evaluating pull requests for structural issues like tight coupling, leaking internal types, or error handling problems.
python-type-safety
Modern Python type safety with type hints, generics, protocols, and strict type checking using ty and ruff. Use when adding type annotations, implementing generic classes, defining structural interfaces, configuring ty/ruff, or writing type-safe Python 3.13+/3.14+ code. Triggers on mentions of type hints, typing…