[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77KWFN4YPSXC37FZBV0JJPM":3,"skill-same:01M77KWFN4YPSXC37FZBV0JJPM":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M77KWFN4YPSXC37FZBV0JJPM","demo-capture",null,"How to capture the real running Watchdown window on Windows for screenshots and demo GIFs (README hero, release assets), and how to script a live-external-edit-sync GIF. Covers the capture method that actually works (PrintWindow + PW_RENDERFULLCONTENT + SetProcessDPIAware), why capturePage and plain screen-grabs fail, and the ImageMagick assembly recipe. Use whenever producing a screenshot\u002FGIF of the app, or when a capture comes out blank, half-cropped, frameless, or from the wrong desktop.","mfozmen\u002Fwatchdown","mfozmen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F39158545?v=4","01M77KW7QEKWC5G7RKQHX8QJ88","Mehmet Fahri Özmen","01M77KW7R61H9AP16VC3X67S4Y",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmfozmen\u002Fwatchdown\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdemo-capture\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: demo-capture\ndescription: >\n  How to capture the real running Watchdown window on Windows for screenshots and\n  demo GIFs (README hero, release assets), and how to script a live-external-edit-sync\n  GIF. Covers the capture method that actually works (PrintWindow + PW_RENDERFULLCONTENT\n  + SetProcessDPIAware), why capturePage and plain screen-grabs fail, and the ImageMagick\n  assembly recipe. Use whenever producing a screenshot\u002FGIF of the app, or when a capture\n  comes out blank, half-cropped, frameless, or from the wrong desktop.\n---\n\n# Capturing the Watchdown window for demos (Windows)\n\nDistilled from actually doing it. Follow this instead of re-deriving; the failure modes below\neach cost a wasted attempt.\n\n## Environment reality (don't assume isolation)\n\nThe agent's PowerShell runs in the **user's active console session** (e.g. `SessionId 3`, the\n`console` session). It **can see and capture the user's app windows** — verify with\n`Get-Process | Where MainWindowHandle -ne 0` (you'll see VS Code, Chrome, etc.). Do **not** assume\n\"different session \u002F can't capture.\" If a capture is blank, the cause is the *method* (below), not\nisolation. If the app window handle isn't found, the app simply isn't running — launch it.\n\n## The method that works\n\nCapture the window directly with `PrintWindow(hwnd, hdc, 2)` where `2` = **PW_RENDERFULLCONTENT**\n(captures DWM\u002FGPU-composited content — Electron renders via GPU, so plain `PrintWindow(…,0)` and\nGDI grabs come back **blank\u002Fwhite**). Make the process **DPI-aware first** or `GetWindowRect`\nreturns a scaled-down size, the bitmap is too small, and the window is captured **half-cropped**\n(right\u002Fbottom cut off). Dual monitors are irrelevant — `PrintWindow` captures the window, not a\nscreen region.\n\n```powershell\nAdd-Type -AssemblyName System.Drawing\nAdd-Type @\"\nusing System; using System.Runtime.InteropServices;\npublic class Cap {\n  [DllImport(\"user32.dll\")] public static extern bool SetProcessDPIAware();\n  [DllImport(\"user32.dll\")] public static extern bool PrintWindow(IntPtr h, IntPtr hdc, uint flags);\n  [DllImport(\"user32.dll\")] public static extern bool GetWindowRect(IntPtr h, out R rc);\n  [DllImport(\"user32.dll\")] public static extern bool SetForegroundWindow(IntPtr h);\n  [StructLayout(LayoutKind.Sequential)] public struct R { public int L,T,Rr,B; }\n}\n\"@\n[void][Cap]::SetProcessDPIAware()                     # BEFORE GetWindowRect, or you get a half crop\n$h = (Get-Process Watchdown | ? { $_.MainWindowHandle -ne 0 } | select -First 1).MainWindowHandle\n[void][Cap]::SetForegroundWindow($h); Start-Sleep -Milliseconds 600\n$rc = New-Object Cap+R; [void][Cap]::GetWindowRect($h,[ref]$rc)\n$w=$rc.Rr-$rc.L; $ht=$rc.B-$rc.T\n$bmp = New-Object System.Drawing.Bitmap $w,$ht\n$g = [System.Drawing.Graphics]::FromImage($bmp); $hdc = $g.GetHdc()\n[void][Cap]::PrintWindow($h,$hdc,2); $g.ReleaseHdc($hdc); $g.Dispose()\n$bmp.Save(\"$env:USERPROFILE\\Desktop\\shot.png\",[System.Drawing.Imaging.ImageFormat]::Png)\n```\n\nThe result includes the **real window chrome** (title bar with the W↓ icon, menu, min\u002Fmax\u002Fclose) —\nno synthetic frame needed. (`capturePage` on a `BrowserWindow` grabs renderer content only, so it\nlooks frameless — that's what the old, frameless demo GIF was.)\n\n## Scripted live-sync demo GIF\n\nThe app syncs on disk changes, so drive the demo by editing the file and capturing between edits:\n\n1. Set the theme up front (installed app reads it on start): write `~\u002F.watchdown\u002Fpreferences.json`\n   = `{\"theme\":\"dark\"}` (UTF-8, no BOM), then launch the installed\n   `%LOCALAPPDATA%\\Programs\\Watchdown\\Watchdown.exe` with a demo `.md` and `--author \"Claude Code\"`.\n   `Stop-Process` any old instance first so it picks up the new theme.\n2. Loop: write\u002F`AppendAllText` an external edit → `Start-Sleep ~750ms` (settle + render, presence\n   badge shows) → `Grab` a frame. Capture 1–2 base frames first and 1–2 settled frames last.\n3. Assemble + optimize with ImageMagick:\n\n```bash\nmagick -delay 85 -loop 0 frames\u002F*.png -resize 820x raw.gif\nmagick raw.gif -coalesce +repage -layers optimize final.gif   # ~150–200 KB\n```\n\nGotcha: running `-layers optimize` directly on the raw PNGs **collapses the canvas** (produces a\ntiny broken GIF). Assemble to a GIF first, then `-coalesce +repage -layers optimize` — verify with\n`magick final.gif -coalesce out\u002F%03d.png` that every frame is full-size.\n\n## Showing it to the user\n\nThe scratchpad is a Temp path the user can't find. **Copy the GIF\u002FPNG to their Desktop**\n(`$env:USERPROFILE\\Desktop\\…`) and give that name. Visual artifacts still need their approval before\nmerging.\n\n## Checklist\n\n- [ ] `SetProcessDPIAware()` called before `GetWindowRect` (else half-cropped).\n- [ ] `PrintWindow` flag `2` (PW_RENDERFULLCONTENT) — not `0` (blank on GPU content).\n- [ ] Verified the capture isn't blank\u002Fwhite by viewing it (light theme is legitimately white — don't confuse it with a blank grab).\n- [ ] GIF assembled then optimized (`-coalesce +repage -layers optimize`), frames verified full-size.\n- [ ] Copied to the user's Desktop; got approval before committing.\n","# Capturing the Watchdown window for demos (Windows)\n\nDistilled from actually doing it. Follow this instead of re-deriving; the failure modes below\neach cost a wasted attempt.\n\n## Environment reality (don't assume isolation)\n\nThe agent's PowerShell runs in the **user's active console session** (e.g. `SessionId 3`, the\n`console` session). It **can see and capture the user's app windows** — verify with\n`Get-Process | Where MainWindowHandle -ne 0` (you'll see VS Code, Chrome, etc.). Do **not** assume\n\"different session \u002F can't capture.\" If a capture is blank, the cause is the *method* (below), not\nisolation. If the app window handle isn't found, the app simply isn't running — launch it.\n\n## The method that works\n\nCapture the window directly with `PrintWindow(hwnd, hdc, 2)` where `2` = **PW_RENDERFULLCONTENT**\n(captures DWM\u002FGPU-composited content — Electron renders via GPU, so plain `PrintWindow(…,0)` and\nGDI grabs come back **blank\u002Fwhite**). Make the process **DPI-aware first** or `GetWindowRect`\nreturns a scaled-down size, the bitmap is too small, and the window is captured **half-cropped**\n(right\u002Fbottom cut off). Dual monitors are irrelevant — `PrintWindow` captures the window, not a\nscreen region.\n\n```powershell\nAdd-Type -AssemblyName System.Drawing\nAdd-Type @\"\nusing System; using System.Runtime.InteropServices;\npublic class Cap {\n  [DllImport(\"user32.dll\")] public static extern bool SetProcessDPIAware();\n  [DllImport(\"user32.dll\")] public static extern bool PrintWindow(IntPtr h, IntPtr hdc, uint flags);\n  [DllImport(\"user32.dll\")] public static extern bool GetWindowRect(IntPtr h, out R rc);\n  [DllImport(\"user32.dll\")] public static extern bool SetForegroundWindow(IntPtr h);\n  [StructLayout(LayoutKind.Sequential)] public struct R { public int L,T,Rr,B; }\n}\n\"@\n[void][Cap]::SetProcessDPIAware()                     # BEFORE GetWindowRect, or you get a half crop\n$h = (Get-Process Watchdown | ? { $_.MainWindowHandle -ne 0 } | select -First 1).MainWindowHandle\n[void][Cap]::SetForegroundWindow($h); Start-Sleep -Milliseconds 600\n$rc = New-Object Cap+R; [void][Cap]::GetWindowRect($h,[ref]$rc)\n$w=$rc.Rr-$rc.L; $ht=$rc.B-$rc.T\n$bmp = New-Object System.Drawing.Bitmap $w,$ht\n$g = [System.Drawing.Graphics]::FromImage($bmp); $hdc = $g.GetHdc()\n[void][Cap]::PrintWindow($h,$hdc,2); $g.ReleaseHdc($hdc); $g.Dispose()\n$bmp.Save(\"$env:USERPROFILE\\Desktop\\shot.png\",[System.Drawing.Imaging.ImageFormat]::Png)\n```\n\nThe result includes the **real window chrome** (title bar with the W↓ icon, menu, min\u002Fmax\u002Fclose) —\nno synthetic frame needed. (`capturePage` on a `BrowserWindow` grabs renderer content only, so it\nlooks frameless — that's what the old, frameless demo GIF was.)\n\n## Scripted live-sync demo GIF\n\nThe app syncs on disk changes, so drive the demo by editing the file and capturing between edits:\n\n1. Set the theme up front (installed app reads it on start): write `~\u002F.watchdown\u002Fpreferences.json`\n   = `{\"theme\":\"dark\"}` (UTF-8, no BOM), then launch the installed\n   `%LOCALAPPDATA%\\Programs\\Watchdown\\Watchdown.exe` with a demo `.md` and `--author \"Claude Code\"`.\n   `Stop-Process` any old instance first so it picks up the new theme.\n2. Loop: write\u002F`AppendAllText` an external edit → `Start-Sleep ~750ms` (settle + render, presence\n   badge shows) → `Grab` a frame. Capture 1–2 base frames first and 1–2 settled frames last.\n3. Assemble + optimize with ImageMagick:\n\n```bash\nmagick -delay 85 -loop 0 frames\u002F*.png -resize 820x raw.gif\nmagick raw.gif -coalesce +repage -layers optimize final.gif   # ~150–200 KB\n```\n\nGotcha: running `-layers optimize` directly on the raw PNGs **collapses the canvas** (produces a\ntiny broken GIF). Assemble to a GIF first, then `-coalesce +repage -layers optimize` — verify with\n`magick final.gif -coalesce out\u002F%03d.png` that every frame is full-size.\n\n## Showing it to the user\n\nThe scratchpad is a Temp path the user can't find. **Copy the GIF\u002FPNG to their Desktop**\n(`$env:USERPROFILE\\Desktop\\…`) and give that name. Visual artifacts still need their approval before\nmerging.\n\n## Checklist\n\n- [ ] `SetProcessDPIAware()` called before `GetWindowRect` (else half-cropped).\n- [ ] `PrintWindow` flag `2` (PW_RENDERFULLCONTENT) — not `0` (blank on GPU content).\n- [ ] Verified the capture isn't blank\u002Fwhite by viewing it (light theme is legitimately white — don't confuse it with a blank grab).\n- [ ] GIF assembled then optimized (`-coalesce +repage -layers optimize`), frames verified full-size.\n- [ ] Copied to the user's Desktop; got approval before committing.\n",{"name":5,"description":7},"main","babb6a5a383e6263c21aa7cb32be87a4cce61f66",".claude\u002Fskills\u002Fdemo-capture","https:\u002F\u002Fgithub.com\u002Fmfozmen\u002Fwatchdown","https:\u002F\u002Fgithub.com\u002Fmfozmen","https:\u002F\u002Fmehmetfahriozmen.dev\u002F","2026-11-12 20:07:19",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add mfozmen\u002Fwatchdown --skill demo-capture",{"tool":37,"command":38},"bunx","bunx skills add mfozmen\u002Fwatchdown --skill demo-capture",{"tool":40,"command":41},"pnpm","pnpm dlx skills add mfozmen\u002Fwatchdown --skill demo-capture","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmfozmen\u002Fwatchdown\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdemo-capture\u002FSKILL.md",true,[],[46,53,60,66,72],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M77KWRVEZ5F1V0PMTST8YCSD","ui-ux","Desktop UI\u002FUX guidance for Watchdown's editor surface (Electron + CodeMirror): accessibility and keyboard support, contrast and dark mode, editor typography, animation and reduced-motion, color semantics for diff\u002Fauthorship\u002Fconflict, and status\u002Ffeedback. Plus project-specific guidance for the live presence and diff-attribution UI. Use when designing, building, or reviewing any editor UI — gutters, markers, author glyphs, highlights, the status bar, or conflict rendering.","https:\u002F\u002Fgithub.com\u002Fmfozmen\u002Fwatchdown\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fui-ux\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M77KWP7XNTE3SBNP8FZNJ5XJ","release-process","How Watchdown versions and ships releases via release-please — squash-merge rules, the release PR gate, tag\u002Finstaller build, and the RELEASE_PLEASE_PAT caveat. Use when merging PRs, cutting a release, or touching versioning.","https:\u002F\u002Fgithub.com\u002Fmfozmen\u002Fwatchdown\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frelease-process\u002FSKILL.md",[],[],{"skillNo":61,"name":48,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M77KWDZKS1ZPRMNXTDBZJFT4","Use when designing, building, or reviewing Watchdown's editor UI, including presence, attribution, status, and conflicts.","https:\u002F\u002Fgithub.com\u002Fmfozmen\u002Fwatchdown\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-ux\u002FSKILL.md",[],[],{"skillNo":67,"name":55,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M77KWBPRE0Y8KJ0H05N1FDD4","Use when merging Watchdown PRs, cutting a release, or changing versioning.","https:\u002F\u002Fgithub.com\u002Fmfozmen\u002Fwatchdown\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frelease-process\u002FSKILL.md",[],[],{"skillNo":73,"name":5,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M77KW9TN6N42Z46GFNB3PHXF","Use when capturing a screenshot or demo GIF of Watchdown on Windows, or troubleshooting a failed capture.","https:\u002F\u002Fgithub.com\u002Fmfozmen\u002Fwatchdown\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdemo-capture\u002FSKILL.md",[],[]]