/langchain-ai:query-writingfrom langchain-ai
For writing and executing SQL queries - from simple single-table queries to complex multi-table JOINs and aggregations
Ships in langchain-ai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when you need to answer a question by writing and executing a SQL query.
For straightforward questions about a single table:
sql_db_schema to see columnssql_db_queryFor questions requiring multiple tables:
Use write_todos to break down the task:
Use sql_db_schema for EACH table to find join columns and needed fields.
Check all JOINs have conditions, GROUP BY is correct, then run query.
SELECT
c.Country,
ROUND(SUM(i.Total), 2) as TotalRevenue
FROM Invoice i
INNER JOIN Customer c ON i.CustomerId = c.CustomerId
GROUP BY c.Country
ORDER BY TotalRevenue DESC
LIMIT 5;
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ulpi-io/plugin-marketplace --plugin langchain-aiOther plugins' skills for the same job
20 skills in this plugin
/arxiv-searchSearch arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search./blog-postUse this skill when writing long-form blog posts, tutorials, or educational articles that require structure, depth, and SEO considerations/deep-agents-coreINVOKE THIS SKILL when building ANY Deep Agents application. Covers create_deep_agent(), harness architecture, SKILL.md format, and configuration options.