AgentSkillsCN

agi-schedule-shift

在基准日期之后,按指定天数对 AGI TR 调度(JSON/HTML)进行偏移调整。当需要延迟调度时使用,需提供“日程偏移”、“schedule shift”以及基准日期和新日期。此功能为集成式流水线第一步的一部分。

SKILL.md
--- frontmatter
name: agi-schedule-shift
description: Shifts AGI TR schedule (JSON/HTML) by delta days after pivot date. Use when delaying schedule, "일정 시프트", "schedule shift", pivot_date and new_date provided. Part of integrated pipeline step 1.

agi-schedule-shift

Pipeline Position

  • Step 1 of the integrated pipeline: 1) agi-schedule-shift → 2) agi-schedule-daily-update → 3) agi-schedule-pipeline-check → 4) weather-go-nogo.
  • Run when pivot_date·new_date provided; otherwise confirm "no shift".

Scope

  • All work in files/ only. JSON and HTML read/write only within files/.

When to Use

  • "일정 시프트", "schedule shift", "일정 2일 연기", "AGI schedule delay", "전체 일정 자동 수정"

Inputs

ItemDescriptionExample
pivot_dateAnchor date (shift only dates ≥ this)2026-02-01
new_dateTarget date for pivot2026-02-03
delta_daysnew_date − pivot_date+2

Procedure

1) JSON Shift

  • files/agi tr final schedule.jsonactivities[].planned_start, planned_finish.
  • Apply +delta_days only to dates ≥ pivot_date.
  • Keep duration unchanged.
  • Update summary.date_range if applicable.

2) HTML Shift

  • projectStart, projectEnd, ganttData rows, voyage-card data-start/data-end.
  • Apply same delta to dates ≥ pivot_date.
  • Format: YYYY-MM-DD.

3) Script

  • Path: files/schedule_shift.py
  • Run: From files/, python schedule_shift.py [--dry-run] [--backup]
  • Set PIVOT, DELTA_DAYS in script before run.

Validation

  • All planned_startplanned_finish.
  • Activity order preserved.

Safety

  • No reads/writes outside files/.
  • Do not shift dates before pivot_date.
  • Shift JSON and HTML together for consistency.

After Shift

  • Run agi-schedule-pipeline-check (step 3) so Voyage Cards, tide-table, ganttData stay in sync.

Output Format

  • Follow agentskillguide/DASHBOARD_OUTPUT_SCHEMA.md.