JordanGunn/nunchuck / skills/task/task-list
task-list
VerifiedList tasks in `.tasks/` with derived flags (stale, hash mismatch). Supports filtering by state and staleness. Stable ordering by updated_at.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 565 B |
| references/00_ROUTER.md | markdown | 509 B |
| references/01_SUMMARY.md | markdown | 247 B |
| references/02_TRIGGERS.md | markdown | 450 B |
| references/03_ALWAYS.md | markdown | 205 B |
| references/04_NEVER.md | markdown | 176 B |
| references/05_PROCEDURE.md | markdown | 536 B |
| references/06_FAILURES.md | markdown | 311 B |
| references/07_INSTRUCTIONS.md | markdown | 504 B |
| references/08_PROCEDURE.md | markdown | 282 B |
| scripts/include/pyproject.toml | manifest | 280 B |
| scripts/include/task_hash.py | script | 2.2 KB |
| scripts/include/task_list_cli.py | script | 2.5 KB |
| scripts/include/task_parse.py | script | 2.4 KB |
| scripts/include/task_time.py | script | 1.3 KB |
| scripts/run.shexecutable | script | 212 B |
| scripts/validate.shexecutable | script | 638 B |
scripts/include/task_list_cli.py
View on GitHub#!/usr/bin/env python3
"""Task List CLI - List tasks with derived flags."""
import argparse
import sys
from task_hash import verify_intent_hash
from task_parse import (
list_task_files,
parse_task_file,
read_active_task,
)
from task_time import is_stale
def cmd_list(args: argparse.Namespace) -> int:
"""List tasks with derived flags."""
task_files = list_task_files()
if not task_files:
print("no tasks found in .tasks/")
return 0
active_id = read_active_task()
tasks = []
for path in task_files:
fm, body = parse_task_file(path)
if not fm.get("id"):
continue
if args.state and fm.get("state") != args.state:
continue
stale, stale_reason = is_stale(
fm.get("last_reviewed_at"),
fm.get("updated_at"),
fm.get("created_at", ""),
fm.get("staleness_days_threshold", 21),
)
if args.stale and not stale:
continue
content = path.read_text(encoding="utf-8")
hash_ok, _ = verify_intent_hash(content, fm.get("intent_hash"))
tasks.append({
"id": fm["id"],
"title": fm.get("title", ""),
"state": fm.get("state", "?"),
"kind": fm.get("kind", "?"),
"risk": fm.get("risk", "?"),
"updated_at": fm.get("updated_at", ""),
"is_active": fm["id"] == active_id,
"is_stale": stale,
"stale_reason": stale_reason,
"hash_mismatch": not hash_ok,
})
tasks.sort(key=lambda t: t["updated_at"], reverse=True)
for t in tasks:
flags = []
if t["is_active"]:
flags.append("*")
if t["is_stale"]:
flags.append(f"stale:{t['stale_reason']}")
if t["hash_mismatch"]:
flags.append("hash-mismatch")
flag_str = f" [{', '.join(flags)}]" if flags else ""
print(f"{t['id']} | {t['state']} | {t['kind']} | {t['risk']} | {t['title']}{flag_str}")
return 0
def main() -> int:
parser = argparse.ArgumentParser(prog="task-list", description="List tasks with derived flags")
parser.add_argument("--state", choices=["draft", "open", "closed", "invalid"])
parser.add_argument("--stale", action="store_true", help="Show only stale tasks")
args = parser.parse_args()
return cmd_list(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: 198k | 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 |