[skill]
name = "file-organizer"
description = "Organize files in a directory by type (images, documents, code, etc.)"
version = "0.1.0"
author = "openjarvis"

[[skill.steps]]
tool_name = "shell_exec"
arguments_template = '{"command": "find {directory} -maxdepth 1 -type f -exec file --mime-type {} \\;"}'
output_key = "file_listing"

[[skill.steps]]
tool_name = "think"
arguments_template = '{"thought": "Analyze the file types and group them into categories (images, documents, code, archives, media, other): {file_listing}"}'
output_key = "organization_plan"

[[skill.steps]]
tool_name = "shell_exec"
arguments_template = '{"command": "mkdir -p {directory}/images {directory}/documents {directory}/code {directory}/archives {directory}/media {directory}/other"}'
output_key = "dirs_created"

[[skill.steps]]
tool_name = "think"
arguments_template = '{"thought": "Generate a summary report of the file organization plan: {organization_plan}"}'
output_key = "report"
