Add or modify dq CLI subcommands in this repo. Use when implementing a new pipeline stage, wiring clap command parsing, following the plan-appending command pattern, or adding TOML fixture coverage for command behavior.
Add new dq subcommands by following the lightweight plan-based pattern used by select, where, limit, order-by, describe, and summarize: define clap surface in src/main.rs, append to the query Plan in src/cmd.rs, update src/plan.rs if a new op is needed, and add fixture coverage in tests/test_cases/.
Prefer this skill for command-shaped pipeline stages that consume JSON plan input from stdin and either emit an updated plan or pretty-print the compiled query when stdout is a TTY.
dqAGENTS.md, src/main.rs, src/cmd.rs, src/plan.rs, tests/common/mod.rs, and the nearest fixture files in tests/test_cases/.references/command-pattern.md to mirror the implementation shape used by current transform commands.references/testing-pattern.md to add fixture coverage with the existing TOML schema.Command enum variant in src/main.rsOp variant plus compiler lowering in src/plan.rs if the command changes query semanticssrc/cmd.rsrun()Plan from stdin with Plan::read_from(io::stdin().lock())plan.with_op(Op::...)emit_plan_or_pretty()COPY ({plan.compile_sql()}) TO ...Plan from a file path or materialize non-path input to temp parquet firsttests/test_cases/.cargo test <targeted test name> if convenientcargo testsrc/cmd.rs.emit_plan_or_pretty() for transform-like commands instead of duplicating tty/plan branching.Plan::compile_sql() must stay valid inside COPY ({compiled}) TO ....IO Error; assert the actual observed behavior.When finishing work, report: