pi-shadow-skill

A pi skill for shadow file management

Packages

Package details

extension

Install pi-shadow-skill from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-shadow-skill
Package
pi-shadow-skill
Version
1.1.0
Published
Sep 4, 2026
Downloads
340/mo · 20/wk
Author
yamhead
License
unknown
Types
extension
Size
20.8 KB
Dependencies
4 dependencies · 0 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions/shadow-skill.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-shadow-skill 🌑

Automatically load untracked repository-specific skill and context files without checking them into git.

Motivation

During development, developers may want their pi harness to autoload agent skills or AGENT.md documentation for a repository without committing these files for a variety of reasons, such as:

  • Developer-specific resources: Skills and context may be uniquely valuable to a developer's workflow, not needed by all collaborators
  • Work-in-progress: Resources are still being refined and shouldn't be committed to version control

Rather than using global gitignore rules (which are cumbersome and don't sync across worktrees when cloning), pi-shadow-skill provides a clean way to define additional context and skills for your workflows that automatically load for the repository.

How It Works

This pi package enables shadow skill loading via a configuration file.

  1. Create a shadow.json file in ~/.pi/agent/ with your repository-specific skills and documentation
  2. Define skills and documentation paths for your target repositories using their URLs as keys
  3. The pi extension automatically discovers and loads them without requiring git commits
  4. Your workflow context is preserved across worktrees and clones

Configuration Schema

Create ~/.pi/agent/shadow.json with the following structure:

{
  "repo-url.com": {
    "skills": [
      "path/to/skill-file-1.md",
      "path/to/skill-file-2.md"
    ],
    "readme": [
      "path/to/readme-extension-1.md",
      "path/to/readme-extension-2.md"
    ]
  }
}
  • skills: Array of paths to skill files (SKILL.md format) to load for this repository
  • readme: Array of paths to documentation files to load as repository context

Installation & Setup

  1. Install the package with pi:
pi install npm:pi-shadow-skill
  1. Restart your pi agent session so the extension is loaded.

You can verify installation by looking for a shadow-load notification (for example: 🌑 - Shadow config loaded: ...) when starting a session inside a git repository.

Configuring Skills for Your Repository

  1. Create or edit ~/.pi/agent/shadow.json (create the directory if it doesn't exist)
  2. Add an entry for your repository:
{
  "https://github.com/username/my-repo.git": {
    "skills": [
      "/home/user/my-skills/custom-skill.md",
      "/home/user/my-skills/workflow-skill.md"
    ],
    "readme": [
      "/home/user/docs/repo-context.md"
    ]
  }
}

The paths can be absolute paths to skill files on your system. When you work in that repository, these skills and documentation will automatically load.

License

See repository for license information.