notebook-path-policy

Community

Save outputs safely using the right directory.

Authortransreal
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents broken or unsafe file output behavior by standardizing how Mathematica chooses an output directory when users provide only a filename or a relative path.

Core Features & Use Cases

  • NotebookDirectory-first resolution: Selects NotebookDirectory[InputNotebook[]] when it exists and is a valid directory, otherwise falls back to $packageDirectory.
  • Bare filename and relative path handling: Treats “bare filename” output requests as intended to be placed in the resolved output directory.
  • Explicit absolute path priority: Uses an explicitly provided absolute path as the highest-priority destination to respect user intent.
  • Use Case: When generating result files during a Claude-assisted coding session, ensure outputs consistently land in the notebook’s folder (or the package folder) instead of unpredictable locations.

Quick Start

Use notebook-path-policy to decide whether the output file should be written to NotebookDirectory[InputNotebook[]] or $packageDirectory when the user specifies only a bare filename.

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: notebook-path-policy
Download link: https://github.com/transreal/claudecode/archive/main.zip#notebook-path-policy

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.