npx claudepluginhub yu-iskw/sqlfluff-complexityAgent skills for adopting and tuning sqlfluff-complexity CPX rules in SQLFluff and dbt projects.
SQLFluff rules and reports for finding SQL and dbt models that are too complex to review safely.
sqlfluff-complexity adds CPX rules to SQLFluff for CTE count, join count, nested
subquery depth, CASE expressions, nested CASE depth, boolean predicates, window functions,
CTE dependency depth, set operations (UNION / INTERSECT / EXCEPT), inline derived tables, and
an aggregate weighted complexity score. The same metric engine also powers a companion
sqlfluff-complexity report command for non-blocking console, JSON, SARIF, and standalone
HTML reports.
Requires SQLFluff 4.x in the same environment (sqlfluff>=4,<5). SQLFluff 3 is not supported as of sqlfluff-complexity 0.4.0; pin sqlfluff-complexity<0.4 if you cannot upgrade SQLFluff yet.
Install the custom SQLFluff plugin in the same Python environment where you run SQLFluff:
pip install sqlfluff-complexity
If your project uses uv:
uv add --dev sqlfluff-complexity
Then enable CPX rules in .sqlfluff and run SQLFluff:
[sqlfluff]
dialect = postgres
rules = CPX_C101,CPX_C102,CPX_C103,CPX_C104,CPX_C105,CPX_C106,CPX_C107,CPX_C108,CPX_C109,CPX_C110,CPX_C201
sqlfluff lint models/
For a complete walkthrough, see docs/quickstart.md.
Migrating complexity_weights: Use a JSON object in [sqlfluff:rules:CPX_C201] (not comma-separated key:value lists). See Configuration: aggregate score and CHANGELOG.
path_overrides.report pipeline and related config helpers; more subcommands documented here as they ship).sqlfluff_complexity.core submodules directly, update paths after subpackage refactors.This plugin does not read dbt artifacts (manifest.json, run_results.json, catalog.json) or graph metadata. Complexity is measured from the SQLFluff parse tree only—which aligns well with SQLFluff’s dbt templater so ref(), source(), and macros compile before linting.
Practical adoption patterns:
sqlfluff-complexity focused on structural signals from parsed SQL.path_overrides on CPX_C201 where staging vs marts need different budgets.sqlfluff lint on changed models in CI and sqlfluff-complexity report for broader visibility without failing builds.WITH lint).See also dbt usage and configuration.
manifest.json and DAG-level metrics are deferred.Contributor setup, Nox sessions, fixture authoring, ADR workflow, and verifier guidance live in CONTRIBUTING.md. Agent-specific project instructions live in AGENTS.md.
7-day visitors to each marketplace page
UI/UX design intelligence skill with 80 styles, 194 palettes, 74 font pairings, 25 charts, and 22 stack guidelines
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Editorial diagrams in your brand, as self-contained HTML and SVG. Architecture, flowcharts, sequence, state machines, ER and database schemas, timelines, swimlanes, org charts, Gantt, Wardley maps, user journeys, service blueprints, UML class, lifecycle phase maps, and charts from bar, line and scatter to Sankey, treemap and heatmap, plus many more. Redraws draw.io, Mermaid, Excalidraw and PlantUML files. Exports SVG and PNG.