---
name: kd-check
description: Review Kingdee Java/C# plugin code against SDK, lifecycle, performance, exception, and maintainability rules.
---

# Kingdee Code Check

Use this skill when reviewing Kingdee code.

Checklist:

- Magic values: status codes, operation names, field keys, table names, numbers, and business strings.
- Naming: Java/C# naming conventions and project-local naming.
- Lifecycle: correct plugin base class and lifecycle method for the target behavior.
- SDK usage: no invented API names; uncertain Java/C# APIs must be verified through `kd_sdk_signature` against current project jars/dlls, or by compile/build evidence. Use `kd_search` only for guidance.
- Database access: no DB query or save operation inside loops unless explicitly justified.
- Exception handling: no empty catch blocks; errors should be logged or converted to business exceptions as appropriate.
- Resource cleanup: close or dispose resources where the SDK requires it.
- Thread safety: no unsafe static mutable state in plugin classes.

Output expectations:

- Lead with concrete findings and file/line references when reviewing code.
- Separate errors, warnings, and improvement suggestions.
- State which checks were not possible because context or tools were missing.
