column-aligned-fields

column-aligned-fields is a skill for Claude Code, Codex from Kevin-Liu-01/Agent-Machines. It costs 43 tokens per session (606 once invoked), scanned A, original, MIT.

A formatting rule for comments written beside fields in Python structured types such as dataclasses, enums, and TypedDicts. It keeps those comments aligned and preserves the layout when code is formatted.

In plain words
What is it for?
Use it when writing or reviewing Python dataclasses, enums, TypedDicts, or similar field-based definitions with inline comments.
Why use it?
Inconsistent inline comments are harder to scan and may be rearranged by automatic formatters. This rule keeps the field descriptions readable and consistent.

Skill for Claude CodeCodex

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

Good fit Use it when writing or reviewing Python dataclasses, enums, TypedDicts, or similar field-based definitions with inline comments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kevin-liu-01/agent-machines/column-aligned-fields
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 Kevin-Liu-01/Agent-Machines --skill column-aligned-fields
Clone the repo
git clone --depth 1 https://github.com/Kevin-Liu-01/Agent-Machines

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 column-aligned-fields

README.md
[![agentmods](https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/column-aligned-fields/github.svg)](https://agentmods.dev/skills/kevin-liu-01/agent-machines/column-aligned-fields)
Your own site
<a href="https://agentmods.dev/skills/kevin-liu-01/agent-machines/column-aligned-fields"><img src="https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/column-aligned-fields/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 column-aligned-fields

Your own site · 80×15
<a href="https://agentmods.dev/skills/kevin-liu-01/agent-machines/column-aligned-fields"><img src="https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/column-aligned-fields.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 606 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.00043 $0.00606
Opus 5 $0.00022 $0.00303
Sonnet 5 $0.00009 $0.00121
Haiku 4.5 $0.00004 $0.00061

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

Security

Grade A, and why

column-aligned-fields 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 10d 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.

knowledge/skills/column-aligned-fields/SKILL.md · 62 lines

How it starts

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

Column-Aligned Field Comments

When a dataclass, enum, or similar structured type has inline comments on its fields, align all comments to the same column and wrap the block with # fmt: off / # fmt: on so the formatter preserves the alignment.

Rules

  1. The comment column starts two spaces after the longest value expression in the group.
  2. Every inline comment is a complete sentence ending with a period.
  3. Fields without comments leave the comment column empty (no filler).
  4. # fmt: off goes on the line immediately before the decorator or class statement.
  5. # fmt: on goes on the line immediately after the last field.

Example

# fmt: off
@dataclass
class RawFieldSpec:
    """A single field extracted from a provider's OpenAPI schema."""

    provider:              str                                   # Provider id, e.g. "openai".
    name:                  str                                   # Upstream field name as-is.
    type_str:              str                                   # JSON Schema type string.
    required:              bool                                  # True when in the required array.
    description:           str | None                  = None
    constraints:           JSONObject                  = dataclass_field(default_factory=dict)
    union:                 UnionInfo | None            = None    # Discriminated union info.
    items:                 ArrayItemsInfo | None       = None    # Array item type info.
    additional_properties: JSONObject | bool | None    = None    # additionalProperties schema.
    variant_metadata:      list[VariantMeta] | None   = None     # Titled union variant metadata.
# fmt: on
# fmt: off
class TransferCode(IntEnum):
    """Transfer type codes for billing.transfers.code column."""

    USAGE = 1                  # Standard usage charge.
    BALANCE_DEPOSIT = 100      # Stripe payment or balance top-up.
    CREDIT_ADJUSTMENT = 101    # Manual credit adjustment.
    CREDIT_GRANT = 102         # Promotional or signup credits.
    API_USAGE = 200            # LLM API token usage.
    MCP_BUYER_CHARGE = 400     # Buyer charge for MCP tool call.
    MCP_SELLER_HOLD = 410      # Seller pending hold (7-day window).
    MCP_SELLER_CLAWBACK = 411  # Reverse posted hold on refund.
# fmt: on

Read the full file on GitHub · 62 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. 10d ago First seen · 62 lines · 43 tokens per session scan A c5124038b3d7

Subscribe to this mod's changes

column-aligned-fields is a skill published in the GitHub repository Kevin-Liu-01/Agent-Machines (26 stars, last pushed 9d ago), licensed MIT. It adds 43 tokens to every session and 606 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-30.