Skip to content
Back to skills

Quickstart

ASecurity

Use this skill when the user wants to convert JSON documents into directory structures, create files/symlinks/scripts from JSON, or manage dotfiles and configuration archives.

  • 58 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
toolsgoshellbash

Works with

  • cli

Security analysis

A100/100

Scanned September 6, 2026

npx -y skills add javimosch/supercli --skill quickstart --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Quickstart?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Quickstart
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/javimosch-quickstart-38ee51bd/badge)](https://www.skillsdirectory.com/skills/javimosch-quickstart-38ee51bd)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: json2dir
description: Use this skill when the user wants to convert JSON documents into directory structures, create files/symlinks/scripts from JSON, or manage dotfiles and configuration archives.
---

# json2dir Plugin

Convert JSON documents into directory structures — files, directories, symlinks, and executable scripts. Useful for managing dotfiles and configuration archives.

## Commands

### Data Conversion
- `json2dir data convert` — Convert JSON to directory structure

### Utility
- `json2dir self version` — Print json2dir version
- `json2dir _ _` — Passthrough to json2dir CLI

## Usage Examples
- "Convert this JSON file into a directory structure"
- "Create dotfiles from this JSON configuration"
- "Unpack this JSON archive into files"
- "Generate a directory tree from JSON input"

## Installation

```bash
cargo install json2dir
```

## Conversion Scheme

- **Strings** → Regular files with the string as content
- **Objects** → Directories with keys as filenames
- **Arrays `["link", "target"]`** → Symbolic links
- **Arrays `["script", "#!/bin/sh\n..."]`** → Executable scripts

## Examples

```bash
# Convert a JSON file to directory structure
json2dir data convert example-tree.json

# Pipe JSON from another command
cat config.json | json2dir data convert

# Create dotfiles from a JSON configuration
json2dir data convert dotfiles.json
```

### Example JSON Input

```json
{
  "greeting": "Hello, world!",
  "dir": {
    "subfile": "Content.\n",
    "subdir": {}
  },
  "symlink": ["link", "target path"],
  "script": ["script", "#!/bin/sh\necho Howdy!"]
}
```

This creates:
- `greeting` — regular file with "Hello, world!"
- `dir/` — directory with `subfile` and `subdir`
- `symlink` → symbolic link to "target path"
- `script` — executable shell script

## Key Features
- **JSON to filesystem**: Convert any JSON document into files and directories
- **Symlink support**: Create symbolic links with `["link", "target"]` arrays
- **Executable scripts**: Create scripts with `["script", "#!/bin/sh\n..."]` arrays
- **Empty directories**: Create empty directories with `{}`
- **Dotfile management**: Ideal for managing dotfiles with Nix or other tools
- **Pipes-friendly**: Reads from STDIN when no file is provided
- **Configuration archives**: Store entire directory trees as single JSON files

## Notes
- The tool accepts any valid JSON document
- Objects are recursively traversed to create nested directory structures
- File contents are written exactly as provided in JSON strings
- Arrays with two elements are interpreted as symlinks or scripts based on the first element
- Works great in pipelines with tools that generate JSON (e.g., `jq`, `yq`)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.