narrow-upsert-to-update
CommunitySplit one noisy upsert into a precise update
AuthorJoeCP17
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It removes wasteful “read full row → rebind most fields → overwrite a few → call shared merge” behavior by splitting exactly one legacy ActionSet upsert path into a dedicated, narrow SQL XML update.
Core Features & Use Cases
- Single-path refactor with hard scope limits: targets exactly one user-specified
actionId(queryId)and keeps the sharedm_*_mergequery unchanged. - Proves changed fields before editing: traces where each value is loaded, transformed, overwritten, or preserved so the new
SETcontains only proven changed columns. - Correct timestamp/audit handling: preserves
NOW()-based semantics or upgrades to an application-generated current time parameter when appropriate, adding change-time when identifiable. - Maintains migration traceability: adds required source-preservation comments carrying the original C# BO file and line range at both the Java call site and the new SQL XML query.
Quick Start
Use the skill to inspect one specific actionId(queryId) save path, validate test coverage first, then generate a minimal diff that adds exactly one dedicated update query and swaps only that one call site.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: narrow-upsert-to-update Download link: https://github.com/JoeCP17/LLM-Dot-files/archive/main.zip#narrow-upsert-to-update Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.