duckdb-schema

Document the A股 DuckDB schema with table definitions, keys, and relationships.

Updated Jan 12, 2026
One-click install
npx skills add https://github.com/chinawrj/agent-skills-stock --skill duckdb-schema
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: duckdb-schema
Source: https://github.com/chinawrj/agent-skills-stock/tree/main/.github/skills/duckdb-schema
Command: npx skills add https://github.com/chinawrj/agent-skills-stock --skill duckdb-schema

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The A股 DuckDB schema reference enables data analysts and engineers to quickly understand table definitions, keys, data units, and relationships, eliminating guesswork when querying or modeling financial data.

Core Features & Use Cases

  • Comprehensive table definitions for stocks, shareholders, bonds, daily_market, fundamentals, klines, and more.
  • Clear primary keys, data types, indices, and cross-table relationships to support accurate SQL development and data validation.
  • Use cases include building reliable financial analyses, validating schema consistency, and drafting SQL queries against the full schema.

Quick Start

Ask for an overview of the duckdb-schema and how to join stocks, shareholders, and klines to analyze a stock's data.

Frequently Asked Questions about duckdb-schema

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

FAQPage Schema
What is the DuckDB schema for querying A-share stocks and financial data?

The A-share DuckDB schema defines tables for stocks, shareholders, bonds, daily_market, fundamentals, and klines. It specifies primary keys, data types, indices, and cross-table relationships to eliminate guesswork during SQL development and data validation.

How do I join stocks, shareholders, and klines tables in DuckDB for financial analysis?

You can join stocks, shareholders, and klines tables by referencing the schema's defined cross-table relationships and primary keys. This allows you to accurately query and model a stock's complete financial data, including market fundamentals and shareholder composition.

Can I use DuckDB for schema discovery and data validation of A-share fundamentals?

Yes, DuckDB is applicable for schema discovery and data validation of A-share fundamentals. The schema reference details table definitions, primary keys, and data units specifically for fundamentals, ensuring data consistency and accurate SQL query planning.

What data types and primary keys are defined for A-share daily_market and klines tables in DuckDB?

The DuckDB schema reference explicitly defines data types, primary keys, and indices for daily_market and klines tables. This detailed mapping supports accurate query planning and data integrity checks across your financial datasets.

Do I need prior SQL knowledge to use the DuckDB schema reference for A-share data?

Yes, this schema reference is designed for data analysts and engineers performing SQL development. It provides the structural definitions needed to draft queries, but assumes you understand SQL basics to query stocks, bonds, and fundamentals tables effectively.