show-me

作者: humanlayer

以簡潔的圖表、程式碼結構草圖和聚焦的 HTML 產物,幫助使用者視覺化理解當前主題。

npx skills add https://github.com/humanlayer/skills --skill show-me

Help the user understand the current topic of conversation visually. Skip the preamble and keep prose brief. Pick the smallest view that makes the key point clear.

  • Show logic or an algorithm as pseudocode:
on(save)
  if content is unchanged
    return cached result
  write new content
  return fresh result
  • Show runtime control flow as a call tree:
submitForm
  createSession
    persistPrompt
    launchAgent
  navigateToSession
  • Show UI structure as a component tree, including state and module boundaries that matter:
<SessionPage> (apps/example/src/routes/session.tsx)
  useSessionEvents()
  <SessionToolbar>
    <RunSkillButton> (packages/ui)
  • Show file responsibility or a broad refactor as a shallow file tree:
src/
├── commands/       # parses user actions
├── sessions/       # owns session state
└── transport/      # sends API requests
  • Show component interaction, control flow, or data flow with Mermaid:
sequenceDiagram
    participant User
    participant UI
    participant Daemon
    User->>UI: choose command
    UI->>Daemon: send expanded prompt
    Daemon-->>UI: stream result
  • Use diff when the point is what changes and the surrounding shape already exists. Match the diff shape to the topic.

For a component change:

 <SessionPage>
   useSessionEvents()
   <SessionToolbar>
+    <RunSkillButton />
   <SessionTimeline>
+    <SkillResultCard />

For a file-layout change:

 src/
 ├── commands/
+│   └── show-me.ts       # expands the slash command
 ├── sessions/
-└── transport.ts
+└── transport/
+    ├── client.ts
+    └── stream.ts

For a call-tree or call-stack change:

 submitForm
   createSession
     persistPrompt
+    expandSkillMention
     launchAgent
-  navigateToSession
+  navigateToSession
+    subscribeToEvents

For a state or control-flow change:

 on(save)
-  write content
+  if content is unchanged
+    return cached result
+  write new content
+  invalidate cache
  • Show the whole block when most of it is new, when omitted context would hide ownership or order, or when the user needs a copyable target shape:
function expandSkill(command: string): string {
  const skillName = command.slice(1)
  return `use the ${skillName} skill`
}
  • For a visual UI, layout, state comparison, or concept too dense for Mermaid, write one focused HTML file — a diagram, an infographic, or a short slide deck, whichever fits the point. Match the product's colors, type, spacing, and components; use real labels and data; support desktop and mobile. Then open it for the user:
Bash(open path/to/show-me-{description}.html)

guidance

Place each visual next to the short text it supports. Keep only the calls, files, props, states, and boundaries needed to answer the user's current question or the options to resolve the current discussion point.

You may use one of these, you may use several, it is unlikely you will use all of them. Use your judgement and don't overwhelm the user.

相關技能

backport-pr
vercel
將已合併的 Next.js 拉取請求從 canary 回溯移植到先前的發行分支,例如 next-16-2。當使用者要求回溯移植、揀選提交或開啟…時使用。
synapseml-local-setup
microsoft
在 WSL 或 Linux 中本地設定並驗證 SynapseML。當代理需要在本機執行 SynapseML、執行 sbt compile/test、使用 Java 21、Scala 2.12… 時使用。
langsmith
langchain-ai
使用 LangSmith 追蹤、評估和部署 AI 代理與 LLM 應用程式。適用於新增可觀測性、執行評估、設計提示詞或…
motion-graphics
heygen-com
當使用者需要一段簡短、以設計為主的動態圖像,且動態本身即為訊息時使用:動態字體排版、數字或統計數據累計、圖表/數據視覺化呈現、標誌片頭、品牌組合、下方標題、提示框、社群疊加層、動態標題/推文/新聞項目、動態海報,或快速捕捉的頁面重點。通常長度在10秒以內,最長約30秒,無敘事弧線、旁白或真人拍攝主體。可輸出為MP4或透明疊加層。不適用於較長、多場景、有旁白或品牌展示影片等類型。
creativevideodesign
azure-communication-common-java
microsoft
Azure Communication Services 的 Java 通用工具。在處理 CommunicationTokenCredential、使用者識別碼、權杖重新整理,或跨 ACS 服務的共用驗證時使用。
communication
exploring-live-traffic
posthog
檢查 PostHog Web 分析即時分頁資料 — 當前線上使用者、過去30分鐘頁面瀏覽量、熱門頁面、來源、裝置、瀏覽器、國家、機器人…
persona-content-creator
Google
在 Workspace 中建立、組織及分發內容。
signals
posthog
Signals 是 PostHog 透過監控客戶產品資料(涵蓋錯誤追蹤、網頁分析、實驗、工作階段重播等多個來源)自動產生的觀測結果。每個 signal 都是一段簡短的自然語言描述,用來標記值得注意的事件(例如「/checkout 頁面的錯誤率飆升 3 倍」)。