AGENT SKILL

常量作用域调整

coding.fix_constants

根据常量的使用情况,将其移动到正确的作用域中

使用场景代码实现
License 许可
Apache-2.0
所属仓库
causify-ai/helpers
最近更新
2026-11-02
Stars
★ 155
Forks
170

01 前言 Front Matter

model
haiku
description
Move constants to their correct scope based on usage

03 SKILL.md 正文

Move constants to match their usage scope and visibility requirements. Constants should be placed where they are used and made private when not part of the module's public interface

Conventions

  • Follow the section # Constants from the file .claude/skills/coding.rules.md

Apply the conventions in .claude/skills/coding.rules.md when writing constant definitions and names

Verification

  • [ ] Confirm each constant sits in the smallest scope that uses it (local, module-private, or module-public)
  • [ ] Confirm module-private constants are prefixed with _

04 同仓库更多 Skills