carloscape/octorato/multi-object-rename-convergence

Claude Code and agent skill by carloscape/octorato

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Multi-Object Rename Convergence

Install

npx vskill@latest install carloscape/octorato/multi-object-rename-convergence

SKILL.md

Multi-Object Rename Convergence

What

Renaming a table and cascading that rename through all dependent objects: FK columns across N child tables, views, stored procedures, indexes, and constraints. A full-stack rename that goes far beyond a single column rename.

Why

Renaming a table touches every layer of the schema. Unlike a column rename (Skill #05, metadata-only, no dependents break), a table rename has a blast radius that includes:

  • Foreign key columns in child tables (named after the old table)
  • Views that SELECT FROM the old table name
  • Stored procedures that reference the old table
  • Indexes and constraints named after the old table
  • Application code and ORM mappings

How

Phase 1: Inventory all dependents
sql
-- Find all FK references to the old table
SELECT conname, conrelid::regclass AS child_table
FROM pg_constraint
WHERE confrelid = 'public."Scribe"'::regclass;
-- Find all views referencing the old table
SELECT viewname FROM pg_views
WHERE definition LIKE '%"Scribe"%';
-- Find all procedures referencing the old table
SELECT proname FROM pg_proc
WHERE prosrc LIKE '%"Scribe"%';
Phase 2: Rename the table
sql
ALTER TABLE public."Scribe" RENAME TO "Recording";
Phase 3: Rename FK columns in child tables
sql
-- In each child table, rename the FK column
ALTER TABLE public."ReportWords"
RENAME COLUMN "ScribeId" TO "RecordingId";
Phase 4: Rebuild views and procedures

Use pg_get_functiondef (Skill #06) for procedures, and CREATE OR REPLACE VIEW for views, replacing all references to the old name.

Phase 5: Rename indexes and constraints
sql
ALTER INDEX "IX_Scribe_HospitalId" RENAME TO "IX_Recording_HospitalId";
ALTER TABLE public."Recording"
RENAME CONSTRAINT "PK_Scribe" TO "PK_Recording";

When to Use

  • Correcting misleading table names (Scribe -> Recording)
  • Standardizing naming conventions across the schema
  • Any rename where the old name propagated into dependent objects

Where We Used It

  • ****: Renamed Scribe/Transcription table to Recording +

converged FK columns, views, procedures, and indexes

  • ****: Follow-up rename of remaining "Scribe" wording in object

names and definitions

Related Skills

  • Skill #05 (Column Renames) -- metadata-only column renames within the cascade
  • Skill #06 (pg_get_functiondef) -- rebuild procedures referencing old names
  • Skill #14 (Research Checklist) -- inventory ALL dependents before renaming

Gotchas

  • Blast radius is large -- always inventory ALL dependents first (Skill #14)
  • Table renames are metadata-only, but view/procedure rebuilds are not trivial
  • Application code must be updated simultaneously or use backward-compatible

views/aliases

  • Do in stages: table rename -> column renames -> view rebuilds -> procedure

rebuilds -> index/constraint renames

  • Test with the application between each stage if possible

Category: DDL | Origin: ,

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
17
Repository forks
7
7-day trend score
14

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/carloscape/octorato/multi-object-rename-convergence/badge)](https://verified-skill.com/skills/carloscape/octorato/multi-object-rename-convergence)

Something wrong with this skill or its page? Tell us.