20 views
michael-denyer/pstack-claude
Claude Code, Codex, Copilot, Pi, OpenCode, Gemini, and Prime Agent versions of Poteto's pstack. Rigorous agent workflows with Cursor primitives translated for other harnesses.
JavaScript★ 1,473+223 that day#2 on trending
C66/100
Duplication93
0.7% in javascript, typescript, bash, awk, python, perl, powershellDead code77
2.8%Complexity41
67.8% The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
0.33%duplicated code · 39 of 11,891 lines
3clones in code
60code files of 286 scanned
1.12%duplicated over all files · 38 clones
Most complex files
- tools/generate.mjs353 cx
- plugins/pstack/skills/poteto-mode/scripts/orch/store.ts348 cx
- plugins/pstack/skills/poteto-mode/scripts/watch-pr/github.ts220 cx
- tools/sync.mjs216 cx
- plugins/pstack/skills/poteto-mode/scripts/watch-pr/policy.ts181 cx
- tests/sync.test.mjs163 cx
- plugins/pstack/skills/poteto-mode/scripts/worktree-audit.mjs162 cx
- tests/generate.test.mjs158 cx
- plugins/pstack/skills/poteto-mode/scripts/orch/orch.ts124 cx
- tests/pi/live.test.mjs112 cx
Dead code 2.85% unused · 5 findings
- plugins/pstack/skills/poteto-mode/scripts/watch-pr/shipping.tsunused-file
- plugins/pstack/skills/poteto-mode/scripts/watch-pr/live-merge-safety.mjsunused-file
- plugins/pstack/skills/poteto-mode/scripts/watch-pr/fakes.test-helper.tsunused-file
- plugins/pstack/skills/poteto-mode/scripts/watch-pr/types.compile.tsunused-file
- plugins/pstack/skills/poteto-mode/scripts/watch-pr/shipping-cli.tsunused-file
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code.
Largest clones in the code
- 16 lines in 2 placesjavascript65 tokensplugins/pstack/skills/poteto-mode/scripts/worktree-audit.mjs:331–346plugins/pstack/skills/reflect/scripts/find-transcript.mjs:202–217
331 process.stdout.write(audit({ repo: repo.value, transcripts })); 332 return 0; 333} 334 335// node leaves argv[1] unresolved and may set it to a non-file (`node -e ... arg`). 336function invokedDirectly() { 337 if (!process.argv[1]) return false; 338 try { 339 return fileURLToPath(import.meta.url) === realpathSync(process.argv[1]); 340 } catch {First 10 of 16 lines.
- 14 lines in 2 placesjavascript57 tokensplugins/pstack/skills/poteto-mode/scripts/check-playbooks.mjs:43–56plugins/pstack/skills/poteto-mode/scripts/worktree-audit.mjs:332–345
43 return problems; 44} 45 46// node leaves argv[1] unresolved and may set it to a non-file (`node -e ... arg`). 47function invokedDirectly() { 48 if (!process.argv[1]) return false; 49 try { 50 return fileURLToPath(import.meta.url) === realpathSync(process.argv[1]); 51 } catch { 52 return false;First 10 of 14 lines.
- 9 lines in 2 placestypescript56 tokensplugins/pstack/skills/poteto-mode/scripts/orch/orch.ts:104–112plugins/pstack/skills/poteto-mode/scripts/orch/store.ts:962–970
104 return parts.map(positiveInteger); 105} 106 107function countLine(value: Counts): string { 108 const entries = Object.entries(value); 109 return entries.length === 0 110 ? "none" 111 : entries.map(([name, count]) => `${name}=${count}`).join(", "); 112}
Largest clones over all files, tests and data included
- 27 lines in 2 placesmarkdowndocs and examples487 tokensplugins/pstack/agents/comment-sicko.md:6–32plugins/pstack/skills/poteto-mode/references/agents/comment-sicko.md:6–32
6# Comment Sicko 7 8My first output when spawned is exactly this. 9 10Yes... Ha ha ha... Yes! 11 12I hate comments. Feed me the parent scoped files or diff. If none exists, feed me the current diff against `main`. Narration, banners, commented-out corpses, w… 13 14Only these exceptions get to crawl away. 15First 10 of 27 lines.
- 12 lines in 3 placesmarkdowndocs and examples180 tokensplugins/pstack/skills/reflect/references/divergent-reviewer.md:19–30plugins/pstack/skills/reflect/references/judgment-reviewer.md:18–29plugins/pstack/skills/reflect/references/tooling-reviewer.md:31–42
19## Scope to skills and tools the session actually used 20 21Findings must point to skills, tools, or MCPs invoked in this transcript. Speculative routings to skills the parent never opened do not count. To check whether… 22 23- `Read` tool calls against any `SKILL.md` file (workspace `.claude/skills/`, user-level `~/.claude/skills/`, or plugin-installed paths under `~/.claude/plugin… 24- `Agent` prompts that name a skill path 25- Tool calls (Shell, Grep, MCP, etc.) that match a skill's documented commands 26 27Two valid finding shapes: 28First 10 of 12 lines.
- 12 lines in 2 placesmarkdowndocs and examples340 tokens
1# NOTICE for the skills-only distribution 2 3This distribution contains MIT-licensed work from two upstream sources. The copyright notices and license terms travel beside this file. 4 5## Upstream sources 6 7| Included work | Upstream | Copyright | License | 8| --- | --- | --- | --- | 9| pstack-derived skills, principles, scripts, and the `comment-sicko` definition | [cursor/plugins/pstack](https://github.com/cursor/plugins/tree/e46364b8be460… 10| `deslop`, `thermo-nuclear-code-quality-review`, `make-pr-easy-to-review`, `fix-ci`, `fix-merge-conflicts`, `get-pr-comments`, and `what-did-i-get-done` | [cu…First 10 of 12 lines.
- 7 lines in 6 placesmarkdowndocs and examples68 tokens
- 8 lines in 2 placesmarkdowndocs and examples182 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| javascript | 12 | 3,213 | 2 | 30 | 0.93% |
| typescript | 27 | 7,132 | 1 | 9 | 0.13% |
| bash | 14 | 781 | 0 | 0 | 0% |
| awk | 5 | 567 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
| powershell | 1 | 24 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| javascript | 57 | 12,201 | 14 | 111 | 0.91% |
| markdown | 140 | 7,787 | 13 | 137 | 1.76% |
| typescript | 37 | 10,763 | 6 | 70 | 0.65% |
| yaml | 3 | 319 | 4 | 42 | 13.17% |
| json | 11 | 1,049 | 1 | 26 | 2.48% |
| bash | 23 | 1,368 | 0 | 0 | 0% |
| awk | 5 | 567 | 0 | 0 | 0% |
| python | 1 | 203 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
| text | 5 | 40 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Oct 6, 2026 | #2 | 1,473 (+223) | 286 | 34,525 | 38 | 1.12% | 0.33% | C 66 | 4d4e159 |
| Oct 5, 2026 | #5 | 1,202 (+232) | 257 | 29,950 | 33 | 1.14% | 0.36% | C 66.8 | dc8e617 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.