qlint-snippet

Lint q and qSQL code snippets with KX qlint via stdin or argument.

12|11|Updated May 20, 2026
One-click install
npx skills add https://github.com/KxSystems/kx-skills --skill qlint-snippet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: qlint-snippet
Source: https://github.com/KxSystems/kx-skills/tree/main/plugins/q-knowledge/skills/qlint-snippet
Command: npx skills add https://github.com/KxSystems/kx-skills --skill qlint-snippet

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Lint a single q/qSQL code snippet using KX qlint by reading code from stdin or an argument and returning the raw lint table for quick feedback before execution.

Core Features & Use Cases

  • Lint ad-hoc q or qSQL snippets from chat, generated code, or pasted blocks to catch syntax and lint issues early.
  • Supports both stdin (preferred for multi-line snippets) and single-line argument input to feed code to qlint.q_.
  • Provides a structured lintItem table with fields like label, errorClass, problemText, and errorMessage to guide fixes.

Quick Start

Run qlint-snippet on a code block by feeding it to its script or piping the code through stdin.

Frequently Asked Questions about qlint-snippet

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I lint a q code snippet before execution?

You can lint a q code snippet by feeding multi-line blocks through stdin or passing a single-line argument to the qlint wrapper, which returns a structured lint table for quick feedback.

What kind of issues does qlint catch in qSQL code?

Linting qSQL code surfaces syntax and style issues early by generating a structured lintItem table containing fields like label, errorClass, problemText, and errorMessage to guide fixes.

Do I need q installed on my system to run qlint?

Yes, running qlint requires the q binary on your PATH for execution and the QLINT_DIR environment variable set to the directory containing the qlint.q_ file.

What is the best way to lint ad-hoc q code blocks from chat?

The preferred way to lint ad-hoc q code blocks from chat is piping the pasted snippet through stdin, which handles multi-line input efficiently for the qlint wrapper.

Can I lint a single line of q code without using stdin?

Yes, you can lint a single line of q code by passing it directly as a single-line argument to the script, which feeds the code straight into qlint.q_ without needing stdin.