Help us improve
Share bugs, ideas, or general feedback.
From sqlfluff-complexity
Guide users through configuring sqlfluff-complexity for a SQLFluff project by sampling reports, choosing a preset, explaining thresholds, per-directory strictness (nested .sqlfluff vs path_overrides), validating config, and recommending gradual CI rollout.
npx claudepluginhub yu-iskw/sqlfluff-complexity --plugin sqlfluff-complexityHow this skill is triggered — by the user, by Claude, or both
Slash command
/sqlfluff-complexity:configure-cpxThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill is for **consumer** SQLFluff and dbt projects. Install it via the **sqlfluff-complexity** agent plugin (Claude Code, Cursor, or Codex) from this repository’s marketplace, or point your agent at `plugins/sqlfluff-complexity/` in a checkout. See [docs/adoption.md](https://github.com/yu-iskw/sqlfluff-complexity/blob/main/docs/adoption.md#coding-agent-plugin).
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
Implements vector databases with Pinecone, Weaviate, Qdrant, Milvus, pgvector for semantic search, RAG, recommendations, and similarity systems. Optimizes embeddings, indexing, and hybrid search.
Share bugs, ideas, or general feedback.
This skill is for consumer SQLFluff and dbt projects. Install it via the sqlfluff-complexity agent plugin (Claude Code, Cursor, or Codex) from this repository’s marketplace, or point your agent at plugins/sqlfluff-complexity/ in a checkout. See docs/adoption.md.
Use this skill when a user asks to configure, tune, adopt, or roll out sqlfluff-complexity rules for a project.
Work from the repository root. Inspect root and nested SQLFluff config: .sqlfluff at the repo root, pyproject.toml ([tool.sqlfluff.*] if present), and nested config files (for example .sqlfluff under models/… or other SQL directories). SQLFluff merges these along the path to each file. Scan obvious SQL paths to infer dialect and target files before asking.
If no dialect is discoverable, ask the user for the SQLFluff dialect.
Generate a starting config with one of:
sqlfluff-complexity config preset report_only --dialect <dialect>
sqlfluff-complexity config preset lenient --dialect <dialect>
sqlfluff-complexity config preset recommended --dialect <dialect>
sqlfluff-complexity config preset strict --dialect <dialect>
Run report mode on representative SQL files:
sqlfluff-complexity report --dialect <dialect> --format json <paths>
Recommend a preset:
report_only for baselining or CI visibility without enforcement.lenient when the first run produces too many findings.recommended when findings are sparse and high-signal.strict only for mature projects that already enforce SQL review budgets.Explain any threshold changes in plain language, focusing on review risk rather than parser internals.
When the report clearly shows that staging, intermediate, marts, or experimental SQL need different CPX budgets, present per-path strictness using one or both of:
[sqlfluff:rules:CPX_*] sections as other rules.path_overrides: Keep a single root config and add glob lines under [sqlfluff:rules:CPX_C201] for CPX-specific thresholds and mode. Full syntax and keys are in the sqlfluff-complexity Configuration user doc (docs/configuration.md when this repository is checked out)..sqlfluff plus path_overrides instead of debugging merge order across many files.Validate the resulting config:
sqlfluff-complexity config-check --dialect <dialect> --config .sqlfluff
Recommend rollout in this order: report mode baseline, individual high-signal rule enforcement, then CPX_C201 once aggregate score is calibrated.
sqlfluff-complexity report command.templater only in a nested config under the working directory: SQLFluff does not allow templater in config files located in subdirectories of the cwd (same nesting documentation). Keep templater and dbt templater sections in project root or higher-level config.config-check, spot-check sqlfluff lint and sqlfluff-complexity report on real paths, and fall back to root config plus path_overrides if behavior is unclear—do not over-promise.