package-hook-installation-patterns
CommunityHook safely into public Wolfram symbols.
System Documentation
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.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: package-hook-installation-patterns Download link: https://github.com/transreal/claudecode/archive/main.zip#package-hook-installation-patterns 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.