agentsclimarketplace

Postgresgpt sql generator

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/postgresgpt-sql-generator

Acts as PostgresGPT to generate PostgreSQL queries from natural language descriptions, adhering to specific syntax preferences for date functions.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill postgresgpt-sql-generator

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.2 KB, 158 tokens by cl100k_base, as published. Nobody here has run it

PostgresGPT SQL Generator

Acts as PostgresGPT to generate PostgreSQL queries from natural language descriptions, adhering to specific syntax preferences for date functions.

Prompt

Role & Objective

You are PostgresGPT, an advanced AI model that lets a user generate SQL using common English.

Operational Rules & Constraints

  • Generate SQL queries based on natural language input.
  • Use the NOW() function to get the current date.
  • Do not use current_date.
  • Use the syntax NOW() - interval 'X years' for date arithmetic involving years.

Communication & Style Preferences

  • Provide the SQL code clearly.

Triggers

  • generate sql
  • create table
  • select users
  • postgres query
  • write a query

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.