piighost-code-style

piighost-code-style is a skill for Claude Code, Codex from Athroniaeth/piighost. It costs 0 tokens per session (6,216 once invoked), scanned A, original, MIT.

Coding conventions for writing or refactoring PIIGhost Python code beyond checks from PEP 8, a common Python style guide, and Ruff, a Python code checker.

In plain words
What is it for?
Use it when changing PIIGhost files under src/ or tests/, and when adding new conventions from review feedback.
Why use it?
It keeps changes consistent with the maintainer's preferred expressions, naming, and program structure.

Skill for Claude CodeCodex

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

Good fit Use it when changing PIIGhost files under src/ or tests/, and when adding new conventions from review feedback.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/athroniaeth/piighost/piighost-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 Athroniaeth/piighost --skill piighost-code-style
Clone the repo
git clone --depth 1 https://github.com/Athroniaeth/piighost

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/athroniaeth/piighost/piighost-code-style/github.svg)](https://agentmods.dev/skills/athroniaeth/piighost/piighost-code-style)
Your own site
<a href="https://agentmods.dev/skills/athroniaeth/piighost/piighost-code-style"><img src="https://agentmods.dev/badge/skills/athroniaeth/piighost/piighost-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.

agentmods 80×15 button for piighost-code-style

Your own site · 80×15
<a href="https://agentmods.dev/skills/athroniaeth/piighost/piighost-code-style"><img src="https://agentmods.dev/badge/skills/athroniaeth/piighost/piighost-code-style.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,216 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00000 $0.06216
Opus 5.5 $0.00000 $0.02486
Sonnet 5.5 $0.00000 $0.01243
Haiku 4.5 $0.00000 $0.00622

Measured 3mo ago against content hash 2b30d288507b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

piighost-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 3mo 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/piighost-code-style/SKILL.md · 739 lines

How it starts

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

PIIGhost code style

Overview

PEP8 and ruff already enforce formatting (line length, import order, quotes, trailing commas). This skill captures the conventions that tooling does not enforce: how the maintainer prefers expressions, dispatch, and naming to be written. They are taste rules, gathered from review feedback.

Apply them whenever you write or refactor code. When a rule conflicts with an established local pattern, match the surrounding code and flag the tension rather than rewriting silently.

This skill grows. When the maintainer states a new preference during a review, add it here as a new numbered rule with an Avoid -> Prefer pair and a one-line why. Keep the existing entries; do not renumber on every edit.

Rules

1. Prefer a named local + or over a None-guard ternary

When falling back to a default and the falsy-but-not-None edge (e.g. the empty string) is irrelevant, bind a named local with or instead of an inline x if x is not None else y.

Avoid:

return {"text": redact_as if redact_as is not None else self.text, ...}
self.detections = detections if detections is not None else []

Prefer:

text = redact_as or self.text
return {"text": text, ...}

self.detections = detections or []

Why: the named local reads like a sentence and or is shorter. This holds for a constructor defaulting an optional argument to an empty collection too: self.x = arg or [], not the ternary. Only keep is not None when an empty/zero value must be preserved distinctly from the default, and add a comment saying so when you do.

2. Prefer a data-driven dict over an if/elif dispatch cascade

When selecting one of N things by a key, use a dict lookup, not a chain of if key == ...: return .... A dict is O(1), auditable at a glance, and adding a case is a single line.

Avoid:

def _resolve_lazy_detector(key):
    if key == "lazy:gliner2":
        from piighost.detector.gliner2 import Gliner2Detector
        return Gliner2Detector
    if key == "lazy:spacy":
        from piighost.detector.spacy import SpacyDetector
        return SpacyDetector
    raise KeyError(key)

Read the full file on GitHub · 739 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. 3mo ago First seen · 739 lines · 0 tokens per session scan A 2b30d288507b

Subscribe to this mod's changes

piighost-code-style is a skill published in the GitHub repository Athroniaeth/piighost (23 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 6,216 tokens. 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-30.

Related

piighost-code-style compared with skills from other repositories

piighost-code-style next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
piighost-code-styleAthroniaeth/piighostSkill233d agoMITA0Claude Code, Codex
python-engineering-guidelinesanywhere-labs/Agents-AnywhereSkill3.9kyesterdayApache-2.0A75Codex
eu-craSushegaad/Claude-Skills-Governance-Risk-and-ComplianceSkill1.1k14d agoMITA133Claude Code
fedrampSushegaad/Claude-Skills-Governance-Risk-and-ComplianceSkill1.1k14d agoMITA234Claude Code
splitting-oversized-modulesPostHog/posthog-fossSkill733todayMITA197Claude Code, Codex
nist-800-53Sushegaad/Claude-Skills-Governance-Risk-and-ComplianceSkill1.1k14d agoMITA177Claude Code
qa-frontendPostHog/posthogSkill41ktodaynoneA216Claude Code