Automate your social media posting with Blotato: https://blotato.com/?ref=eric2k 🎁 Black Friday: use code BLACKFRIDAY2026 for 50% off Blotato for 3 months.
Pstack is Lauren Tan's open-source pack of AI coding skills, workflows and principles. Lauren is a principal engineer at SpaceX, on the technical staff at Cursor, and a React core team member. I break Pstack down across six stages of the AI software development lifecycle: planning, multi-model design, TDD, end-to-end verification, shipping the PR and maintaining. I compare it to Matt Pocock's skills and Superpowers, and share the principles I'm adding to my own Claude Code workflow.
👋 𝗛𝗲𝘆, 𝗜’𝗺 𝗘𝗿𝗶𝗰. I spent seven years as a senior software engineer at Amazon and Microsoft. Now I am the founder of bookzero.ai, which I built with Claude Code.
0:00 Introduction to Lauren Tan and Pstack
1:57 Planning Stage and Workflow Analysis
3:16 Designing Stage with Multiple AI Agents
5:33 Building Stage with TDD and TypeScript Best Practices
8:18 Testing Stage with End-to-End Verification and Code Review
9:41 Deployment Stage and Pull Request Management
11:50 Secondary Skills and Social Media Automation with Potato
11:50 Core Principles of Pstack and Final Takeaways
This video introduces Pstack, an open-source repository by Lauren Tan that documents AI-driven software development workflows. It details a structured pipeline—from planning and design to building, testing, and deployment—designed to maximize AI efficiency, reduce \"AI slop,\" and maintain high code quality through a skill-based architecture and multi-model verification.
This is Lauren Tan.
She's currently the principal engineer at SpaceX,
the technical staff at Cursor,
and also a staff engineer at Meta.
And you can see that she's also the core member
at the React team.
And recently, she has open sourced her entire knowledge,
her workflows, skills, and principles
into a open source repository called Pstack.
And that's why in this video,
I'm gonna share with you exactly what is Pstack,
what are the skills that we have,
as well as I'm gonna share with you how are they different.
Compared to the skills that we have reviewed in the past,
and of course, if you stick to the end of this video,
I'm also going to share with you my core takeaways after I review
her own software development skills.
So with that being said, if you're interested,
let's get into the video.
All right.
So to get started, you can see here that I create
a entire diagrams to break down all the workflows that she have,
as well as her skills and also the principles
that she follow whenever it comes to writing code.
And I have broke down her skills into six stages,
which is the entire AI software
development life cycle, which I have made a video on,
which you can check out here.
So in this case, let's start with the first stage,
which is the planning stage.
But essentially what it does here,
you can see for planning stage is whenever you
building applications, you start with planning.
But her skill here you can see
is mostly working for brown field project,
which means that the project here
already have existing code on it, right?
Right. You can see that we have two workflows.
Learn the code first and also plan a big job, right?
So for example, let's say if you want to learn how the code works,
you have the help skill.
If you want to know why the code works
this way, then we have the Y skill
and the teach skill here combines the how and the why.
And that's basically the workflow here to learn the code first.
Now, if you want to break a task or a project into a smaller tickets,
you can also do it using the figure out skill
and also show me your work skill,
which will basically log these decisions onto a proper doc or MD file.
But personally, I wouldn't probably use her planning skill
because you can see that she's not really big on a planning stage.
It's mostly just focusing on improving the existing applications,
like making a big migrations or big change.
Then you can see that her skill is mostly up to par for that.
But in terms of like solo builders or you try to build an application
from scratch or whatever it is,
my preference are mostly on the Matt Pocock skills
or the superpower skills.
So those are two skills that I highly rely
on rather than using her planning skills.
And the next stage we have is the designing stage.
Now, that's going to be the part where we're going
to design how we're going to do the implementation
before we actually going to write a single line of code.
So right here, you can see we have
a single workflow here called Settle the Code Shape.
Now, you can see that we have the architect.
Now, the architect here is going to trigger the arena here
to basically try to have multiple different models
and multiple different AI agents here to fan out and try to do the design.
OK, and once we have multiple different AI agents here come back
with multiple different designs, they create it.
We can then trigger a skill called the interrogate.
Which will basically have an AI model here to judge the results
and then be able to aggregate the results back
into a single report for the design.
So you can see that it's really different compared to Matt Pocock's
or any other skills that we have reviewed in the past.
Because in the past, we mostly rely on just one single model.
But her approach is mostly rely
on having multiple different models, right?
Like Opus, GPT, or Grok, whatever models you can think of.
And having them to fan out and then try to compare the results
and then be able to take the best parts from each models here.
And then aggregate it into one single report
for the design before we move on to the next stage.
Okay, so that's her design stage right there.
And then the next part we have is the building stage.
Now the building stage here you can see we have two workflows.
One is to follow the test-driven development here to write in code.
Now you can see that for writing test first is actually
also using the TDD skill.
And I have also judged the comparisons between TDD skills from Pstack,
Matt Pococks, and also Super Howard.
And here you can see this is the entire
breakdown for the difference between
all skills from TDD so if you want to figure out
which one is the best TDD skill you can check out
this one right for example quick fix bugs new
features strict teams disciplines but you can
see that we have different type of skills because there's
so many test driven development skills that
we have review so if you want to know exactly
which test driven development skills is best fit
for you you can check it out inside of this page right here
which i'll make sure to put this in the
end of this video but essentially once we have
our TDD skill built right we also have our typescript
Lauren Tan, the creator of PSDAG, is mostly focusing on React.
React is mostly using TypeScript, so that's why you can see
that we have a skill here called TypeScript Best Practice,
which will enforce AIs here to building applications using
the TypeScript Best Practice.
Furthermore, we also have our cleanup diff.
Essentially, what this does here is we have our diff slop here.
First, it checks the difference between the main branch
as well as the current branch that we have.
And then furthermore, you can see
there's some additional checks, right?
For example, check for extra comments.
I'll try catch like basically like error exceptions or any variables
that doesn't have types, right?
Deep nestings.
Those should be removed inside of the code, right?
It follows the best practice here in terms of like writing code
that are not AI slop.
And the goal here is to try to keep the behavior
the same by running tests to make sure of that.
And it gives you a one to three sentence summary by the end of it.
Now, one thing that I want to point out here
is you can see remove extra comments
Now, why does she actually want to remove extra comment here?
Because here you can see it has a skill called no comments.
Now, the reason why she says no comments in the code,
because oftentimes, AI sometimes just read
the comments instead of the code.
So what happened is this.
Let's say if you have a comment, say that this function returns A,
but this function in the code, it returns B.
So what do AI listens to?
Well, the AI sometimes just look at the comments rather than the code.
So that's why you can see she removes the comment part
because this way it's going to remove the noise
so the AI actually look at the code rather than the comments.
So you can see that that's
the entire building process for Lauren Tan's PSDAG.
Okay, so the next stage we have here is testing.
Now you can see that we have three stages for testing,
three workflows, and let's walk through these workflows one by one.
Now the first workflow we have here is prove the application works.
Now here you can see it uses a skill called create verification skill.
Essentially, how is it different compared to TDD skill?
Because TDD skill is mostly focusing on writing functional
or unit testing, and then create
verification skill is mostly focusing
on creating end-to-end tests, right?
Now, one thing to know here before you create
end-to-end testing is that you have to set
up the environments, you have to set up
the database, you have to set up the servers,
you have to set up pretty much how a user is going to launch it, right?
You can launch the applications,
be able to diagnose it if there's any problem with it,
be able to drive the actual user behavior,
collecting the evidence.
Do the cleanups.
When it says clean up part, maybe sometimes it needs
to tear down that temporary database
or temporary servers that you have spin up
and having some helper function here to help
you along the way.
Right?
So you can see it's going to be a skill here
that builds this kind of end-to-end flow,
right?
And rather than just writing an end-to-end testing,
yes, writing end-to-end testing is
key, but building that entire flow,
how AI agent here is going to spin up, what commands
man is going to run that requires a skill here to create
Create this kind of verification. Right.
And you can see there's some additional
rules like one feature per folder rather
than just putting features in one single folder. Right.
We want to divide that into different folder
for different features and then try
to run its own steps once end to end
and then points you to the maintaining
skill. Right. So, and here you can see
there's additional skills after that.
It's called swarm. So rather than just have one agent here,
runs the entire thing end to end, right. Does the launching,
does the testing for different pages.
We're going to swarm by having multiple
different AI agents here, right?
You could also choose different model here
and having multiple different AI agents to
focus on small parts of it and at the end,
aggregate it into one single report.
Okay.
So that's basically the prove it on the real application part
Now, the last part that we have here is a take the difference
And you can see that it's actually reusing
the interrogate skills from the earlier in
the design scope, right?
You can see that we have the interrogate
to have multiple different AI agents here, try
to break the changes.
So essentially what it do here is it knows the difference, right?
So compare the main branch versus your current feature branch.
See what are the code changes that it has made.
And then what we do here is we have
different AI models here and try to spin
up and try to see if we can actually break
this change that we have did right
And then we're also using a skill called
thermonuclear code quality review,
which I have no idea how they come up
with this name, but you can see it does
a extra harsh review layer to see
if there's any way that we can be able to
make the code here much more simpler.
So it's very similar to the ponytail skill
that we have reviewed on our channel before
And you can see that essentially try to see
if we can do to refactor the code even better.
So those are the sets of skills.
Those are the sets of workflows that's
in the testing stage, which are really, really
interesting.
Now, the last stage we have here is deployment stage.
And deployment stage, you could think
of it like we're trying to deploy the feature.
So now we have everything.
They're all tested, are all ready to merge to the pull request.
So now what we can do here is, first of all,
make a pull request easy to review.
But obviously, everyone has their own.
Writing style. Even our Superboard skill,
we already have our own style for this.
So it really depends on how you want to have
your pull request review. You can also reference
her skill for the pull request, easy to review skill,
and see how you can be able to tidy up
for the pull request. But essentially you can see
that we have a set of skill for the entire
pipeline, like being able to babysit the entire pull request,
right? Let's say if we were going
to merge it, okay, let's try to babysit it
to make sure that it's actually able to fully merge.
We have the fixed merge conflicts.
Let's say you're about to merge the pull request.
Someone else on your team here is also merging that too,
which caused a conflict with your changes.
Then how do we actually fix it and also get pull request comments.
So list of the review comments and also fixing the CI,
which is the CI CD pipelines, the CI checks, right?
So these are the things you can see
as she has built out this entire pipelines.
So if you're interested for that, you can also check it out as well.
Okay.
Now, essentially you can see for stage six, which is maintaining.
So how can you actually move to collecting these issues
and cycle back into the.
Planning stage, you can see that she doesn't have any skill
for that, but we do have review
tons of skills for maintaining skills,
like our super collect from super board skills.
You can also check that as well.
Okay.
So pretty much those are the six stages, right?
That we have from the software development cycle from her skills.
Now we're going to take a look at is some
of the secondary skills that you can literally
trigger anytime, anywhere you want inside of your development.
And then we're also going to take a look
at her principles at the end of this video.
Now, before we move on to the next part, if you have applications
and your struggle with marketing, well, you got to check out
this product called potato and take my social media account.
For example, every tech pro I have grown this social media accounts
from zero followers all the way to 7,000 followers just
in a couple of months because I was able to post consistently
and we would also automate my entire process using this tool.
So in this case, let me show you exactly how I was able to set this up.
Now, first of all, make sure to sign in with potatoes.
Once you sign in, make sure to click on connect accounts
and you can connect it with any social media accounts you have.
And once you've done that, make sure
to click on settings and click on APIs.
And here you can do to connect with your potato
here with your large image model,
because now you can be using large image model here to directly control
your social medias.
So in this case, I'm using ChatGPT.
I'm going to click on that.
And it's going to tell you exactly the step by step guide
how you can be adding potato here
as an MCP server instead of your ChatGPT.
And once you have that set up here, you can see,
I ask, do you have access to the potato?
And it says, yes, I do have access.
And it's telling you exactly which Instagram account have access to.
And then you can see, I just paste the video links.
For example, I have two videos that I posted on YouTube
and I have AI here to kind of just
cropped it with some clips.
And you can see that the clips here is shown here.
And eventually I also ask it, Hey,
why don't you just go ahead and try to publish those
reels, those shorts videos,
and then also have one here to speak schedules for tomorrows.
And you can see that AI agent here is able to do that.
Using the potato MCPs.
And then furthermore,
I also ask it to set up the auto comment, DM rule, or
let's say someone actually comment any
keywords, for example, real video or
SD video, then behind the scene, we actually have an AI agent here that
can actually respond to the users whenever someone comments for this
kind of keywords inside of their comments.
So this way we can actually be able to grow our Instagram accounts to
show engagements as well as be able
to capture emails from people so that
we can be able to add them into our email campaigns.
So that's exactly how I was able to grow my Instagram accounts.
All the way to 7,000 followers using Potato here,
using this social media automation.
And if you're interested,
make sure to check it out in the description below.
So pretty much that's it.
Let's get back to the real video.
Okay, so to get started, let's start with the secondary skills.
And to start off, we have the router skill, which is the Potato mode.
So let's say if you have a situation,
you don't know which skill to trigger,
you can trigger the Potato mode here and explain what problem you have.
And it's going to try to use the right
skill here to tackle that problem.
And then furthermore, you can see we have the setup skills,
the catch up and plain talk skills,
the writing skills, as well as improving P-stack over time skills.
And specifically, I really like the catch up and plain talk skills,
especially for the recalls.
So let's say if you switch different contexts,
you were working on different projects
and you want to get a recall of what happened so far,
then you can see that there's some sets
of skills I can use here to catch up on what happened so
far, right? So I have grouped them into different categories.
So if you want to get into more
More details, you can also check out this page right here.
Now, lastly, we also want to talk about here is the principal skills.
And you can see that there's tons of principal skills inside of Pstack.
Now, why are they skills, not system prompts, you might be asking.
It's because if you try to keep all the rules
and principles into a system prompt,
that's going to be a huge file which contains a lot of tokens.
Imagine that every message you send to AI
is going to read that system prompt.
But those information might
not be relevant to what you're trying to do.
So that's why you can see it keeps all
those principles into several skills
and having an index map on exactly when to trigger them, right?
Now, because there's so many principles here,
I'm just going to narrow down exactly what I find really helpful
based on what we have in our super board.
Now, for the first principle, keep it small.
This is really similar to the ponytail skill,
which is already something that we have.
So I'm not going to talk about that.
But for the design for shape,
one thing that I want to talk about here
is this interesting principle called attack the premise.
Sometimes we have AI here to fixing a bug.
It fixed it, still happens.
Fix it again.
It still happens again.
And what happened here is that it's going
to continuously cycle through a loop where
we have AI fixing and then blocked, fixing and then blocked.
And it just feels like AI just not able to fix that bug entirely.
But what this skill, like I said,
it does here is to stop and have AI here to question
about the assumption.
Are we even on the right track?
Before we have AI here to actually focusing on that direction.
Okay.
So this is a really helpful skill.
And definitely I'm planning on adding this into our super board skill.
Now, the next part that we have for the principle
is the code structure and safety,
and specifically for the type system disciplines.
Sometimes a variable here could have
different types or different status,
so it's really important to reject any impossible states, right?
For example, a payment here could not be paid
and also pending at the same time.
So problems like these, we want to make sure
to have a principle that basically solves them,
which is something that I'm actually going
to add this to my superboard as well.
So pretty much those are the principles that I see
that are really valuable that I probably
will take this into my own development workflow.
And of course, there's probably some other principles
that I have already covered inside
our Superboard.
So if you're interested for this, you can
check out this page right here and I'll make
sure to put this entire page,
this entire diagram here for Pstack inside of the description
below so you can actually access as well.
So pretty much that's it for the video.
If you found it helpful, make sure to like this video
and of course, comment down below
what are some other spec driven development
framework you actually review on the channel.
So pretty much that's it for this video.
I'll see you in the next video.