package-namespace-migration

Community

Prevent namespace shadowing when migrating packages.

Authortransreal
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents hard-to-debug breakages caused by Mathematica context-resolution and BeginPackage behavior when moving public functions from one package context to another, specifically avoiding unintended symbol shadowing.

Core Features & Use Cases

  • Explains the shadowing root cause: how BeginPackage without the right dependency context path can temporarily remove the original package from $ContextPath and cause usage-only symbols to override real implementations.
  • Provides phase-based safe migration patterns: Phase Q-2a (namespace reservation), Phase Q-2b (full transfer), and Phase C (wrapper/alias during deprecation).
  • Includes concrete failure-mode lessons: covers real failure patterns (self-recursion, usage-only shadowing, and why Off[General::shdw] makes diagnosis harder).
  • Use case: migrate claudecode-related functions into a new Mathematica package context (e.g., splitting claude code management into ClaudePackageManager), while keeping LLMGraphDAGCreate and related infrastructure working.

Quick Start

Ask an AI assistant to review your planned BeginPackage/Remove/migration sequence against the package-namespace-migration skill’s Phase A/B/C patterns and to flag any cases where you would declare usage for an existing public symbol or risk context-path shadowing.

Dependency Matrix

Required Modules

None required

Components

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-namespace-migration
Download link: https://github.com/transreal/claudecode/archive/main.zip#package-namespace-migration

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.