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/fresh-install.test.ts
View on GitHubimport { expect, it } from "bun:test";
import { spawnSync } from "node:child_process";
import { cpSync, mkdtempSync, rmSync } from "node:fs";
import { tmpdir } from "node:os";
import { basename, join } from "node:path";
// A plugin update ships the scripts without node_modules, so the first run of
// each entry point installs commander. --no-install turns off Bun's
// auto-install, which otherwise fetches commander from the registry and hides
// a process that cannot see the node_modules it just installed.
const scriptsDirectory = join(import.meta.dir, "..");
for (const [name, entry] of [
["watch-pr", "watch-pr/watch-pr"],
["ship-pr", "watch-pr/ship-pr"],
]) {
it(`${name} --help runs on the first run after an install`, () => {
const copy = mkdtempSync(join(tmpdir(), "poteto-mode-scripts-"));
try {
cpSync(scriptsDirectory, copy, {
recursive: true,
filter: (source) => basename(source) !== "node_modules",
});
const result = spawnSync(
process.execPath,
["--no-install", join(copy, entry), "--help"],
{ cwd: tmpdir(), encoding: "utf8", timeout: 60_000 }
);
expect(result.status, result.stderr).toBe(0);
expect(result.stdout).toContain(`Usage: ${name}`);
} finally {
rmSync(copy, { recursive: true, force: true });
}
}, 90_000);
}
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 |