Skip to content

Pixel-CLI/pixel / .agents/skills/pixel-retro

pixel-retro

Verified

Mine the last 24 h (or a given window) of pixel usage — every repo's `.pixel/actions.jsonl` plus the agent transcripts indexed by `pixel recall` (claude, codex, pi…) — for frictions pixel actually caused, verify each one against the current binary and code, and propose ranked, evidence-backed improvements (bug fix, error message, flag, agent prompt, rule, doc); for the pixel repo itself, also measure each pull request from first edit to validated CI and where agents sat idle (`lead_time.py`). Suggests only; implements nothing without the user's pick. Use when the user says "/pixel-retro", "retro pixel", "qu'est-ce qui a coincé avec pixel", "améliorations pixel depuis les transcripts", "pixel friction", "où l'agent attend", "bottleneck", "lead time", or asks what to improve in pixel or its development workflow from recent sessions.

FileKindSize
SKILL.mdskill md21.9 KB
adherence.pyscript18.3 KB
lead_time.pyscript22.7 KB
ledger.pyscript1.5 KB
roots.pyscript3.2 KB
slow.pyscript5.6 KB
test_adherence.pyscript9.6 KB
test_lead_time.pyscript17.4 KB
test_slow.pyscript2.4 KB
# SPDX-FileCopyrightText: The Pixel contributors
# SPDX-License-Identifier: MIT

"""Append retro items to ~/.local/state/pixel-retro/seen.tsv from a JSON file.

Usage: python3 ledger.py <items.json>
The file holds a list of {"fingerprint": str, "verdict": str, "ref": str}.
Values stay data end to end: they are read from JSON, validated, and written
with tabs and newlines replaced, never pasted into shell or Python source.
"""
import datetime, json, os, re, sys

VERDICTS = {"suggested", "picked", "fixed", "wontfix", "not-pixel"}
REF = re.compile(r"[a-z]+:[A-Za-z0-9._-]+ #\d+|https://github\.com/\S+")


def clean(value):
    return re.sub(r"[\t\r\n]", " ", value)


FIELDS = ("fingerprint", "verdict", "ref")


def valid(item):
    return (
        isinstance(item, dict)
        and all(isinstance(item.get(k), str) and item[k] for k in FIELDS)
        and item["verdict"] in VERDICTS
        and REF.fullmatch(item["ref"]) is not None
    )


with open(sys.argv[1]) as src:
    items = json.load(src)
if not isinstance(items, list) or not items:
    sys.exit("refused, nothing written: the file must hold a non-empty JSON list")
for item in items:
    if not valid(item):
        sys.exit(f"refused, nothing written: {item!r}")
path = os.path.expanduser("~/.local/state/pixel-retro/seen.tsv")
os.makedirs(os.path.dirname(path), exist_ok=True)
today = datetime.date.today().isoformat()
with open(path, "a") as f:
    for item in items:
        f.write(f"{today}\t{clean(item['fingerprint'])}\t{item['verdict']}\t{item['ref']}\n")
print(f"{len(items)} row(s) appended to {path}")
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: 468kUpdated Claude CodeCodexVerifiedInstall
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: 321kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 321kUpdated Claude CodeCodexVerifiedInstall
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 availableStars: 321kUpdated Claude CodeCodexVerifiedInstall