michael-denyer/pstack-claude / plugins/pstack/skills/poteto-mode
poteto-mode
Verifiedpoteto's agent style for concise, detailed responses, deliberate subagents, unslopped prose, simple code, and verified work. Use for poteto, /poteto-mode, or requests to work in this style.
scripts/watch-pr/head-checks.ts
View on GitHubimport { resolveChecks } from "./github.ts";
import type { LandingRevision } from "./landing.ts";
import {
nonEmpty,
type CheckRead,
type GitHubReader,
type SuiteApp,
} from "./types.ts";
// No check read shows a suite with no runs, such as a fork workflow waiting for
// maintainer approval, so the head's suites are read before its CI counts as
// clean or absent.
export async function resolveHeadChecks(
reader: GitHubReader,
facts: Pick<LandingRevision, "context" | "headRefOid">,
expectedApps: readonly string[] = []
): Promise<CheckRead & { readonly queuedWithoutRuns: readonly SuiteApp[] }> {
const read = await resolveChecks(reader, facts.context);
if (
read.checks.some(
(check) => check.kind === "failed" || check.kind === "pending"
)
)
return { ...read, queuedWithoutRuns: [] };
const suites = await reader.unsettledSuites(
facts.context,
facts.headRefOid,
read.kind,
expectedApps
);
const { queuedWithoutRuns } = suites;
const checks = nonEmpty(suites.checks);
if (checks === null) return { ...read, queuedWithoutRuns };
return read.kind === "reported"
? { ...read, checks: [...read.checks, ...checks], queuedWithoutRuns }
: { kind: "reported", source: "check-suites", checks, queuedWithoutRuns };
}
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 |