Dynamic Report Agent — Data skill for Claude Code
Dynamic Report Generation Agent is a Python-based AI agent that converts natural-language questions into SQL, asks clarifying questions when needed, and generates readable report outputs.
How to install Dynamic Report Agent
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open nikhilsingla7/dynamic-report-agent and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Dynamic Report Agent does
Dynamic Report Generation Agent is a Python-based AI agent that converts natural-language questions into SQL, asks clarifying questions when needed, and generates readable report outputs. It demonstrates tool-calling, schema-grounded prompting, multi-turn agent loops, and SQL guardrails using Anthropic Claude.
Alternatives in Data
- Privacy & Data Handling — This repository contains: - a plugin package (plugins/compound-engineering) made of markdown/config content 10.8k ★
- SQL Queries — Generate SQL queries from natural language across major dialects 7.8k ★
- Context Mode — Benchmark Results — Benchmarked against real outputs from popular Claude Code MCP servers, Skills, and dev tools 5.6k ★
README
Dynamic Report Generation Agent
This project is a lightweight AI agent that turns a natural-language business question into SQL, asks follow-up questions when the request is ambiguous, and generates a readable report from the result.
For the current learning/demo version, the SQL is executed against an embedded SQLite fixture dataset so the behavior is easy to test. In a real production deployment, the generated SQL would connect to your actual database system and execute against live data instead of the mock dataset.
It is built as a learning project for:
- LLM tool calling
- multi-turn agent loops
- SQL guardrails
- schema-aware prompting
- report generation from query results
What this solution does
When you run the app:
- It loads the schema from
data/schema.py. - It sends the user's query to the Claude model with the schema in context.
- If the query is ambiguous, the agent may call the
ask_clarificationtool. - Once the intent is clear, the agent calls
generate_sql_queryto return the SQL query and explanation. - The generated SQL is executed against the embedded SQLite fixture dataset.
- A Markdown and HTML report is created in the
reports/folder.
Features
- Natural-language to SQL generation
- Clarifying questions for missing details
- Schema-aware prompting using the database schema
- Multi-turn conversational flow in the agent loop
- SQL safety validation to block dangerous operations
- Auto-generated Markdown and HTML reports
Project structure
dynamic-report-agent/
├── src/
│ ├── agent/
│ │ ├── client.py # Anthropic client creation and env loading
│ │ ├── loop.py # Main agent loop and tool-calling flow
│ │ ├── query_builder.py # SQLite query execution and safety checks
│ │ └── report_generator.py # Markdown/HTML report generation
│ ├── main.py # Entry point for running sample queries
│ └── __init__.py
├── config/
│ └── env.py # En
Related Skills
SQL AI Agent
A text-to-SQL AI agent with a safety-first validation layer. Natural language questions become SQL, but a stri
Blazer AI
AI-powered natural language to SQL generation for Blazer using RubyLLM
Database Cleanup Tool
Dedupes and enriches messy real estate agent contact databases: merges duplicates, fills in missing phone numb
Customer Behavior Crew
A multi-agent AI crew for customer behavior analysis — an Orchestrator routes business questions to specialist
Massu Data
When user asks about data trends, metrics, analytics, funnel analysis, cohort comparison, entity counts, stora
Suganthans BigQuery MCP Server
BigQuery MCP server for Claude — query any BigQuery dataset in natural language, with built-in SEO analysis to
Related Agents
API Test Generator
Use this agent to generate Playwright API tests using the request fixture. Converts natural language API specs
Salesforce Design
MUST BE USED FIRST for EVERY Salesforce request. Use PROACTIVELY as the FIRST STEP before any admin or develop
Timps Agent Composer
Generate a new fully-functional Python agent file from a natural-language description. Use the timps_agent_com