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.
npx agentmods add skills/sagar-shirwalkar/servicenow-atlas/python-code-stylenpx skills add sagar-shirwalkar/servicenow-atlas --skill python-code-stylegit 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.svg" alt="Measured on agentmods" 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 | $0.00026 | $0.00530 |
| Sonnet 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 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.
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.
- 5d 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 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.
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…
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…
code-helper
Helps users write cleaner, more readable Python code.
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.