Skip to main content
skill CX Codex

trees — Claude Code skill: what it does, how to install

Guides agents on rendering and controlling file trees with @pierre/trees. Useful for React, vanilla JS, SSR, or web component setups.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add pierrecomputer/pierre --skill trees -a claude-code
Open on GitHub

What trees does

This skill provides instructions and recipes for using @pierre/trees. Public state and callbacks in the library operate on path strings. The reference material covers the core library, React wrappers, SSR integration, and web components.

It guides tasks like tree search, file renaming, drag and drop, icons, and git status indicators. You can also connect themes resolved from Shiki or VS Code.

When using @pierre/trees/react, your project requires react and react-dom. Install the package itself by running pnpm add @pierre/trees.

What it helps with

  • render and update a file tree in React
  • preload a file tree on the server with SSR
  • configure file drag and drop and renaming
  • apply Shiki or VS Code themes to a tree view
  • display git status and file icons

Example prompts for the agent

  • Render a file tree in React using @pierre/trees
  • Configure drag and drop and git status with @pierre/trees
  • How do I preload a file tree on the server using @pierre/trees/ssr?

How to install trees

1Skills CLI (Vercel)

npx skills add pierrecomputer/pierre --skill trees -a claude-code

2Manually: put the files in place

~/.claude/skills/trees/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/trees/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about trees

How to install trees in Claude Code?

Run npx skills add pierrecomputer/pierre --skill trees -a claude-code to install the skill.

What does the trees skill do?

It gives the assistant API references and implementation recipes for @pierre/trees, covering React, vanilla JavaScript, SSR, and web components.

What dependencies does the React entrypoint require?

If your app uses @pierre/trees/react, you must install react and react-dom alongside the package.

Source text

SKILL.md · Apache-2.0
---
name: trees
description:
  Use when an app uses @pierre/trees to render or control a file tree, including
  React, vanilla JavaScript, SSR, web components, selection, search, rename,
  drag and drop, icons, git status, and themes.
---

# `@pierre/trees`

Use `@pierre/trees` for an interactive file tree. Public state and callbacks use
path strings.

## Install

```bash
pnpm add @pierre/trees
```

Install `react` and `react-dom` when the app uses the React entry.

## Select an API reference

| Entry                          | Reference                                              |
| ------------------------------ | ------------------------------------------------------ |
| `@pierre/trees`                | [Core API](references/api-core.md)                     |
| `@pierre/trees/react`          | [React API](references/api-react.md)                   |
| `@pierre/trees/ssr`            | [SSR API](references/api-ssr.md)                       |
| `@pierre/trees/web-components` | [Web components API](references/api-web-components.md) |

## Select a recipe

| Task                                                    | Recipe                                                 |
| ------------------------------------------------------- | ------------------------------------------------------ |
| Render and update a tree in React                       | [Use React](references/recipe-react.md)                |
| Render and update a tree without React                  | [Use vanilla JavaScript](references/recipe-vanilla.md) |
| Preload a tree on the server                            | [Use SSR](references/recipe-ssr.md)                    |
| Apply a resolved Shiki or VS Code theme                 | [Apply a theme](references/recipe-theme.md)            |
| Configure search, rename, drag and drop, and git status | [Add interactions](references/recipe-interactions.md)  |

© pierrecomputer · Apache-2.0 · pierrecomputer/pierre

Similar skills

Everything for Frontend and UI →

From the same set2

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor