Loading...
Loading...
Use when the user needs to understand, diagnose, or prevent Protheus record locks and deadlocks -- covering RecLock/MsUnlock/SoftLock/LockByName semantics, BeginTran/EndTran transaction scoping, lock leak and deadlock diagnostics (TopMemoStatus, MonitorActiveLocks, DBAccess monitor, SQL Server/PostgreSQL/Oracle lock queries), and prevention patterns (BEGIN SEQUENCE/RECOVER, lock ordering). Also triggers on Portuguese phrasing like "registro travado", "trava de registro", "deadlock", "erro de lock", "travamento no Protheus", "quem esta travando o registro", or "RecLock nao libera".
npx skill4agent add thalysjuvenal/advpl-specialist protheus-locks-deadlocksRecLockMsUnlockRecLockMsUnlockMsUnlockAllSoftLockLockByNameTCSqlExecBeginTranEndTranDisarmTransactionBEGIN SEQUENCE/RECOVER%nolock%query-builderadvpl-debuggingBeginSQLEndSQLembedded-sql| Reference file | Read when |
|---|---|
| reference.md | Always -- lock types table, core lock/transaction APIs, when-to-use guidance |
| patterns-prevention.md | Writing or refactoring code that locks records -- |
| diagnostics.md | Investigating live lock contention or deadlocks -- |