AgentSkillsCN

gdscript-review

在完成代码编写后或提交更改前,对 GDScript 代码进行质量审查,确保其符合 Godot 最佳实践与编码规范。此功能可有效提升代码的可读性与可靠性。

SKILL.md
--- frontmatter
name: gdscript-review
description: Review GDScript code for quality, Godot best practices, and style guide compliance. Use after writing code or before committing changes.
argument-hint: [file-path or directory]

GDScript Code Review

Invoke the gdscript-reviewer subagent to perform a comprehensive code review.

Target: $ARGUMENTS

If no specific target was given, review all .gd files by running Glob("game/**/*.gd").

Call the gdscript-reviewer tool:

code
gdscript-reviewer(objective="Review GDScript code at: $ARGUMENTS. If no target given, review all .gd files via glob('game/**/*.gd'). Ground every critique in official Godot 4.5 documentation or the project's docs/best-practices/ files.")

After the agent returns its report, summarize the key findings for the user:

  • Total files reviewed and overall score
  • Critical issues count
  • Warning count
  • Style issues count
  • Top 3 most common issues across all files
  • Overall code quality assessment

Post-Review Action

MANDATORY: After completing the review, you MUST update ISSUES_TRACKER.md. Add any new [CRITICAL] or [WARNING] issues found during the review to the appropriate section, or create a new section if necessary.