# Create Directory

> Create a new directory or ensure a directory exists. Can create multiple nested directories in one operation. If the directory already exists, this operation will succeed silently. Perfect for setting up directory structures for projects or ensuring required paths exist. Only works within allowed directories.

- Skill: `xiaobai1017/create-directory` (Agent Skill)
- Install (CLI): `npx skillmds@latest add xiaobai1017/create-directory`
- Raw SKILL.md: https://api.skillmd.com/api/skills/xiaobai1017/create-directory/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: xiaobai1017 (https://skillmd.com/u/xiaobai1017)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/xiaobai1017/create-directory

---


# Create Directory

Create a new directory or ensure a directory exists. Can create multiple nested directories in one operation. If the directory already exists, this operation will succeed silently. Perfect for setting up directory structures for projects or ensuring required paths exist. Only works within allowed directories.

## Purpose

This skill provides access to the MCP tool `create_directory`. It allows you to create a new directory or ensure a directory exists. can create multiple nested directories in one operation. if the directory already exists, this operation will succeed silently. perfect for setting up directory structures for projects or ensuring required paths exist. only works within allowed directories..

## Parameters

The tool accepts the following parameters:

### `path`
**Required**
- **Type**: `string`
- **Description**: No description provided


## Usage Instructions

To use this tool:

1. **Prepare the parameters** according to the schema above
2. **Invoke the MCP tool** `create_directory` with the prepared parameters
3. **Process the result** returned by the tool

## Example

```json
{
  "path": "example_value"
}
```

## Expected Output

The tool returns data with the following structure:

- **content** (`string`): No description provided


## Notes

- This skill requires an active MCP connection to the server providing the `create_directory` tool
- Ensure the MCP server is properly configured and running before attempting to use this tool
- Review the parameter requirements carefully to avoid errors
