code-quality-expert by oimiragieo/agent-studio
npx skills add https://github.com/oimiragieo/agent-studio --skill code-quality-expert在审查或编写代码时,请应用以下准则:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
在审查或编写代码时,请应用以下准则:
在审查或编写代码时,请始终如一地应用上述原则。重点关注:
此专家技能整合了 1 项独立技能:
| 反模式 | 为何失败 | 正确方法 |
|---|---|---|
| 逻辑中的魔法数字 | if (status === 200) 含义不明;值可能改变 | 提取到具有清晰名称的 const HTTP_OK = 200 |
| 注释解释“是什么”而非“为什么” | 代码变更使注释过时且具有误导性 | 编写自文档化代码;仅注释设计原理 |
| 上帝函数(>50 行,多个关注点) | 难以独立测试、调试和修改 | 提取具有清晰名称的单一职责函数 |
| 过早优化 | 在证明存在瓶颈之前增加了复杂性 | 先进行性能分析;仅优化测量到的热点路径 |
| 重复的代码块 | 错误修复必须在 N 个地方应用 | 提取到可重用函数;遵循 DRY 原则 |
开始前:
cat .claude/context/memory/learnings.md
完成后: 记录发现的任何新模式或例外情况。
假设中断:你的上下文可能会重置。如果它不在记忆中,那就没有发生过。
每周安装次数
69
代码仓库
GitHub 星标数
19
首次出现
2026年1月27日
安全审计
安装于
gemini-cli65
github-copilot65
opencode64
kimi-cli63
codex63
cursor63
When reviewing or writing code, apply these guidelines:
When reviewing or writing code, apply these guidelines:
When reviewing or writing code, apply the principles above consistently. Focus on:
This expert skill consolidates 1 individual skills:
| Anti-Pattern | Why It Fails | Correct Approach |
|---|---|---|
| Magic numbers in logic | if (status === 200) is opaque; value could change | Extract to const HTTP_OK = 200 with clear name |
| Comments explaining "what" not "why" | Code changes make comments stale and misleading | Write self-documenting code; comment only design rationale |
| God functions (>50 lines, multiple concerns) | Hard to test, debug, and modify independently | Extract single-purpose functions with clear names |
| Premature optimization | Adds complexity before proving a bottleneck exists | Profile first; only optimize measured hot paths |
| Duplicated code blocks | Bug fixes must be applied in N places | Extract to reusable function; DRY principle |
Before starting:
cat .claude/context/memory/learnings.md
After completing: Record any new patterns or exceptions discovered.
ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
Weekly Installs
69
Repository
GitHub Stars
19
First Seen
Jan 27, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
gemini-cli65
github-copilot65
opencode64
kimi-cli63
codex63
cursor63
智能代码探索工具smart-explore:AST解析结构化代码搜索与导航
834 周安装
iOS实时活动开发指南:ActivityKit实现灵动岛与锁屏通知
465 周安装
Git推送工作流:自动暂存、规范提交、一键推送远程分支的智能脚本
471 周安装
文件管理技能 - 自动化文件/文件夹操作、批量处理、安全管理的智能工具
472 周安装
Turso数据库调试指南:SQLite兼容性、字节码对比与Rust日志记录
472 周安装
skill-creator:AI CLI技能自动化创建工具,遵循Anthropic最佳实践,支持Copilot/Claude/Codex
473 周安装
性能剖析指南:Lighthouse审计、核心网页指标优化与运行时性能分析
477 周安装