<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Anto Subash</title><description>Full-stack developer passionate about web technologies, microservices, and modern software development.</description><link>https://blog.antosubash.com</link><language>en-us</language><lastBuildDate>Sun, 08 Nov 2026 17:19:10 GMT</lastBuildDate><atom:link href="https://blog.antosubash.com/feed.xml" rel="self" type="application/rss+xml"/><item><title>When Parallel Coding Agents Crash Your Workstation</title><link>https://blog.antosubash.com/posts/parallel-ai-agents-crashed-my-workstation</link><guid isPermaLink="true">https://blog.antosubash.com/posts/parallel-ai-agents-crashed-my-workstation</guid><description>What took down a 60 GiB Linux workstation running parallel Claude Code and Codex sessions, how to find what ate the memory, and five guardrails that stopped it.</description><pubDate>Sat, 07 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://raw.githubusercontent.com/antosubash/images/main/assets/posts/ai-skills/parallel-ai-agents-crashed-my-workstation/cover.png&quot; alt=&quot;Three lanes of processes (orphaned workers, pytest workers, MCP servers) wait at a gate labelled headroom before reaching a RAM gauge that stays below its limit&quot; /&gt;&lt;/p&gt;

&lt;p&gt;I run a lot of coding agents at once: ten or so Claude Code sessions in one terminal, plus Codex jobs and a background issue worker, on a workstation with 24 cores and 60 GiB of RAM. In under three weeks it crashed on two consecutive days, and two slower problems ate memory and broke the browser. None of the agents did anything wrong on its own. The problem was what they did together, and what they left behind.&lt;/p&gt;
&lt;p&gt;Here&apos;s what ate the machine, how I found out, and the five guardrails that have kept it up since.&lt;/p&gt;
&lt;h2&gt;The crash: oomd killed the whole terminal&lt;/h2&gt;
&lt;p&gt;One evening every Claude session and the terminal multiplexer holding them vanished together. Nothing in the multiplexer&apos;s own log said why. The system journal did:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;systemd-oomd: Killed .../app.slice/app-gnome-Alacritty-202331.scope&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  due to memory pressure for user@1001.service being 56.28% &amp;gt; 50.00% for &amp;gt; 20s&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  Current Memory Usage: 45.5G&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  systemd-oomd killed 420 process(es) in this unit.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Two things to understand here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;It killed a whole cgroup.&lt;/strong&gt; GNOME starts each app in its own cgroup (a &quot;scope&quot;). The multiplexer, every pane, every agent and everything the agents started all inherited the terminal window&apos;s scope. &lt;code&gt;systemd-oomd&lt;/code&gt; kills the biggest cgroup as a unit, so 420 processes went at once. Any terminal would have died the same way.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;50% isn&apos;t &quot;50% of RAM&quot;.&lt;/strong&gt; It&apos;s memory &lt;em&gt;pressure&lt;/em&gt;: the share of time processes spent stalled waiting for memory. At 56% the machine was already swapping hard.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;The fix that made it worse&lt;/h2&gt;
&lt;p&gt;My first reaction was to switch off oomd&apos;s pressure kill for my user (&lt;code&gt;ManagedOOMMemoryPressure=auto&lt;/code&gt; in a &lt;code&gt;user@.service&lt;/code&gt; drop-in). The reasoning sounded fine: a machine running parallel work can be busy, and oomd kills &lt;em&gt;everything&lt;/em&gt; in the scope, while the kernel&apos;s OOM killer only kills one process.&lt;/p&gt;
&lt;p&gt;About an hour later the session crashed again, and it was worse. With oomd out of the way, RAM (60 GB) and swap (8 GB) filled completely. The kernel OOM killer then started picking processes: first a Chrome renderer, then my user&apos;s D-Bus. Losing D-Bus took the whole GNOME session down and logged me out.&lt;/p&gt;
&lt;p&gt;So I put the default back. With oomd on, I lose the terminal. With it off, I lose the desktop as well. The real fix had to be upstream: stop the memory running out in the first place.&lt;/p&gt;
&lt;h2&gt;What ate the memory: 417 Python processes&lt;/h2&gt;
&lt;p&gt;The kernel prints a process table when the OOM killer fires. Summing it by process name showed the culprit at once:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;# RSS + swap per process name at the moment of the OOM kill.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# Column numbers fit this kernel&apos;s table format; check its header line on yours.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;journalctl&lt;/span&gt;&lt;span&gt; -k&lt;/span&gt;&lt;span&gt; -b&lt;/span&gt;&lt;span&gt; 0&lt;/span&gt;&lt;span&gt; --since&lt;/span&gt;&lt;span&gt; &quot;10:44:59&quot;&lt;/span&gt;&lt;span&gt; --until&lt;/span&gt;&lt;span&gt; &quot;10:45:03&quot;&lt;/span&gt;&lt;span&gt; --no-pager&lt;/span&gt;&lt;span&gt; -o&lt;/span&gt;&lt;span&gt; cat&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  |&lt;/span&gt;&lt;span&gt; grep&lt;/span&gt;&lt;span&gt; -E&lt;/span&gt;&lt;span&gt; &apos;^\[ *[0-9]+\]&apos;&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  |&lt;/span&gt;&lt;span&gt; awk&lt;/span&gt;&lt;span&gt; &apos;{r=($6+$11)*4/1024; s[$NF]+=r; n[$NF]++; t+=r}&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;         END{for(k in s) printf &quot;%8.0f MB %4d procs  %s\n&quot;, s[k], n[k], k;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;             printf &quot;%8.0f MB TOTAL\n&quot;, t}&apos;&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  |&lt;/span&gt;&lt;span&gt; sort&lt;/span&gt;&lt;span&gt; -rn&lt;/span&gt;&lt;span&gt; |&lt;/span&gt;&lt;span&gt; head&lt;/span&gt;&lt;span&gt; -12&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;417 &lt;code&gt;python&lt;/code&gt; processes held about 53 GB&lt;/strong&gt;, 105–155 MB each, alongside 27 &lt;code&gt;pytest&lt;/code&gt; processes. Everything else together was about 15 GB.&lt;/p&gt;
&lt;p&gt;When systemd tears a session down, it also logs each unit&apos;s memory peak, which tells you &lt;em&gt;which cgroup&lt;/em&gt; held the memory:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;journalctl&lt;/span&gt;&lt;span&gt; -b&lt;/span&gt;&lt;span&gt; 0&lt;/span&gt;&lt;span&gt; --since&lt;/span&gt;&lt;span&gt; &quot;10:44&quot;&lt;/span&gt;&lt;span&gt; --until&lt;/span&gt;&lt;span&gt; &quot;10:48&quot;&lt;/span&gt;&lt;span&gt; --no-pager&lt;/span&gt;&lt;span&gt; -o&lt;/span&gt;&lt;span&gt; cat&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  |&lt;/span&gt;&lt;span&gt; grep&lt;/span&gt;&lt;span&gt; -E&lt;/span&gt;&lt;span&gt; &quot;Consumed .* memory peak&quot;&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  |&lt;/span&gt;&lt;span&gt; awk&lt;/span&gt;&lt;span&gt; &apos;{for(i=1;i&amp;lt;=NF;i++) if($i==&quot;peak,&quot;||$i==&quot;peak.&quot;) print $(i-2), $0}&apos;&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  |&lt;/span&gt;&lt;span&gt; sort&lt;/span&gt;&lt;span&gt; -h&lt;/span&gt;&lt;span&gt; -r&lt;/span&gt;&lt;span&gt; |&lt;/span&gt;&lt;span&gt; head&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The terminal&apos;s scope had peaked at 57.7 GB.&lt;/p&gt;
&lt;p&gt;The cause was &lt;code&gt;pytest -n auto&lt;/code&gt;. In pytest-xdist 3.8.0, &lt;code&gt;auto&lt;/code&gt; starts one worker per physical CPU core, so 24 here. One agent running the suite is fine. Several agents in several worktrees each running it at the same time is 24 workers times N, and each worker imports the whole app.&lt;/p&gt;
&lt;h2&gt;Orphaned Celery workers&lt;/h2&gt;
&lt;p&gt;The next problem was slower. It didn&apos;t crash anything at once, but it kept 26 GiB busy for days. A memory check found &lt;strong&gt;54 Celery processes&lt;/strong&gt;: the same three workers, started six separate times by an agent&apos;s QA runs and never stopped. Their launching shells were gone, so they had been re-parented to &lt;code&gt;systemd --user&lt;/code&gt;, and nothing would ever stop them. Each set also ran its own scheduler (Celery beat), so periodic tasks fired six times over.&lt;/p&gt;
&lt;p&gt;A memory profile of the workers showed no leak. Memory rose once while models loaded, then stayed flat. The bug was in the launch. The QA step tracked one PID and one port. Background workers have no port, and their children aren&apos;t in the PID file. So every QA iteration started a fresh set. Stopping the 54 freed about 10 GiB of available memory.&lt;/p&gt;
&lt;h2&gt;Running out of inotify instances&lt;/h2&gt;
&lt;p&gt;Then the browser stopped starting. Playwright failed with &lt;code&gt;initializeServer: Timeout&lt;/code&gt;. The machine was out of inotify instances (122 of 128 in use; the limit is &lt;code&gt;fs.inotify.max_user_instances&lt;/code&gt;). They were held by 22 Codex app-servers and dozens of Playwright MCP servers, some up to six days old. Every agent session starts its own, and they outlive the session. Killing the Playwright servers older than a day (about 70) and the old Codex ones brought it down to 84 of 128.&lt;/p&gt;
&lt;p&gt;As I write this, there are 30 &lt;code&gt;playwright-mcp&lt;/code&gt; processes running again. They come back.&lt;/p&gt;
&lt;h2&gt;The five guardrails&lt;/h2&gt;
&lt;h3&gt;1. Cap the fan-out at the source&lt;/h3&gt;
&lt;p&gt;Don&apos;t rely on each agent remembering a flag. pytest-xdist reads &lt;code&gt;PYTEST_XDIST_AUTO_NUM_WORKERS&lt;/code&gt;, so &lt;code&gt;-n auto&lt;/code&gt; resolves to that number everywhere. I set it for shells (&lt;code&gt;~/.zshenv&lt;/code&gt;, which the agents&apos; shells also read) and for services:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;# ~/.config/environment.d/60-pytest-workers.conf&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# Cap pytest-xdist: `-n auto` would start one worker per core (24 here), and&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# several agents running suites at once exhausted RAM (OOM on 2026-10-23).&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;PYTEST_XDIST_AUTO_NUM_WORKERS=&lt;/span&gt;&lt;span&gt;4&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;PYTEST_WORKERS=&lt;/span&gt;&lt;span&gt;4&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;code&gt;PYTEST_WORKERS&lt;/code&gt; is what the repo&apos;s Makefile passes to &lt;code&gt;-n&lt;/code&gt;, and the Makefile default became &lt;code&gt;PYTEST_WORKERS ?= 4&lt;/code&gt; too. The full suite still passes on 4 workers: 5,681 passed and 43 skipped, in 6m17s.&lt;/p&gt;
&lt;h3&gt;2. Tag everything an agent starts, and stop it by tag&lt;/h3&gt;
&lt;p&gt;Process IDs don&apos;t survive a double fork. Environment variables do: children inherit them. The QA skills now start every process (API, workers, scheduler, UI) through a small &lt;code&gt;stack.sh&lt;/code&gt; that adds a tag to the environment, then finds the whole stack by scanning &lt;code&gt;/proc/*/environ&lt;/code&gt;:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;stack.sh&lt;/span&gt;&lt;span&gt; start&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;ta&lt;/span&gt;&lt;span&gt;g&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;nam&lt;/span&gt;&lt;span&gt;e&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;lo&lt;/span&gt;&lt;span&gt;g&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;cm&lt;/span&gt;&lt;span&gt;d&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;   # refuses if &amp;lt;tag&amp;gt;/&amp;lt;name&amp;gt; is already running&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;stack.sh&lt;/span&gt;&lt;span&gt; stop&lt;/span&gt;&lt;span&gt;  &amp;lt;&lt;/span&gt;&lt;span&gt;ta&lt;/span&gt;&lt;span&gt;g&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt; [timeout-seconds]    &lt;/span&gt;&lt;span&gt;# TERM every tagged process, KILL leftovers after timeout&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;stack.sh&lt;/span&gt;&lt;span&gt; status&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;ta&lt;/span&gt;&lt;span&gt;g&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The core is three steps. Start each process with the tag in its environment, find the stack again by grepping every process&apos;s environment for it, and stop whatever is tagged:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;# Simplified from stack.sh (Linux only; the real stop polls instead of sleeping)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;TAG_VAR&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;CLAUDE_STACK_TAG&lt;/span&gt;&lt;span&gt; NAME_VAR&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;CLAUDE_STACK_NAME&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# start: setsid + nohup so the process outlives the agent&apos;s shell, tag inherited by every child&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;setsid&lt;/span&gt;&lt;span&gt; nohup&lt;/span&gt;&lt;span&gt; env&lt;/span&gt;&lt;span&gt; &quot;$TAG_VAR=$tag&quot;&lt;/span&gt;&lt;span&gt; &quot;$NAME_VAR=$name&quot;&lt;/span&gt;&lt;span&gt; bash&lt;/span&gt;&lt;span&gt; -c&lt;/span&gt;&lt;span&gt; &quot;$cmd&quot;&lt;/span&gt;&lt;span&gt; &amp;gt;&lt;/span&gt;&lt;span&gt;&quot;$log&quot;&lt;/span&gt;&lt;span&gt; 2&amp;gt;&amp;amp;1&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;span&gt; &amp;amp;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# find: environ is NUL-separated, so -z makes each variable a record and -x matches it whole&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;tagged&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  grep&lt;/span&gt;&lt;span&gt; -lzxF&lt;/span&gt;&lt;span&gt; &quot;$TAG_VAR=$1&quot;&lt;/span&gt;&lt;span&gt; /proc/[0-9]*/environ&lt;/span&gt;&lt;span&gt; 2&amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;span&gt; |&lt;/span&gt;&lt;span&gt; while&lt;/span&gt;&lt;span&gt; read&lt;/span&gt;&lt;span&gt; -r&lt;/span&gt;&lt;span&gt; env&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;do&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    pid&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;${env&lt;/span&gt;&lt;span&gt;#/&lt;/span&gt;&lt;span&gt;proc&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;}; &lt;/span&gt;&lt;span&gt;echo&lt;/span&gt;&lt;span&gt; &quot;${pid&lt;/span&gt;&lt;span&gt;%/&lt;/span&gt;&lt;span&gt;environ}&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  done&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# stop: TERM everything tagged, wait, then KILL whatever is left (workers can fork replacements)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;kill&lt;/span&gt;&lt;span&gt; -TERM&lt;/span&gt;&lt;span&gt; $(&lt;/span&gt;&lt;span&gt;tagged&lt;/span&gt;&lt;span&gt; &quot;$tag&quot;&lt;/span&gt;&lt;span&gt;); &lt;/span&gt;&lt;span&gt;sleep&lt;/span&gt;&lt;span&gt; 20&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;kill&lt;/span&gt;&lt;span&gt; -KILL&lt;/span&gt;&lt;span&gt; $(&lt;/span&gt;&lt;span&gt;tagged&lt;/span&gt;&lt;span&gt; &quot;$tag&quot;&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;2&amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The default tag is the worktree&apos;s git directory, so each worktree&apos;s stack is separate. &lt;code&gt;start&lt;/code&gt; refusing a duplicate is what stops the six-copies problem. &lt;code&gt;stop&lt;/code&gt; finds orphans that a PID file would miss.&lt;/p&gt;
&lt;h3&gt;3. Wait for headroom before anything heavy&lt;/h3&gt;
&lt;p&gt;A small script that blocks until the machine has room. Save it as &lt;code&gt;~/.claude/bin/wait-for-headroom&lt;/code&gt;, make it executable, and run it before every test suite, Codex job, subagent, dev server or browser session:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;#!/bin/bash&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# Abridged from ~/.claude/bin/wait-for-headroom (header comment shortened).&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# Block until the machine has headroom for another heavy job. Exits 0 when clear, 1 on timeout.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;max&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;${1&lt;/span&gt;&lt;span&gt;:-&lt;/span&gt;&lt;span&gt;1800}; pct&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;${HEADROOM_LOAD_PCT&lt;/span&gt;&lt;span&gt;:-&lt;/span&gt;&lt;span&gt;60}; mem_gib&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;${HEADROOM_MEM_GIB&lt;/span&gt;&lt;span&gt;:-&lt;/span&gt;&lt;span&gt;12}&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;cores&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;nproc&lt;/span&gt;&lt;span&gt;); waited&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;while&lt;/span&gt;&lt;span&gt; :&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;do&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  load&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;cut&lt;/span&gt;&lt;span&gt; -d&lt;/span&gt;&lt;span&gt;&apos; &apos;&lt;/span&gt;&lt;span&gt; -f1&lt;/span&gt;&lt;span&gt; /proc/loadavg&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  avail_kib&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;awk&lt;/span&gt;&lt;span&gt; &apos;/MemAvailable/ {print $2}&apos;&lt;/span&gt;&lt;span&gt; /proc/meminfo&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  ok_load&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;awk&lt;/span&gt;&lt;span&gt; -v&lt;/span&gt;&lt;span&gt; l=&lt;/span&gt;&lt;span&gt;&quot;$load&quot;&lt;/span&gt;&lt;span&gt; -v&lt;/span&gt;&lt;span&gt; c=&lt;/span&gt;&lt;span&gt;&quot;$cores&quot;&lt;/span&gt;&lt;span&gt; -v&lt;/span&gt;&lt;span&gt; p=&lt;/span&gt;&lt;span&gt;&quot;$pct&quot;&lt;/span&gt;&lt;span&gt; &apos;BEGIN{print (l &amp;lt; c*p/100) ? 1 : 0}&apos;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  ok_mem&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(( &lt;/span&gt;&lt;span&gt;avail_kib&lt;/span&gt;&lt;span&gt; &amp;gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; mem_gib*1024*1024&lt;/span&gt;&lt;span&gt; ?&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;span&gt; :&lt;/span&gt;&lt;span&gt; 0&lt;/span&gt;&lt;span&gt; ))&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  if&lt;/span&gt;&lt;span&gt; [ &lt;/span&gt;&lt;span&gt;&quot;$ok_load&quot;&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;span&gt; ] &lt;/span&gt;&lt;span&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span&gt; [ &lt;/span&gt;&lt;span&gt;&quot;$ok_mem&quot;&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;span&gt; ]; &lt;/span&gt;&lt;span&gt;then&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    echo&lt;/span&gt;&lt;span&gt; &quot;headroom ok: load=$load/${cores} mem_avail=$((&lt;/span&gt;&lt;span&gt;avail_kib/1024/1024&lt;/span&gt;&lt;span&gt;))GiB&quot;&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;exit&lt;/span&gt;&lt;span&gt; 0&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  fi&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  [ &lt;/span&gt;&lt;span&gt;&quot;$waited&quot;&lt;/span&gt;&lt;span&gt; -ge&lt;/span&gt;&lt;span&gt; &quot;$max&quot;&lt;/span&gt;&lt;span&gt; ] &lt;/span&gt;&lt;span&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span&gt; { &lt;/span&gt;&lt;span&gt;echo&lt;/span&gt;&lt;span&gt; &quot;headroom TIMEOUT after ${waited}s: load=$load mem_avail=$((&lt;/span&gt;&lt;span&gt;avail_kib/1024/1024&lt;/span&gt;&lt;span&gt;))GiB&quot;&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;exit&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;span&gt;; }&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  echo&lt;/span&gt;&lt;span&gt; &quot;waiting for headroom: load=$load/${cores} mem_avail=$((&lt;/span&gt;&lt;span&gt;avail_kib/1024/1024&lt;/span&gt;&lt;span&gt;))GiB&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  sleep&lt;/span&gt;&lt;span&gt; 30&lt;/span&gt;&lt;span&gt;; waited&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$((&lt;/span&gt;&lt;span&gt;waited+30&lt;/span&gt;&lt;span&gt;))&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;done&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;It waits until the 1-minute load is under 60% of the cores and at least 12 GiB is available. It&apos;s crude, and it doesn&apos;t need to be clever: it only has to stop the tenth job from starting while nine are running.&lt;/p&gt;
&lt;h3&gt;4. Write the limits where every session reads them&lt;/h3&gt;
&lt;p&gt;The agents only follow rules they can see, so the limits go in the global &lt;code&gt;~/.claude/CLAUDE.md&lt;/code&gt;, which loads in every Claude Code session:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;## Machine load (this workstation)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;This machine (24 cores, 60 GiB) has crashed under parallel agent work. Before&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;starting anything heavy — a full test suite, a Codex run, a subagent, a dev&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;server, a browser session — run &lt;/span&gt;&lt;span&gt;`~/.claude/bin/wait-for-headroom`&lt;/span&gt;&lt;span&gt;. If it times&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;out, don&apos;t start the job: report and wait.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- At most &lt;/span&gt;&lt;span&gt;**one full test suite at a time**&lt;/span&gt;&lt;span&gt;. Never run suites for two&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  worktrees in parallel.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- At most &lt;/span&gt;&lt;span&gt;**two heavy background jobs**&lt;/span&gt;&lt;span&gt; at once (Codex runs, subagents and dev&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  servers all count). Queue the rest instead of fanning out.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- Stop dev servers and browser sessions as soon as their stage is done.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- Put the headroom check and these caps in every subagent prompt that starts&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  servers or runs suites. Subagents don&apos;t read this file&apos;s rules unless told.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;That&apos;s abridged. The last bullet matters most: a subagent starts with only its prompt, so a rule in &lt;code&gt;CLAUDE.md&lt;/code&gt; doesn&apos;t reach it unless you pass it on.&lt;/p&gt;
&lt;h3&gt;5. Clean up stale MCP and Codex processes&lt;/h3&gt;
&lt;p&gt;Before a browser session, check inotify use, and if it&apos;s near the limit, kill Playwright MCP and Codex app-server processes older than a day:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;ls&lt;/span&gt;&lt;span&gt; -l&lt;/span&gt;&lt;span&gt; /proc/*/fd&lt;/span&gt;&lt;span&gt; 2&amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;span&gt; |&lt;/span&gt;&lt;span&gt; grep&lt;/span&gt;&lt;span&gt; -c&lt;/span&gt;&lt;span&gt; anon_inode:inotify&lt;/span&gt;&lt;span&gt;   # in use&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;cat&lt;/span&gt;&lt;span&gt; /proc/sys/fs/inotify/max_user_instances&lt;/span&gt;&lt;span&gt;                  # limit&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;/usr/bin/ps&lt;/span&gt;&lt;span&gt; -eo&lt;/span&gt;&lt;span&gt; pid=,etimes=,cmd=&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  |&lt;/span&gt;&lt;span&gt; awk&lt;/span&gt;&lt;span&gt; &apos;$2 &amp;gt; 86400 &amp;amp;&amp;amp; /playwright-mcp|app-server-broker|codex app-server/ \&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;         &amp;amp;&amp;amp; !/app-server-daemon/ &amp;amp;&amp;amp; !/awk/ {print $1}&apos;&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  |&lt;/span&gt;&lt;span&gt; xargs&lt;/span&gt;&lt;span&gt; -r&lt;/span&gt;&lt;span&gt; kill&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Two catches. Kill a Codex broker together with its app-server: a broker left without one hangs every later Codex job. And a session that has itself been running for more than a day kills its own Playwright MCP this way, so it has to reconnect or switch to a CLI-driven browser. Raising &lt;code&gt;fs.inotify.max_user_instances&lt;/code&gt; with &lt;code&gt;sysctl&lt;/code&gt; also works, but cleaning up deals with the cause.&lt;/p&gt;
&lt;h2&gt;What I&apos;d do first on a new machine&lt;/h2&gt;
&lt;p&gt;Five steps. The first four prevent the crash; the last is for when it happens anyway.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Set &lt;code&gt;PYTEST_XDIST_AUTO_NUM_WORKERS&lt;/code&gt; (and the equivalent for any other parallel runner you use) machine-wide, before the first agent runs a suite.&lt;/li&gt;
&lt;li&gt;Put a headroom check and job caps in your global &lt;code&gt;CLAUDE.md&lt;/code&gt;, and tell it to pass them on to subagents.&lt;/li&gt;
&lt;li&gt;Make every process an agent starts stoppable by tag, not by PID.&lt;/li&gt;
&lt;li&gt;Leave &lt;code&gt;systemd-oomd&lt;/code&gt; on. Losing a terminal is better than losing the desktop.&lt;/li&gt;
&lt;li&gt;When it does go down, start with &lt;code&gt;journalctl -b -1&lt;/code&gt; (&lt;code&gt;-b 0&lt;/code&gt; if it didn&apos;t reboot) for oomd kills, then the kernel&apos;s OOM process table summed by name, then the per-unit memory peaks. Between them they tell you what, how many, and where.&lt;/li&gt;
&lt;/ol&gt;</content:encoded></item><item><title>Stop Babysitting Your Coding Agent: Autonomy Rules for Claude Code</title><link>https://blog.antosubash.com/posts/stop-babysitting-claude-code</link><guid isPermaLink="true">https://blog.antosubash.com/posts/stop-babysitting-claude-code</guid><description>Most of my hand-holding in Claude Code came from the agent stopping, not from the code. These global CLAUDE.md rules, and two skills, fixed that.</description><pubDate>Sat, 07 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://raw.githubusercontent.com/antosubash/images/main/assets/posts/ai-skills/stop-babysitting-claude-code/cover.png&quot; alt=&quot;Two runs compared: one stops five times to ask before reaching the PR, the other has a single approval and runs straight to the PR&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The workflow I want with Claude Code is simple: start a task, switch to something else, come back to a finished PR. In practice, the time I lost wasn&apos;t on reviewing code. It was on the agent &lt;strong&gt;stopping&lt;/strong&gt;. I saw the same pattern across weeks of my own sessions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Approving a design one section at a time — six turns for one billing spec.&lt;/li&gt;
&lt;li&gt;&quot;I can also update the tests if you want.&quot; → &quot;go ahead&quot;.&lt;/li&gt;
&lt;li&gt;&quot;Start the server and say &apos;go&apos; once it&apos;s up.&quot; → &quot;run it yourself&quot;.&lt;/li&gt;
&lt;li&gt;&quot;The build is running, let me know when it finishes.&quot; → &quot;is it done yet?&quot;&lt;/li&gt;
&lt;li&gt;Repos with nothing that told Claude how to start the app, so every session worked it out again, or asked.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;None of these are model failures. They&apos;re polite defaults. Checking in is safe when someone is watching. When you&apos;ve walked away, every check-in costs a full round trip, often an hour of nothing happening.&lt;/p&gt;
&lt;p&gt;So I wrote the defaults down the other way round.&lt;/p&gt;
&lt;h2&gt;The CLAUDE.md rules&lt;/h2&gt;
&lt;p&gt;This lives in &lt;code&gt;~/.claude/CLAUDE.md&lt;/code&gt;, which Claude Code loads into every session in every repo:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;# Working with me&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;I start work and then leave it alone. Every time you stop to ask something&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;you could have decided, or offer to do something instead of doing it,&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;I lose a round trip. Default to finishing.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;## Autonomy&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;**Do in-scope follow-ups. Don&apos;t offer them.**&lt;/span&gt;&lt;span&gt; If you find a bug, a missing&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  step, or an obvious next action that belongs to the current task, do it and&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  mention it in the summary. Don&apos;t end with &quot;I can do X if you want&quot; or&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  &quot;want me to…?&quot; for work that&apos;s clearly part of the job.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;**Run things yourself.**&lt;/span&gt;&lt;span&gt; Start servers, run migrations, run tests, open the&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  browser, read the logs. Only hand me a step that truly needs a human: &lt;/span&gt;&lt;span&gt;`sudo`&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  an interactive login, entering a secret, or a physical action. When you do,&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  give the exact command (prefixed with &lt;/span&gt;&lt;span&gt;`!`&lt;/span&gt;&lt;span&gt; so it runs in this session) and&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  continue as soon as it&apos;s done, without waiting for me to say &quot;go&quot;.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;**Wait for background work yourself.**&lt;/span&gt;&lt;span&gt; After starting a server, build,&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  deploy or job, watch it (Monitor, or a polling loop with a timeout) until&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  it&apos;s ready or has failed, then carry on or report. Never end a turn with&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  &quot;it&apos;s starting, let me know when it&apos;s up&quot;.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;**End a turn only when:**&lt;/span&gt;&lt;span&gt; the task is done and verified, or you&apos;re blocked&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  on something only I can provide. &quot;Making progress&quot; and &quot;here&apos;s a checkpoint&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  aren&apos;t reasons to stop.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;**Ask in one batch.**&lt;/span&gt;&lt;span&gt; If you need decisions from me, collect every open&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  question and ask them all at once, each with a recommended default.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  Don&apos;t ask one question per turn.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;**Pick sensible defaults.**&lt;/span&gt;&lt;span&gt; For choices with a conventional answer (naming,&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  file layout, library already used in the repo, test framework), decide and&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  note it. Ask only about decisions that change what gets built.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;## Design approval&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- Show a design &lt;/span&gt;&lt;span&gt;**in one piece**&lt;/span&gt;&lt;span&gt;: every section, every decision, and the&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  trade-offs you picked. Ask for &lt;/span&gt;&lt;span&gt;**one**&lt;/span&gt;&lt;span&gt; approval of the whole thing. Don&apos;t&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  present it section by section and stop after each one. This overrides the&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  section-by-section step in the superpowers brainstorming skill.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- My approval of the design also approves writing the spec and plan and&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  starting implementation. Only stop again if the implementation has to&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  depart from the approved design in a way that matters.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;## Ground rules that still apply&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- Never push to &lt;/span&gt;&lt;span&gt;`main`&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;`master`&lt;/span&gt;&lt;span&gt;, force-push, or merge PRs unless I ask.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  Work on a branch or worktree and open a PR.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- Never commit secrets (&lt;/span&gt;&lt;span&gt;`.env*`&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;`*.pem`&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;`credentials*`&lt;/span&gt;&lt;span&gt;).&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- Destructive or outward-facing actions (deleting data, dropping databases,&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  posting to external services, anything touching &lt;/span&gt;&lt;span&gt;`prod`&lt;/span&gt;&lt;span&gt;) still need my&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  confirmation.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- Report results honestly: if a test fails or a step was skipped, say so.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2&gt;Why it&apos;s worded this way&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;It starts with the cost, not the rule.&lt;/strong&gt; &quot;I lose a round trip&quot; gives the model a reason it can apply to cases the list doesn&apos;t cover. A bare &quot;don&apos;t ask questions&quot; gets you an agent that still asks, or one that guesses about things that matter.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&quot;In-scope&quot; is the important word.&lt;/strong&gt; &quot;Do follow-ups&quot; on its own leads to an agent refactoring half the repo. Tying it to the current task and requiring a mention in the summary keeps it reviewable.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The &lt;code&gt;!&lt;/code&gt; prefix closes the loop.&lt;/strong&gt; Some steps need me, usually &lt;code&gt;sudo&lt;/code&gt;. In Claude Code, a prompt starting with &lt;code&gt;!&lt;/code&gt; runs as a shell command in the session, and the output lands in the conversation. The agent gives me one line to paste, I paste it, and it carries on.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&quot;End a turn only when&quot; is the rule doing the most work.&lt;/strong&gt; The other rules say what to do. This one removes the excuse to stop. A checkpoint sounds helpful, but when no one is reading, it&apos;s a pause.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Questions come in one batch, each with a default.&lt;/strong&gt; Asking everything at once, with a recommended answer for each, turns five round trips into one. Often my answer is just &quot;defaults are fine&quot;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;One design approval.&lt;/strong&gt; The &lt;a href=&quot;https://github.com/obra/superpowers&quot;&gt;superpowers&lt;/a&gt; brainstorming skill (in its 6.x versions) presents a design section by section and waits after each one. That suits live pairing, not walking away. User instructions override skills, so naming the step it replaces stops the two from fighting. Approval also covers the plan and the start of implementation, so the next stop is the PR.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The safety rules stay.&lt;/strong&gt; More autonomy needs firmer limits, not looser ones. Inside them, the agent works on a branch, where nothing is final until I merge it.&lt;/p&gt;
&lt;h2&gt;Making &quot;run it yourself&quot; possible&lt;/h2&gt;
&lt;p&gt;A rule that says &quot;start the server&quot; doesn&apos;t help when the agent doesn&apos;t know how. Two skills fill that gap.&lt;/p&gt;
&lt;h3&gt;/runbook: write down how to launch the app, once&lt;/h3&gt;
&lt;p&gt;Every repo starts differently: Aspire, &lt;code&gt;docker compose&lt;/code&gt;, &lt;code&gt;uv run&lt;/code&gt;, three terminals with environment variables. Without notes, each session rediscovers it or asks me.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;/runbook&lt;/code&gt; writes a &lt;code&gt;running-the-stack&lt;/code&gt; skill into the repo. It records only commands it has &lt;strong&gt;actually run&lt;/strong&gt;, plus a readiness check (the URL or log line that means &quot;up&quot;), how to stop everything, and the gotchas it hit. It names env vars, not their values. The global &lt;code&gt;CLAUDE.md&lt;/code&gt; points at it:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;## Repo conventions&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- If a repo has a &lt;/span&gt;&lt;span&gt;`running-the-stack`&lt;/span&gt;&lt;span&gt; skill (or a launch section in its&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  CLAUDE.md), use it to start the app. If it doesn&apos;t and you&apos;ve just worked out how to run the app, run &lt;/span&gt;&lt;span&gt;`/runbook`&lt;/span&gt;&lt;span&gt; so&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  the next session doesn&apos;t have to work it out again.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The first session in a repo pays the cost; every later one reuses it.&lt;/p&gt;
&lt;h3&gt;/feature: one checkpoint from idea to PR&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;/feature&lt;/code&gt; takes an idea or a GitHub issue and runs the whole path:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Read the code, then ask &lt;strong&gt;one batch&lt;/strong&gt; of questions with defaults.&lt;/li&gt;
&lt;li&gt;Show the full design and wait for &lt;strong&gt;one&lt;/strong&gt; approval.&lt;/li&gt;
&lt;li&gt;Write the plan and implement it with subagents in a git worktree (a cheaper model for routine tasks, a stronger one for hard ones).&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;/ship&lt;/code&gt;: clean-up, code review, browser QA and local CI in a loop until a full pass finds nothing, then open one PR — the &lt;a href=&quot;https://blog.antosubash.com/posts/verify-feature-claude-code-skill&quot;&gt;verify-feature pipeline&lt;/a&gt; from my last post.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;It saves its progress on disk, so a long run survives the conversation being summarized and can resume where it stopped.&lt;/p&gt;
&lt;h2&gt;Did it work?&lt;/h2&gt;
&lt;p&gt;I counted my prompts that were only a nudge — &quot;yes&quot;, &quot;go ahead&quot;, &quot;continue&quot;, &quot;proceed&quot; — across about 500 sessions:&lt;/p&gt;
&lt;div&gt; &lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;Sessions&lt;/th&gt;&lt;th&gt;Prompts&lt;/th&gt;&lt;th&gt;Pure nudges&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Before the rules (late May – Oct 1)&lt;/td&gt;&lt;td&gt;433&lt;/td&gt;&lt;td&gt;3,335&lt;/td&gt;&lt;td&gt;3.9%&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;After the rules (Oct 2 – Nov 7)&lt;/td&gt;&lt;td&gt;82&lt;/td&gt;&lt;td&gt;698&lt;/td&gt;&lt;td&gt;2.7%&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt;
&lt;p&gt;That&apos;s a drop of about a third. It&apos;s not zero, and some of the remaining &quot;yes&quot; answers are the design approval I &lt;em&gt;want&lt;/em&gt; to give. The bigger change doesn&apos;t show in a count. When I come back, the work is either done or stopped on something only I can do: a &lt;code&gt;sudo&lt;/code&gt; line, a login, a decision that changes what gets built.&lt;/p&gt;
&lt;p&gt;What I&apos;d watch for if you copy this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Scope creep.&lt;/strong&gt; &quot;Do follow-ups&quot; works because of &quot;in-scope&quot; and &quot;mention it in the summary&quot;. Leave those out and you&apos;ll get surprise refactors.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Your machine.&lt;/strong&gt; An agent that runs things itself will start three dev servers, a browser and a test suite in parallel. Mine crashed my workstation that way.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Skills that disagree.&lt;/strong&gt; If a plugin skill has its own &quot;stop and ask&quot; step, name it in your rules. Otherwise the model has two instructions and picks one.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Setup&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Put the rules above in &lt;code&gt;~/.claude/CLAUDE.md&lt;/code&gt; (global) — or in a repo&apos;s &lt;code&gt;CLAUDE.md&lt;/code&gt; if you want them in one project only. Edit the ground rules to match your own red lines.&lt;/li&gt;
&lt;li&gt;Start a new session and run &lt;code&gt;/memory&lt;/code&gt; to confirm the file loads.&lt;/li&gt;
&lt;li&gt;Give it a task you&apos;d normally supervise, walk away, and see where it stops. Each place it stops without needing you is the next rule to write.&lt;/li&gt;
&lt;/ol&gt;</content:encoded></item><item><title>A worktree-aware tmux config with a live status bar</title><link>https://blog.antosubash.com/posts/tmux-worktree-aware-config</link><guid isPermaLink="true">https://blog.antosubash.com/posts/tmux-worktree-aware-config</guid><description>Tmux bindings for git worktree windows (prefix+g, prefix+G), a force-remove kill that handles orphan directories (prefix+X), and a /proc-backed status bar.</description><pubDate>Wed, 20 May 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;A tmux setup for working in git worktrees: bindings to spawn, open, and tear down worktree windows, plus a status bar with live system stats. Everything is plain POSIX shell — no plugins beyond &lt;code&gt;resurrect&lt;/code&gt;/&lt;code&gt;continuum&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;Why&lt;/h2&gt;
&lt;p&gt;Switching branches with &lt;code&gt;git checkout&lt;/code&gt; rewrites the working tree under your feet. Open files in another pane suddenly belong to a different branch, your dev server is serving the wrong code, and the diff you were reviewing has moved. Worktrees give each branch its own directory; the bindings below make spawning and tearing them down a single keypress, so the overhead doesn&apos;t beat the benefit.&lt;/p&gt;
&lt;p&gt;The default status bar shows session name and clock. Load, memory, network rate, and whether your runaway Claude process is still chewing CPU are not there. A 5-second refresh of &lt;code&gt;/proc&lt;/code&gt; covers all of it in one line.&lt;/p&gt;
&lt;h2&gt;Getting started&lt;/h2&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; clone&lt;/span&gt;&lt;span&gt; https://github.com/antosubash/dotfiles&lt;/span&gt;&lt;span&gt; ~/dotfiles&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;ln&lt;/span&gt;&lt;span&gt; -sf&lt;/span&gt;&lt;span&gt; ~/dotfiles/tmux/.tmux.conf&lt;/span&gt;&lt;span&gt; ~/.tmux.conf&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; clone&lt;/span&gt;&lt;span&gt; https://github.com/tmux-plugins/tpm&lt;/span&gt;&lt;span&gt; ~/.tmux/plugins/tpm&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;tmux&lt;/span&gt;&lt;span&gt; source-file&lt;/span&gt;&lt;span&gt; ~/.tmux.conf&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# Inside tmux: prefix + I  (installs the plugins listed in the config)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Then in any git repo:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;prefix + g&lt;/code&gt; — type a branch, opens a window in &lt;code&gt;&amp;lt;repo&amp;gt;/.worktrees/&amp;lt;branch&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;prefix + G&lt;/code&gt; — type a PR number, opens a window in &lt;code&gt;&amp;lt;repo&amp;gt;/.worktrees/pr-&amp;lt;num&amp;gt;-&amp;lt;head&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;prefix + X&lt;/code&gt; — force-remove the worktree and close the window&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The rest of this post is what each piece does and why.&lt;/p&gt;
&lt;h2&gt;Overview&lt;/h2&gt;
&lt;p&gt;Three tmux bindings plus a status bar fed by two shell scripts. Full config in &lt;a href=&quot;https://github.com/antosubash/dotfiles&quot;&gt;antosubash/dotfiles&lt;/a&gt;.&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;~/dotfiles/&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;├── tmux/.tmux.conf&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;└── scripts/&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    ├── tmux-worktree-window.sh    # prefix+g, prefix+G&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    ├── tmux-worktree-kill.sh      # prefix+X&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    ├── tmux-resource-usage.sh     # status-right system stats&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    └── tmux-worktree-count.sh     # status-right worktree count&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The convention is &lt;strong&gt;one main checkout, every other branch under &lt;code&gt;&amp;lt;main&amp;gt;/.worktrees/&amp;lt;name&amp;gt;&lt;/code&gt;&lt;/strong&gt;. From inside any worktree, &lt;code&gt;git rev-parse --git-common-dir&lt;/code&gt; gives &lt;code&gt;&amp;lt;main&amp;gt;/.git&lt;/code&gt;; its parent is the main checkout.&lt;/p&gt;
&lt;h2&gt;Worktree window: prefix + g&lt;/h2&gt;
&lt;p&gt;Bind the key:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;bind g run-shell &quot;~/dotfiles/scripts/tmux-worktree-window.sh prompt &apos;#{pane_current_path}&apos;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The script prompts for a branch and resolves it in priority order: reuse existing dir, check out local branch, create tracking branch from &lt;code&gt;origin&lt;/code&gt;, or create a brand-new branch.&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; [ &lt;/span&gt;&lt;span&gt;-d&lt;/span&gt;&lt;span&gt; &quot;$worktree_path&quot;&lt;/span&gt;&lt;span&gt; ]; &lt;/span&gt;&lt;span&gt;then&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    return&lt;/span&gt;&lt;span&gt; 0&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;elif&lt;/span&gt;&lt;span&gt; git&lt;/span&gt;&lt;span&gt; -C&lt;/span&gt;&lt;span&gt; &quot;$repo_path&quot;&lt;/span&gt;&lt;span&gt; show-ref&lt;/span&gt;&lt;span&gt; --verify&lt;/span&gt;&lt;span&gt; --quiet&lt;/span&gt;&lt;span&gt; &quot;refs/heads/$branch&quot;&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;then&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    git&lt;/span&gt;&lt;span&gt; -C&lt;/span&gt;&lt;span&gt; &quot;$repo_path&quot;&lt;/span&gt;&lt;span&gt; worktree&lt;/span&gt;&lt;span&gt; add&lt;/span&gt;&lt;span&gt; &quot;$worktree_path&quot;&lt;/span&gt;&lt;span&gt; &quot;$branch&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;elif&lt;/span&gt;&lt;span&gt; git&lt;/span&gt;&lt;span&gt; -C&lt;/span&gt;&lt;span&gt; &quot;$repo_path&quot;&lt;/span&gt;&lt;span&gt; show-ref&lt;/span&gt;&lt;span&gt; --verify&lt;/span&gt;&lt;span&gt; --quiet&lt;/span&gt;&lt;span&gt; &quot;refs/remotes/origin/$branch&quot;&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;then&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    git&lt;/span&gt;&lt;span&gt; -C&lt;/span&gt;&lt;span&gt; &quot;$repo_path&quot;&lt;/span&gt;&lt;span&gt; worktree&lt;/span&gt;&lt;span&gt; add&lt;/span&gt;&lt;span&gt; -b&lt;/span&gt;&lt;span&gt; &quot;$branch&quot;&lt;/span&gt;&lt;span&gt; &quot;$worktree_path&quot;&lt;/span&gt;&lt;span&gt; &quot;origin/$branch&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;else&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    git&lt;/span&gt;&lt;span&gt; -C&lt;/span&gt;&lt;span&gt; &quot;$repo_path&quot;&lt;/span&gt;&lt;span&gt; worktree&lt;/span&gt;&lt;span&gt; add&lt;/span&gt;&lt;span&gt; -b&lt;/span&gt;&lt;span&gt; &quot;$branch&quot;&lt;/span&gt;&lt;span&gt; &quot;$worktree_path&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;fi&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Open the window:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;tmux&lt;/span&gt;&lt;span&gt; new-window&lt;/span&gt;&lt;span&gt; -n&lt;/span&gt;&lt;span&gt; &quot;$sanitized&quot;&lt;/span&gt;&lt;span&gt; -c&lt;/span&gt;&lt;span&gt; &quot;$worktree_path&quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2&gt;PR window: prefix + G&lt;/h2&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;bind G run-shell &quot;~/dotfiles/scripts/tmux-worktree-window.sh prompt-pr &apos;#{pane_current_path}&apos;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Prompts for a PR number, fetches its head via &lt;code&gt;gh&lt;/code&gt;, opens a window in &lt;code&gt;&amp;lt;repo&amp;gt;/.worktrees/pr-&amp;lt;num&amp;gt;-&amp;lt;head&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; -C&lt;/span&gt;&lt;span&gt; &quot;$repo_path&quot;&lt;/span&gt;&lt;span&gt; fetch&lt;/span&gt;&lt;span&gt; origin&lt;/span&gt;&lt;span&gt; &quot;refs/pull/$pr_num/head:refs/heads/$branch&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; -C&lt;/span&gt;&lt;span&gt; &quot;$repo_path&quot;&lt;/span&gt;&lt;span&gt; worktree&lt;/span&gt;&lt;span&gt; add&lt;/span&gt;&lt;span&gt; &quot;$worktree_path&quot;&lt;/span&gt;&lt;span&gt; &quot;$branch&quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2&gt;Worktree-aware kill: prefix + X&lt;/h2&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;bind X run-shell &quot;~/dotfiles/scripts/tmux-worktree-kill.sh prompt &apos;#{pane_current_path}&apos; &apos;#{window_id}&apos;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;If the window&apos;s cwd is a registered worktree, prompt and on &lt;code&gt;y&lt;/code&gt; run &lt;code&gt;git worktree remove --force&lt;/code&gt; + &lt;code&gt;tmux kill-window&lt;/code&gt;. Otherwise fall back to a plain &lt;code&gt;kill-window&lt;/code&gt; confirm.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;--force&lt;/code&gt; is non-negotiable. Without it, dirty worktrees refuse to remove and the binding silently becomes a lie.&lt;/p&gt;
&lt;h3&gt;Orphan directories&lt;/h3&gt;
&lt;p&gt;A worktree dir whose &lt;code&gt;.git/worktrees/&amp;lt;name&amp;gt;&lt;/code&gt; metadata has been pruned no longer looks like a worktree to git, so it would slip through the detection above. Detect it from the path convention instead:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;orphan_worktree_paths&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    p&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;$1&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    case&lt;/span&gt;&lt;span&gt; &quot;$p&quot;&lt;/span&gt;&lt;span&gt; in&lt;/span&gt;&lt;span&gt; *&lt;/span&gt;&lt;span&gt;/.worktrees/&lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; ;; &lt;/span&gt;&lt;span&gt;*)&lt;/span&gt;&lt;span&gt; return&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;span&gt; ;; &lt;/span&gt;&lt;span&gt;esac&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    main&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;${p&lt;/span&gt;&lt;span&gt;%/&lt;/span&gt;&lt;span&gt;.worktrees&lt;/span&gt;&lt;span&gt;/*&lt;/span&gt;&lt;span&gt;}&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    name&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;${p&lt;/span&gt;&lt;span&gt;#&lt;/span&gt;&lt;span&gt;&quot;$main&quot;&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;.worktrees&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;}&quot;&lt;/span&gt;&lt;span&gt;; name&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;${name&lt;/span&gt;&lt;span&gt;%%/*&lt;/span&gt;&lt;span&gt;}&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    [ &lt;/span&gt;&lt;span&gt;-n&lt;/span&gt;&lt;span&gt; &quot;$name&quot;&lt;/span&gt;&lt;span&gt; ] &lt;/span&gt;&lt;span&gt;||&lt;/span&gt;&lt;span&gt; return&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    git&lt;/span&gt;&lt;span&gt; -C&lt;/span&gt;&lt;span&gt; &quot;$main&quot;&lt;/span&gt;&lt;span&gt; rev-parse&lt;/span&gt;&lt;span&gt; --is-inside-work-tree&lt;/span&gt;&lt;span&gt; &amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;span&gt; 2&amp;gt;&amp;amp;1&lt;/span&gt;&lt;span&gt; ||&lt;/span&gt;&lt;span&gt; return&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    printf&lt;/span&gt;&lt;span&gt; &apos;%s %s\n&apos;&lt;/span&gt;&lt;span&gt; &quot;$main&quot;&lt;/span&gt;&lt;span&gt; &quot;$main/.worktrees/$name&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Remove tries git first, falls back to &lt;code&gt;rm -rf&lt;/code&gt; if the directory survives:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; -C&lt;/span&gt;&lt;span&gt; &quot;$main_top&quot;&lt;/span&gt;&lt;span&gt; worktree&lt;/span&gt;&lt;span&gt; remove&lt;/span&gt;&lt;span&gt; --force&lt;/span&gt;&lt;span&gt; &quot;$worktree_path&quot;&lt;/span&gt;&lt;span&gt; 2&amp;gt;&amp;amp;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; [ &lt;/span&gt;&lt;span&gt;-e&lt;/span&gt;&lt;span&gt; &quot;$worktree_path&quot;&lt;/span&gt;&lt;span&gt; ]; &lt;/span&gt;&lt;span&gt;then&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    rm&lt;/span&gt;&lt;span&gt; -rf&lt;/span&gt;&lt;span&gt; --&lt;/span&gt;&lt;span&gt; &quot;$worktree_path&quot;&lt;/span&gt;&lt;span&gt; ||&lt;/span&gt;&lt;span&gt; { &lt;/span&gt;&lt;span&gt;tmux&lt;/span&gt;&lt;span&gt; display-message&lt;/span&gt;&lt;span&gt; &quot;remove failed: $err&quot;&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;return&lt;/span&gt;&lt;span&gt;; }&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    git&lt;/span&gt;&lt;span&gt; -C&lt;/span&gt;&lt;span&gt; &quot;$main_top&quot;&lt;/span&gt;&lt;span&gt; worktree&lt;/span&gt;&lt;span&gt; prune&lt;/span&gt;&lt;span&gt; &amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;span&gt; 2&amp;gt;&amp;amp;1&lt;/span&gt;&lt;span&gt; ||&lt;/span&gt;&lt;span&gt; true&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;fi&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;tmux&lt;/span&gt;&lt;span&gt; kill-window&lt;/span&gt;&lt;span&gt; -t&lt;/span&gt;&lt;span&gt; &quot;$window_id&quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2&gt;Status bar&lt;/h2&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;set -g status-interval 5&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;set -g status-right &quot;#[fg=colour215]#(~/dotfiles/scripts/tmux-resource-usage.sh) #(~/dotfiles/scripts/tmux-worktree-count.sh &apos;#{pane_current_path}&apos;)w:#{session_windows} #[fg=colour245]%Y-%m-%d %H:%M #[fg=colour39,bold]#H &quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Rendered:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;[system]   1:zsh  2:nvim  3:claude       CPU 7% MEM 12.3/31.2G / 64% ↓120K↑12K T 48° L 1.42 cc:2 up 3d wt:3 w:5 2026-05-20 14:32 work-laptop&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h3&gt;tmux-resource-usage.sh&lt;/h3&gt;
&lt;p&gt;Reads &lt;code&gt;/proc&lt;/code&gt; directly. Previous samples are persisted to a &lt;code&gt;$USER&lt;/code&gt;-keyed state file so CPU% and network rate can be calculated as deltas. CPU uses &lt;code&gt;(busy_delta / total_delta) * 100&lt;/code&gt; — the naive &quot;100 − idle%&quot; drifts under iowait/steal. The rate denominator is &lt;code&gt;/proc/uptime&lt;/code&gt;, monotonic and immune to wall-clock skew. Memory reads &lt;code&gt;MemAvailable&lt;/code&gt;, not &lt;code&gt;MemFree&lt;/code&gt; (otherwise a healthy box looks seconds from OOM because of page-cache use).&lt;/p&gt;
&lt;p&gt;Conditional pieces: &lt;code&gt;T &amp;lt;temp&amp;gt;°&lt;/code&gt; only if &lt;code&gt;/sys/class/thermal/thermal_zone0/temp&lt;/code&gt; is readable; &lt;code&gt;cc:N&lt;/code&gt; only when &lt;code&gt;pgrep -c claude&lt;/code&gt; is non-zero. They disappear cleanly when absent.&lt;/p&gt;
&lt;h3&gt;tmux-worktree-count.sh&lt;/h3&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;common&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; -C&lt;/span&gt;&lt;span&gt; &quot;${1&lt;/span&gt;&lt;span&gt;:-&lt;/span&gt;&lt;span&gt;$PWD}&quot;&lt;/span&gt;&lt;span&gt; rev-parse&lt;/span&gt;&lt;span&gt; --git-common-dir&lt;/span&gt;&lt;span&gt; 2&amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;||&lt;/span&gt;&lt;span&gt; exit&lt;/span&gt;&lt;span&gt; 0&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;n&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;[ &lt;/span&gt;&lt;span&gt;-d&lt;/span&gt;&lt;span&gt; &quot;$common/worktrees&quot;&lt;/span&gt;&lt;span&gt; ] &lt;/span&gt;&lt;span&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span&gt; for&lt;/span&gt;&lt;span&gt; e &lt;/span&gt;&lt;span&gt;in&lt;/span&gt;&lt;span&gt; &quot;$common/worktrees&quot;&lt;/span&gt;&lt;span&gt;/*/&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;do&lt;/span&gt;&lt;span&gt; [ &lt;/span&gt;&lt;span&gt;-e&lt;/span&gt;&lt;span&gt; &quot;$e&quot;&lt;/span&gt;&lt;span&gt; ] &lt;/span&gt;&lt;span&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span&gt; n&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$((&lt;/span&gt;&lt;span&gt;n+1&lt;/span&gt;&lt;span&gt;)); &lt;/span&gt;&lt;span&gt;done&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;[ &lt;/span&gt;&lt;span&gt;&quot;$n&quot;&lt;/span&gt;&lt;span&gt; -gt&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;span&gt; ] &lt;/span&gt;&lt;span&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span&gt; printf&lt;/span&gt;&lt;span&gt; &apos;wt:%d &apos;&lt;/span&gt;&lt;span&gt; &quot;$n&quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Counts entries under &lt;code&gt;&amp;lt;common&amp;gt;/worktrees/&lt;/code&gt; directly — &lt;code&gt;git worktree list&lt;/code&gt; would re-read every linked HEAD on each refresh. Silent when only the main checkout is present.&lt;/p&gt;
&lt;h2&gt;Reload and persistence&lt;/h2&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;bind r source-file ~/.tmux.conf \; display-message &quot;tmux.conf reloaded&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;set -g @plugin &apos;tmux-plugins/tmux-resurrect&apos;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;set -g @plugin &apos;tmux-plugins/tmux-continuum&apos;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;set -g @resurrect-capture-pane-contents &apos;on&apos;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;set -g @continuum-restore &apos;on&apos;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;code&gt;prefix + r&lt;/code&gt; reloads. The &lt;code&gt;X&lt;/code&gt; binding is wired to a script &lt;em&gt;path&lt;/em&gt;, so editing the script never needs a reload. tmux-resurrect + tmux-continuum together survive a reboot — same sessions, windows, panes, and scrollback after power-off.&lt;/p&gt;
&lt;h2&gt;Wrap up&lt;/h2&gt;
&lt;p&gt;About a hundred lines of &lt;code&gt;tmux.conf&lt;/code&gt; and a few short shell scripts turn tmux into a worktree-native editor for branches: &lt;code&gt;prefix + g&lt;/code&gt; to spawn, &lt;code&gt;prefix + G&lt;/code&gt; to grab a PR, &lt;code&gt;prefix + X&lt;/code&gt; to clean up — including the orphan-directory state that quietly defeats the naive version. The status bar gets a 5-second view into CPU, memory, network, temperature, load, claude processes, and the current repo&apos;s worktree count, all from &lt;code&gt;/proc&lt;/code&gt; with no external tools.&lt;/p&gt;
&lt;p&gt;The whole setup is in &lt;a href=&quot;https://github.com/antosubash/dotfiles&quot;&gt;antosubash/dotfiles&lt;/a&gt; — clone it as-is or lift the pieces you want. The scripts only depend on &lt;code&gt;git rev-parse --git-common-dir&lt;/code&gt;, so the &lt;code&gt;&amp;lt;repo&amp;gt;/.worktrees/&amp;lt;name&amp;gt;&lt;/code&gt; convention is the easiest thing to change if you&apos;d rather have worktrees sibling to the main checkout.&lt;/p&gt;</content:encoded></item><item><title>A Claude Code Skill for Verifying a Feature End-to-End Before Opening a PR</title><link>https://blog.antosubash.com/posts/verify-feature-claude-code-skill</link><guid isPermaLink="true">https://blog.antosubash.com/posts/verify-feature-claude-code-skill</guid><description>How to encode a gated &quot;prove it works, then PR it&quot; pipeline as a Claude Code skill — start the app, drive the feature in a real browser, run local CI, and only then push the branch and open the pull request.</description><pubDate>Mon, 11 May 2026 00:00:00 GMT</pubDate><content:encoded>&lt;h2&gt;The gap between &quot;it compiles&quot; and &quot;it works&quot;&lt;/h2&gt;
&lt;p&gt;Most teams already have a local CI checklist: formatter, build, unit tests, maybe an integration suite. What that checklist usually does &lt;em&gt;not&lt;/em&gt; answer is the question every reviewer silently asks: &lt;strong&gt;did you actually open the app and use the feature?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;When an AI agent writes the code, the gap widens. The diff looks reasonable, the build is green, and pushing without trying it is one keystroke away. A few weeks of that and your PRs start carrying a quiet tax — small regressions, missing wiring, console errors no one sees until staging.&lt;/p&gt;
&lt;p&gt;A Claude Code &lt;a href=&quot;https://docs.claude.com/en/docs/claude-code/skills&quot;&gt;skill&lt;/a&gt; is a good place to encode the discipline you&apos;d apply yourself. This post walks through a &lt;code&gt;verify-feature&lt;/code&gt; skill that runs a gated pipeline — boot the app, drive the feature in a browser, run local CI, then (and only then) open the PR. Each stage must pass before the next runs; if any fails, the skill stops and reports.&lt;/p&gt;
&lt;p&gt;The reference implementation lives at &lt;a href=&quot;https://github.com/antosubash/SimpleModule/blob/main/.claude/skills/verify-feature/SKILL.md&quot;&gt;SimpleModule/.claude/skills/verify-feature/SKILL.md&lt;/a&gt;. The version below is generalized for any web stack, and there&apos;s a &lt;a href=&quot;https://blog.antosubash.com/posts/verify-feature-claude-code-skill#setup-for-ai-agents&quot;&gt;setup section at the end&lt;/a&gt; with the full SKILL.md files ready to drop in — including for an agent you&apos;ve handed this URL to.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Update (May 2026):&lt;/strong&gt; The same workflow now ships as a user-level &lt;a href=&quot;https://blog.antosubash.com/posts/verify-feature-claude-code-skill#from-skill-to-slash-command&quot;&gt;&lt;code&gt;/vf&lt;/code&gt; slash command&lt;/a&gt; that auto-detects the stack (JS/TS, Python, .NET), so you don&apos;t have to author or customize a SKILL.md per repo. The skill below is still the right read for &lt;em&gt;understanding&lt;/em&gt; the pipeline — the slash command at the end is the right thing to &lt;em&gt;install&lt;/em&gt; if you want it everywhere by default.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;The shape of the skill&lt;/h2&gt;
&lt;p&gt;A skill is just a Markdown file under &lt;code&gt;.claude/skills/&amp;lt;name&amp;gt;/SKILL.md&lt;/code&gt; with a small frontmatter block. The frontmatter is what Claude reads to decide when to invoke it.&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;---&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt; verify-feature&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;description&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt; End-to-end verification of a feature implementation before opening a PR.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  Starts the dev server, drives the feature in a real browser, runs every local CI&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  step, and only then opens a pull request. Use when the user asks to &quot;verify the&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  feature&quot;, &quot;test and ship&quot;, &quot;run e2e + CI + PR&quot;, or any variation that means&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  &quot;prove it works, then PR it&quot;&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;allowed-tools&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt; Bash, Read, Edit, Write&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;---&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Two things matter here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The description is a trigger.&lt;/strong&gt; Claude matches the user&apos;s intent against this text, so list the phrases you actually say out loud. &quot;Test and ship&quot;, &quot;verify and PR&quot;, &quot;run the full check&quot; — whatever your team&apos;s shorthand is.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;allowed-tools&lt;/code&gt; is a safety rail.&lt;/strong&gt; This skill writes files, runs shell commands, and pushes to a remote. It does not need network fetches or notebook editing. Keep the list tight. If you want to be stricter still, scope &lt;code&gt;Bash&lt;/code&gt; to specific binaries (e.g. &lt;code&gt;Bash(playwright-cli:*)&lt;/code&gt;, &lt;code&gt;Bash(gh:*)&lt;/code&gt;) — Claude Code&apos;s permission syntax supports per-command allowlists.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The body of the file is the playbook. Claude reads it top-to-bottom each time the skill runs.&lt;/p&gt;
&lt;h2&gt;The pipeline, stage by stage&lt;/h2&gt;
&lt;h3&gt;Stage 0 — Prepare the branch&lt;/h3&gt;
&lt;p&gt;Before any code runs, get the branch into a state where the rest of the pipeline can succeed. Three things must be true:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;You&apos;re not on &lt;code&gt;main&lt;/code&gt;,&lt;/strong&gt; and the tools the skill needs are installed and authenticated.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Every file you mean to ship is committed.&lt;/strong&gt; Otherwise the PR at the end is missing files, and stage 4&apos;s &quot;production build&quot; tells you nothing about the version you actually meant to ship.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The branch isn&apos;t lagging &lt;code&gt;main&lt;/code&gt;.&lt;/strong&gt; A branch that hasn&apos;t seen recent upstream commits builds locally, then breaks the moment it lands.&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;# 1. Pre-flight&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;[ &lt;/span&gt;&lt;span&gt;&quot;$(&lt;/span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; rev-parse&lt;/span&gt;&lt;span&gt; --abbrev-ref&lt;/span&gt;&lt;span&gt; HEAD&lt;/span&gt;&lt;span&gt;)&quot;&lt;/span&gt;&lt;span&gt; !=&lt;/span&gt;&lt;span&gt; &quot;main&quot;&lt;/span&gt;&lt;span&gt; ] &lt;/span&gt;&lt;span&gt;||&lt;/span&gt;&lt;span&gt; { &lt;/span&gt;&lt;span&gt;echo&lt;/span&gt;&lt;span&gt; &quot;On main; abort&quot;&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;exit&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;span&gt;; }&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;for&lt;/span&gt;&lt;span&gt; cmd &lt;/span&gt;&lt;span&gt;in&lt;/span&gt;&lt;span&gt; gh&lt;/span&gt;&lt;span&gt; playwright-cli&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;do&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  command&lt;/span&gt;&lt;span&gt; -v&lt;/span&gt;&lt;span&gt; $cmd &lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;span&gt; 2&amp;gt;&amp;amp;1&lt;/span&gt;&lt;span&gt; ||&lt;/span&gt;&lt;span&gt; { &lt;/span&gt;&lt;span&gt;echo&lt;/span&gt;&lt;span&gt; &quot;$cmd not found&quot;&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;exit&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;span&gt;; }&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;done&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;gh&lt;/span&gt;&lt;span&gt; auth&lt;/span&gt;&lt;span&gt; status&lt;/span&gt;&lt;span&gt; &amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;span&gt; 2&amp;gt;&amp;amp;1&lt;/span&gt;&lt;span&gt; ||&lt;/span&gt;&lt;span&gt; { &lt;/span&gt;&lt;span&gt;echo&lt;/span&gt;&lt;span&gt; &quot;gh not authenticated — run &apos;gh auth login&apos;&quot;&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;exit&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;span&gt;; }&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# 2. Commit pending changes&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; [ &lt;/span&gt;&lt;span&gt;-n&lt;/span&gt;&lt;span&gt; &quot;$(&lt;/span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; status&lt;/span&gt;&lt;span&gt; --porcelain&lt;/span&gt;&lt;span&gt;)&quot;&lt;/span&gt;&lt;span&gt; ]; &lt;/span&gt;&lt;span&gt;then&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  git&lt;/span&gt;&lt;span&gt; add&lt;/span&gt;&lt;span&gt; -A&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  git&lt;/span&gt;&lt;span&gt; commit&lt;/span&gt;&lt;span&gt; -m&lt;/span&gt;&lt;span&gt; &quot;&amp;lt;message inferred from the diff&amp;gt;&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;fi&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# 3. Sync with main by rebasing on top of it&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; fetch&lt;/span&gt;&lt;span&gt; origin&lt;/span&gt;&lt;span&gt; main&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; rebase&lt;/span&gt;&lt;span&gt; origin/main&lt;/span&gt;&lt;span&gt; ||&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  git&lt;/span&gt;&lt;span&gt; rebase&lt;/span&gt;&lt;span&gt; --abort&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  echo&lt;/span&gt;&lt;span&gt; &quot;Rebase onto main hit conflicts; resolve manually and re-run&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  exit&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;A few things to keep honest:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Inspect before committing.&lt;/strong&gt; Run &lt;code&gt;git status&lt;/code&gt; and &lt;code&gt;git diff&lt;/code&gt; first (the index is still empty at this point, so &lt;code&gt;git diff --cached&lt;/code&gt; would show nothing). If the working tree contains files that obviously shouldn&apos;t ship (&lt;code&gt;.env&lt;/code&gt;, scratch notes, large binaries), stop and ask the user — don&apos;t commit them just to keep the pipeline moving.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;One commit, descriptive message.&lt;/strong&gt; Squash the pending changes into a single commit whose message follows the repo&apos;s existing style (read &lt;code&gt;git log&lt;/code&gt; first).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Rebase, then abort on conflict.&lt;/strong&gt; Replaying the branch&apos;s commits on top of main keeps history linear and surfaces drift immediately. If the rebase hits conflicts, &lt;code&gt;git rebase --abort&lt;/code&gt; puts things back; the skill stops and asks the user to resolve. Letting an agent auto-resolve merge conflicts is a classic way to lose work. Teams that prefer merge commits can swap &lt;code&gt;git rebase origin/main&lt;/code&gt; for &lt;code&gt;git merge origin/main&lt;/code&gt; — the conflict-stop rule applies either way.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Never amend.&lt;/strong&gt; If commits already exist on the branch, create a new one on top — amending rewrites history that may already be pushed.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If the working tree is clean and the branch is already up-to-date with &lt;code&gt;main&lt;/code&gt;, the only real work this stage does is the preflight check — the rest is a no-op.&lt;/p&gt;
&lt;h3&gt;Stage 1 — Start the application&lt;/h3&gt;
&lt;p&gt;Before the feature can be exercised, the dev server has to be up. Two things tend to go wrong:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The port is already held by a stale process from a previous run.&lt;/li&gt;
&lt;li&gt;The server takes longer than the skill expects to become ready, and the next stage races it.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Both are easy to handle in shell — adjust the port for your stack:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;# Free the port if something is bound to it.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;PORT&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;3000&lt;/span&gt;&lt;span&gt;  # or 5001, 8000, whatever your app uses&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;PORT_PIDS&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;lsof&lt;/span&gt;&lt;span&gt; -ti&lt;/span&gt;&lt;span&gt; tcp:&lt;/span&gt;&lt;span&gt;$PORT &lt;/span&gt;&lt;span&gt;2&amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;span&gt; ||&lt;/span&gt;&lt;span&gt; true&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; [ &lt;/span&gt;&lt;span&gt;-n&lt;/span&gt;&lt;span&gt; &quot;$PORT_PIDS&quot;&lt;/span&gt;&lt;span&gt; ]; &lt;/span&gt;&lt;span&gt;then&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  echo&lt;/span&gt;&lt;span&gt; &quot;Port $PORT occupied by PID(s): $PORT_PIDS — killing&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  kill&lt;/span&gt;&lt;span&gt; -9&lt;/span&gt;&lt;span&gt; $PORT_PIDS&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  sleep&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;fi&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# Start the server in the background.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;npm&lt;/span&gt;&lt;span&gt; run&lt;/span&gt;&lt;span&gt; dev&lt;/span&gt;&lt;span&gt;   # or: dotnet run --project ./src/Web&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;              #     uv run uvicorn app:app&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;              #     bundle exec rails s&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The skill instructs Claude to invoke the long-running command with &lt;code&gt;run_in_background: true&lt;/code&gt; and to keep the shell ID, so it can stop the server cleanly later.&lt;/p&gt;
&lt;p&gt;Then poll for readiness instead of sleeping a fixed amount of time. The loop below caps the wait at 90 seconds (45 iterations × 2s):&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;for&lt;/span&gt;&lt;span&gt; i &lt;/span&gt;&lt;span&gt;in&lt;/span&gt;&lt;span&gt; $(&lt;/span&gt;&lt;span&gt;seq&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;span&gt; 45&lt;/span&gt;&lt;span&gt;); &lt;/span&gt;&lt;span&gt;do&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  # Drop -k if your dev server uses plain HTTP; keep it for self-signed HTTPS.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  if&lt;/span&gt;&lt;span&gt; curl&lt;/span&gt;&lt;span&gt; -s&lt;/span&gt;&lt;span&gt; -o&lt;/span&gt;&lt;span&gt; /dev/null&lt;/span&gt;&lt;span&gt; -w&lt;/span&gt;&lt;span&gt; &quot;%{http_code}&quot;&lt;/span&gt;&lt;span&gt; http://localhost:&lt;/span&gt;&lt;span&gt;$PORT&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;      |&lt;/span&gt;&lt;span&gt; grep&lt;/span&gt;&lt;span&gt; -qE&lt;/span&gt;&lt;span&gt; &apos;^(200|302|401)$&apos;&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;then&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    echo&lt;/span&gt;&lt;span&gt; &quot;App is up&quot;&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;break&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  fi&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  sleep&lt;/span&gt;&lt;span&gt; 2&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;done&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;If readiness times out, the skill reads the background shell&apos;s output, surfaces the error, and exits. No point continuing to the browser test if the app never started.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;A note on killing processes.&lt;/strong&gt; Blindly &lt;code&gt;kill -9&lt;/code&gt;ing whatever holds a port is fine on a dev machine you control — it is not fine on a shared box or CI runner. The skill is told to confirm with the user before killing an unfamiliar process.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;Stage 2 — Exercise the feature in a real browser&lt;/h3&gt;
&lt;p&gt;This is the stage that catches what CI doesn&apos;t: missing wiring, broken navigation, a button that 500s on click, a form that silently fails validation. The point is not to write a comprehensive end-to-end test — that&apos;s what your e2e suite is for. The point is to &lt;strong&gt;prove this specific feature works&lt;/strong&gt; before asking a human to review it.&lt;/p&gt;
&lt;p&gt;The skill drives the browser through &lt;a href=&quot;https://www.npmjs.com/package/@playwright/cli&quot;&gt;&lt;code&gt;playwright-cli&lt;/code&gt;&lt;/a&gt;, a shell wrapper around Playwright. Every step is a bash command, which is what makes it work well from a skill.&lt;/p&gt;
&lt;p&gt;Make sure the binary and its companion Claude Code skill are installed:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; !&lt;/span&gt;&lt;span&gt; command&lt;/span&gt;&lt;span&gt; -v&lt;/span&gt;&lt;span&gt; playwright-cli&lt;/span&gt;&lt;span&gt; &amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;span&gt; 2&amp;gt;&amp;amp;1&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;then&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  npm&lt;/span&gt;&lt;span&gt; install&lt;/span&gt;&lt;span&gt; -g&lt;/span&gt;&lt;span&gt; @playwright/cli&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  playwright-cli&lt;/span&gt;&lt;span&gt; install&lt;/span&gt;&lt;span&gt; chromium&lt;/span&gt;&lt;span&gt;     # browser binary&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  playwright-cli&lt;/span&gt;&lt;span&gt; install&lt;/span&gt;&lt;span&gt; --skills&lt;/span&gt;&lt;span&gt;     # drops a playwright-cli skill into .claude/skills&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;fi&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;code&gt;playwright-cli install --skills&lt;/code&gt; is the bit worth knowing about: it writes a ready-made &lt;code&gt;playwright-cli&lt;/code&gt; skill into &lt;code&gt;.claude/skills/&lt;/code&gt;, so the agent can call &lt;code&gt;playwright-cli&lt;/code&gt; commands by name without you authoring a second skill. If you&apos;d rather not install globally, replace every &lt;code&gt;playwright-cli&lt;/code&gt; call with &lt;code&gt;npx -y @playwright/cli&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Then the verification itself is a short script:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; open&lt;/span&gt;&lt;span&gt; http://localhost:&lt;/span&gt;&lt;span&gt;$PORT&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;rout&lt;/span&gt;&lt;span&gt;e&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; snapshot&lt;/span&gt;&lt;span&gt;                     # confirm the page rendered&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# drive the feature: click an element by ref, fill a field, submit&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; click&lt;/span&gt;&lt;span&gt; e5&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; fill&lt;/span&gt;&lt;span&gt; e7&lt;/span&gt;&lt;span&gt; &quot;test@example.com&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; press&lt;/span&gt;&lt;span&gt; Enter&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; snapshot&lt;/span&gt;&lt;span&gt;                     # confirm post-interaction state&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; console&lt;/span&gt;&lt;span&gt;                      # check for client errors&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;mkdir&lt;/span&gt;&lt;span&gt; -p&lt;/span&gt;&lt;span&gt; .verify&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; screenshot&lt;/span&gt;&lt;span&gt; --filename=.verify/verify-feature.png&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; close-all&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The element refs (&lt;code&gt;e5&lt;/code&gt;, &lt;code&gt;e7&lt;/code&gt;) come from the accessibility snapshot — &lt;code&gt;playwright-cli snapshot&lt;/code&gt; prints the DOM tree with refs that subsequent commands target. The agent doesn&apos;t need to write selectors; it reads the snapshot and points at the element it wants. (Refs are not stable across renders, so don&apos;t hard-code them — see the &lt;a href=&quot;https://blog.antosubash.com/posts/verify-feature-claude-code-skill#troubleshooting&quot;&gt;troubleshooting section&lt;/a&gt;.)&lt;/p&gt;
&lt;p&gt;The screenshot at the end becomes the visual evidence for the PR. Stage 5 commits it to the branch and embeds the raw URL in the PR body, so the reviewer sees what the agent saw without re-running anything.&lt;/p&gt;
&lt;p&gt;The skill tells Claude what counts as a pass:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Assertions to make from the snapshots and console:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The expected route is in the URL.&lt;/li&gt;
&lt;li&gt;Key UI affordances from the feature are present in the snapshot.&lt;/li&gt;
&lt;li&gt;After exercising the feature, the resulting state is correct.&lt;/li&gt;
&lt;li&gt;The console returns no &lt;code&gt;error&lt;/code&gt;-level entries related to the feature.&lt;/li&gt;
&lt;li&gt;If the feature has a side effect (DB row, queue entry, external write), that side effect actually happened.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If any assertion fails, stop and report. Do not proceed to CI.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Assertion 5 is the one most agent-written features miss. The UI looks right, the redirect fires, the console is clean — but the form never persisted anything. A &lt;code&gt;curl http://localhost:$PORT/api/&amp;lt;resource&amp;gt; | jq&lt;/code&gt; or a one-liner &lt;code&gt;psql -c&lt;/code&gt; check is usually enough to catch it.&lt;/p&gt;
&lt;p&gt;The interesting part is what&apos;s &lt;em&gt;not&lt;/em&gt; in that list. The skill does not try to enumerate every possible failure mode — it just asserts the invariants that matter, and trusts Claude to apply them to the feature in front of it. Listing more rules pushes the skill toward brittle, feature-specific checks; listing fewer makes it sloppy.&lt;/p&gt;
&lt;h3&gt;Stage 3 — Stop the server&lt;/h3&gt;
&lt;p&gt;A small but important stage. CI&apos;s &lt;code&gt;build&lt;/code&gt; step will fight the running dev server for file locks, watcher handles, and the port itself — the symptoms are slow and confusing (a phantom rebuild loop, a test that times out, a build that succeeds on retry). Stop the server before CI runs and the whole class of problems goes away.&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;PORT_PIDS&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;lsof&lt;/span&gt;&lt;span&gt; -ti&lt;/span&gt;&lt;span&gt; tcp:&lt;/span&gt;&lt;span&gt;$PORT &lt;/span&gt;&lt;span&gt;2&amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;span&gt; ||&lt;/span&gt;&lt;span&gt; true&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;[ &lt;/span&gt;&lt;span&gt;-n&lt;/span&gt;&lt;span&gt; &quot;$PORT_PIDS&quot;&lt;/span&gt;&lt;span&gt; ] &lt;/span&gt;&lt;span&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span&gt; kill&lt;/span&gt;&lt;span&gt; -9&lt;/span&gt;&lt;span&gt; $PORT_PIDS&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;If your harness exposes a way to terminate the background shell by ID (Claude Code does), call that as well so the harness stops tracking it.&lt;/p&gt;
&lt;h3&gt;Stage 4 — Run local CI&lt;/h3&gt;
&lt;p&gt;This is your existing CI checklist, run sequentially with a hard stop on the first failure. Skip the optional stuff (long-running smoke suites, perf benchmarks) — the goal is fast feedback before the PR, not a duplicate of the cloud pipeline.&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;npm&lt;/span&gt;&lt;span&gt; run&lt;/span&gt;&lt;span&gt; lint&lt;/span&gt;&lt;span&gt;           # or: ruff check . / biome ci .&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;npm&lt;/span&gt;&lt;span&gt; run&lt;/span&gt;&lt;span&gt; typecheck&lt;/span&gt;&lt;span&gt;      # or: tsc --noEmit / mypy . / dotnet build&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;npm&lt;/span&gt;&lt;span&gt; test&lt;/span&gt;&lt;span&gt;               # or: pytest -q / dotnet test --no-build&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;npm&lt;/span&gt;&lt;span&gt; run&lt;/span&gt;&lt;span&gt; build&lt;/span&gt;&lt;span&gt;          # production build&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;npm&lt;/span&gt;&lt;span&gt; run&lt;/span&gt;&lt;span&gt; test:smoke&lt;/span&gt;&lt;span&gt;     # a small subset of e2e&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;At the end, print a results table. This is the single most useful artifact the skill produces — a reviewer can glance at it in the PR description and know what was actually run.&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;| Step              | Status |&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;|-------------------|--------|&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;| Lint &amp;amp; Format     | pass   |&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;| Type Check        | pass   |&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;| Unit Tests        | pass   |&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;| Production Build  | pass   |&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;| E2E Smoke         | pass   |&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;If any step fails, the skill surfaces the relevant error output, suggests a fix, and exits. The PR step does not run.&lt;/p&gt;
&lt;h3&gt;Stage 5 — Open the PR&lt;/h3&gt;
&lt;p&gt;Only reached when every previous stage passed.&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;# 1. Confirm there are commits ahead of main.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; log&lt;/span&gt;&lt;span&gt; --oneline&lt;/span&gt;&lt;span&gt; main..HEAD&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# 2. Commit the verification screenshot from stage 2 and push.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; add&lt;/span&gt;&lt;span&gt; .verify/verify-feature.png&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; commit&lt;/span&gt;&lt;span&gt; -m&lt;/span&gt;&lt;span&gt; &quot;Verification screenshot for &amp;lt;feature&amp;gt;&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; push&lt;/span&gt;&lt;span&gt; -u&lt;/span&gt;&lt;span&gt; origin&lt;/span&gt;&lt;span&gt; HEAD&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# 3. Build the raw URL for the screenshot. raw.githubusercontent.com serves&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;#    blob content directly, which is what GitHub&apos;s markdown renderer expects.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;REPO&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;gh&lt;/span&gt;&lt;span&gt; repo&lt;/span&gt;&lt;span&gt; view&lt;/span&gt;&lt;span&gt; --json&lt;/span&gt;&lt;span&gt; owner,name&lt;/span&gt;&lt;span&gt; -q&lt;/span&gt;&lt;span&gt; &apos;.owner.login + &quot;/&quot; + .name&apos;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;BRANCH&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; rev-parse&lt;/span&gt;&lt;span&gt; --abbrev-ref&lt;/span&gt;&lt;span&gt; HEAD&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;SHOT&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;https://raw.githubusercontent.com/${REPO}/${BRANCH}/.verify/verify-feature.png&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# 4. Open the PR with a HEREDOC body. Note the unquoted EOF — $PORT and $SHOT&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;#    expand inside the body. Use &amp;lt;&amp;lt;&apos;EOF&apos; (quoted) if you want everything literal.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;gh&lt;/span&gt;&lt;span&gt; pr&lt;/span&gt;&lt;span&gt; create&lt;/span&gt;&lt;span&gt; --title&lt;/span&gt;&lt;span&gt; &quot;&amp;lt;concise, under 70 chars&amp;gt;&quot;&lt;/span&gt;&lt;span&gt; --body&lt;/span&gt;&lt;span&gt; &quot;$(&lt;/span&gt;&lt;span&gt;cat&lt;/span&gt;&lt;span&gt; &amp;lt;&amp;lt;&lt;/span&gt;&lt;span&gt;EOF&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;## Summary&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &amp;lt;what changed&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &amp;lt;why&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;## Verification&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- Manually exercised &amp;lt;feature&amp;gt; at http://localhost:$PORT/&amp;lt;route&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- All local CI steps passed (lint, typecheck, tests, build, smoke)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;![verification](${SHOT})&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;## Test plan&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- [ ] CI green on PR&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- [ ] Reviewer spot-checks &amp;lt;area&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;EOF&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;)&quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The PR body is templated, but the &lt;strong&gt;Verification&lt;/strong&gt; block is the part worth keeping fresh. It tells the reviewer what was actually tested locally — not &quot;I ran the tests&quot;, but &quot;I navigated to &lt;code&gt;/products/new&lt;/code&gt;, submitted a valid form, and confirmed the new row appeared on the index page&quot;. That kind of specificity moves reviews faster.&lt;/p&gt;
&lt;h2&gt;A complete example run&lt;/h2&gt;
&lt;p&gt;Concrete picture, end to end. The feature is &lt;em&gt;&quot;add a &lt;code&gt;/products/new&lt;/code&gt; page that creates a product and redirects to &lt;code&gt;/products&lt;/code&gt;&quot;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;The user says &lt;strong&gt;&quot;verify and ship the new product feature&quot;&lt;/strong&gt;. The skill&apos;s description matches, Claude picks it up, and walks the stages:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;Stage 0 — Prepare the branch&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ git rev-parse --abbrev-ref HEAD       # → feature/products-new&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ command -v gh playwright-cli           # → both present&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ gh auth status                         # → authenticated&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ git status --porcelain                 # → 3 modified, 1 new file&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ git diff                               # (inspected; no secrets, no junk)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ git add -A&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ git commit -m &quot;Add /products/new page and POST handler&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ git fetch origin main&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ git rebase origin/main                 # → main unchanged, replay is a no-op&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;Stage 1 — Start the app&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ lsof -ti tcp:3000     # → empty, port is free&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ npm run dev           # (run_in_background, shell id: dev-1)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  Polling http://localhost:3000/ … 200 after 6s. App is up.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;Stage 2 — Drive the feature&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ playwright-cli open http://localhost:3000/products/new&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ playwright-cli snapshot&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    → form with name=e4, price=e5, submit=e7&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ playwright-cli fill e4 &quot;Test widget&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ playwright-cli fill e5 &quot;12.50&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ playwright-cli click e7&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ playwright-cli snapshot&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    → URL = http://localhost:3000/products&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    → row &quot;Test widget — $12.50&quot; present&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ playwright-cli console&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    → no error-level entries&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ curl -s http://localhost:3000/api/products | jq &apos;.[-1].name&apos;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    → &quot;Test widget&quot;                        # side effect confirmed&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ playwright-cli screenshot --filename=.verify/verify-feature.png&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ playwright-cli close-all&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  Assertions: 5/5 pass.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;Stage 3 — Stop the server&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  Killing PID on tcp:3000 and shell dev-1.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;Stage 4 — Local CI&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  | Step              | Status |&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  |-------------------|--------|&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  | Lint &amp;amp; Format     | pass   |&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  | Type Check        | pass   |&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  | Unit Tests        | pass   |&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  | Production Build  | pass   |&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  | E2E Smoke         | pass   |&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;Stage 5 — Open the PR&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ git log --oneline main..HEAD     # → 2 commits ahead&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ git add .verify/verify-feature.png&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ git commit -m &quot;Verification screenshot for products/new&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ git push -u origin HEAD&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ gh repo view --json owner,name   # → acme/app&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  $ gh pr create … --body &quot;&amp;lt;embeds raw screenshot URL&amp;gt;&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  Opened: https://github.com/acme/app/pull/482&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;If stage 2&apos;s final snapshot had shown the same &lt;code&gt;/products/new&lt;/code&gt; URL instead of &lt;code&gt;/products&lt;/code&gt;, the skill would have stopped there with &lt;em&gt;&quot;redirect after submit did not happen&quot;&lt;/em&gt; — no CI run, no push, no PR. That&apos;s the whole point.&lt;/p&gt;
&lt;h2&gt;The hard rules&lt;/h2&gt;
&lt;p&gt;Every non-trivial skill needs a short &quot;do not do this&quot; section at the end. It is the cheapest insurance you can buy against an agent making a creative-but-wrong decision under pressure.&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;## Hard rules&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;**Stop on first failure.**&lt;/span&gt;&lt;span&gt; Do not paper over a broken stage to get to the PR.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;**The PR step is gated.**&lt;/span&gt;&lt;span&gt; If stages 1–4 didn&apos;t all pass, surface the failure and exit.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;**Never**&lt;/span&gt;&lt;span&gt; force-push, push to &lt;/span&gt;&lt;span&gt;`main`&lt;/span&gt;&lt;span&gt;, or use &lt;/span&gt;&lt;span&gt;`--no-verify`&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;**Never**&lt;/span&gt;&lt;span&gt; add AI attribution to commits, PR bodies, or PR titles (project convention).&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;These rules exist because Claude, like any capable assistant, will try to be helpful when it gets stuck. &quot;The lint step failed, but the test suite passed, so I went ahead and opened the PR with a note&quot; is a perfectly reasonable thing for an eager agent to do. It is also exactly what this skill is designed to prevent.&lt;/p&gt;
&lt;h2&gt;Troubleshooting&lt;/h2&gt;
&lt;p&gt;A handful of failure modes show up often enough to be worth naming. The fixes are short; the symptoms are not always obvious.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Port is still held after stage 3.&lt;/strong&gt; Stage 3&apos;s &lt;code&gt;kill -9&lt;/code&gt; covers the dev server, but file watchers, sidecar processes (esbuild, vite preview, a worker), or a debugger attached to the port may linger. If stage 4&apos;s build hangs or stage 1 of the &lt;em&gt;next&lt;/em&gt; run refuses to start, widen the kill to the process group: &lt;code&gt;lsof -ti tcp:$PORT | xargs -r kill -9&lt;/code&gt; then &lt;code&gt;pkill -f &quot;node .*dev&quot;&lt;/code&gt; (or the equivalent for your stack).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Snapshot refs change between runs.&lt;/strong&gt; &lt;code&gt;e5&lt;/code&gt; today may be &lt;code&gt;e7&lt;/code&gt; tomorrow — refs are assigned in DOM order and shift when the page re-renders. Never hard-code refs in the skill. The flow is always &lt;em&gt;snapshot → read refs → act → snapshot again&lt;/em&gt;. If the agent insists on caching refs across snapshots, remind it in the skill body.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;gh pr create&lt;/code&gt; fails with &lt;code&gt;not authenticated&lt;/code&gt;.&lt;/strong&gt; Stage 0&apos;s pre-flight checks &lt;code&gt;gh auth status&lt;/code&gt; and should have caught this. If you reach stage 5 with no auth, the pre-flight was skipped or &lt;code&gt;gh auth&lt;/code&gt; silently expired mid-run — run &lt;code&gt;gh auth login&lt;/code&gt; and re-invoke the skill.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The dev server returns 200 before it&apos;s actually ready.&lt;/strong&gt; Some stacks serve a placeholder shell while the real bundle is still compiling. Stage 1 sees 200 and moves on, then stage 2&apos;s &lt;code&gt;playwright-cli snapshot&lt;/code&gt; returns a blank page. Fix it by pointing the readiness check at a path that depends on the bundle (e.g. &lt;code&gt;/api/health&lt;/code&gt; for a backend, or a specific route your app actually owns), not the root URL.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Smoke tests in stage 4 conflict with stage 2&apos;s browser.&lt;/strong&gt; If &lt;code&gt;npm run test:smoke&lt;/code&gt; boots its own browser and your stage 2 didn&apos;t fully close the previous session, you&apos;ll see a &quot;browser is already in use&quot; error. Add &lt;code&gt;playwright-cli close-all&lt;/code&gt; at the end of stage 2, not just &lt;code&gt;playwright-cli close&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The skill picks up the wrong intent.&lt;/strong&gt; If you find Claude triggering the skill on phrases that mean something else, tighten the &lt;code&gt;description&lt;/code&gt; frontmatter. &quot;Verify&quot; alone is too broad — pair it with the action (&lt;code&gt;&quot;verify the feature&quot;&lt;/code&gt;, &lt;code&gt;&quot;verify and ship&quot;&lt;/code&gt;) and an explicit &lt;em&gt;not&lt;/em&gt; list in the body if needed.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;git rebase origin/main&lt;/code&gt; hits conflicts.&lt;/strong&gt; Stage 0&apos;s rebase replays the branch&apos;s commits on top of main. If main has changes that touch the same lines, the rebase pauses with conflicts; the skill runs &lt;code&gt;git rebase --abort&lt;/code&gt; and stops. Resolve manually (&lt;code&gt;git rebase origin/main&lt;/code&gt;, fix conflicts, &lt;code&gt;git rebase --continue&lt;/code&gt;) and re-invoke the skill. An agent that auto-resolves conflicts is an agent that will eventually drop someone&apos;s code.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Screenshot URL 404s in the PR body.&lt;/strong&gt; The PR body links &lt;code&gt;raw.githubusercontent.com/&amp;lt;owner&amp;gt;/&amp;lt;repo&amp;gt;/&amp;lt;branch&amp;gt;/.verify/verify-feature.png&lt;/code&gt;. If the URL renders broken, either the screenshot wasn&apos;t committed (&lt;code&gt;git ls-tree -r HEAD .verify/&lt;/code&gt;) or wasn&apos;t pushed (&lt;code&gt;git log origin/&amp;lt;branch&amp;gt;..HEAD&lt;/code&gt; should be empty when you open the PR). The skill&apos;s stage 5 commits and pushes the screenshot &lt;em&gt;before&lt;/em&gt; &lt;code&gt;gh pr create&lt;/code&gt; for exactly this reason — don&apos;t reorder those steps.&lt;/p&gt;
&lt;h2&gt;Adapting it to your stack&lt;/h2&gt;
&lt;p&gt;The skill in &lt;a href=&quot;https://github.com/antosubash/SimpleModule/blob/main/.claude/skills/verify-feature/SKILL.md&quot;&gt;SimpleModule&lt;/a&gt; is wired for .NET 10 + Inertia.js + React, and it uses a &lt;code&gt;playwright-cli&lt;/code&gt; skill that ships in the same repo. To adapt it:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Replace stage 1&apos;s start command&lt;/strong&gt; with whatever boots your app (&lt;code&gt;npm run dev&lt;/code&gt;, &lt;code&gt;dotnet run&lt;/code&gt;, &lt;code&gt;uv run …&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Replace stage 1&apos;s port and health check&lt;/strong&gt; with the port your app listens on and a path that returns quickly.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Replace stage 2&apos;s route, assertions, and side-effect check&lt;/strong&gt; with the specific page, behavior, and API/DB call your feature touches. The &lt;code&gt;playwright-cli&lt;/code&gt; commands stay the same; only the URL, the refs you click, and the strings you assert on change.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Replace stage 4&apos;s CI script&lt;/strong&gt; with your project&apos;s actual local-CI checklist. If you already have a &lt;code&gt;Makefile&lt;/code&gt;, &lt;code&gt;justfile&lt;/code&gt;, or &lt;code&gt;package.json&lt;/code&gt; script that runs the whole thing, the skill can simply invoke &lt;code&gt;make ci&lt;/code&gt; and be done with it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tweak the PR template&lt;/strong&gt; to match your repo&apos;s PR description format. If you don&apos;t want screenshots in git history, swap the &lt;code&gt;.verify/&lt;/code&gt; commit for a public-gist upload (&lt;code&gt;gh gist create --public&lt;/code&gt; returns a URL) or drop the visual evidence entirely.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The stage &lt;em&gt;boundaries&lt;/em&gt; are the part worth keeping intact. A version that pushes through failures to be more flexible is the same as not having the skill at all.&lt;/p&gt;
&lt;h2&gt;When to invoke it&lt;/h2&gt;
&lt;p&gt;This skill is not a substitute for unit tests or for CI in the cloud. It is a &lt;em&gt;pre-PR&lt;/em&gt; check — the thing you run right before you&apos;d otherwise type &lt;code&gt;git push&lt;/code&gt; and &lt;code&gt;gh pr create&lt;/code&gt; yourself.&lt;/p&gt;
&lt;p&gt;Good moments to invoke it:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You finished a feature. Whether or not you&apos;ve already committed, stage 0 handles it.&lt;/li&gt;
&lt;li&gt;An agent finished a feature and you want a quick gate before reviewing the diff.&lt;/li&gt;
&lt;li&gt;You&apos;re cleaning up a long-running branch and want a final sanity pass.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Bad moments to invoke it:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Mid-implementation, when the feature isn&apos;t actually done yet. Stage 0 will happily commit half-finished work — and then the PR ships half-finished work.&lt;/li&gt;
&lt;li&gt;For docs-only or comment-only changes. There&apos;s nothing to verify in a browser.&lt;/li&gt;
&lt;li&gt;On &lt;code&gt;main&lt;/code&gt;. The skill refuses to push to &lt;code&gt;main&lt;/code&gt; — but it&apos;s worth not getting there in the first place.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Why a skill at all?&lt;/h2&gt;
&lt;p&gt;You could write all of this as a shell script and call it from &lt;code&gt;package.json&lt;/code&gt;. For a single project, that&apos;s probably fine.&lt;/p&gt;
&lt;p&gt;Putting it in &lt;code&gt;.claude/skills/&lt;/code&gt; buys you three things a script doesn&apos;t:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Discoverability for the agent.&lt;/strong&gt; When you tell Claude &quot;verify the feature and ship it,&quot; it picks up the skill from the description and follows it. No &quot;which script was that again?&quot; lookup.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Structured stop conditions.&lt;/strong&gt; A shell script either runs to completion or exits non-zero. A skill can stop, summarize what passed and failed, suggest a fix, and let you decide what to do next — all in the same conversation.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Versioned, reviewable workflow.&lt;/strong&gt; The skill lives in the repo. Changes go through PR. New team members get the same pre-PR check the rest of the team uses, automatically.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The cost is small: one Markdown file, mostly prose. The upside is that your &quot;did you actually try it?&quot; discipline becomes a thing the team enforces by default rather than a thing each person remembers to do on a good day.&lt;/p&gt;
&lt;h2&gt;From skill to slash command&lt;/h2&gt;
&lt;p&gt;After living with the project-local skill for a few weeks, the friction was the &lt;em&gt;setup tax&lt;/em&gt;: every new repo needed its own SKILL.md, with the port, start command, and CI commands hard-coded. The pipeline itself never changed — only the placeholders did.&lt;/p&gt;
&lt;p&gt;So the workflow got promoted to a &lt;a href=&quot;https://docs.claude.com/en/docs/claude-code/slash-commands&quot;&gt;user-level slash command&lt;/a&gt; that lives once in &lt;code&gt;~/.claude/commands/vf.md&lt;/code&gt; and runs anywhere. Invoke it with &lt;code&gt;/vf&lt;/code&gt; (optionally with a feature description), and it auto-detects the rest:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;/vf add a /products/new page that creates a product and redirects&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The five-stage gated pipeline is the same. What changed is what you no longer have to write down:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Stack auto-detection.&lt;/strong&gt; Three first-class stacks — &lt;strong&gt;JS/TS&lt;/strong&gt;, &lt;strong&gt;Python&lt;/strong&gt;, &lt;strong&gt;.NET&lt;/strong&gt; — detected from &lt;code&gt;package.json&lt;/code&gt; + lockfile, &lt;code&gt;pyproject.toml&lt;/code&gt; / &lt;code&gt;manage.py&lt;/code&gt;, or &lt;code&gt;*.sln&lt;/code&gt; / &lt;code&gt;*.csproj&lt;/code&gt;. The framework (Next, Vite, Django, FastAPI, ASP.NET Core, …) determines the default port, start command, and CI commands. The command echoes what it detected so you can correct before stages run.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Background workers.&lt;/strong&gt; Many features rely on a queue: emails, notifications, file processing, webhooks. The command detects &lt;code&gt;BackgroundService&lt;/code&gt; / Hangfire / Celery / BullMQ / etc., and decides whether &lt;em&gt;this&lt;/em&gt; feature needs the worker based on the diff and the description. If it does, Stage 1b starts the worker (after checking Redis/RabbitMQ is reachable) and Stage 2 asserts on the side effect.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A new Stage 2b/2c.&lt;/strong&gt; When an e2e suite already exists (Playwright / &lt;code&gt;pytest-playwright&lt;/code&gt; / &lt;code&gt;Microsoft.Playwright.NUnit&lt;/code&gt;), the smoke check in 2a is followed by &lt;em&gt;authoring or extending a durable spec&lt;/em&gt; in 2b and running just that spec in 2c — the full suite still runs in Stage 4. When no e2e suite exists, the smoke check IS the verification; the command never scaffolds one as a side effect.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Every Bash call has an explicit timeout.&lt;/strong&gt; A class-based table sets the budget: 10s for quick local checks (&lt;code&gt;git status&lt;/code&gt;, &lt;code&gt;lsof&lt;/code&gt;), 60s for network ops (&lt;code&gt;git fetch&lt;/code&gt;, &lt;code&gt;git push&lt;/code&gt;, &lt;code&gt;gh pr create&lt;/code&gt;), 300s for builds/unit tests, 600s for the full e2e suite. A command that exceeds its budget stops the stage — &lt;code&gt;/vf&lt;/code&gt; does not retry with a higher value, because the stall itself is the signal. The Bash tool&apos;s silent 2-minute default is the failure mode this is designed to prevent: a hung &lt;code&gt;git push&lt;/code&gt; or a flaky test that never completes shouldn&apos;t burn 2 minutes of wall-clock per call with no useful diagnostic at the end.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Flags for the awkward cases.&lt;/strong&gt; &lt;code&gt;--port&lt;/code&gt;, &lt;code&gt;--route&lt;/code&gt;, &lt;code&gt;--start&lt;/code&gt;, &lt;code&gt;--health&lt;/code&gt;, &lt;code&gt;--base&lt;/code&gt;, plus opt-outs (&lt;code&gt;--no-pr&lt;/code&gt;, &lt;code&gt;--no-rebase&lt;/code&gt;, &lt;code&gt;--skip-browser&lt;/code&gt;, &lt;code&gt;--no-worker&lt;/code&gt;, &lt;code&gt;--no-e2e&lt;/code&gt;) for repos that don&apos;t fit the defaults.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For a single project, the same file works at &lt;code&gt;.claude/commands/vf.md&lt;/code&gt; in the repo instead of &lt;code&gt;~/.claude/commands/&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Skill or slash command?&lt;/strong&gt; The skill in &lt;code&gt;.claude/skills/&lt;/code&gt; is the right choice when you want the pipeline &lt;em&gt;committed to the repo&lt;/em&gt; — every clone of the project gets the same pre-PR check, reviewed through PRs like any other code. The slash command is the right choice when you want it &lt;em&gt;everywhere by default&lt;/em&gt; without per-repo setup. They&apos;re not mutually exclusive: a repo can ship a project-specific SKILL.md that wraps &lt;code&gt;/vf&lt;/code&gt; with a few project-specific assertions on top.&lt;/p&gt;
&lt;h2&gt;Setup for AI agents&lt;/h2&gt;
&lt;p&gt;If a teammate handed you this URL with &quot;set this up in our repo,&quot; this section is for you. Follow it top to bottom and you&apos;ll end with two skills installed and a working &lt;code&gt;verify-feature&lt;/code&gt; workflow.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The repository must already be a git repo with a &lt;code&gt;main&lt;/code&gt; branch, a configured remote, and a &lt;code&gt;gh&lt;/code&gt;-authenticated session (&lt;code&gt;gh auth status&lt;/code&gt; should return OK). The dev server must be runnable from the repo root.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;1. Install playwright-cli and its skill&lt;/h3&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;# Binary + browser&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;npm&lt;/span&gt;&lt;span&gt; install&lt;/span&gt;&lt;span&gt; -g&lt;/span&gt;&lt;span&gt; @playwright/cli&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; install&lt;/span&gt;&lt;span&gt; chromium&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# Drops a ready-made playwright-cli skill into .claude/skills/playwright-cli/&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; install&lt;/span&gt;&lt;span&gt; --skills&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;If &lt;code&gt;npm install -g&lt;/code&gt; is not desirable, replace every &lt;code&gt;playwright-cli&lt;/code&gt; call below with &lt;code&gt;npx -y @playwright/cli&lt;/code&gt; and skip the global install — but still run &lt;code&gt;playwright-cli install --skills&lt;/code&gt; once so the helper skill exists.&lt;/p&gt;
&lt;h3&gt;2. Create the verify-feature skill&lt;/h3&gt;
&lt;p&gt;Write the following file to &lt;code&gt;.claude/skills/verify-feature/SKILL.md&lt;/code&gt;. The placeholders in &lt;code&gt;&amp;lt;ANGLE_BRACKETS&amp;gt;&lt;/code&gt; are the only parts you should customize for the host project — leave the structure intact.&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;---&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt; verify-feature&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;description&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt; End-to-end verification of a feature implementation before opening a PR.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  Starts the dev server, drives the feature in a real browser via playwright-cli,&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  runs every local CI step, and only then opens a pull request. Use when the user&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  asks to &quot;verify the feature&quot;, &quot;test and ship&quot;, &quot;run e2e + CI + PR&quot;, or any&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  variation that means &quot;prove it works, then PR it&quot;.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;allowed-tools&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt; Bash, Read, Edit, Write&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;---&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# verify-feature&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;Run after a feature is implemented. Gated pipeline — each stage must pass&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;before the next runs. If any stage fails, stop, surface the failure, and do&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;NOT open a PR.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;## Inputs to gather first&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;From conversation context (do not ask unless missing):&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;**Feature description**&lt;/span&gt;&lt;span&gt; — what was implemented.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;**Page route**&lt;/span&gt;&lt;span&gt; — the URL path to exercise.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;**Branch**&lt;/span&gt;&lt;span&gt; — current branch (must not be &lt;/span&gt;&lt;span&gt;`main`&lt;/span&gt;&lt;span&gt;).&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;If route is unknown, grep the diff for the route registration of your framework.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;## Stage 0 — Prepare the branch&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;Three things must be true before verification starts.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;```bash&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# 1. Pre-flight: not on main, tooling present, gh authenticated.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;[ &lt;/span&gt;&lt;span&gt;&quot;$(&lt;/span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; rev-parse&lt;/span&gt;&lt;span&gt; --abbrev-ref&lt;/span&gt;&lt;span&gt; HEAD&lt;/span&gt;&lt;span&gt;)&quot;&lt;/span&gt;&lt;span&gt; !=&lt;/span&gt;&lt;span&gt; &quot;main&quot;&lt;/span&gt;&lt;span&gt; ] &lt;/span&gt;&lt;span&gt;||&lt;/span&gt;&lt;span&gt; { &lt;/span&gt;&lt;span&gt;echo&lt;/span&gt;&lt;span&gt; &quot;On main; abort&quot;&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;exit&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;span&gt;; }&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;for&lt;/span&gt;&lt;span&gt; cmd &lt;/span&gt;&lt;span&gt;in&lt;/span&gt;&lt;span&gt; gh&lt;/span&gt;&lt;span&gt; playwright-cli&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;do&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  command&lt;/span&gt;&lt;span&gt; -v&lt;/span&gt;&lt;span&gt; $cmd &lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;span&gt; 2&amp;gt;&amp;amp;1&lt;/span&gt;&lt;span&gt; ||&lt;/span&gt;&lt;span&gt; { &lt;/span&gt;&lt;span&gt;echo&lt;/span&gt;&lt;span&gt; &quot;$cmd not found&quot;&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;exit&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;span&gt;; }&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;done&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;gh&lt;/span&gt;&lt;span&gt; auth&lt;/span&gt;&lt;span&gt; status&lt;/span&gt;&lt;span&gt; &amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;span&gt; 2&amp;gt;&amp;amp;1&lt;/span&gt;&lt;span&gt; ||&lt;/span&gt;&lt;span&gt; { &lt;/span&gt;&lt;span&gt;echo&lt;/span&gt;&lt;span&gt; &quot;gh not authenticated&quot;&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;exit&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;span&gt;; }&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# 2. Commit pending changes.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; [ &lt;/span&gt;&lt;span&gt;-n&lt;/span&gt;&lt;span&gt; &quot;$(&lt;/span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; status&lt;/span&gt;&lt;span&gt; --porcelain&lt;/span&gt;&lt;span&gt;)&quot;&lt;/span&gt;&lt;span&gt; ]; &lt;/span&gt;&lt;span&gt;then&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  git&lt;/span&gt;&lt;span&gt; diff&lt;/span&gt;&lt;span&gt;               # inspect unstaged changes&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  git&lt;/span&gt;&lt;span&gt; add&lt;/span&gt;&lt;span&gt; -A&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  git&lt;/span&gt;&lt;span&gt; diff&lt;/span&gt;&lt;span&gt; --cached&lt;/span&gt;&lt;span&gt;      # confirm what is about to be committed&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  git&lt;/span&gt;&lt;span&gt; commit&lt;/span&gt;&lt;span&gt; -m&lt;/span&gt;&lt;span&gt; &quot;&amp;lt;concise message inferred from the diff, matching repo style&amp;gt;&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;fi&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# 3. Sync with main by rebasing on top of it.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; fetch&lt;/span&gt;&lt;span&gt; origin&lt;/span&gt;&lt;span&gt; main&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; rebase&lt;/span&gt;&lt;span&gt; origin/main&lt;/span&gt;&lt;span&gt; ||&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  git&lt;/span&gt;&lt;span&gt; rebase&lt;/span&gt;&lt;span&gt; --abort&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  echo&lt;/span&gt;&lt;span&gt; &quot;Rebase onto main hit conflicts; resolve manually and re-run&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  exit&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;```&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;Rules:&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- Read &lt;/span&gt;&lt;span&gt;`git log`&lt;/span&gt;&lt;span&gt; first to match the repo&apos;s commit message style.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- If &lt;/span&gt;&lt;span&gt;`.env`&lt;/span&gt;&lt;span&gt;, credentials, large binaries, or scratch files appear in the diff,&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  **stop and ask the user**&lt;/span&gt;&lt;span&gt; — do not stage them.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- Create a new commit; never &lt;/span&gt;&lt;span&gt;`--amend`&lt;/span&gt;&lt;span&gt; an existing one.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- If the rebase hits conflicts, run &lt;/span&gt;&lt;span&gt;`git rebase --abort`&lt;/span&gt;&lt;span&gt; and ask the user.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  Do not auto-resolve. Teams that prefer merge commits can swap&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  `git rebase origin/main`&lt;/span&gt;&lt;span&gt; for &lt;/span&gt;&lt;span&gt;`git merge origin/main`&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;## Stage 1 — Start the application&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;```bash&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;PORT&lt;/span&gt;&lt;span&gt;=&amp;lt;&lt;/span&gt;&lt;span&gt;PORT&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;PORT_PIDS&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;lsof&lt;/span&gt;&lt;span&gt; -ti&lt;/span&gt;&lt;span&gt; tcp:&lt;/span&gt;&lt;span&gt;$PORT &lt;/span&gt;&lt;span&gt;2&amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;span&gt; ||&lt;/span&gt;&lt;span&gt; true&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; [ &lt;/span&gt;&lt;span&gt;-n&lt;/span&gt;&lt;span&gt; &quot;$PORT_PIDS&quot;&lt;/span&gt;&lt;span&gt; ]; &lt;/span&gt;&lt;span&gt;then&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  echo&lt;/span&gt;&lt;span&gt; &quot;Port $PORT occupied by PID(s): $PORT_PIDS — killing&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  kill&lt;/span&gt;&lt;span&gt; -9&lt;/span&gt;&lt;span&gt; $PORT_PIDS&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  sleep&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;fi&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;START_COMMAND&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;     # e.g. npm run dev / dotnet run --project ./src/Web&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;```&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;Invoke &lt;/span&gt;&lt;span&gt;`&amp;lt;START_COMMAND&amp;gt;`&lt;/span&gt;&lt;span&gt; via Bash with &lt;/span&gt;&lt;span&gt;`run_in_background: true`&lt;/span&gt;&lt;span&gt; and keep the&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;shell ID for stage 3. Then poll readiness (cap 90s):&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;```bash&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;for&lt;/span&gt;&lt;span&gt; i &lt;/span&gt;&lt;span&gt;in&lt;/span&gt;&lt;span&gt; $(&lt;/span&gt;&lt;span&gt;seq&lt;/span&gt;&lt;span&gt; 1&lt;/span&gt;&lt;span&gt; 45&lt;/span&gt;&lt;span&gt;); &lt;/span&gt;&lt;span&gt;do&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  if&lt;/span&gt;&lt;span&gt; curl&lt;/span&gt;&lt;span&gt; -s&lt;/span&gt;&lt;span&gt; -o&lt;/span&gt;&lt;span&gt; /dev/null&lt;/span&gt;&lt;span&gt; -w&lt;/span&gt;&lt;span&gt; &quot;%{http_code}&quot;&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;HEALTH_UR&lt;/span&gt;&lt;span&gt;L&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;      | grep -qE &apos;^(200|302|401)$&apos;; then&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    echo&lt;/span&gt;&lt;span&gt; &quot;App is up&quot;&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;break&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  fi&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  sleep&lt;/span&gt;&lt;span&gt; 2&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;done&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;```&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;If readiness times out, read the background shell&apos;s output, surface the error,&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;and abort the skill.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;## Stage 2 — Verify the feature with playwright-cli&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;```bash&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; open&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;BASE_UR&lt;/span&gt;&lt;span&gt;L&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;ROUT&lt;/span&gt;&lt;span&gt;E&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; snapshot&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# drive the feature using refs from the snapshot — never hard-code refs&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; click&lt;/span&gt;&lt;span&gt; eN&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; fill&lt;/span&gt;&lt;span&gt; eM&lt;/span&gt;&lt;span&gt; &quot;&amp;lt;value&amp;gt;&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; press&lt;/span&gt;&lt;span&gt; Enter&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; snapshot&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; console&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;mkdir&lt;/span&gt;&lt;span&gt; -p&lt;/span&gt;&lt;span&gt; .verify&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; screenshot&lt;/span&gt;&lt;span&gt; --filename=.verify/verify-feature.png&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;playwright-cli&lt;/span&gt;&lt;span&gt; close-all&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;```&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;**Assertions to make from snapshots, console, and side effects:**&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;1. The expected page route is in the URL.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;2. Key UI affordances from the feature are present in the snapshot.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;3. After exercising the feature, the resulting state is correct.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;4. &lt;/span&gt;&lt;span&gt;`playwright-cli console`&lt;/span&gt;&lt;span&gt; returns no &lt;/span&gt;&lt;span&gt;`error`&lt;/span&gt;&lt;span&gt;-level entries related to the feature.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;5. If the feature has a side effect (DB row, API write, queue entry), confirm&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;   it actually happened — usually one &lt;/span&gt;&lt;span&gt;`curl &amp;lt;BASE_URL&amp;gt;/api/...`&lt;/span&gt;&lt;span&gt; or &lt;/span&gt;&lt;span&gt;`psql -c`&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;If any assertion fails, stop and report. Do not proceed to CI.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;## Stage 3 — Stop the app before CI&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;```bash&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;PORT_PIDS&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;lsof&lt;/span&gt;&lt;span&gt; -ti&lt;/span&gt;&lt;span&gt; tcp:&lt;/span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;POR&lt;/span&gt;&lt;span&gt;T&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt; 2&amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;span&gt; ||&lt;/span&gt;&lt;span&gt; true&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;[ &lt;/span&gt;&lt;span&gt;-n&lt;/span&gt;&lt;span&gt; &quot;$PORT_PIDS&quot;&lt;/span&gt;&lt;span&gt; ] &lt;/span&gt;&lt;span&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span&gt; kill&lt;/span&gt;&lt;span&gt; -9&lt;/span&gt;&lt;span&gt; $PORT_PIDS&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;```&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;Also call &lt;/span&gt;&lt;span&gt;`KillShell`&lt;/span&gt;&lt;span&gt; on the stage-1 background shell.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;## Stage 4 — Run local CI&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;Stop on the first failure. Replace these with the project&apos;s actual checklist:&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;```bash&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;LINT_COMMAND&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;          # e.g. npm run lint&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;TYPECHECK_COMMAND&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;     # e.g. npm run typecheck&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;TEST_COMMAND&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;          # e.g. npm test&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;BUILD_COMMAND&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;         # e.g. npm run build&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;SMOKE_COMMAND&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;         # e.g. npm run test:smoke&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;```&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;Print this table at the end of stage 4:&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;| Step              | Status    |&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;-------------------&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;-----------&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;| Lint &amp;amp; Format     | pass/fail |&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;| Type Check        | pass/fail |&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;| Unit Tests        | pass/fail |&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;| Production Build  | pass/fail |&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;| E2E Smoke         | pass/fail |&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;If any step fails, surface the error, suggest a fix, and abort — do not open a PR.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;## Stage 5 — Create the PR&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;Only reached when stages 1–4 all passed.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;```bash&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# 1. Confirm there are commits ahead of main.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; log&lt;/span&gt;&lt;span&gt; --oneline&lt;/span&gt;&lt;span&gt; main..HEAD&lt;/span&gt;&lt;span&gt;   # must be non-empty&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# 2. Commit the screenshot from stage 2 and push.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; add&lt;/span&gt;&lt;span&gt; .verify/verify-feature.png&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; commit&lt;/span&gt;&lt;span&gt; -m&lt;/span&gt;&lt;span&gt; &quot;Verification screenshot for &amp;lt;feature&amp;gt;&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; push&lt;/span&gt;&lt;span&gt; -u&lt;/span&gt;&lt;span&gt; origin&lt;/span&gt;&lt;span&gt; HEAD&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# 3. Build the raw URL for the screenshot. raw.githubusercontent.com serves&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;#    binary blobs directly, which is what GitHub&apos;s markdown renderer expects.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;REPO&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;gh&lt;/span&gt;&lt;span&gt; repo&lt;/span&gt;&lt;span&gt; view&lt;/span&gt;&lt;span&gt; --json&lt;/span&gt;&lt;span&gt; owner,name&lt;/span&gt;&lt;span&gt; -q&lt;/span&gt;&lt;span&gt; &apos;.owner.login + &quot;/&quot; + .name&apos;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;BRANCH&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; rev-parse&lt;/span&gt;&lt;span&gt; --abbrev-ref&lt;/span&gt;&lt;span&gt; HEAD&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;SHOT&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;https://raw.githubusercontent.com/${REPO}/${BRANCH}/.verify/verify-feature.png&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;# 4. Open the PR. Unquoted EOF so ${SHOT} expands; &amp;lt;BASE_URL&amp;gt;/&amp;lt;ROUTE&amp;gt; are&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;#    placeholders that should already be substituted by the agent at this point.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;gh&lt;/span&gt;&lt;span&gt; pr&lt;/span&gt;&lt;span&gt; create&lt;/span&gt;&lt;span&gt; --title&lt;/span&gt;&lt;span&gt; &quot;&amp;lt;concise title, &amp;lt;70 chars&amp;gt;&quot;&lt;/span&gt;&lt;span&gt; --body&lt;/span&gt;&lt;span&gt; &quot;$(&lt;/span&gt;&lt;span&gt;cat&lt;/span&gt;&lt;span&gt; &amp;lt;&amp;lt;&lt;/span&gt;&lt;span&gt;EOF&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;## Summary&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &amp;lt;what changed&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &amp;lt;why&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;## Verification&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- Manually exercised &amp;lt;feature&amp;gt; at &amp;lt;BASE_URL&amp;gt;/&amp;lt;ROUTE&amp;gt; via playwright-cli&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- Confirmed side effect via &amp;lt;BASE_URL&amp;gt;/api/&amp;lt;resource&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- All local CI steps passed (lint, typecheck, tests, build, smoke)&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;![verification](${SHOT})&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;## Test plan&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- [ ] CI green on PR&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- [ ] Reviewer spot-checks &amp;lt;area&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;EOF&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;)&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;```&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;Return the PR URL.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;## Hard rules&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;**Stop on first failure.**&lt;/span&gt;&lt;span&gt; Do not paper over a broken stage to get to the PR.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;**The PR step is gated.**&lt;/span&gt;&lt;span&gt; If stages 1–4 didn&apos;t all pass, surface the failure and exit.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;**Never**&lt;/span&gt;&lt;span&gt; force-push, push to &lt;/span&gt;&lt;span&gt;`main`&lt;/span&gt;&lt;span&gt;, or use &lt;/span&gt;&lt;span&gt;`--no-verify`&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;**Never**&lt;/span&gt;&lt;span&gt; add AI attribution to commits, PR bodies, or PR titles.&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;- Before killing PIDs, confirm they belong to processes the skill started or&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;  that the user expects to be killable.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h3&gt;3. Customize the placeholders&lt;/h3&gt;
&lt;p&gt;Edit only these tokens in the file you just wrote:&lt;/p&gt;
&lt;div&gt; &lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Placeholder&lt;/th&gt;&lt;th&gt;Replace with&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;&amp;lt;PORT&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Port the dev server listens on (e.g. &lt;code&gt;3000&lt;/code&gt;)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;&amp;lt;START_COMMAND&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Command that boots the app (e.g. &lt;code&gt;npm run dev&lt;/code&gt;)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;&amp;lt;HEALTH_URL&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;td&gt;URL that returns 200 once the app is ready&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;&amp;lt;BASE_URL&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Base URL of the running app (e.g. &lt;code&gt;http://localhost:3000&lt;/code&gt;)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;&amp;lt;LINT_COMMAND&amp;gt;&lt;/code&gt; … &lt;code&gt;&amp;lt;SMOKE_COMMAND&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;td&gt;The project&apos;s actual local-CI commands&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt;
&lt;p&gt;If the project already has a single &lt;code&gt;make ci&lt;/code&gt; or &lt;code&gt;npm run ci&lt;/code&gt; target that runs
the whole checklist, collapse stage 4 to that one command.&lt;/p&gt;
&lt;h3&gt;4. Sanity-check the install&lt;/h3&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;test&lt;/span&gt;&lt;span&gt; -f&lt;/span&gt;&lt;span&gt; .claude/skills/playwright-cli/SKILL.md&lt;/span&gt;&lt;span&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span&gt; echo&lt;/span&gt;&lt;span&gt; &quot;playwright-cli skill: ok&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;test&lt;/span&gt;&lt;span&gt; -f&lt;/span&gt;&lt;span&gt; .claude/skills/verify-feature/SKILL.md&lt;/span&gt;&lt;span&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span&gt; echo&lt;/span&gt;&lt;span&gt; &quot;verify-feature skill: ok&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;gh&lt;/span&gt;&lt;span&gt; auth&lt;/span&gt;&lt;span&gt; status&lt;/span&gt;&lt;span&gt; &amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;span&gt; 2&amp;gt;&amp;amp;1&lt;/span&gt;&lt;span&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span&gt; echo&lt;/span&gt;&lt;span&gt; &quot;gh: authenticated&quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;All three lines should print. If &lt;code&gt;gh&lt;/code&gt; isn&apos;t authenticated, run &lt;code&gt;gh auth login&lt;/code&gt;
before invoking the skill — stage 5 will fail otherwise.&lt;/p&gt;
&lt;h3&gt;5. Commit the skills&lt;/h3&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; add&lt;/span&gt;&lt;span&gt; .claude/skills/playwright-cli&lt;/span&gt;&lt;span&gt; .claude/skills/verify-feature&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; commit&lt;/span&gt;&lt;span&gt; -m&lt;/span&gt;&lt;span&gt; &quot;Add verify-feature and playwright-cli skills&quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Now the skill is part of the repo: every clone gets the same pre-PR check.&lt;/p&gt;
&lt;h2&gt;Resources&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/antosubash/SimpleModule/blob/main/.claude/skills/verify-feature/SKILL.md&quot;&gt;Skill source on GitHub&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.claude.com/en/docs/claude-code/skills&quot;&gt;Claude Code skills documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.claude.com/en/docs/claude-code/slash-commands&quot;&gt;Claude Code slash commands documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.npmjs.com/package/@playwright/cli&quot;&gt;&lt;code&gt;@playwright/cli&lt;/code&gt; on npm&lt;/a&gt; — the &lt;code&gt;playwright-cli&lt;/code&gt; binary used in stage 2&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://cli.github.com/manual/gh_pr_create&quot;&gt;GitHub CLI (&lt;code&gt;gh&lt;/code&gt;) — creating pull requests&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content:encoded></item><item><title>Introducing SimpleModule: A Modular Monolith Framework for .NET 10</title><link>https://blog.antosubash.com/posts/introducing-simplemodule</link><guid isPermaLink="true">https://blog.antosubash.com/posts/introducing-simplemodule</guid><description>Meet SimpleModule, an experimental .NET 10 framework that uses Roslyn source generators to build modular monoliths with compile-time module discovery, full-stack type safety, and Inertia.js-powered React UIs.</description><pubDate>Fri, 08 May 2026 00:00:00 GMT</pubDate><content:encoded>&lt;h2&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Modular monoliths have become a popular middle ground between the complexity of distributed microservices and the rigidity of a traditional monolith. They give you clear module boundaries, isolated data ownership, and decoupled communication, all while keeping deployment simple.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/antosubash/SimpleModule&quot;&gt;SimpleModule&lt;/a&gt; is an experimental .NET 10 framework I have been working on that takes this idea further. Instead of relying on runtime reflection, it uses Roslyn source generators to discover modules, endpoints, and DTOs at compile time, and it ships with a React + Inertia.js front-end that stays type-safe with the backend.&lt;/p&gt;
&lt;p&gt;This post is a quick tour of what SimpleModule is, why it exists, and how the pieces fit together.&lt;/p&gt;
&lt;h2&gt;Why Another Framework?&lt;/h2&gt;
&lt;p&gt;Most modular monolith setups in .NET share a few recurring problems:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Manual wiring.&lt;/strong&gt; Every new module needs to be registered in &lt;code&gt;Program.cs&lt;/code&gt;, endpoints mapped, options bound, and DI services configured.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Runtime reflection.&lt;/strong&gt; Frameworks scan assemblies on startup, which adds latency, hides errors until runtime, and complicates AOT scenarios.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Frontend / backend drift.&lt;/strong&gt; DTOs are duplicated across C# and TypeScript, and they slowly fall out of sync.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Leaky module boundaries.&lt;/strong&gt; Without strong contracts, modules end up reaching directly into each other&apos;s internals.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;SimpleModule tries to solve these by leaning hard on the compiler.&lt;/p&gt;
&lt;h2&gt;Core Ideas&lt;/h2&gt;
&lt;h3&gt;1. Compile-time Module Discovery&lt;/h3&gt;
&lt;p&gt;The heart of SimpleModule is an &lt;code&gt;IIncrementalGenerator&lt;/code&gt;. At build time it scans referenced assemblies and looks for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Classes decorated with &lt;code&gt;[Module]&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Implementations of &lt;code&gt;IEndpoint&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Types decorated with &lt;code&gt;[Dto]&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;From that, the generator emits:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;An &lt;code&gt;AddModules()&lt;/code&gt; extension that registers every module&lt;/li&gt;
&lt;li&gt;Endpoint mapping code&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;JsonSerializerContext&lt;/code&gt; for source-generated serialization&lt;/li&gt;
&lt;li&gt;TypeScript type definitions for the React side&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The result is zero runtime reflection for module wiring and immediate feedback in the IDE when something is misconfigured.&lt;/p&gt;
&lt;h3&gt;2. Module Isolation&lt;/h3&gt;
&lt;p&gt;Each module is a self-contained slice of the application:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Its own implementation project&lt;/li&gt;
&lt;li&gt;A separate &lt;code&gt;.Contracts&lt;/code&gt; project that other modules depend on&lt;/li&gt;
&lt;li&gt;An EF Core &lt;code&gt;DbContext&lt;/code&gt; scoped to that module&lt;/li&gt;
&lt;li&gt;A dedicated React page bundle&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Storage is isolated using either a separate schema (PostgreSQL / SQL Server) or a table prefix (SQLite). Modules never share &lt;code&gt;DbContext&lt;/code&gt;s, and they never reference each other&apos;s internal types.&lt;/p&gt;
&lt;h3&gt;3. Communication via Contracts and Events&lt;/h3&gt;
&lt;p&gt;Cross-module interaction goes through one of two channels:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Contract interfaces&lt;/strong&gt; in the &lt;code&gt;.Contracts&lt;/code&gt; project for synchronous calls&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;IEventBus&lt;/code&gt;&lt;/strong&gt; with &lt;code&gt;PublishAsync&amp;lt;T&amp;gt;()&lt;/code&gt; and &lt;code&gt;IEventHandler&amp;lt;T&amp;gt;&lt;/code&gt; for asynchronous, decoupled messaging&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This keeps modules pluggable: as long as the contract is stable, the implementation can change freely.&lt;/p&gt;
&lt;h3&gt;4. Full-Stack Type Safety&lt;/h3&gt;
&lt;p&gt;Decorate a C# record with &lt;code&gt;[Dto]&lt;/code&gt;:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;Dto&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;public&lt;/span&gt;&lt;span&gt; record&lt;/span&gt;&lt;span&gt; ProductDto&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;Guid&lt;/span&gt;&lt;span&gt; Id&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; string&lt;/span&gt;&lt;span&gt; Name&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; decimal&lt;/span&gt;&lt;span&gt; Price);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The source generator emits a matching TypeScript interface that React components import directly. No hand-written types, no &lt;code&gt;any&lt;/code&gt;, no drift between client and server.&lt;/p&gt;
&lt;h3&gt;5. Inertia.js for the Frontend&lt;/h3&gt;
&lt;p&gt;SimpleModule uses &lt;a href=&quot;https://inertiajs.com/&quot;&gt;Inertia.js&lt;/a&gt; as the bridge between ASP.NET Core and React. Endpoints look like this:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;public&lt;/span&gt;&lt;span&gt; class&lt;/span&gt;&lt;span&gt; ProductsIndex&lt;/span&gt;&lt;span&gt; :&lt;/span&gt;&lt;span&gt; IEndpoint&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;    public&lt;/span&gt;&lt;span&gt; void&lt;/span&gt;&lt;span&gt; Map&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;IEndpointRouteBuilder&lt;/span&gt;&lt;span&gt; app) &lt;/span&gt;&lt;span&gt;=&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;        app&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;MapGet&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;/products&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; async&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span&gt;IProductService&lt;/span&gt;&lt;span&gt; products) &lt;/span&gt;&lt;span&gt;=&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;            Inertia&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;Render&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;Products/Index&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; new&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;            {&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;                items &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; await&lt;/span&gt;&lt;span&gt; products&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;GetAllAsync&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;            }));&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The first request returns a static HTML shell with JSON props. Subsequent navigations are handled client-side, with React 19 hydrating on top.&lt;/p&gt;
&lt;h2&gt;Technology Stack&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Backend&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;ASP.NET Core (.NET 10)&lt;/li&gt;
&lt;li&gt;Entity Framework Core&lt;/li&gt;
&lt;li&gt;Roslyn source generators&lt;/li&gt;
&lt;li&gt;OpenIddict for auth&lt;/li&gt;
&lt;li&gt;.NET Aspire for orchestration&lt;/li&gt;
&lt;li&gt;OpenTelemetry for observability&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Frontend&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;React 19 + TypeScript&lt;/li&gt;
&lt;li&gt;Inertia.js&lt;/li&gt;
&lt;li&gt;Vite&lt;/li&gt;
&lt;li&gt;Tailwind CSS + Radix UI&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Database&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;SQLite, PostgreSQL, and SQL Server&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Testing&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;xUnit.v3, FluentAssertions, NSubstitute, Bogus&lt;/li&gt;
&lt;li&gt;Playwright for end-to-end tests&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Repository Layout&lt;/h2&gt;
&lt;p&gt;The repo is organized into a handful of top-level folders:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;framework/&lt;/code&gt; — core infrastructure and the source generator&lt;/li&gt;
&lt;li&gt;&lt;code&gt;modules/&lt;/code&gt; — feature modules&lt;/li&gt;
&lt;li&gt;&lt;code&gt;packages/&lt;/code&gt; — shared client libraries and UI components&lt;/li&gt;
&lt;li&gt;&lt;code&gt;template/&lt;/code&gt; — a reference host application&lt;/li&gt;
&lt;li&gt;&lt;code&gt;cli/&lt;/code&gt; — the &lt;code&gt;sm&lt;/code&gt; scaffolding tool&lt;/li&gt;
&lt;li&gt;&lt;code&gt;tests/&lt;/code&gt; — unit, integration, and end-to-end tests&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Out of the box, SimpleModule ships with modules that cover most of what a real application needs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Users&lt;/strong&gt;, &lt;strong&gt;OpenIddict&lt;/strong&gt;, &lt;strong&gt;Permissions&lt;/strong&gt; — identity and authorization&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tenants&lt;/strong&gt; — multi-tenancy&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Settings&lt;/strong&gt;, &lt;strong&gt;FeatureFlags&lt;/strong&gt;, &lt;strong&gt;Localization&lt;/strong&gt; — configuration concerns&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Email&lt;/strong&gt;, &lt;strong&gt;FileStorage&lt;/strong&gt;, &lt;strong&gt;BackgroundJobs&lt;/strong&gt; — common infrastructure&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;AuditLogs&lt;/strong&gt;, &lt;strong&gt;RateLimiting&lt;/strong&gt; — cross-cutting policies&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Admin&lt;/strong&gt;, &lt;strong&gt;Dashboard&lt;/strong&gt; — admin UI&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can pick the ones you want and drop the rest.&lt;/p&gt;
&lt;h2&gt;Getting Started&lt;/h2&gt;
&lt;p&gt;You will need the .NET 10 SDK and a recent Node.js LTS.&lt;/p&gt;
&lt;p&gt;Clone the repo and run the AppHost with .NET Aspire (PostgreSQL is provisioned automatically):&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;git&lt;/span&gt;&lt;span&gt; clone&lt;/span&gt;&lt;span&gt; https://github.com/antosubash/SimpleModule.git&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;cd&lt;/span&gt;&lt;span&gt; SimpleModule&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;dotnet&lt;/span&gt;&lt;span&gt; build&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;npm&lt;/span&gt;&lt;span&gt; install&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;dotnet&lt;/span&gt;&lt;span&gt; run&lt;/span&gt;&lt;span&gt; --project&lt;/span&gt;&lt;span&gt; SimpleModule.AppHost&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;If you would rather skip Aspire and PostgreSQL, the SQLite-only host works standalone:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;dotnet&lt;/span&gt;&lt;span&gt; run&lt;/span&gt;&lt;span&gt; --project&lt;/span&gt;&lt;span&gt; template/SimpleModule.Host&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The app will be available at &lt;code&gt;https://localhost:5001&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;For a Docker-based setup with PostgreSQL 16:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;docker&lt;/span&gt;&lt;span&gt; compose&lt;/span&gt;&lt;span&gt; up&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2&gt;Development Workflow&lt;/h2&gt;
&lt;p&gt;During development, run:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;npm&lt;/span&gt;&lt;span&gt; run&lt;/span&gt;&lt;span&gt; dev&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This starts the .NET backend together with Vite watchers for every module. Editing any &lt;code&gt;.tsx&lt;/code&gt; file triggers an instant rebuild, with unminified output and source maps for easier debugging.&lt;/p&gt;
&lt;h2&gt;The &lt;code&gt;sm&lt;/code&gt; CLI&lt;/h2&gt;
&lt;p&gt;SimpleModule includes a small CLI to handle scaffolding:&lt;/p&gt;
&lt;div&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;sm&lt;/span&gt;&lt;span&gt; new&lt;/span&gt;&lt;span&gt; MyApp&lt;/span&gt;&lt;span&gt;           # create a new solution&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;sm&lt;/span&gt;&lt;span&gt; add&lt;/span&gt;&lt;span&gt; module&lt;/span&gt;&lt;span&gt; Orders&lt;/span&gt;&lt;span&gt;   # scaffold a new module&lt;/span&gt;&lt;/span&gt;
&lt;span&gt;&lt;span&gt;sm&lt;/span&gt;&lt;span&gt; doctor&lt;/span&gt;&lt;span&gt;              # validate project structure (and optionally fix issues)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;code&gt;sm doctor&lt;/code&gt; is particularly handy when you forget to register a project or your folder layout drifts from the conventions the source generator expects.&lt;/p&gt;
&lt;h2&gt;What&apos;s Next&lt;/h2&gt;
&lt;p&gt;This is just an introduction. In follow-up posts I plan to dig into:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Building a module from scratch with the source generator&lt;/li&gt;
&lt;li&gt;How &lt;code&gt;[Dto]&lt;/code&gt; and the TypeScript bridge actually work&lt;/li&gt;
&lt;li&gt;Patterns for inter-module communication with &lt;code&gt;IEventBus&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Multi-tenancy and authorization with OpenIddict&lt;/li&gt;
&lt;li&gt;Migrating from &lt;code&gt;EnsureCreated&lt;/code&gt; to per-module EF Core migrations&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you want to follow along, the code lives at &lt;a href=&quot;https://github.com/antosubash/SimpleModule&quot;&gt;github.com/antosubash/SimpleModule&lt;/a&gt;. Issues and ideas are very welcome.&lt;/p&gt;
&lt;h2&gt;Resources&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/antosubash/SimpleModule&quot;&gt;SimpleModule on GitHub&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://inertiajs.com/&quot;&gt;Inertia.js documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://learn.microsoft.com/dotnet/aspire/&quot;&gt;.NET Aspire&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://learn.microsoft.com/dotnet/csharp/roslyn-sdk/source-generators-overview&quot;&gt;Roslyn source generators&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content:encoded></item><item><title>Centralized Logging for Any Stack with Loki, Promtail, Alloy, and Grafana</title><link>https://blog.antosubash.com/posts/centralized-logging-with-loki-grafana</link><guid isPermaLink="true">https://blog.antosubash.com/posts/centralized-logging-with-loki-grafana</guid><description>A drop-in observability stack that captures backend logs and browser telemetry into a single Grafana dashboard — works with any backend language and any frontend framework. All configs and code included.</description><pubDate>Wed, 06 May 2026 00:00:00 GMT</pubDate></item><item><title>Migrating an ABP Frontend from Next.js to TanStack Start</title><link>https://blog.antosubash.com/posts/abp-react-migrating-from-nextjs-to-tanstack-start</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-react-migrating-from-nextjs-to-tanstack-start</guid><description>A real-world case study of moving abp-react from Next.js App Router to TanStack Start — what changed in routing, SSR, OIDC, the generated API client, state, and Docker.</description><pubDate>Mon, 04 May 2026 00:00:00 GMT</pubDate></item><item><title>Building AI-Powered Sentiment Analysis with Microsoft Agent Framework and Ollama</title><link>https://blog.antosubash.com/posts/agent-framework-sentiment-analysis</link><guid isPermaLink="true">https://blog.antosubash.com/posts/agent-framework-sentiment-analysis</guid><description>Learn how to build sentiment analysis with Microsoft Agent Framework and Ollama. We will use the Ollama model to perform the sentiment analysis and the Microsoft Agent Framework to build the agent.</description><pubDate>Sun, 02 Nov 2025 00:00:00 GMT</pubDate></item><item><title>Building AI Agents with Microsoft Agent Framework and Ollama: A Getting Started Guide</title><link>https://blog.antosubash.com/posts/agent-framework-ollama</link><guid isPermaLink="true">https://blog.antosubash.com/posts/agent-framework-ollama</guid><description>Learn how to build sophisticated AI agents using Microsoft Agent Framework with Ollama for local AI model execution. This comprehensive guide covers streaming responses, multi-turn conversations, function tools, middleware integration, and production-ready patterns.</description><pubDate>Sat, 04 Oct 2025 00:00:00 GMT</pubDate></item><item><title>ABP React CMS Module: Building Dynamic Pages with Puck Editor</title><link>https://blog.antosubash.com/posts/abp-react-cms-module-pages</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-react-cms-module-pages</guid><description>ABP React CMS Kit is a React UI for the ABP CmsKit module.</description><pubDate>Thu, 07 Aug 2025 00:00:00 GMT</pubDate></item><item><title>Automating Image Cleanup in Azure Container Registry with ACR Tasks</title><link>https://blog.antosubash.com/posts/automatic-image-cleanup-in-acr</link><guid isPermaLink="true">https://blog.antosubash.com/posts/automatic-image-cleanup-in-acr</guid><description>Learn how to automate image cleanup in Azure Container Registry using ACR Tasks and implement best practices for container image management.</description><pubDate>Thu, 16 Jan 2025 00:00:00 GMT</pubDate></item><item><title>Modern API Documentation in .NET with Scalar and OpenAPI</title><link>https://blog.antosubash.com/posts/dotnet-openapi-with-scalar</link><guid isPermaLink="true">https://blog.antosubash.com/posts/dotnet-openapi-with-scalar</guid><description>Learn how to implement beautiful API documentation using Scalar and OpenAPI in .NET 9.0</description><pubDate>Wed, 15 Jan 2025 00:00:00 GMT</pubDate></item><item><title>Building an AI-Powered .NET API with Ollama and Microsoft.Extensions.AI</title><link>https://blog.antosubash.com/posts/ollama-with-extension-ai-and-function-calling</link><guid isPermaLink="true">https://blog.antosubash.com/posts/ollama-with-extension-ai-and-function-calling</guid><description>Learn how to create an intelligent .NET API using Ollama, Microsoft.Extensions.AI, and implement function calling capabilities with Large Language Models.</description><pubDate>Wed, 15 Jan 2025 00:00:00 GMT</pubDate></item><item><title>OpenID Connect with Next.js 15 and openid-client 6</title><link>https://blog.antosubash.com/posts/openid-connect-with-nextjs-with-openid-client-6-and-next-15</link><guid isPermaLink="true">https://blog.antosubash.com/posts/openid-connect-with-nextjs-with-openid-client-6-and-next-15</guid><description>A guide to implementing secure authentication using OpenID Connect in Next.js 15 with the openid-client library version 6</description><pubDate>Tue, 05 Nov 2024 00:00:00 GMT</pubDate></item><item><title>Ollama Semantic Kernel Connector With C#: Console App &amp; API Guide</title><link>https://blog.antosubash.com/posts/ollama-semantic-kernal-connector</link><guid isPermaLink="true">https://blog.antosubash.com/posts/ollama-semantic-kernal-connector</guid><description>In this post, we will learn how to use the Ollama Semantic Kernel Connector with C#.</description><pubDate>Sat, 19 Oct 2024 00:00:00 GMT</pubDate></item><item><title>ABP-Powered Web App with Inertia.js, React, and Vite</title><link>https://blog.antosubash.com/posts/abp-with-inertia-and-react</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-with-inertia-and-react</guid><description>Building a web application with ABP Framework, Inertia.js, React, and Vite.</description><pubDate>Thu, 03 Oct 2024 12:54:31 GMT</pubDate></item><item><title>Getting started with Ollama and Semantic Kernel with C#</title><link>https://blog.antosubash.com/posts/ollama-with-semantic-kernel</link><guid isPermaLink="true">https://blog.antosubash.com/posts/ollama-with-semantic-kernel</guid><description>In this post, we will learn how to get started with Ollama and Semantic Kernel with C#.</description><pubDate>Thu, 15 Aug 2024 00:00:00 GMT</pubDate></item><item><title>Migrating Tye to Aspire</title><link>https://blog.antosubash.com/posts/migrating-tye-to-aspire</link><guid isPermaLink="true">https://blog.antosubash.com/posts/migrating-tye-to-aspire</guid><description>In this post we will see how to migrate the Tye to Aspire</description><pubDate>Wed, 17 Jul 2024 20:59:17 GMT</pubDate></item><item><title>ABP React Template V2</title><link>https://blog.antosubash.com/posts/abp-react-v2</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-react-v2</guid><description>Version 2 of React Starter Template for ABP application with Next.js, Tailwind CSS, and shadcn-ui.</description><pubDate>Sat, 06 Jul 2024 12:54:31 GMT</pubDate></item><item><title>OpenID Connect with Next.js</title><link>https://blog.antosubash.com/posts/openid-connect-with-nextjs</link><guid isPermaLink="true">https://blog.antosubash.com/posts/openid-connect-with-nextjs</guid><description>In this post, we will see how to implement OpenID Connect with Next.js.</description><pubDate>Wed, 03 Jul 2024 00:00:00 GMT</pubDate></item><item><title>Cert Manager and Nginx Ingress Controller on AKS Cluster with static IP</title><link>https://blog.antosubash.com/posts/certmanager-nginx-ingress-controller-with-static-ip-in-aks</link><guid isPermaLink="true">https://blog.antosubash.com/posts/certmanager-nginx-ingress-controller-with-static-ip-in-aks</guid><description>In this we will setup Cert Manager and Nginx Ingress Controller on AKS Cluster</description><pubDate>Fri, 18 Aug 2023 11:53:48 GMT</pubDate></item><item><title>Create AKS cluster and ACR with Terraform</title><link>https://blog.antosubash.com/posts/terraform-to-create-azure-kubernetes-service-aks-cluster-and-container-registry</link><guid isPermaLink="true">https://blog.antosubash.com/posts/terraform-to-create-azure-kubernetes-service-aks-cluster-and-container-registry</guid><description>In this we will create Azure Kubernetes (AKS) cluster and Azure Container Registry (ACR).</description><pubDate>Wed, 16 Aug 2023 11:53:48 GMT</pubDate></item><item><title>Azure Deployment for .Net - Introduction - Prerequisites</title><link>https://blog.antosubash.com/posts/azure-deployment-for-dotnet</link><guid isPermaLink="true">https://blog.antosubash.com/posts/azure-deployment-for-dotnet</guid><description>This is the introduction to the Azure Deployment for .Net series.</description><pubDate>Mon, 14 Aug 2023 11:53:48 GMT</pubDate></item><item><title>ABP no-layer module template</title><link>https://blog.antosubash.com/posts/abp-no-layer-module-template</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-no-layer-module-template</guid><description>In this article, you will learn how to create a no-layer module template for abp application.</description><pubDate>Sun, 21 May 2023 17:28:49 GMT</pubDate></item><item><title>Abp CLI Template</title><link>https://blog.antosubash.com/posts/abp-cli-template</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-cli-template</guid><description>In this post we will see how to create a Cli for your abp application.</description><pubDate>Sat, 20 May 2023 00:00:00 GMT</pubDate></item><item><title>ABP React Template</title><link>https://blog.antosubash.com/posts/abp-react-template</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-react-template</guid><description>React Starter Template for ABP application.</description><pubDate>Mon, 03 Apr 2023 12:54:31 GMT</pubDate></item><item><title>Abp Dockerfile</title><link>https://blog.antosubash.com/posts/abp-docker-file</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-docker-file</guid><description>In this post we will see how to create proper docker file for your abp application.</description><pubDate>Sun, 19 Mar 2023 21:52:11 GMT</pubDate></item><item><title>.Net Microservice template with ABP</title><link>https://blog.antosubash.com/posts/dotnet-microservice-template-with-abp</link><guid isPermaLink="true">https://blog.antosubash.com/posts/dotnet-microservice-template-with-abp</guid><description>In this post I will show you how to create ABP microservice using a dotnet new template.</description><pubDate>Sat, 18 Feb 2023 18:11:38 GMT</pubDate></item><item><title>Migrating Identity Service to OpenIddict Module</title><link>https://blog.antosubash.com/posts/migrating-identity-service-to-open-iddict-module</link><guid isPermaLink="true">https://blog.antosubash.com/posts/migrating-identity-service-to-open-iddict-module</guid><description>In this post we will see how to replace Identity server with OpenIddict in our microservice</description><pubDate>Mon, 05 Dec 2022 20:59:17 GMT</pubDate></item><item><title>Automatically version and release .Net Application</title><link>https://blog.antosubash.com/posts/automatic-version-and-release</link><guid isPermaLink="true">https://blog.antosubash.com/posts/automatic-version-and-release</guid><description>In this post you will see how to automatically version and release a .Net Application using GitHub Actions</description><pubDate>Sun, 23 Oct 2022 00:00:00 GMT</pubDate></item><item><title>MicroK8s - Hassle-free Kubernetes</title><link>https://blog.antosubash.com/posts/microk8s-gettings-started</link><guid isPermaLink="true">https://blog.antosubash.com/posts/microk8s-gettings-started</guid><description>In this post we will see how to get started with the MicroK8s Kubernetes distribution.</description><pubDate>Thu, 15 Sep 2022 14:30:14 GMT</pubDate></item><item><title>Create and deploy .Net application in MicroK8s</title><link>https://blog.antosubash.com/posts/create-and-deploy-dotnet-application-in-micro-k8s</link><guid isPermaLink="true">https://blog.antosubash.com/posts/create-and-deploy-dotnet-application-in-micro-k8s</guid><description>In this post we will create a simple abp application and deploy it in the microk8s instance.</description><pubDate>Wed, 14 Sep 2022 19:55:43 GMT</pubDate></item><item><title>Deploy docker registry and postgres database in MicroK8s</title><link>https://blog.antosubash.com/posts/deploy-docker-registry-and-postgres-database-in-micro-k8s</link><guid isPermaLink="true">https://blog.antosubash.com/posts/deploy-docker-registry-and-postgres-database-in-micro-k8s</guid><description>In this post we will see how to deploy and secure the registry along with deploying a postgres database in microk8s</description><pubDate>Wed, 14 Sep 2022 19:53:18 GMT</pubDate></item><item><title>Setup Nginx and cert-manager in MicroK8s</title><link>https://blog.antosubash.com/posts/setup-nginx-and-cert-manager-in-micro-k8s</link><guid isPermaLink="true">https://blog.antosubash.com/posts/setup-nginx-and-cert-manager-in-micro-k8s</guid><description>In this post we will see how to setup nginx reverse proxy and cert-manager in microk8s</description><pubDate>Wed, 14 Sep 2022 19:51:51 GMT</pubDate></item><item><title>Setup MicroK8s With Ubuntu</title><link>https://blog.antosubash.com/posts/setup-micro-k8s-with-ubuntu</link><guid isPermaLink="true">https://blog.antosubash.com/posts/setup-micro-k8s-with-ubuntu</guid><description>In this post we will see how to setup microk8s in ubuntu server.</description><pubDate>Wed, 14 Sep 2022 19:50:03 GMT</pubDate></item><item><title>NDepend - A tool you can depend on</title><link>https://blog.antosubash.com/posts/ndepend</link><guid isPermaLink="true">https://blog.antosubash.com/posts/ndepend</guid><description>In this post we will see how to use NDepend to improve your .net development.</description><pubDate>Tue, 06 Sep 2022 00:00:00 GMT</pubDate></item><item><title>Docker Deployment using docker swarm</title><link>https://blog.antosubash.com/posts/docker-swarm-hetzner</link><guid isPermaLink="true">https://blog.antosubash.com/posts/docker-swarm-hetzner</guid><description>In this post we will see how to setup docker swarm for your development environment.</description><pubDate>Sun, 31 Jul 2022 00:00:00 GMT</pubDate></item><item><title>Prepare and deploy the microservice</title><link>https://blog.antosubash.com/posts/part-4-prepare-and-deploy-microservice-in-docker</link><guid isPermaLink="true">https://blog.antosubash.com/posts/part-4-prepare-and-deploy-microservice-in-docker</guid><description>In this post we will see how to deploy the microservice solution to the our server.</description><pubDate>Sat, 30 Jul 2022 00:00:00 GMT</pubDate></item><item><title>Deploy redis, rabbitmq, seq, registry and postgres in docker swarm</title><link>https://blog.antosubash.com/posts/part-3-deploy-registry-redis-rabitmq-postgresql-in-docker</link><guid isPermaLink="true">https://blog.antosubash.com/posts/part-3-deploy-registry-redis-rabitmq-postgresql-in-docker</guid><description>In this post we will see how to deploy redis, rabbitmq, postgres and registry.</description><pubDate>Tue, 21 Jun 2022 00:00:00 GMT</pubDate></item><item><title>Setting up docker swarm with traefik and portainer</title><link>https://blog.antosubash.com/posts/part-2-setup-docker-swarm-with-traefik-and-portainer</link><guid isPermaLink="true">https://blog.antosubash.com/posts/part-2-setup-docker-swarm-with-traefik-and-portainer</guid><description>In this post we will see how to create a docker swarm and deploy traefik and portainer in our ubuntu server.</description><pubDate>Mon, 20 Jun 2022 00:00:00 GMT</pubDate></item><item><title>Setting up Ubuntu Server with docker in Hetzner</title><link>https://blog.antosubash.com/posts/part-1-setup-docker-with-ubuntu-server-in-hetzner</link><guid isPermaLink="true">https://blog.antosubash.com/posts/part-1-setup-docker-with-ubuntu-server-in-hetzner</guid><description>In this post we will see how to create a ubuntu server for docker deployment.</description><pubDate>Sun, 19 Jun 2022 00:00:00 GMT</pubDate></item><item><title>Blazor state management with Fluxor</title><link>https://blog.antosubash.com/posts/state-management-blazor-fluxor</link><guid isPermaLink="true">https://blog.antosubash.com/posts/state-management-blazor-fluxor</guid><description>In this post we will see how to setup fluxor in Blazor Wasm App</description><pubDate>Wed, 01 Jun 2022 00:00:00 GMT</pubDate></item><item><title>.NET Microservice with ABP - Full Series</title><link>https://blog.antosubash.com/posts/abp-microservice-series</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-microservice-series</guid><description>This post contains all the parts of the microservice development with ABP</description><pubDate>Sat, 23 Apr 2022 00:00:00 GMT</pubDate></item><item><title>Logging with Seq</title><link>https://blog.antosubash.com/posts/netcore-microservice-with-abp-add-central-logging-part-12</link><guid isPermaLink="true">https://blog.antosubash.com/posts/netcore-microservice-with-abp-add-central-logging-part-12</guid><description>In this post, we will see how to add centralized logging to our microservice application</description><pubDate>Wed, 13 Apr 2022 00:00:00 GMT</pubDate></item><item><title>Add New Service</title><link>https://blog.antosubash.com/posts/netcore-microservice-with-abp-add-new-service-part-11</link><guid isPermaLink="true">https://blog.antosubash.com/posts/netcore-microservice-with-abp-add-new-service-part-11</guid><description>In this post we will see how to add docker support and create a CI/CD with github actions</description><pubDate>Thu, 07 Apr 2022 00:00:00 GMT</pubDate></item><item><title>Docker and CI/CD</title><link>https://blog.antosubash.com/posts/netcore-microservice-with-abp-docker-and-ci-cd-part-10</link><guid isPermaLink="true">https://blog.antosubash.com/posts/netcore-microservice-with-abp-docker-and-ci-cd-part-10</guid><description>In this post we will see how to add docker support and create a CI/CD with github actions</description><pubDate>Sat, 26 Mar 2022 00:00:00 GMT</pubDate></item><item><title>Distributed Event Bus</title><link>https://blog.antosubash.com/posts/netcore-microservice-with-abp-distributed-event-bus-part-9</link><guid isPermaLink="true">https://blog.antosubash.com/posts/netcore-microservice-with-abp-distributed-event-bus-part-9</guid><description>In this post we will see how to get the RabbitMQ working for service to service communication</description><pubDate>Fri, 25 Mar 2022 00:00:00 GMT</pubDate></item><item><title>IdentityServer and Angular</title><link>https://blog.antosubash.com/posts/netcore-microservice-with-abp-identity-server-and-angular-part-8</link><guid isPermaLink="true">https://blog.antosubash.com/posts/netcore-microservice-with-abp-identity-server-and-angular-part-8</guid><description>In this post we will see how to get the IdentityServer and the Angular App working with other services</description><pubDate>Sun, 20 Mar 2022 00:00:00 GMT</pubDate></item><item><title>Yarp and Tye</title><link>https://blog.antosubash.com/posts/netcore-microservice-with-abp-yarp-and-tye-part-7</link><guid isPermaLink="true">https://blog.antosubash.com/posts/netcore-microservice-with-abp-yarp-and-tye-part-7</guid><description>In this post we will see how to create a reverse proxy with Yarp and integrate Tye for our microservice application</description><pubDate>Sat, 19 Mar 2022 05:00:00 GMT</pubDate></item><item><title>DbMigration</title><link>https://blog.antosubash.com/posts/netcore-microservice-with-abp-db-migration-part-6</link><guid isPermaLink="true">https://blog.antosubash.com/posts/netcore-microservice-with-abp-db-migration-part-6</guid><description>In this post we will see how to create migration project for our microservice application</description><pubDate>Sat, 19 Mar 2022 04:00:00 GMT</pubDate></item><item><title>SaaS Services</title><link>https://blog.antosubash.com/posts/netcore-microservice-with-abp-saas-services-part-5</link><guid isPermaLink="true">https://blog.antosubash.com/posts/netcore-microservice-with-abp-saas-services-part-5</guid><description>In this post we will see how to do the create SaaS Service for our microservice application</description><pubDate>Sat, 19 Mar 2022 03:00:00 GMT</pubDate></item><item><title>Identity Services</title><link>https://blog.antosubash.com/posts/netcore-microservice-with-abp-identity-services-part-4</link><guid isPermaLink="true">https://blog.antosubash.com/posts/netcore-microservice-with-abp-identity-services-part-4</guid><description>In this post we will see how to do the create Identity service for our microservice application</description><pubDate>Sat, 19 Mar 2022 02:00:00 GMT</pubDate></item><item><title>Administration Services</title><link>https://blog.antosubash.com/posts/netcore-microservice-with-abp-administration-services-part-3</link><guid isPermaLink="true">https://blog.antosubash.com/posts/netcore-microservice-with-abp-administration-services-part-3</guid><description>In this post we will see how to do the create Administration service for our microservice application</description><pubDate>Sat, 19 Mar 2022 01:00:00 GMT</pubDate></item><item><title>Shared Project</title><link>https://blog.antosubash.com/posts/netcore-microservice-with-abp-shared-project-part-2</link><guid isPermaLink="true">https://blog.antosubash.com/posts/netcore-microservice-with-abp-shared-project-part-2</guid><description>In this post we will see how to do the create a Shared project which will be used by all services</description><pubDate>Sat, 19 Mar 2022 00:00:00 GMT</pubDate></item><item><title>Initial setup</title><link>https://blog.antosubash.com/posts/netcore-microservice-with-abp-init-part-1</link><guid isPermaLink="true">https://blog.antosubash.com/posts/netcore-microservice-with-abp-init-part-1</guid><description>In this post we will see how to do the initial setup for a abp microservice application.</description><pubDate>Fri, 18 Mar 2022 00:00:00 GMT</pubDate></item><item><title>Removing IdentityServer from ABP No Layer Template</title><link>https://blog.antosubash.com/posts/abp-remove-identity-server-from-abp-no-layers-app</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-remove-identity-server-from-abp-no-layers-app</guid><description>In this post we will see how to remove identity server from the No Layer ABP template</description><pubDate>Sun, 30 Jan 2022 00:00:00 GMT</pubDate></item><item><title>Introduction to ABP No Layer Template</title><link>https://blog.antosubash.com/posts/abp-no-layer-template</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-no-layer-template</guid><description>In this post we will explore the new experimental no layer template from the ABP framework</description><pubDate>Sat, 29 Jan 2022 00:00:00 GMT</pubDate></item><item><title>Add tailwindcss to your ABP MVC UI</title><link>https://blog.antosubash.com/posts/abp-add-tailwindcss-to-dotnet-mvc</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-add-tailwindcss-to-dotnet-mvc</guid><description>In this post we will see how to add tailwind css to your ABP MVC UI.</description><pubDate>Tue, 11 Jan 2022 00:00:00 GMT</pubDate></item><item><title>Generate typescript client from swagger / OpenApi</title><link>https://blog.antosubash.com/posts/abp-generate-typescript-client-from-swagger-and-openapi</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-generate-typescript-client-from-swagger-and-openapi</guid><description>In this post we will see how to use how to use the NSwag to generate a typescript client with ABP</description><pubDate>Sat, 08 Jan 2022 00:00:00 GMT</pubDate></item><item><title>Add tailwindcss to your ABP Blazor UI</title><link>https://blog.antosubash.com/posts/abp-add-tailwindcss-to-blazor-ui</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-add-tailwindcss-to-blazor-ui</guid><description>In this post we will see how to add tailwind css to your ABP Blazor UI.</description><pubDate>Wed, 05 Jan 2022 00:00:00 GMT</pubDate></item><item><title>Minimal Api with ABP - Swagger and CRUD - Part 3</title><link>https://blog.antosubash.com/posts/abp-crud-with-minimal-api-p3</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-crud-with-minimal-api-p3</guid><description>In this post we will see how to use minimal api with the ABP application to create a CRUD app.</description><pubDate>Fri, 31 Dec 2021 00:00:00 GMT</pubDate></item><item><title>Minimal Api with ABP - EF Core - Part 2</title><link>https://blog.antosubash.com/posts/abp-with-minimal-api-p2</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-with-minimal-api-p2</guid><description>In this post we will see how to use minimal api with the ABP application and configure EF core.</description><pubDate>Thu, 30 Dec 2021 00:00:00 GMT</pubDate></item><item><title>Minimal Api with ABP - Hello World - Part 1</title><link>https://blog.antosubash.com/posts/abp-with-minimal-api-p1</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-with-minimal-api-p1</guid><description>In this post we will see how to use minimal api with the ABP application.</description><pubDate>Wed, 29 Dec 2021 00:00:00 GMT</pubDate></item><item><title>Add a new Module and convert it to a microservice in ABP</title><link>https://blog.antosubash.com/posts/abp-module-to-microservice</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-module-to-microservice</guid><description>In this post we will see how to create a modular abp application and convert it to microservice. We will add a new module to tiered abp app and then use the separate database to store the modules data and then convert the module to a microservice..</description><pubDate>Sat, 27 Nov 2021 00:00:00 GMT</pubDate></item><item><title>Create content with code in Orchard Core - Part 3</title><link>https://blog.antosubash.com/posts/orchard-core-create-content-with-code</link><guid isPermaLink="true">https://blog.antosubash.com/posts/orchard-core-create-content-with-code</guid><description>In this post we will see how to create content types using the code in Orchard Core.</description><pubDate>Sat, 27 Nov 2021 00:00:00 GMT</pubDate></item><item><title>Authentication using OpenId in React/NextJs App With Orchard Core - Part 2</title><link>https://blog.antosubash.com/posts/orchard-core-openid-nextjs</link><guid isPermaLink="true">https://blog.antosubash.com/posts/orchard-core-openid-nextjs</guid><description>In this post we will see how to do authentication using OpenId for a React App using Orchard Core.</description><pubDate>Thu, 18 Nov 2021 00:00:00 GMT</pubDate></item><item><title>Add a new Module to the Tiered ABP App with separate database for the module</title><link>https://blog.antosubash.com/posts/abp-add-new-module-with-seperate-db</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-add-new-module-with-seperate-db</guid><description>In this post we will see how to develop a modular with tiered abp application. We will add a new module to tiered abp app and then use the separate database to store the modules data and the identity data.</description><pubDate>Wed, 03 Nov 2021 00:00:00 GMT</pubDate></item><item><title>Add a new Module to the ABP App</title><link>https://blog.antosubash.com/posts/abp-add-new-module</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-add-new-module</guid><description>In this post we will see how to develop a modular abp application. We will add a new module to default abp app and then use the same database to store the modules data and the identity data.</description><pubDate>Tue, 02 Nov 2021 00:00:00 GMT</pubDate></item><item><title>Orchard core. Getting started - Part 1</title><link>https://blog.antosubash.com/posts/orchard-core-getting-started-p1</link><guid isPermaLink="true">https://blog.antosubash.com/posts/orchard-core-getting-started-p1</guid><description>In this post we will see how to get started with the orchard core.</description><pubDate>Mon, 01 Nov 2021 00:00:00 GMT</pubDate></item><item><title>Changing theme for your ABP app. Part 10</title><link>https://blog.antosubash.com/posts/abp-change-theme-p10</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-change-theme-p10</guid><description>In this post we will explore how to change the theme for your ABP application.</description><pubDate>Tue, 26 Oct 2021 00:00:00 GMT</pubDate></item><item><title>Deploy ABP Framework dotnet core tiered app to docker swarm. Part 9</title><link>https://blog.antosubash.com/posts/abp-deploy-with-docker</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-deploy-with-docker</guid><description>In this post we will see how to deploy your dotnet core app with docker container.</description><pubDate>Tue, 28 Sep 2021 00:00:00 GMT</pubDate></item><item><title>Centralized logging for .net core ABP microservices app using Seq. Part 8</title><link>https://blog.antosubash.com/posts/abp-central-application-logging-with-seq</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-central-application-logging-with-seq</guid><description>In this post we will see how to implement a central logging system for your ABP app using Seq.</description><pubDate>Sun, 26 Sep 2021 00:00:00 GMT</pubDate></item><item><title>Extend Tenant management and add custom host to your ABP App. Part 7</title><link>https://blog.antosubash.com/posts/abp-extend-tenant-with-custom-host</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-extend-tenant-with-custom-host</guid><description>In this post we will see how to extent the tenant entity and Add a custom tenant resolver for your ABP app.</description><pubDate>Sat, 25 Sep 2021 00:00:00 GMT</pubDate></item><item><title>Add profile picture to User Entity in ABP app using BlobStore and Minio. Part 6</title><link>https://blog.antosubash.com/posts/abp-extend-user-entity-with-profile-picture</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-extend-user-entity-with-profile-picture</guid><description>In this post we will implement the profile picture upload for the ABP app using BlobStore and Minio.</description><pubDate>Sun, 15 Aug 2021 00:00:00 GMT</pubDate></item><item><title>dotnet core large file upload with resume using tus and react/nextjs</title><link>https://blog.antosubash.com/posts/dotnet-and-react-nextjs-large-file-upload-with-tus</link><guid isPermaLink="true">https://blog.antosubash.com/posts/dotnet-and-react-nextjs-large-file-upload-with-tus</guid><description>In this post you will see how to upload large files with resume using tus. We will use dotnet core for the backend and nextjs for the frontend</description><pubDate>Thu, 22 Jul 2021 00:00:00 GMT</pubDate></item><item><title>dotnet file upload with ABP Blob store and Minio</title><link>https://blog.antosubash.com/posts/dotnet-file-upload-with-abp</link><guid isPermaLink="true">https://blog.antosubash.com/posts/dotnet-file-upload-with-abp</guid><description>In this post we will implement file upload using the ABP blob store and Minio</description><pubDate>Sat, 10 Jul 2021 00:00:00 GMT</pubDate></item><item><title>Setting up oh-my-posh and PSReadLine in PowerShell</title><link>https://blog.antosubash.com/posts/setting-up-powershell-with-oh-my-posh-v3</link><guid isPermaLink="true">https://blog.antosubash.com/posts/setting-up-powershell-with-oh-my-posh-v3</guid><description>In this post we will see how to setup the oh-my-posh and PSReadLine with PowerShell.</description><pubDate>Wed, 30 Jun 2021 00:00:00 GMT</pubDate></item><item><title>Flutter Authentication using OpenID, ABP and IdentityServer4. Part 5</title><link>https://blog.antosubash.com/posts/abp-auth-with-flutter-p5</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-auth-with-flutter-p5</guid><description>In this post we will implement the OAuth for the Flutter app.</description><pubDate>Sat, 29 May 2021 00:00:00 GMT</pubDate></item><item><title>Application features with dotnet core and ABP. Part 4</title><link>https://blog.antosubash.com/posts/abp-feature-p4</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-feature-p4</guid><description>ABP Feature system is used to enable, disable or change the behavior of the application features on runtime.</description><pubDate>Mon, 17 May 2021 00:00:00 GMT</pubDate></item><item><title>Authorization in dotnet core with ABP. Part 3</title><link>https://blog.antosubash.com/posts/abp-authorization-p3</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-authorization-p3</guid><description>In this post we will implement the Authorization in ABP with IdentityServer</description><pubDate>Sun, 16 May 2021 00:00:00 GMT</pubDate></item><item><title>SPA Authentication using Next.js, ABP and IdentityServer4. Part 2</title><link>https://blog.antosubash.com/posts/abp-auth-with-nextjs-p2</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-auth-with-nextjs-p2</guid><description>In this post we will implement the SPA authentication for the Nexjs.js app as the frontend and ABP with IdentityServer as Backend</description><pubDate>Sat, 06 Mar 2021 00:00:00 GMT</pubDate></item><item><title>ABP Getting Started With .Net Core and EF Core. ABP Part 1</title><link>https://blog.antosubash.com/posts/abp-getting-started-p1</link><guid isPermaLink="true">https://blog.antosubash.com/posts/abp-getting-started-p1</guid><description>This is an introduction to the ABP Application framework with .Net core and EF core. I have created a Todo App with a CRUD function.</description><pubDate>Fri, 05 Mar 2021 00:00:00 GMT</pubDate></item><item><title>Docker swarm setup for localhost</title><link>https://blog.antosubash.com/posts/docker-swarm-localhost</link><guid isPermaLink="true">https://blog.antosubash.com/posts/docker-swarm-localhost</guid><description>In this post we will see how to setup docker swarm for localhost.</description><pubDate>Sat, 26 Dec 2020 00:00:00 GMT</pubDate></item><item><title>Set up Wsl with zsh and oh-my-zsh</title><link>https://blog.antosubash.com/posts/setup-zsh-and-oh-my-zsh</link><guid isPermaLink="true">https://blog.antosubash.com/posts/setup-zsh-and-oh-my-zsh</guid><description>In this post we will see how to setup zsh shell in the wsl and use oh-my-zsh.</description><pubDate>Sat, 12 Dec 2020 00:00:00 GMT</pubDate></item><item><title>Set up Windows Terminal with PoshGit, oh-my-posh and Cascadia Code PL</title><link>https://blog.antosubash.com/posts/setup-window-terminal-with-poshgit</link><guid isPermaLink="true">https://blog.antosubash.com/posts/setup-window-terminal-with-poshgit</guid><description>In this post we will see how to setup windows terminal with PoshGit and oh-my-posh to make the terminal more productive</description><pubDate>Sat, 05 Dec 2020 00:00:00 GMT</pubDate></item><item><title>Css for leaflet div element</title><link>https://blog.antosubash.com/posts/css-for-leaflet-div-element</link><guid isPermaLink="true">https://blog.antosubash.com/posts/css-for-leaflet-div-element</guid><description>If you are like me who struggle with anything CSS. These are some small css that will help you to fill the leaflet map without setting the fixed height</description><pubDate>Mon, 21 Sep 2020 00:00:00 GMT</pubDate></item><item><title>Setup docker in Ubuntu 18.04</title><link>https://blog.antosubash.com/posts/setup-docker-node-hetzner</link><guid isPermaLink="true">https://blog.antosubash.com/posts/setup-docker-node-hetzner</guid><description>In this post you will see how to setup docker in Ubuntu 18.04. We will also change the default ssh port and install fail2ban.</description><pubDate>Thu, 17 Sep 2020 07:35:07 GMT</pubDate></item><item><title>Traefik setup with docker swarm</title><link>https://blog.antosubash.com/posts/setup-traefik-docker</link><guid isPermaLink="true">https://blog.antosubash.com/posts/setup-traefik-docker</guid><description>In this post you will see how to setup traefik with docker swarm. Along with that we will also setup Portainer and Swarmpit so that it is easy to manage the docker swarm.</description><pubDate>Thu, 17 Sep 2020 05:35:07 GMT</pubDate></item></channel></rss>