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/cli.port.test.ts
View on GitHubimport { describe, expect, it } from "bun:test";
import { type CliRuntime, main, parseArgs } from "./cli.ts";
import { WatchDeadline } from "./deadline.ts";
import { fakeReader } from "./fakes.test-helper.ts";
import { unsettledSuiteChecks } from "./github.ts";
import type { GitHubReader } from "./types.ts";
const silentIo = { stdout: () => {}, stderr: () => {} };
describe("--expect-app", () => {
it("collects each named app into the polling options", () => {
expect(
parseArgs(
["--expect-app", "azure-pipelines", "--expect-app", "circleci-checks"],
silentIo
).polling.expectedApps
).toEqual(["azure-pipelines", "circleci-checks"]);
expect(parseArgs([], silentIo).polling.expectedApps).toBeUndefined();
});
it("rejects a value that is not a GitHub App slug as usage", async () => {
for (const value of ["", "Azure Pipelines", "azure_pipelines", "-azure"]) {
const stderr: string[] = [];
const runtime = {
reader: fakeReader(),
deadline: new WatchDeadline(0, () => 0),
clock: {
now: () => 0,
observedAt: () => "2026-07-26T00:00:00.000Z",
async sleep() {},
},
stdout: () => {},
stderr: (text: string) => stderr.push(text),
} satisfies CliRuntime;
expect(await main(["--expect-app", value], runtime)).toBe(64);
expect(stderr.join("")).toContain("a GitHub App slug");
}
});
it("names the uncounted apps and the flag in the pretty READY lines", async () => {
const reader: GitHubReader = fakeReader({
facts: { reviewDecision: null },
});
reader.unsettledSuites = async (_context, head, checksRead, expectedApps) =>
unsettledSuiteChecks(
[
{
total_count: 1,
check_suites: [
{
head_sha: head,
status: "queued",
conclusion: null,
app: { slug: "azure-pipelines", name: "Azure Pipelines" },
latest_check_runs_count: 0,
},
],
},
],
head,
checksRead,
expectedApps
);
const stdout: string[] = [];
const runtime = {
reader,
deadline: new WatchDeadline(0, () => 0),
clock: {
now: () => 0,
observedAt: () => "2026-07-26T00:00:00.000Z",
async sleep() {
throw new Error("test unexpectedly slept");
},
},
stdout: (text: string) => stdout.push(text),
stderr: () => {},
} satisfies CliRuntime;
expect(
await main(
["--owner", "owner", "--repo", "repo", "--pr", "1", "--pretty"],
runtime
)
).toBe(0);
expect(stdout.join("")).toContain(
"\nqueuedWithoutRuns=Azure Pipelines (azure-pipelines)\nnote=these apps queued a check suite and started no runs, so they were not counted; if one runs CI for this repository, rerun with --expect-app <slug>\n"
);
});
});
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 |