akiiwa-games/AgentCompass / skills/agent-compass
agent-compass
FlaggedChoose owner, model and effort, outbound authorization, advisor use, and continuation for delegated work. Reads local usage and effective account policy, profiles the task with the configured System-One scorer, then allocates a compatible worker. Use for independent worker or advisor work; ordinary local execution needs no routing.
scripts/data_age.py
View on GitHub"""How old a dated fact is and whether it is stale, computed where it is read and never stored with the data.
Reference data holds facts with their dates (`as_of`, the data date, else the fetch date). An age depends on the day it is
read: a file that stored one would differ from day to day with no change in meaning, and a published set would change its
sha256 with the calendar. Every reader that shows an age or warns on one (the refresh's printed report, the tray, doctor)
asks this module; STALE_DAYS is declared here only.
"""
from __future__ import annotations
from datetime import date, datetime, timezone
STALE_DAYS = 21 # a value whose date is older than this is a yellow note: still used, refresh its source
def data_date(as_of) -> date | None:
"""The calendar date of an ISO date or datetime string, or None when it is not one."""
try:
return date.fromisoformat(str(as_of)[:10])
except ValueError:
return None
def age_days(as_of, now: datetime | None = None) -> int | None:
"""Whole days from `as_of` to `now` (today in UTC when not given); None when `as_of` is not a date."""
day = data_date(as_of)
return None if day is None else ((now or datetime.now(timezone.utc)).date() - day).days
def is_stale(as_of, now: datetime | None = None) -> bool:
"""Whether `as_of` is older than STALE_DAYS on `now`; a fact without a readable date is stale."""
age = age_days(as_of, now)
return age is None or age > STALE_DAYS
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |