Files
homeclaw/.smallclaw/templates/python-script.md
T
2026-04-29 11:45:59 +09:00

1.1 KiB

name, version, description
name version description
{{SKILL_NAME}} 1.0 {{SKILL_DESCRIPTION}}

{{SKILL_NAME}}

{{SKILL_DESCRIPTION}}

Requirements

  • Python 3.10+
  • {{PIP_PACKAGE}} — install with: pip install {{PIP_PACKAGE}}

Usage

The skill runs a Python script that processes input and produces output.

Generate output

python <skill_dir>/{{SCRIPT_NAME}} <input_file> -o <output_file>

Arguments

Argument Required Description
<input_file> Yes Path to the input file
-o, --output No Output file path (default: based on input)

Input Format

Describe the expected input format here. Example:

{
  "key": "value"
}

Output

The script writes the result to the specified output file and prints OK: <path> on success.

Troubleshooting

  • If Python is not found, install Python 3.10+ from python.org
  • If {{PIP_PACKAGE}} is missing, run: pip install {{PIP_PACKAGE}}
  • For detailed errors, check stderr output

Safety

  • Only reads local input files and writes local output files
  • No network access required
  • No credentials needed