use this skill when a user asks to set up RPI or a "research plan implement" workflow, or to do anything related to RPI skills.
You're tasked with setting up a research-plan-implement workflow for a user.
Before doing ANYTHING else, validate prerequisites. Run these checks in order:
which humanlayer
If not found: "HumanLayer CLI not found. Install via: brew install humanlayer/tap/humanlayer"
which linear
If not found: "Linear CLI not found. Install via: npm install -g @codelayer/linear-cli"
humanlayer thoughts status
If fails or "Not initialized": "Thoughts not configured. Run: humanlayer thoughts init"
humanlayer thoughts sync
If fails, tell user to check their thoughts repository configuration.
Parse humanlayer thoughts status output to get:
repos/synclayer)Get the thoughts repo path and GitHub remote:
humanlayer thoughts config | grep "Thoughts repository" | awk '{print $NF}'
Then:
git -C <that-path> remote get-url origin
Construct and output a test permalink:
Prerequisites validated!
Test this permalink opens correctly:
https://github.com/<org>/<repo>/tree/main/<thoughts-directory>/tasks/
If it opens to your tasks directory, you're ready!
Help the user with their RPI workflow question.
User: set up rpi for ticket eng-1234
linear get-issue-v2 eng-1234 --fields=branchmkdir -p thoughts/tasks/eng-1234-descriptionlinear get-issue eng-1234 > thoughts/tasks/eng-1234-description/ticket.mduse the create-research-questions skill for thoughts/tasks/eng-1234-description/ticket.mdUser: what's the next rpi step for eng-5678
ls thoughts/tasks | grep eng-5678ls thoughts/tasks/eng-5678-...