JordanGunn/nunchuck / skills/task/task-create
task-create
VerifiedCreate a new task file in `.tasks/<id>.md` from template. Sets timestamps, computes initial intent hash, and optionally auto-selects the task.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 556 B |
| references/00_ROUTER.md | markdown | 509 B |
| references/01_SUMMARY.md | markdown | 346 B |
| references/02_TRIGGERS.md | markdown | 453 B |
| references/03_ALWAYS.md | markdown | 358 B |
| references/04_NEVER.md | markdown | 273 B |
| references/05_PROCEDURE.md | markdown | 625 B |
| references/06_FAILURES.md | markdown | 306 B |
| references/07_INSTRUCTIONS.md | markdown | 440 B |
| references/08_PROCEDURE.md | markdown | 303 B |
| scripts/include/pyproject.toml | manifest | 280 B |
| scripts/include/task_create_cli.py | script | 2.4 KB |
| scripts/include/task_hash.py | script | 2.2 KB |
| scripts/include/task_parse.py | script | 2.4 KB |
| scripts/include/task_time.py | script | 1.3 KB |
| scripts/run.shexecutable | script | 214 B |
| scripts/validate.shexecutable | script | 644 B |
scripts/include/task_time.py
View on GitHub"""Deterministic time utilities for task management."""
from datetime import datetime, timezone
def now_utc() -> datetime:
"""Return current UTC time."""
return datetime.now(timezone.utc)
def to_rfc3339(dt: datetime) -> str:
"""Convert datetime to RFC3339 UTC string."""
if dt.tzinfo is None:
dt = dt.replace(tzinfo=timezone.utc)
return dt.strftime("%Y-%m-%dT%H:%M:%SZ")
def from_rfc3339(s: str) -> datetime:
"""Parse RFC3339 UTC string to datetime."""
s = s.rstrip("Z") + "+00:00"
return datetime.fromisoformat(s)
def days_since(dt: datetime) -> int:
"""Return number of days since the given datetime."""
now = now_utc()
delta = now - dt
return delta.days
def is_stale(
last_reviewed_at: str | None,
updated_at: str | None,
created_at: str,
threshold_days: int = 21,
) -> tuple[bool, str]:
"""
Determine if a task is stale based on timestamps.
Returns (is_stale, reason).
"""
reference_str = last_reviewed_at or updated_at or created_at
reference_dt = from_rfc3339(reference_str)
age = days_since(reference_dt)
if age >= threshold_days:
source = "last_reviewed_at" if last_reviewed_at else ("updated_at" if updated_at else "created_at")
return True, f"{age}d since {source}"
return False, ""
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |