المهارات naming-analyzer
🔍

naming-analyzer

آمن 🌐 الوصول إلى الشبكة⚙️ الأوامر الخارجية🔑 متغيرات البيئة

分析和改进代码命名规范

متاح أيضًا من: softaworks

糟糕的命名会使代码难以理解和维护。此技能分析您的代码并建议更清晰、更具描述性的名称,遵循既定的语言规范以提高代码质量。

يدعم: Claude Codex Code(CC)
⚠️ 68 ضعيف
1

تنزيل ZIP المهارة

2

رفع في Claude

اذهب إلى Settings → Capabilities → Skills → Upload skill

3

فعّل وابدأ الاستخدام

اختبرها

استخدام "naming-analyzer". Check if getUserInfo is a good name for a function that fetches user and updates lastLogin

النتيجة المتوقعة:

  • 问题:函数名称暗示只读但有副作用
  • 当前:getUserInfo() 获取用户并更新 lastLogin 时间戳
  • 建议:fetchAndUpdateUser() 或 fetchUserWithLoginUpdate()
  • 原因:名称应反映数据变更,而不仅仅是检索

استخدام "naming-analyzer". Are these Python names following PEP 8 conventions: user_name, getUserData, is_valid

النتيجة المتوقعة:

  • user_name:正确(变量使用 snake_case)
  • getUserData:在 Python 中应为 get_user_data
  • is_valid:正确(布尔值使用 is_ 前缀)

التدقيق الأمني

آمن
v5 • 1/16/2026

This is a pure documentation skill with no code execution, file system access, or network capabilities. All 156 static findings are false positives: the scanner misinterpreted Markdown code block delimiters as Ruby backticks, and naming convention terms like 'case' as weak cryptographic algorithms. This skill only provides naming guidance - no executable code exists.

2
الملفات التي تم فحصها
530
الأسطر التي تم تحليلها
3
النتائج
5
إجمالي عمليات التدقيق

عوامل الخطر

🌐 الوصول إلى الشبكة (1)
⚙️ الأوامر الخارجية (131)
SKILL.md:45 SKILL.md:46 SKILL.md:47 SKILL.md:48 SKILL.md:48 SKILL.md:49 SKILL.md:49 SKILL.md:49 SKILL.md:49 SKILL.md:52 SKILL.md:53 SKILL.md:54 SKILL.md:55 SKILL.md:56 SKILL.md:56 SKILL.md:56 SKILL.md:59 SKILL.md:60 SKILL.md:61 SKILL.md:62 SKILL.md:65 SKILL.md:66 SKILL.md:67 SKILL.md:67 SKILL.md:72-82 SKILL.md:82-85 SKILL.md:85-101 SKILL.md:101-104 SKILL.md:104-116 SKILL.md:116-119 SKILL.md:119-130 SKILL.md:130-133 SKILL.md:133-144 SKILL.md:144-148 SKILL.md:148-154 SKILL.md:154-158 SKILL.md:158-173 SKILL.md:173-176 SKILL.md:176-180 SKILL.md:180-183 SKILL.md:183-191 SKILL.md:191-194 SKILL.md:194-198 SKILL.md:198-201 SKILL.md:201-205 SKILL.md:205-208 SKILL.md:208-212 SKILL.md:212-215 SKILL.md:215-223 SKILL.md:223-226 SKILL.md:226 SKILL.md:226-230 SKILL.md:230-233 SKILL.md:233-242 SKILL.md:242 SKILL.md:242 SKILL.md:242-244 SKILL.md:244 SKILL.md:244 SKILL.md:244-245 SKILL.md:245 SKILL.md:245 SKILL.md:245-246 SKILL.md:246 SKILL.md:246 SKILL.md:246-247 SKILL.md:247 SKILL.md:247 SKILL.md:247-259 SKILL.md:259 SKILL.md:259-260 SKILL.md:260 SKILL.md:260-261 SKILL.md:261 SKILL.md:261-264 SKILL.md:264 SKILL.md:264-265 SKILL.md:265 SKILL.md:265-266 SKILL.md:266 SKILL.md:266-267 SKILL.md:267 SKILL.md:267 SKILL.md:267-270 SKILL.md:270 SKILL.md:270-271 SKILL.md:271 SKILL.md:271-272 SKILL.md:272 SKILL.md:272-279 SKILL.md:279 SKILL.md:279 SKILL.md:279 SKILL.md:279 SKILL.md:279 SKILL.md:279 SKILL.md:279 SKILL.md:279-280 SKILL.md:280 SKILL.md:280 SKILL.md:280-283 SKILL.md:283 SKILL.md:283 SKILL.md:283-284 SKILL.md:284 SKILL.md:284 SKILL.md:284-287 SKILL.md:287 SKILL.md:287 SKILL.md:287-288 SKILL.md:288 SKILL.md:288 SKILL.md:288 SKILL.md:288-291 SKILL.md:291 SKILL.md:291-292 SKILL.md:292 SKILL.md:292-295 SKILL.md:295 SKILL.md:295 SKILL.md:295-296 SKILL.md:296 SKILL.md:296-328 SKILL.md:328-332 SKILL.md:332-342 SKILL.md:342-347 SKILL.md:347 SKILL.md:347-348 SKILL.md:348 SKILL.md:348 SKILL.md:348
🔑 متغيرات البيئة (2)
تم تدقيقه بواسطة: claude عرض سجل التدقيق →

درجة الجودة

38
الهندسة المعمارية
100
قابلية الصيانة
85
المحتوى
21
المجتمع
100
الأمان
83
الامتثال للمواصفات

ماذا يمكنك بناءه

学习正确的命名习惯

从编程之旅开始就获得关于变量和函数名称的即时反馈,培养良好的编码习惯。

执行命名标准

在代码审查和拉取请求期间确保团队代码库中命名模式的一致性。

重构不清晰的名称

在具有混乱或过时命名模式的旧代码库中识别和优先处理重命名工作。

جرّب هذه الموجهات

快速检查
@naming-analyzer Is processData(data) a good function name? It validates and transforms user input.
完整文件审查
@naming-analyzer Review the naming in src/utils/helpers.js and suggest improvements
规范验证
@naming-analyzer --conventions Are these Python names following PEP 8? user_name, getUserData, is_valid
批量重命名
@naming-analyzer Suggest better names for: usr, tmp, proc, data, val, arr in my codebase

أفضل الممارسات

  • 使用能够揭示意图的描述性名称,无需额外注释
  • 始终遵循语言规范(camelCase、snake_case、PascalCase)
  • 使用 is、has、can、should 前缀使布尔名称显而易见
  • 避免缩写,除非是广泛认可的术语如 HTML、API、URL

تجنب

  • 在循环计数器之外使用单字母变量(i、j、k 除外)
  • 使用不传达含义的通用名称,如 data、info、temp
  • 在同一项目中混合使用命名规范
  • 在现代代码中使用匈牙利命名法或过于复杂的命名

الأسئلة المتكررة

它支持哪些编程语言?
JavaScript、TypeScript、Python、Java、Go,以及适用于大多数语言的通用命名原则。
它如何检测误导性名称?
它分析名称是否准确描述代码行为,包括副作用和数据变更。
它能自动重命名变量吗?
不能,它提供建议和指导,但您必须在编辑器中应用更改。
我的代码会被发送到外部服务器吗?
不会,分析在您的 AI 工具中本地进行。代码不会离开您的设备。
如果我的团队有不同的规范怎么办?
将建议作为指南,并根据您团队的具体编码标准进行调整。
这与 IDE 重构相比如何?
提供带有解释的智能命名建议,而 IDE 主要自动化安全重命名。

تفاصيل المطور

المؤلف

CuriousLearner

الترخيص

MIT

مرجع

main

بنية الملفات

📄 SKILL.md