windows_scheduled_task_best_practices

Community

Reliable Windows task automation best practices.

Authorchomchomchomy
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Windows task automation scripts often break due to missing environment handling, insufficient logging, unsafe subprocess calls, and brittle scheduler configurations. This skill defines robust best practices to prevent common pitfalls and ensure reliable automated execution.

Core Features & Use Cases

  • Environment management: fallback handling from .env, optional python-dotenv with a safe fallback.
  • Logging and observability: date-based logs, UTF-8 encoding, and automatic log directory creation.
  • Safe execution: timeouts for subprocess calls, explicit working directory and environment passing, and clear error reporting.
  • Scheduler reliability: StartWhenAvailable, WakeToRun, ExecutionTimeLimit, and restart strategies for automatic retries.
  • Directory and dependency handling: auto-create required directories and support optional dependencies with graceful fallbacks.

Quick Start

Use the Windows Task Scheduler to run your Python script with an environment fallback, robust logging, and a guarded subprocess call.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: windows_scheduled_task_best_practices
Download link: https://github.com/chomchomchomy/antigravity-skills/archive/main.zip#windows-scheduled-task-best-practices

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.