Skip to content

Cassiiopeia/projectops / plugins/projectops-extras/skills/pro-skill-bug

pro-skill-bug

Verified

Report a suspected projectops skill bug from this session: gather facts from the transcript, strip personal data, file an issue, return to the task. Use, even if unsure, when a pro-* tool result disagrees with reality, you loop or work around a skill, or the user asks 'is this a bug?'.

FileKindSize
SKILL.mdskill md11.5 KB
scripts/bug/__init__.pyscript89 B
scripts/bug/alarm.pyscript1.3 KB
scripts/bug/context.pyscript4.2 KB
scripts/bug/excerpt.pyscript8.7 KB
scripts/bug/redact.pyscript3.4 KB
scripts/bug/transcript.pyscript5.5 KB
scripts/bug_cli.pyscript9.5 KB

scripts/bug/alarm.py

View on GitHub
"""Hook session state > alarm evidence (#1000). Reads only the state file, does not import hook rules"""
from __future__ import annotations

import json
from pathlib import Path

from bug.redact import redact_text

# Hook session state: ~/.projectops/cache/pro-skill-bug/watch/{session_id}.json (same location as hooks/skill_bug_watch.py)
WATCH_FOLDER_PARTS = (".projectops", "cache", "pro-skill-bug", "watch")


def state_path(session_id: str) -> Path:
    return Path.home().joinpath(*WATCH_FOLDER_PARTS) / f"{session_id}.json"


def load_alarms(session_id: str) -> list[dict] | None:
    """State file > alarm list (None if missing or broken, empty list if no alarms)"""
    try:
        state = json.loads(state_path(session_id).read_text(encoding="utf-8"))
    except (OSError, ValueError):
        return None
    return list(state.get("alarms") or [])


def redact_alarm(alarm: dict) -> tuple[dict, dict]:
    """Redact alarm text fields (result head · workaround command) > (redacted alarms, count per kind)"""
    counts: dict = {}
    cleaned = dict(alarm)
    for field in ("excerpt", "workaround"):
        if isinstance(cleaned.get(field), str):
            cleaned[field], field_counts = redact_text(cleaned[field])
            for kind, hits in field_counts.items():
                counts[kind] = counts.get(kind, 0) + hits
    return cleaned, counts
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: 470kUpdated 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: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated 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: 322kUpdated Claude CodeCodexVerifiedInstall