🗄️
DataPython

Query Writing

by Idun-Group

Query Writing is a Data skill for Claude Code, published by Idun-Group in idun-agent-platform.

199 stars13 forkson Idun-Group/idun-agent-platformAdded 2026/09/05+1% in starsRepository updated 2026/08/06
a2a-protocolag-ui-protocolagent-platformagentic-aiagentsclaude-codeclaude-skillscopilotkitgoogle-adkgovernanceguardrailslangchainlangfuselanggraphmcpobservabilityopen-sourceopenclawopentelemetrysso
Install in seconds
Install Query Writing
Copy Query Writing into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/Idun-Group/idun-agent-platform/tree/main/examples/tutorials/text-to-sql-deep-agent/skills/query-writing ~/.claude/skills/query-writing

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/Idun-Group/idun-agent-platform.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
examples/tutorials/text-to-sql-deep-agent/skills/query-writing/SKILL.md in Idun-Group/idun-agent-platform
Installs to
~/.claude/skills/query-writing
Collection
One of 2 skills cataloged from this repository
Category
Data762 skills

What Query Writing does

Query Writing writes and executes SQL SELECT queries for single-table lookups, joins, aggregations, and reports. Use it when you need to retrieve or filter database data without modifying records.

Query Writing is cataloged under Data on DirSkills. Query Writing comes from a repository tagged a2a-protocol, ag-ui-protocol, agent-platform, agentic-ai and agents.

Documentation

README

Query Writing Skill

Workflow for Simple Queries

For straightforward questions about a single table:

  1. Identify the table - Which table has the data?
  2. Get the schema - Use sql_db_schema to see columns
  3. Write the query - SELECT relevant columns with WHERE/LIMIT/ORDER BY
  4. Execute - Run with sql_db_query
  5. Format answer - Present results clearly

Workflow for Complex Queries

For questions requiring multiple tables:

1. Plan Your Approach

Use write_todos to break down the task:

  • Identify all tables needed
  • Map relationships (foreign keys)
  • Plan JOIN structure
  • Determine aggregations

2. Examine Schemas

Use sql_db_schema for EACH table to find join columns and needed fields.

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Query Writing

  • What else does Idun-Group publish alongside Query Writing?

    Query Writing is one of 2 skills that DirSkills catalogs from Idun-Group/idun-agent-platform, the repository it ships in. Its siblings there include Schema Exploration. Each one is a separate skill with its own page in this directory, installs the same way Query Writing does, and is maintained by Idun-Group in that same repository. The rest of the collection is listed on the Idun-Group/idun-agent-platform page.

  • How does Query Writing compare to other Data skills?

    Query Writing ranks #704 by stars among the 762 Data skills in this catalog. The most-starred ones next to it are Benchmark Methodology, Jupyter Notebook and Solana. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Query Writing against them. Open each page to compare what they document and how they install.