본문으로 건너뛰기
cccskills
무료GitHub에 공개

ls-cron-job-scheduling

Use when managing cron from a repo-local manifest: time triggers, on-boot-with-delay, sequenced tasks; create, remove, reorder, install.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(6)

  • SKILL.md4.3 KB
  • references/manifest.md3.1 KB
  • scripts/_cron_manifest.py11.8 KB
  • scripts/cron_ctl.py13.4 KB
  • scripts/run_trigger.py12.0 KB
  • scripts/tests/test_cron_orchestrator_hardening.py22.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Cron orchestrator

Define triggers and tasks in a single YAML manifest. One trigger (for example, midnight-utc) runs multiple tasks in sequence; on-boot triggers can delay before execution. Tooling creates, removes, reorders, enables, disables, validates, and installs generated crontab fragments.

Rule ownership

This skill owns cron manifest and scheduling behavior. Public harness docs may reference cron, but cron validation, argv command handling, install fragments, and sequencing rules live here.

  • Prefer argv-list commands; string commands are parsed conservatively and shell operators are rejected.
  • Validate manifests before installing crontab fragments.
  • Coordinate with ls-codex-heartbeat-checks for heartbeat-specific scheduling instead of duplicating heartbeat activation rules here.

Manifest (cron/manifest.yaml)

triggers:
  midnight-utc:
    schedule: "0 0 * * *"
  after-boot:
    on_boot_delay_minutes: 5
tasks:
  - id: snapshot-daily
    trigger: midnight-utc
    sequence_order: 1
    command:
      - python3
      - ls/skills/ls-system-baseline-diagnostics/scripts/system_snapshot.py
      - --output-basename
      - reports/system-snapshots/daily
    enabled: true
    timeout_seconds: 3600
  • Triggers: use either schedule with five numeric Linux cron fields (lists, ranges, and steps) or on_boot_delay_minutes from 0 to 1440.
  • Tasks: require id, trigger, sequence_order (integer 0 to 86400), command, and optional enabled plus timeout_seconds.
  • Commands: prefer an argv list. String commands are split with shlex and reject shell operators such as &&, |, redirects, backticks, and command substitution. Shell expansion is not performed.

Commands (from repo root)

Use python3 ls/skills/ls-cron-job-scheduling/scripts/cron_ctl.py --manifest cron/manifest.yaml <command>.

CommandPurpose
validateCheck manifest schema, trigger refs, command shape, timeouts, and schedules
list [--trigger NAME]List tasks (optionally for one trigger)
add-task --trigger NAME --command "..." [--sequence-order N] [--id ID]Add task
remove-task --id ID or --trigger NAMERemove by id or all for trigger
reorder --trigger NAME --order id1,id2,id3Set run order for that trigger
enable --id ID / disable --id IDToggle task
install [--repo-root PATH] [--output PATH] [--log-dir PATH]Generate a reviewable user-crontab fragment; it never modifies a live crontab. --output writes the fragment, otherwise it prints to standard output.

Runner (used by cron): python3 ls/skills/ls-cron-job-scheduling/scripts/run_trigger.py --manifest PATH --repo-root PATH TRIGGER runs that trigger's tasks in sequence with subprocess.Popen(..., shell=False), relaying output while retaining bounded byte tails for logs. Add --log-dir PATH when cron output may otherwise disappear; the runner appends timestamped start, task exit, stdout tail, and stderr tail records to PATH/<trigger>.log. Because stdout/stderr tails can include sensitive data, use a protected log directory with restricted permissions.

See references/manifest.md for the accepted manifest schema and security model.

Patterns for agents

  1. Add a daily snapshot at midnight: add-task --trigger midnight-utc --command "python3 ls/skills/ls-system-baseline-diagnostics/scripts/system_snapshot.py --output-basename reports/system-snapshots/daily".
  2. Add on-boot trigger: In manifest, add trigger with on_boot_delay_minutes: 5; then add tasks to it.
  3. Reorder: reorder --trigger midnight-utc --order snapshot-daily,cleanup,notify.
  4. Remove one task: remove-task --id snapshot-daily. Remove all for a trigger: remove-task --trigger midnight-utc.
  5. Prepare a fragment: Run install --output cron/crontab.generated, inspect the generated user-crontab fragment, then merge it manually with the existing user crontab only after an explicit operational decision. Do not write /etc/cron.d or replace an existing crontab from this skill.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Guide accessibility reviews for UI, documents, and workflows. Use for WCAG-oriented audits, keyboard review, semantics, contrast, and remediation planning.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 22일 업데이트

Use when choosing a LocalSetup Agent-* lane for exploration, research, bounded implementation, or review. Consult the static capability matrix; do not probe account or network availability.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 22일 업데이트

Guide agent email inbox workflows with prompt-injection defenses. Use for inbound email processing, webhooks, routing, and safety review.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 22일 업데이트

Navigate and understand codebases using agentlens hierarchical documentation. Use when exploring new projects, finding modules, locating symbols in large files, finding TODOs/warnings, or understanding code structure.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 22일 업데이트

Use for Agent Q signed encrypted file-drop or mail ship and ingest, private registry v2 setup, queue status, and transport maintenance.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 22일 업데이트

Inventory wrapper for the alirezarezvani Claude skills bundle. Use when triaging its broad skill catalog and large script surface before any targeted import.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 22일 업데이트

CruxExperts의 스킬 모두 보기

이 스킬의 문제 신고