agentsclimarketplace

Postgresgpt sql generator

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

AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution

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.

What its author says it does

Copied from the file, not written here

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

SKILL.md

1.2 KB, 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

Keep looking

Skills are one crate of 328,083. 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.