mirror of
https://github.com/supabase/agent-skills.git
synced 2026-01-26 19:09:51 +08:00
Rename postgresql to postgres (keeping only existing files)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "postgresql-best-practices-build",
|
||||
"name": "postgres-best-practices-build",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
@@ -60,7 +60,7 @@ function loadMetadata(): Metadata {
|
||||
version: "0.1.0",
|
||||
organization: "Supabase",
|
||||
date: new Date().toLocaleDateString("en-US", { month: "long", year: "numeric" }),
|
||||
abstract: "PostgreSQL performance optimization guide for developers.",
|
||||
abstract: "Postgres performance optimization guide for developers.",
|
||||
references: [],
|
||||
};
|
||||
}
|
||||
@@ -135,7 +135,7 @@ function buildAgents(): void {
|
||||
const output: string[] = [];
|
||||
|
||||
// Header
|
||||
output.push("# PostgreSQL Best Practices\n");
|
||||
output.push("# Postgres Best Practices\n");
|
||||
output.push(`**Version ${metadata.version}**`);
|
||||
output.push(`${metadata.organization}`);
|
||||
output.push(`${metadata.date}\n`);
|
||||
@@ -8,7 +8,7 @@ const __dirname = dirname(__filename);
|
||||
export const BUILD_DIR = join(__dirname, "..");
|
||||
|
||||
// Skill directory (relative to build package)
|
||||
export const SKILL_DIR = join(BUILD_DIR, "../../skills/postgresql-best-practices");
|
||||
export const SKILL_DIR = join(BUILD_DIR, "../../skills/postgres-best-practices");
|
||||
|
||||
// Rules directory
|
||||
export const RULES_DIR = join(SKILL_DIR, "rules");
|
||||
@@ -145,13 +145,13 @@ export function validateAllRules(): {
|
||||
const isMainModule = process.argv[1]?.endsWith("validate.ts") || process.argv[1]?.endsWith("validate.js");
|
||||
|
||||
if (isMainModule) {
|
||||
console.log("Validating PostgreSQL best practices rules...\n");
|
||||
console.log("Validating Postgres best practices rules...\n");
|
||||
|
||||
const { totalFiles, validFiles, invalidFiles, results } = validateAllRules();
|
||||
|
||||
if (totalFiles === 0) {
|
||||
console.log("No rule files found (this is expected for initial setup).");
|
||||
console.log("Create rule files in: skills/postgresql-best-practices/rules/");
|
||||
console.log("Create rule files in: skills/postgres-best-practices/rules/");
|
||||
console.log("Use the _template.md as a starting point.\n");
|
||||
process.exit(0);
|
||||
}
|
||||
Reference in New Issue
Block a user