About puda-database
A skill for querying the puda database with SQL through the puda CLI. It requires checking the schema before composing queries, helping users inspect tables and retrieve database records.
Key features
- 01Inspect tables, columns, and types
- 02Execute SQL through puda CLI
- 03Parse command output
Use cases
- 01Inspecting database structure before querying
- 02Filtering command_log records
- 03Retrieving data for ad-hoc analysis
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ pudap/ skills --skill puda-databaseAfter installing, type/puda-databasein Claude Code to confirm it loaded.
Details
From the project READMEDatabase Query
Query the puda database using the puda CLI with SQL.
Purpose
This skill enables querying the puda database: understanding its schema and executing SQL statements via the puda CLI.
When to Use
Load this skill when:
- Users want to query or inspect puda database data
- Users need to understand table and column structure before writing SQL
- Running ad-hoc SQL (e.g. filtering
command_logbycommand_name)
Required Resources
IMPORTANT: Before writing or running SQL, consult the schema:
- Schema: Run
puda db schemato see tables, columns, and types. Use this to write correct SQL and avoid invalid column/table names.
Do not assume table or column names; confirm them with puda db schema first.
When getting data from biologic machine command: data is always in payload at payload["response"]["data"].
Commands
puda db schema– Print database schema (tables and columns). Use to understand structure before writing SQL.puda db exec "<SQL>"– Execute a single SQL statement. Pass the SQL as a quoted string.
Example
puda db exec "SELECT * FROM command_log WHERE command_name='start'"
Instructions
- Consult schema: Run
puda db schemato understand tables and columns before writing SQL. - Execute SQL: Use
puda db exec "<SQL>"with the SQL in double quotes. Escape internal quotes as needed for your shell. - Parse output: Read command output to confirm success or to use result data in subsequent steps.
Comments
Markdown supported