polardbx-ccl
Installation
SKILL.md
PolarDB-X CCL
Explain CCL semantics and produce or review SQL without executing incident interventions.
Scope
- PolarDB-X Enterprise Edition with CN version
5.4.9-16167266or later for ordinary CCL; slow-SQL triggers require5.4.11-16251897or later. - Do not apply this syntax to Standard Edition. For version-specific advice, use supplied instance metadata or an authorized SQL connection with
SELECT VERSION();, then confirm the edition and CN build. - General knowledge questions do not require an instance ID or a live connection. An example is not permission to create a rule or a test resource.
Core Workflow
- Identify whether the request asks for an explanation, SQL review, or live intervention. Explain knowledge questions directly; generate SQL as a proposal, not as an executed change.
- Establish the intended SQL type, table/account scope, and template or keyword filter. Use a verified template ID from SQL logs (
sql_code),SHOW FULL PROCESSLIST, orEXPLAIN; do not invent a hash or substitute a DAS SQL ID. - Explain per-CN concurrency, waiting capacity, and timeout using the quick reference below. Check wildcards, keyword overmatching, overlapping rules, and node coverage. Use the detailed reference for examples and observation fields.
- For a live limit/removal request, use
polardbx-emergencyif installed. That separate skill owns authorization, supported CLI parameters, execution receipts, and recovery checks. If unavailable, provide the proposed SQL and state the missing execution workflow; do not improvise a write channel. Usepolardbx-diagnostics, when available, for incident evidence rather than inferring root cause from a rule alone.