dir

Official

Strongly typed Dir proxies for filesystem paths.

Authortomitribe
Version1.0.0
Installs0

System Documentation

What problem does it solve?

References to filesystem paths are error-prone when done with strings; Dir proxies let you model directory structures as interfaces and resolve leaf paths with compile-time checks.

Core Features & Use Cases

  • Define interfaces that mirror directory trees and use Dir.of() to obtain a dynamic proxy that resolves to Path objects.
  • Navigate subdirectories as nested interfaces and apply @Name annotations to non-identifier filenames.
  • Benefit from lazy directory creation and flexible path composition for project scaffolding and resource access.

Quick Start

Create a Dir proxy from your base folder with Dir.of(YourInterface.class, baseDir) and access paths like yourInterface.src().main().resources().

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: dir
Download link: https://github.com/tomitribe/claude-plugins/archive/main.zip#dir

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.