query-writing
Skill30k starsChanged 3 months agoMITView on GitHub
Writes and executes SQL queries from simple SELECTs to complex multi-table JOINs, aggregations, and subqueries. Use when the user asks to query a database, write SQL, run a SELECT statement, retrieve data, filter records, or generate reports from database tables.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about langchain-ai/deepagents
- @catalyst.coop“Deep Agents is an open source project from LangChain to let anybody build their own model-agnostic agent …”Bluesky · Apr 4, 2026 · 12 likes
- @arifsolmaz.bsky.social“LangChain's DeepAgents gives you a production-ready AI agent in 3 lines of code - complete with planning, …”Bluesky · Mar 22, 2026 · 4 likes
- A Hacker News story“Deepagents”Hacker News · Jul 3, 2026 · 3 points
- @technews4869.bsky.social“github.com/langchain-ai/de... GitHub - langchain-ai/deepagents: Agent harness built with LangChain and …”Bluesky · Mar 19, 2026 · 3 likes
- @ramikrispin.bsky.social“New Code Agent from LangChain - Deep Agents github.com/langchain-ai... #ai #llm #datascience”Bluesky · Oct 31, 2025 · 3 likes
The biggest 5 of 62 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 62
Talked about on GitHub, Bluesky and Hacker News (62 times).
On GitHub · 50
- Sep 29, 2026Open Source Friday - [Deep Agents] - [11-13-2026] — githubevents/open-source-friday2 reactions · 8 comments
- Aug 18, 2026Allow a state channel to be checkpointed/restorable but excluded from `StateSnapshot.values` — langchain-ai/langgraph2 reactions · 6 comments
- Nov 21, 2026build(deps): bump the uv-minor-and-patch group across 1 directory with 7 updates — IntelIP/InfiniteFlightAgent1 reaction · 1 comment
- Oct 12, 2026Add hypothesis planning, resumable checkpoints and fenced Agent execution — MISTRYUSER/Argus-OTA-Platform1 reaction · 1 comment
- Oct 8, 2026chore(deps): bump the pip group across 1 directory with 5 updates — truefoundry/trueforge1 reaction · 3 comments
45 more on GitHub
- Jul 24, 2026feat(deepagents): simplify prompting — langchain-ai/deepagentsjs1 reaction · 3 comments
- Jun 29, 2026chore(standard-tests): add sandbox integration test for offloading large `execute` results — langchain-ai/langchain1 reaction
- Mar 13, 2026fix(middleware): use .content instead of .text for LangChain messages — NurraHealth/deepagents1 reaction · 2 comments
- Jan 14, 2026Integrate DeepAgents Example — i-am-bee/agentstack1 reaction · 2 comments
- Dec 9, 2025The js version of langchain doesn't set config with recursion_limit while python version does. — langchain-ai/deepagentsjs1 reaction · 2 comments
- Nov 3, 2025New CLI Tools — johnhenry/awesome-ai-tools1 reaction
- Sep 3, 2025Missing automation and other features — leizerowicz/project-start1 reaction
- Nov 24, 2026feat(langchain): add Modal chat model provider — langchain-ai/langchain0 reactions · 1 comment
- Nov 24, 2026[integration]: ChatModal (pending chat-model release) — langchain-ai/docs0 reactions
- Nov 23, 2026chore(deps): bump deepagents from 0.5.0 to 0.7.41 — Vela3202019/promptloop0 reactions
- Nov 23, 2026chore(deps)(deps): bump deepagents from 0.7.39 to 0.7.41 in /langchain-agents/deep-agents/hackflow-agent — fetchai/innovation-lab-examples0 reactions
- Nov 22, 2026build(deps): bump the python-minor-and-patch group across 1 directory with 3 updates — vietsosad/Medical_AI_Agent0 reactions
- Nov 20, 2026build(deps): bump deepagents from 0.7.32 to 0.7.39 in /04-langchain-upstage-deepagents/src — jyje/pilot-upstage-solar-open20 reactions
- Nov 19, 2026chore(deps): Bump deepagents from 0.7.38 to 0.7.39 — srtab/daiv0 reactions
- Nov 19, 2026FilesystemBackend.grep searches siblings when a file path uses the fallback — langchain-ai/deepagentsjs0 reactions · 3 comments
- Nov 19, 2026Follow up deepagents-cli upstream updates: PreToolUse onError: deny (0.2.11) not emitted from failClosed — dyoshikawa/rulesync0 reactions
- Nov 19, 2026chore(deps): bump deepagents from 0.7.19 to 0.7.38 — CopperPilot/copper-pilot-cli0 reactions
- Nov 12, 2026Native remote-agent delegation using LangChain subagents — caipe-io/ai-platform-engineering0 reactions · 1 comment
- Nov 5, 2026R&D: Deep Agents compatibility harness for Systemia / Work Saban — jgaethle10/forge-operator0 reactions · 2 comments
- Nov 3, 2026chore(deps): update deepagents requirement from >=0.6 to >=0.7.39 — BhaskaraRao-Aerupilli/InquireX0 reactions
- Oct 30, 2026[deepagents]: repository architecture guide describes opt-in todo management as a default capability[deepagents]: <Please write a comprehensive title> — langchain-ai/docs0 reactions · 2 comments
- Oct 28, 2026build(deps): bump deepagents from 0.7.21 to 0.7.32 in /backend — knqiufan/AIIntelBureau0 reactions
- Oct 28, 2026chore(deps): update deepagents requirement from >=0.6 to >=0.7.32 — lijy-forge/PaperGuide-Agent0 reactions
- Oct 28, 2026langchain-openrouter: support OAuth PKCE authentication — langchain-ai/langchain0 reactions
- Oct 26, 2026[Feature] Sub Agent 派生与 Agent 能力分档 — Code-MonkeyZhang/persona-agent0 reactions
- Oct 21, 2026Structured ask-the-user tool for mid-run clarification in interactive agent — SWE-agent/mini-swe-agent0 reactions · 1 comment
- Oct 21, 2026Follow up deepagents-cli upstream updates: canonical MCP oauth block now gets servers skipped (Slack custom OAuth app, 0.1.87) — dyoshikawa/rulesync0 reactions
- Oct 16, 2026chore(deps): update deepagents requirement from >=0.6 to >=0.7.24 — umbc-seng691-team/SENG-691-gpt-researcher0 reactions
- Oct 9, 2026README documents a nonexistent dcode marketplace update command — langchain-ai/langchain-plugins0 reactions
- Oct 3, 2026[Add] Deep Agents (langchain-ai/deepagents) — PyTorchKR/landscape0 reactions
- Oct 2, 2026Bump: Bump deepagents from 0.7.15 to 0.7.19 — objones25/my-agent0 reactions
- Oct 1, 2026chore(deps): update deepagents requirement from >=0.6 to >=0.7.19 — huxleylee329-dancer/wenxianzongshu_research0 reactions
- Sep 30, 2026chore(deps): bump deepagents from 0.6.12 to 0.7.19 — jbsoftware-io/gen-ai-starter0 reactions · 1 comment
- Sep 26, 2026build(deps): update deepagents requirement from ~=0.7.9 to ~=0.7.18 in /backend — Nisarg6502/f1-hub0 reactions
- Sep 25, 2026chore(deps-dev): bump deepagents from 0.7.13 to 0.7.28 — PrayforH/KAI0 reactions · 1 comment
- Sep 24, 2026chore(deps): update deepagents requirement from >=0.6 to >=0.7.15 — 2033-horizon/reasearch0 reactions
- Sep 22, 2026chore(deps): update deepagents requirement from >=0.6 to >=0.7.15 — ZimaAI/pharma-scope0 reactions
- Sep 21, 2026chore(deps): bump deepagents from 0.7.13 to 0.7.22 — TekkenSteve/fastapi_langgraph_template0 reactions
- Sep 20, 2026Update deepagents requirement from >=0.6 to >=0.7.15 — vinod1rai249-max/gpt-research0 reactions
- Sep 18, 2026langgraph dev Studio UI 연동 실패 - Windows Chrome PNA 정책으로 시도 중단 — DahaeKimEsther/book_chatbot_manual0 reactions · 1 comment
- Sep 17, 2026Update deepagents requirement from >=0.6 to >=0.7.14 — lyy00702/traceable-deep-research-agent0 reactions
- Sep 12, 2026Update deepagents requirement from >=0.6 to >=0.7.13 — KarimAbdelkader-code/gpt-researcher0 reactions
- Sep 12, 2026chore(deps): update deepagents requirement from >=0.6 to >=0.7.13 — Fateorcloud/DeepResearch-KB0 reactions
- Sep 8, 2026ci(deps): bump deepagents from 0.6.12 to 0.7.13 — spark-match/spark-match-07-deep-agent0 reactions · 1 comment
- Sep 7, 2026Update deepagents requirement from >=0.6 to >=0.7.13 — girishlade111/gpt-researcher0 reactions
On Bluesky · 10
- Apr 4, 2026Deep Agents is an open source project from LangChain to let anybody build their own model-agnostic agent harness (tools like Claude Code or… — @catalyst.coop12 likes and reposts · 7 replies
- Mar 22, 2026LangChain's DeepAgents gives you a production-ready AI agent in 3 lines of code - complete with planning, file ops, shell access, and… — @arifsolmaz.bsky.social4 likes and reposts
- Mar 19, 2026github.com/langchain-ai/de... GitHub - langchain-ai/deepagents: Agent harness built with LangChain and LangGraph. Equipped wit... — @technews4869.bsky.social3 likes and reposts
- Oct 31, 2025New Code Agent from LangChain - Deep Agents github.com/langchain-ai... #ai #llm #datascience — @ramikrispin.bsky.social3 likes and reposts
- Mar 25, 2026LangChain vient d'open-sourcer Deep Agents : un framework MIT qui réplique le fonctionnement de Claude Code. Agent prêt à l'emploi avec… — @camilleroux.com2 likes and reposts
5 more on Bluesky
- Mar 17, 2026今日のGitHubトレンド langchain-ai/deepagents Deep Agentsは、すぐに利用できるエージェントフレームワークです。 プロンプト、ツール、コンテキスト管理の初期設定を省略し、すぐにカスタマイズ可能なエージェントを構築できます。… — @dailygithubtrends.bsky.social2 likes and reposts
- Mar 16, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 langchain-ai / deepagents ⭐ 12,130 (+444) 🗒 Python Agent harness built with LangChain and… — @github-trending.bsky.social2 likes and reposts · 1 reply
- Nov 12, 2025langchain-ai / deepagents https://github.com/langchain-ai/deepagents — @pythonhub.dev2 likes and reposts
- Jul 3, 2026LangChain's open source "batteries included" harness for building agents with planning, subagent delegation, and long running task loops… — @bestofhn.bsky.social1 likes and repost
- Mar 24, 2026https://github.com/langchain-ai/deepagents — @tom-doerr.bsky.social1 likes and repost
On Hacker News · 2
- Jul 3, 2026Deepagents3 points · 1 comment
- Aug 27, 2026LangChain-AI/deepagents: agent harness1 point
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- examples/content-builder-agent/AGENTS.mdAGENTS.md
- examples/deploy-coding-agent/AGENTS.mdAGENTS.md
- examples/deploy-content-writer/AGENTS.mdAGENTS.md
- examples/deploy-content-writer/user/AGENTS.mdAGENTS.md
- examples/deploy-gtm-agent/AGENTS.mdAGENTS.md
- examples/deploy-gtm-agent/subagents/market-researcher/AGENTS.mdAGENTS.md
- examples/deploy-mcp-docs-agent/AGENTS.mdAGENTS.md
- examples/nvidia_deep_agent/src/AGENTS.mdAGENTS.md
- examples/talon/AGENTS.mdAGENTS.md
- examples/text-to-sql-agent/AGENTS.mdAGENTS.md
- libs/code/AGENTS.mdAGENTS.md
- libs/evals/AGENTS.mdAGENTS.md
- libs/partners/AGENTS.mdAGENTS.md
- libs/talon/deepagents_talon/defaults/agents/external-research/AGENTS.mdAGENTS.md
- libs/talon/deepagents_talon/defaults/agents/internal-research/AGENTS.mdAGENTS.md
- libs/talon/deepagents_talon/defaults/AGENTS.mdAGENTS.md
- textual-screenshotSkill
- blog-postSkill
- social-mediaSkill
- code-reviewSkill
- coding-prefsSkill
- planningSkill
- blog-postSkill
- social-mediaSkill
- competitor-analysisSkill
- analyze-marketSkill
- cudf-analyticsSkill
- cuml-machine-learningSkill
- data-visualizationSkill
- gpu-document-processingSkill
- schema-explorationSkill
- deepagents-thread-inspectorSkill
- rememberSkill
- skill-creatorSkill
- arxiv-searchSkill
- langgraph-docsSkill
- skill-creatorSkill
- web-researchSkill
- configuration-hardeningSkill
- safetySkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Get the schema: - Use sql_db_schema to see columns
- Very specific: line 15
Execute: - Run with sql_db_query
- Very specific: line 30
Use sql_db_schema for EACH table to find join columns and needed fields.
- Distinctive: line 41
Check all JOINs have conditions, GROUP BY is correct, then run query.
- Distinctive: line 57
If a query fails or returns unexpected results:
- Distinctive: line 65
Always apply LIMIT (5 default)
- Distinctive: line 66
Use table aliases for clarity
- Distinctive: line 68
Never use DML statements (INSERT, UPDATE, DELETE, DROP)
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Query Writing Skill
Workflow for Simple Queries
For straightforward questions about a single table:
- Identify the table - Which table has the data?
- Get the schema - Use
sql_db_schemato see columns - Write the query - SELECT relevant columns with WHERE/LIMIT/ORDER BY
- Execute - Run with
sql_db_query - 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.
3. Construct Query
- SELECT - Columns and aggregates
- FROM/JOIN - Connect tables on FK = PK
- WHERE - Filters before aggregation
- GROUP BY - All non-aggregate columns
- ORDER BY - Sort meaningfully
- LIMIT - Default 5 rows
4. Validate and Execute
Check all JOINs have conditions, GROUP BY is correct, then run query.
Example: Revenue by Country
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;Error Recovery
If a query fails or returns unexpected results:
- Empty results — Verify column names and WHERE conditions against the schema; check for case sensitivity or NULL values
- Syntax error — Re-examine JOINs, GROUP BY completeness, and alias references
- Timeout — Add stricter WHERE filters or LIMIT to reduce result set, then refine
Quality Guidelines
- Query only relevant columns (not SELECT *)
- Always apply LIMIT (5 default)
- Use table aliases for clarity
- For complex queries: use write_todos to plan
- Never use DML statements (INSERT, UPDATE, DELETE, DROP)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

