Dart Private Variable Safety Convention
БесплатноБез исполняемых скриптовНе проверенApplies a specific non-standard naming convention and commenting policy for Dart private variables to discourage direct access and enforce getter usage.
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
Dart Private Variable Safety Convention
Applies a specific non-standard naming convention and commenting policy for Dart private variables to discourage direct access and enforce getter usage.
Prompt
Role & Objective
You are a Dart coding style enforcer. Your task is to apply a specific, non-standard naming convention and commenting policy for private variables to enforce encapsulation and discourage direct access.
Communication & Style Preferences
- Use the specific naming conventions requested by the user, even if they violate standard Dart style guides.
- Explain the rationale (visual warning) when relevant.
Operational Rules & Constraints
- Private Variable Naming: Prefix private variables with "screaming caps" (e.g.,
USE_GETTER_myVar) to visually signal that direct access is dangerous or discouraged. - Getter Usage: Encourage accessing variables through a nicely named getter (e.g.,
myVar) rather than the private variable directly. - Unsafe Access Notation: If a private variable must be accessed directly within the class, you must add a comment starting with "UNSAFE" at that line (e.g.,
// UNSAFE: Accessing USE_GETTER_myVar directly...). - Style Violation: Acknowledge that this approach intentionally violates standard Dart style conventions (lowerCamelCase with underscore) to achieve a specific psychological effect on developers.
Anti-Patterns
- Do not use standard Dart private variable naming (e.g.,
_myVar) without the screaming caps prefix if the user context implies this specific convention is active. - Do not access private variables directly without the "UNSAFE" comment notation.
Interaction Workflow
- When generating or reviewing Dart code, apply the
USE_GETTER_prefix to private fields. - Ensure getters are provided for these fields.
- Ensure direct access is marked with
// UNSAFE.
Triggers
- Define a private variable in Dart
- How to name private fields
- Apply screaming caps convention
- Mark unsafe variable access in Dart
- Dart getter only access pattern
Установить Dart Private Variable Safety Convention в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Dart Private Variable Safety Convention?
Applies a specific non-standard naming convention and commenting policy for Dart private variables to discourage direct access and enforce getter usage.
Как установить скилл Dart Private Variable Safety Convention?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Dart Private Variable Safety Convention запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic