naming_skill

This skill helps you enforce concise, context-aware naming for classes, functions, and variables to reduce ambiguity.
  • Python

0

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill mmorit00/fund-portfolio-bot --skill naming

  • SKILL.md5.7 KB

Overview

This skill defines a compact, context-aware naming convention for a Python Discord bot project. It prioritizes brevity and relies on module paths, type hints, and IDE/AI tooling to provide missing context. The core philosophy is to make names only as long as needed to be unambiguous in their immediate context. Rules cover domain nouns, suffix usage, parameter naming, and verb-first function names.

How this skill works

When invoked during new code creation, renaming, or code review, the skill inspects the target symbol and its module path, type annotations, and usage sites. It suggests shorter alternatives that avoid redundant context, preserves domain-root names (Trade, Fund, Nav, etc.), and applies specific suffix conventions only when necessary. It also offers parameter and function naming patterns that reduce verbosity while keeping clarity.

When to use it

  • Creating classes, functions, or variables
  • Renaming existing symbols or simplifying long names
  • Reviewing code for naming consistency in PRs
  • Designing new modules to determine name scope
  • Responding to comments like 'name too long' or 'simplify naming'

Best practices

  • Keep domain root nouns intact (Trade, Fund, Nav, Policy, Service).
  • Avoid repeating module path information in class or function names.
  • Use suffixes (Result, Facts, Draft, Check, Flag) only to disambiguate roles.
  • Prefer minimal parameter names when type hints provide meaning (repo, code, day).
  • Make function names verb-first and include the object only if context is unclear.

Example use cases

  • Rename src/core/models/fund_restriction.FundRestrictionFact to Restriction or Fact in that module.
  • Shorten dca_backfill.DcaDayCheck to DayCheck and BackfillDaysResult to BackfillResult inside the dca_backfill module.
  • Replace long parameter names like fund_code and trade_date with code and day when types are annotated.
  • Change build_dca_facts_for_batch() to build_facts(batch_id) and get_dca_day_checks() to checks() or day_checks().
  • Choose DcaFacts on a package __init__ export but keep Facts inside the module to avoid cross-module ambiguity.

FAQ

Keep longer names for domain-core models, symbols exported across modules, or when simplification would introduce ambiguity.

How do I decide which suffix to apply?

Apply suffixes only to distinguish roles: Result for aggregated returns, Facts for read-only snapshots, Draft for tentative suggestions, Check for validations, Flag for warnings.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
naming skill by mmorit00/fund-portfolio-bot | VeilStrat