code-style

code-style is a skill for Claude Code, Codex from Major-Woolfi/Skills_for_AI-Agents. It costs 35 tokens per session (4,863 once invoked), scanned A, original, MIT.

A set of coding and repository conventions covering Python, Telegram bots, project structure, typing, logging, documentation, Docker, and deployment files.

In plain words
What is it for?
Use it when creating or changing projects where these Python, documentation, localization, logging, and deployment conventions should guide the work.
Why use it?
It gives coding work a consistent structure and records preferences such as using a single main.py file and an example environment file.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating or changing projects where these Python, documentation, localization, logging, and deployment conventions should guide the work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/major-woolfi/skills_for_ai-agents/code-style
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.

Any agent
npx skills add Major-Woolfi/Skills_for_AI-Agents --skill code-style
Clone the repo
git clone --depth 1 https://github.com/Major-Woolfi/Skills_for_AI-Agents

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 code-style

README.md
[![agentmods](https://agentmods.dev/badge/skills/major-woolfi/skills_for_ai-agents/code-style.svg)](https://agentmods.dev/skills/major-woolfi/skills_for_ai-agents/code-style)
Your own site
<a href="https://agentmods.dev/skills/major-woolfi/skills_for_ai-agents/code-style"><img src="https://agentmods.dev/badge/skills/major-woolfi/skills_for_ai-agents/code-style.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,863 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00035 $0.04863
Opus 5 $0.00017 $0.02431
Sonnet 5 $0.00007 $0.00973
Haiku 4.5 $0.00003 $0.00486

Measured 7d ago against content hash 207711c0c066, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

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 7d 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.

SKILLS/code-style/SKILL.md · 656 lines

How it starts

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

Code Style — Стиль кодирования пользователя

Описание

Этот навык описывает полный стиль кодирования, оформления репозиториев и проектов. Применяй ВСЕГДА при создании или изменении кода — для любых проектов и языков, если не указано иное.

📁 Структура проекта

ProjectName/
├── main.py                  # Монолитный файл (весь код в одном файле)
├── .env.example             # Пример конфигурации (НИКОГДА .env)
├── requirements.txt         # Зависимости Python
├── Dockerfile               # Docker-образ
├── deploy_bot.sh            # Скрипт деплоя на сервер
├── README.md                # Подробная документация
├── LICENSE                  # MIT License
├── langs/                   # Локализация (JSON)
├── data/                    # Данные (базы, конфиги)
├── logs/                    # Логи (по дням)
└── sessions/                # Сессии (если telethon)

Ключевой принцип: монолитная архитектура — один main.py для простоты деплоя.

🐍 Python: Стиль кода

Импорты

import asyncio
import html
import json
import logging
import os
import secrets
import sys
import time
from datetime import datetime, timedelta
from pathlib import Path
from typing import Any, Dict, List, Optional, Set, Tuple, Union

import aiofiles
import aiosqlite
from aiogram import Bot, Dispatcher, Router, F
from dotenv import load_dotenv

Порядок: стандартная библиотека → третьи стороны → локальные. Всегда импортируй конкретные типы из typing.

Типизация — СТРОГАЯ

def format_traffic(traffic_gb: Any, lang: str = DEFAULT_LANGUAGE) -> str:
    ...

async def create_subscription(
    user_id: int,
    plan: Dict[str, Any],
    *,
    extra_days: int = 0,
    days_override: Optional[int] = None,
    earn_trust: bool = True,
) -> Optional[str]:
    ...
  • Optional[T] — НЕТ T | None
  • Union[A, B] — НЕТ A | B
  • Dict[str, Any] для общих словарей
  • List[Dict[str, Any]] для списков
  • Union[Message, CallbackQuery] для событий
  • * для keyword-only аргументов
  • **kwargs: Any в обработчиках

Read the full file on GitHub · 656 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. 7d ago First seen · 656 lines · 35 tokens per session scan A 207711c0c066

Subscribe to this mod's changes

code-style is a skill published in the GitHub repository Major-Woolfi/Skills_for_AI-Agents (2 stars, last pushed 1mo ago), licensed MIT. It adds 35 tokens to every session and 4,863 once invoked, about $0.0002 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.