What problem does it solve?
This Skill prevents fragile and hard-to-debug integration failures when you hook into another package’s public Wolfram Language symbols while preserving the original behavior and options.
Core Features & Use Cases
- Safe hook installation templates: Provides verified patterns for wrapping an exported symbol (e.g., ClaudeAttach / ClaudeAttachments) without breaking its Options/attributes or altering call semantics.
- Correct DownValues swapping with recovery: Ensures idempotent enable/disable cycles by storing original DownValues, restoring them deterministically, and protecting state integrity during Abort.
- Scheduled-task / worker visibility fallback strategy: Covers cases where Front End-dependent notebook context is invisible, by writing hook side-channel state to a memory registry and reading it via a two-step auto-detect flow.
Use Case: You want to install an additional ingest or auditing side effect whenever a host package’s public function is called, but you must avoid OptionValue::optnf, hook invisibility in scheduled tasks, and permanent hook corruption after Abort.
Quick Start
Use this skill to generate a safe enable/disable hook template for a target symbol by swapping its DownValues, passing through the original implementation, and adding Abort-safe restoration.