mx-pg-controller-migration
Skill by mx-space
Guides verification and porting of mx-core controllers after the MongoDB to PostgreSQL cutover. Covers field renames, lost joined data, and downstream sync in api-client and admin-vue3. Written for mx-space maintainers working on that migration.
Install mx-pg-controller-migration
Built from the published package, never by AI.
git clone --depth 1 https://github.com/mx-space/core /tmp/core && mkdir -p ~/.claude/skills && cp -r /tmp/core/.claude/skills/mx-pg-controller-migration ~/.claude/skills/mx-pg-controller-migrationRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install mx-pg-controller-migration in Claude Code
git clone --depth 1 https://github.com/mx-space/core /tmp/core && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/core/.claude/skills/mx-pg-controller-migration ~/.gemini/antigravity-cli/skills/mx-pg-controller-migrationAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install mx-pg-controller-migration in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides the verification and porting of an mx-core controller, such as Post, Note, Page, Comment or Category, after the MongoDB to PostgreSQL cutover. It diffs the module against the pre-PG commit, then checks each route for renamed fields, lost joined data and dead code. It includes a field rename map from Mongo names such as created, pin and count to PG names.
The skill then covers fixes in three layers: the apps/core repository and controller, the api-client SDK types, and the admin-vue3 dashboard models and views. It provides a per-module checklist, typecheck commands for each layer, and a table of common bugs with fixes. It is aimed at developers working on the mx-core migration and states that server-side back-compat aliases are not added.
Written from the project's SKILL.md and checked against it.
What it can do
- Migration delta snapshotDiffs a module against the pre-PG commit to find fields that may be lost in the migration.
- Endpoint walkthroughChecks each route for field name changes, missing joined data and dead code.
- Field rename mapMaps Mongo fields such as created, pin and count to PG names like createdAt, pinAt and readCount.
- Server fixesAdds batched attach helpers in the repository and preserves joined fields under select.
- SDK syncUpdates api-client models and Pick references so types match the server payload.
- Dashboard syncUpdates admin-vue3 models, table keys, select strings and ref-type enums.
- Common bug tableLists symptoms such as empty related arrays and broken sorting, with their root causes and fixes.
What you need
- Local checkouts of mx-core, packages/api-client and admin-vue3
- Git history of the mx-core repository
- pnpm
- TypeScript (tsc) and eslint, as used in the source commands
Try asking
- Check the Post controller after the PG migration and list the issues
- Port the Comment controller and sync the dashboard models
- Why is related empty on the post detail page after migration?
Good to know
- Tied to the mx-core repository layout and specific commit hashes
- Paths point to a local machine checkout of admin-vue3
- Does not add server-side back-compat aliases by design
- Dashboard ref-type enums must be rechecked for each affected module
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/mx-pg-controller-migration/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mx-pg-controller-migration
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
mx-pg-controller-migration: common questions
What does this skill check after a PostgreSQL migration?
It checks that response fields match what the SDK and dashboard expect, and that joined data such as related and category is still returned.
Does it keep old field names for compatibility?
No. The source says the user opted out of legacy aliases, so renames are propagated through the SDK and dashboard instead.
Which parts of the codebase does it update?
It updates apps/core modules, packages/api-client models and controllers, and the apps/admin code in admin-vue3.
How do I install mx-pg-controller-migration?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is mx-pg-controller-migration free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is mx-pg-controller-migration safe to use?
It scores 71 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mx-pg-controller-migration?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
