by nevertoday
Your AI says “fixed” and it's still broken. pstack makes it try its own work first. A plain-language guide to pstack for Claude Code, Cursor and Codex: start with no coding, in 10 languages.
# Add to your Claude Code skills
git clone https://github.com/nevertoday/xxd-pstackGuides for using ai agents skills like xxd-pstack.
See how xxd-pstack compares with popular alternatives.
xxd-pstack is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by nevertoday. Your AI says “fixed” and it's still broken. pstack makes it try its own work first. A plain-language guide to pstack for Claude Code, Cursor and Codex: start with no coding, in 10 languages. It has 57 GitHub stars.
xxd-pstack's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/nevertoday/xxd-pstack" and add it to your Claude Code skills directory (see the Installation section above).
xxd-pstack is primarily written in MDX. It is open-source under nevertoday on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh xxd-pstack against similar tools.
No comments yet. Be the first to share your thoughts!
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
English · 中文 · 日本語 · 한국어 · Español · Português · Français · Deutsch · Русский · العربية
pstack 让它改完先自己试一遍,再来跟你说。这份教程用大白话把 pstack 讲清楚,不会写代码也能学会。
免费 · 开源 · 10 种语言
用 AI 写代码,你多半经历过这些:
不是模型不够聪明,是它做事没章法:没看懂就改,没试过就说做完。pstack 是 poteto(React 核心团队成员,在 Cursor 工作)每天自己写代码用的一套 Agent Skills。模型还是那个模型,变的是做事的顺序和标准:
| 什么时候 | 平常的 AI | 装了 pstack |
|---|---|---|
| 动手之前 | 直接改 | 先用自己的话复述目标,先用 /how 读懂代码 |
| 修 bug | 在表面加个判断 | 先让问题再出现一次,找到第一个出错的地方再修 |
| 说「做完了」 | 「应该没问题了」 | 贴出真实的命令输出、存下来的值、前后对比 |
| 代码量 | 越改越多 | 能删就删,用最小的改动解决问题 |
| 同一个错 | 下次还犯 | 用 /correct 改仓库本身,让下一个 AI 犯不了 |
| 并行 | 几个 AI 抢同一个目录 | 各用各的 worktree,放心同时开好几个 |
[!NOTE] pstack 会多派帮手 AI、让几个模型互相挑刺,所以更慢、更费 token。小改动不用它,怎么省见 控制花费。
pstack 是 poteto 写给自己用的。官方文档默认你已经是资深工程师:
很多人装上试了一次,觉得「好像没什么不同」,就放下了。
/poteto-mode,加一句三段式的话:我想要什么 · 做好是什么样子 · 做完给我看什么。其他内容都标明「遇到了再查」。你只要记一个命令 /poteto-mode,说清楚要什么和怎么算做完。它从 23 套「剧本」里挑一套(修 bug、加功能、重构、查性能……),把步骤抄进待办清单,一步步调用其他技能。决定不做的步骤不会悄悄消失,会写明 skip: 理由。
1. 装上(按你的工具选一种)
# Claude Code(命令会带 pstack: 前缀,比如 /pstack:poteto-mode)
/plugin marketplace add cursor/plugins
/plugin install pstack@cursor-plugins
# Cursor
/add-plugin pstack
# Codex、OpenCode 等(Node.js 22.20+;加 -g 装到全局)
npx skills add backnotprop/pstack
下面的命令按 Cursor 的写法写。用插件装进 Claude Code 的,前面都要加 pstack::/pstack:setup-pstack、/pstack:poteto-mode,不加它不认。Codex 用 $poteto-mode。网站上能选「我用的工具」,命令会自动换成你的写法。
2. 选模型:新开对话跑一次 /setup-pstack,问到要不要生成「验证技能」时选要。 用 Claude Code 的,会话模型和各角色怎么搭见 三套推荐配置。
3. 第一个任务:挑一件真实但不大的事,像跟同事交代工作一样说:
/poteto-mode 收藏列表刷新后偶尔会重复。先复现,不要先改代码。
修好的标准:连点十次收藏,列表和 chrome.storage 里都只有一条。
把修之前和修之后 storage 里的实际内容给我看。
[!TIP] 一句好提示词最多五样东西:目标、怎么算做完、想看什么证据、你已经知道的、不能碰的地方。最好别写的两样:具体怎么做,和你猜的原因。详见 第 3 步。
平时只打 /poteto-mode,其他的它在需要时自己叫上。想点名用某一个、或者看到 AI 提到一个名字想查查,去 技能速查:每个技能都有一句人话、什么时候用、能照抄的例句、要和谁一起装。点进去还能读它的 SKILL.md 原文和译文(可以对照着看),以及「从它的写法里学」:挑几句原文,讲这句让 AI 做什么、为什么这样写、你写提示词时怎么借用。
每篇都有能直接复制的提示词,例子用的是 Chrome 插件、Astro 网站、Cloudflare 会员站这类真实场景。
| 你手上的活 | 看这篇 | 一句话要点 |
|---|---|---|
| 修一个 bug | 先复现,再修,再证明 | 先让问题再出现一次,再动手修 |
| 加一个功能 | 不碰坏旧的 | 说清楚哪些旧行为一点都不能变 |
| 重构 | 结构变,行为不变 | 先录下现在的输出,改完证明没变 |
| 嫌它慢 | 拿数字说话 | 给一个测量值,不是一个感觉 |
| 接手陌生项目 | 先看懂再动手 | 「先别改代码」让它只调查 |
| 提交前心里没底 | 让几个模型挑刺 | 只留下能跑出失败的问题 |
| 写文档 | README、PR 说明 | 给别人用的代码,先写 README |
| 一个大迁移 | 睡前交给它 | 完成条件要能判断过没过,不写「做 4 小时」 |
还有 照抄就能用的提示词、跑偏了一句话拉回来、不知道该用哪个技能。
前面所有步骤的回报都在这里:一个能自己验证的 AI,才是你能放心留下来独自干活的 AI。睡前给它一份「合同」:目标、能判断过或不过的完成条件、一个新的 worktree、决策日志、一个卡住时的逃生口。早上先读 /show-me-your-work 回复里的「需要注意」,审决定,不重读整夜。详见 第 7 步。
页面右上角 ⌘ K 全站搜索,正文里荧光笔和粗下划线标的是重点,带虚线的词悬停就有一句话解释。
npm install
npm run dev # http://localhost:4420
npm run build # 输出到 dist/
npm run release # 构建并部署到 Cloudflare
src/data/nav.js 站点结构:新手入门、完整教程、How-to 清单、术语表(唯一来源)
src/data/skills.js 技能速查的数据
src/data/wiki.js Wiki 条目
src/data/faq.js 常见问题
src/pages/start/ 新手入门三课(MDX)
src/pages/guide/ 完整教程(MDX)
src/pages/howto/ How-to(MDX)
public/xxd/ 小小东 UI Kit(自带一份,不走 CDN)
tools/build_assets.py 生成 README 插画、SVG 动画和分享大图(social.svg → social.png / public/og.png)
改内容、加页面、写作规矩见 docs/MAINTAINING.md。README 里的图都由 python3 tools/build_assets.py 生成,改了文字或颜色重跑一次。
本站是非官方的入门教程。发现哪里没写清楚、照做不成功,欢迎 提 Issue。
教程文字和站点代码采用 MIT。public/xxd/ 里的小小东 UI Kit 构建产物不在此列,适用它自己的 LICENSE(非商用免费,商用需授权)。
Copyright (c) 2026 小小东 Xiaoxiaodong