create_skill_file
Create new files within skill directories to build Python scripts, configuration files, data files, and documentation while automatically creating necessary parent directories.
Instructions
Create a new file within a skill directory. Automatically creates parent directories if they don't exist.
This tool allows you to:
Create new Python scripts or other executable files
Create configuration files (e.g., JSON, YAML, CSV)
Create data files and documentation
Build new functionality within a skill
Parameters:
skill_name: The name of the skill directory (e.g., 'my-skill')
file_path: Relative path for the new file (e.g., 'scripts/new_script.py', 'data/new_data.json')
content: The complete text content to write to the file
Behavior:
Creates parent directories automatically (e.g., if 'scripts/' doesn't exist, it will be created)
Does not overwrite existing files (use update_skill_file to modify existing files)
File_path must be relative to the skill's root directory
Use forward slashes for path separators
Returns: Success message with filename and character count.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | Content to write to the file | |
file_path | Yes | Relative path for the new file within the skill directory | |
skill_name | Yes | Name of the skill |