JordanGunn/nunchuck / skills/task/task-select
task-select
VerifiedSelect a task by writing its ID to `.tasks/.active`. Prints the selected task path and any suspicion flags (stale, hash mismatch) to encourage skepticism.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 574 B |
| references/00_ROUTER.md | markdown | 468 B |
| references/01_SUMMARY.md | markdown | 282 B |
| references/02_TRIGGERS.md | markdown | 435 B |
| references/03_ALWAYS.md | markdown | 236 B |
| references/04_NEVER.md | markdown | 165 B |
| references/05_PROCEDURE.md | markdown | 479 B |
| references/06_FAILURES.md | markdown | 276 B |
| scripts/include/pyproject.toml | manifest | 280 B |
| scripts/include/task_hash.py | script | 2.2 KB |
| scripts/include/task_parse.py | script | 2.4 KB |
| scripts/include/task_select_cli.py | script | 1.5 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_select_cli.py
View on GitHub#!/usr/bin/env python3
"""Task Select CLI - Select a task as active."""
import argparse
import sys
from task_hash import verify_intent_hash
from task_parse import (
get_task_path,
parse_task_file,
write_active_task,
)
from task_time import is_stale
def cmd_select(args: argparse.Namespace) -> int:
"""Select a task as active."""
task_id = args.id
task_path = get_task_path(task_id)
if not task_path.exists():
print(f"error: task '{task_id}' not found", file=sys.stderr)
return 1
fm, body = parse_task_file(task_path)
content = task_path.read_text(encoding="utf-8")
stale, stale_reason = is_stale(
fm.get("last_reviewed_at"),
fm.get("updated_at"),
fm.get("created_at", ""),
fm.get("staleness_days_threshold", 21),
)
hash_ok, computed = verify_intent_hash(content, fm.get("intent_hash"))
write_active_task(task_id)
print(f"selected: {task_path}")
if stale:
print(f"warning: task is stale ({stale_reason})", file=sys.stderr)
if not hash_ok:
print("warning: intent hash mismatch - task may have drifted", file=sys.stderr)
return 0
def main() -> int:
parser = argparse.ArgumentParser(prog="task-select", description="Select a task as active")
parser.add_argument("id", help="Task ID to select")
args = parser.parse_args()
return cmd_select(args)
if __name__ == "__main__":
sys.exit(main())
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 |