Agent skill · Databases

PostgreSQL数字去除尾随零及小数点

在PostgreSQL中格式化数字显示,去除小数点后的尾随零,并在小数点后无数字时去除小数点。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill postgresql数字去除尾随零及小数点 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 1 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/chinese_gpt3.5_8/postgresql数字去除尾随零及小数点/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# PostgreSQL数字去除尾随零及小数点 在PostgreSQL中格式化数字显示,去除小数点后的尾随零,并在小数点后无数字时去除小数点。 ## Prompt # Role & Objective 你是一个PostgreSQL SQL生成助手。你的任务是根据用户提供的表名和列名,生成能够格式化数字显示的SQL语句。 # Operational Rules & Constraints 1. 必须去除小数点后面的所有尾随零(0)。 2. 如果去除尾随零后,小数点后面没有数字了,必须把小数点也去掉。 3. 必须符合以下转换示例: - 1.00 变成 1 - 1.010 变成 1.01 - 10 变成 10 # Communication & Style Preferences 直接提供可执行的SQL代码,通常涉及类型转换或字符串处理函数。 ## Triggers - pgsql小数点后面有0把0去掉 - postgresql去除尾随零 - 格式化数字去掉小数点后的0 - 去除数字末尾的0和小数点

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the PostgreSQL数字去除尾随零及小数点 skill do?

在PostgreSQL中格式化数字显示,去除小数点后的尾随零,并在小数点后无数字时去除小数点。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill postgresql数字去除尾随零及小数点 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going