typetype-coding-standards

typetype-coding-standards is a skill for Claude Code, Codex from whynusn/typetype. It costs 35 tokens per session (1,036 once invoked), scanned A, original, MIT.

A set of coding rules for the TypeType project's Python and QML code, including naming, imports, type annotations, line length, and error handling.

In plain words
What is it for?
Use it when writing or refactoring TypeType code, especially when adding functions, files, Qt connections, or network and file operations.
Why use it?
It makes new code fit the existing project and helps avoid common mistakes that can make code harder to read or maintain.

Skill for Claude CodeCodex

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

Good fit Use it when writing or refactoring TypeType code, especially when adding functions, files, Qt connections, or network and file operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/whynusn/typetype/typetype-coding-standards
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 whynusn/typetype --skill typetype-coding-standards
Clone the repo
git clone --depth 1 https://github.com/whynusn/typetype

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 typetype-coding-standards

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/whynusn/typetype/typetype-coding-standards"><img src="https://agentmods.dev/badge/skills/whynusn/typetype/typetype-coding-standards.svg" alt="Reviewed on agentmods" width="80" 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 1,036 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.01036
Opus 5.5 $0.00014 $0.00414
Sonnet 5.5 $0.00007 $0.00207
Haiku 4.5 $0.00003 $0.00104

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

Security

Grade A, and why

typetype-coding-standards 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 2mo 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/typetype-coding-standards/SKILL.md · 137 lines

How it starts

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

TypeType Coding Standards

Python

Import Order

One blank line between groups:

# 1. Standard library
import os
import sys

# 2. Third-party
from PySide6.QtCore import QUrl
import darkdetect

# 3. Local
from src.backend.application.gateways.score_gateway import ScoreGateway

Naming

Type Convention Example
Class PascalCase TextSourceGateway, LoadTextUseCase
Function/Variable snake_case load_text, source_key
File snake_case / lowercase with underscores text_source_gateway.py
Constant UPPER_SNAKE_CASE MAX_RETRIES, DEFAULT_TIMEOUT

Type Hints

ALL function parameters and return values MUST have type hints.

# Good
def load_text(self, source_key: str) -> str | None: ...

# Bad - missing
def load_text(self, source_key): ...

Line Length

  • Max 88 chars (ruff default)
  • Long imports/URLs allowed to exceed

Exceptions

  • External I/O (network/file) MUST have exception handling
  • Network exceptions: infrastructure/network_errors.py
  • Global → user message: application/exception_handler.py

Qt/QML

Python/Qt

  • Use Signal() + @Slot() for connections
  • Blocking operations MUST run in background worker (QRunnable via QThreadPool)
  • Follow BaseWorker pattern

QML

  • Use Property + notify signal for reactive updates
  • Prefer signal-slot over direct property access
  • Colors: Theme.currentTheme.colors.*
  • Normal UI font follows the global app font set in main.py; only dedicated reading/typing areas should set a custom fontFamily (current example: TypingPage.qml uses LXGW WenKai for正文区)
  • Name conflict: import RinUI as Rin then Rin.TextArea

Architecture Rules (MUST Follow)

  1. Domain Services are pure → NO import PySide6 in domain/services/
  2. Dependency inward only → outer → inner, never reverse
  3. Program to interface → use Ports (protocols) for external deps
  4. Routing in Application → Adapters don't make routing decisions

Read the full file on GitHub · 137 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. 2mo ago First seen · 137 lines · 35 tokens per session scan A c23516884b46

Subscribe to this mod's changes

typetype-coding-standards is a skill published in the GitHub repository whynusn/typetype (14 stars, last pushed 19d ago), licensed MIT. It adds 35 tokens to every session and 1,036 once invoked, about $0.0001 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-30.

Related

typetype-coding-standards compared with skills from other repositories

typetype-coding-standards next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
typetype-coding-standardswhynusn/typetypeSkill1419d agoMITA35Claude Code, Codex
create-skillwarpdotdev/warpSkill66kyesterdayAGPL-3.0A64Claude Code, Codex
figma-create-design-system-ruleswarpdotdev/warpSkill66kyesterdayAGPL-3.0A71Claude Code
figma-generate-librarywarpdotdev/warpSkill66kyesterdayAGPL-3.0A95Claude Code
figma-implement-designwarpdotdev/warpSkill66kyesterdayAGPL-3.0A81Claude Code
triage-vulnerabilitieswarpdotdev/warpSkill66kyesterdayAGPL-3.0A68Claude Code, Codex
test-warp-uiwarpdotdev/warpSkill66kyesterdayAGPL-3.0A55Claude Code