Compare commits
6
Commits
b31b88b3c1
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
12333cc485 | ||
|
|
144c1a204b | ||
|
|
2b9a7b80b9 | ||
|
|
f8d4225429 | ||
|
|
b393048467 | ||
|
|
b1e8fa1c14 |
@@ -0,0 +1,128 @@
|
|||||||
|
---
|
||||||
|
name: show-me
|
||||||
|
description: Help the user understand the current topic visually with concise diagrams, code-shape sketches, and focused HTML artifacts.
|
||||||
|
source: https://github.com/humanlayer/skills/blob/main/plugins/show-me/skills/show-me/SKILL.md
|
||||||
|
---
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
```text
|
||||||
|
on(save)
|
||||||
|
if content is unchanged
|
||||||
|
return cached result
|
||||||
|
write new content
|
||||||
|
return fresh result
|
||||||
|
```
|
||||||
|
|
||||||
|
- Show runtime control flow as a call tree:
|
||||||
|
|
||||||
|
```text
|
||||||
|
submitForm
|
||||||
|
createSession
|
||||||
|
persistPrompt
|
||||||
|
launchAgent
|
||||||
|
navigateToSession
|
||||||
|
```
|
||||||
|
|
||||||
|
- Show UI structure as a component tree, including state and module boundaries that matter:
|
||||||
|
|
||||||
|
```tsx
|
||||||
|
<SessionPage> (apps/example/src/routes/session.tsx)
|
||||||
|
useSessionEvents()
|
||||||
|
<SessionToolbar>
|
||||||
|
<RunSkillButton> (packages/ui)
|
||||||
|
```
|
||||||
|
|
||||||
|
- Show file responsibility or a broad refactor as a shallow file tree:
|
||||||
|
|
||||||
|
```text
|
||||||
|
src/
|
||||||
|
├── commands/ # parses user actions
|
||||||
|
├── sessions/ # owns session state
|
||||||
|
└── transport/ # sends API requests
|
||||||
|
```
|
||||||
|
|
||||||
|
- Show component interaction, control flow, or data flow with Mermaid:
|
||||||
|
|
||||||
|
```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:
|
||||||
|
|
||||||
|
```diff
|
||||||
|
<SessionPage>
|
||||||
|
useSessionEvents()
|
||||||
|
<SessionToolbar>
|
||||||
|
+ <RunSkillButton />
|
||||||
|
<SessionTimeline>
|
||||||
|
+ <SkillResultCard />
|
||||||
|
```
|
||||||
|
|
||||||
|
For a file-layout change:
|
||||||
|
|
||||||
|
```diff
|
||||||
|
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:
|
||||||
|
|
||||||
|
```diff
|
||||||
|
submitForm
|
||||||
|
createSession
|
||||||
|
persistPrompt
|
||||||
|
+ expandSkillMention
|
||||||
|
launchAgent
|
||||||
|
- navigateToSession
|
||||||
|
+ navigateToSession
|
||||||
|
+ subscribeToEvents
|
||||||
|
```
|
||||||
|
|
||||||
|
For a state or control-flow change:
|
||||||
|
|
||||||
|
```diff
|
||||||
|
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:
|
||||||
|
|
||||||
|
```ts
|
||||||
|
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.
|
||||||
@@ -119,15 +119,20 @@
|
|||||||
"allowWrite": [
|
"allowWrite": [
|
||||||
"~/.local/share/pnpm",
|
"~/.local/share/pnpm",
|
||||||
"~/.cache/pnpm",
|
"~/.cache/pnpm",
|
||||||
"~/Documents/Atrium"
|
"~/Documents/Atrium",
|
||||||
|
"/tachi/docker/atribot/vault"
|
||||||
],
|
],
|
||||||
"denyRead": [
|
"denyRead": [
|
||||||
"~/.ssh",
|
"~/.ssh",
|
||||||
"~/.config/Signal",
|
"~/.config/Signal",
|
||||||
"~/Documents"
|
"~/Documents",
|
||||||
|
"/tachi/backups",
|
||||||
|
"/tachi/documents",
|
||||||
|
"/tachi/docker"
|
||||||
],
|
],
|
||||||
"allowRead": [
|
"allowRead": [
|
||||||
"~/Documents/Atrium"
|
"~/Documents/Atrium",
|
||||||
|
"/tachi/docker/atribot/vault"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"excludedCommands": [
|
"excludedCommands": [
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
input=$(cat)
|
||||||
|
|
||||||
|
# Context-window fill from the latest message's usage in the transcript.
|
||||||
|
transcript=$(echo "$input" | jq -r '.transcript_path // ""')
|
||||||
|
model_id=$(echo "$input" | jq -r '.model.id // ""')
|
||||||
|
case "$model_id" in
|
||||||
|
*1m*|*"[1m]"*) limit=1000000 ;;
|
||||||
|
*) limit=200000 ;;
|
||||||
|
esac
|
||||||
|
used=""
|
||||||
|
if [ -n "$transcript" ] && [ -f "$transcript" ]; then
|
||||||
|
used=$(jq -rs '[.[] | select(.message.usage != null) | .message.usage
|
||||||
|
| (.input_tokens // 0) + (.cache_read_input_tokens // 0)
|
||||||
|
+ (.cache_creation_input_tokens // 0) + (.output_tokens // 0)]
|
||||||
|
| last // ""' "$transcript" 2>/dev/null)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# No usage recorded yet (e.g. fresh session before the first turn).
|
||||||
|
if [ -z "$used" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
pct=$(awk -v u="$used" -v l="$limit" 'BEGIN{ printf "%d", (l>0? u*100/l : 0) }')
|
||||||
|
used_h=$(awk -v n="$used" 'BEGIN{ if(n>=1000000) printf "%.1fM", n/1000000; else printf "%.1fk", n/1000 }')
|
||||||
|
limit_h=$(awk -v n="$limit" 'BEGIN{ if(n>=1000000) printf "%gM", n/1000000; else printf "%gk", n/1000 }')
|
||||||
|
if [ "$used" -ge 200000 ]; then ctx_color='1;31'
|
||||||
|
elif [ "$used" -ge 100000 ]; then ctx_color='1;33'
|
||||||
|
else ctx_color='1;90'; fi
|
||||||
|
|
||||||
|
printf '\033[%sm%s/%s (%d%%)\033[0m' "$ctx_color" "$used_h" "$limit_h" "$pct"
|
||||||
@@ -1,38 +1,39 @@
|
|||||||
{
|
{
|
||||||
"LazyVim": { "branch": "main", "commit": "c10948c50b18fae7f256433afdef09e432410480" },
|
"LazyVim": { "branch": "main", "commit": "c10948c50b18fae7f256433afdef09e432410480" },
|
||||||
"SchemaStore.nvim": { "branch": "main", "commit": "6ff1f21b2e2b77ec59f7433ce2d9fbc052d908ac" },
|
"SchemaStore.nvim": { "branch": "main", "commit": "d34c58439271f5e73ed79c2b8d1a09731c4525f1" },
|
||||||
"blink.cmp": { "branch": "main", "commit": "78336bc89ee5365633bcf754d93df01678b5c08f" },
|
"blink.cmp": { "branch": "main", "commit": "78336bc89ee5365633bcf754d93df01678b5c08f" },
|
||||||
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
|
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
|
||||||
"catppuccin": { "branch": "main", "commit": "e068ab5f8261f23f6f71ffd8791ae40315b77b9c" },
|
"catppuccin": { "branch": "main", "commit": "edefef779ab08ce1a4a404713e3012b0d202bd35" },
|
||||||
"conform.nvim": { "branch": "master", "commit": "619363c30309d29ffa631e67c8183f2a72caa373" },
|
"claude-review.nvim": { "branch": "main", "commit": "899a33a04d26b6a75384dda176e212eee75a2532" },
|
||||||
"diffview.nvim": { "branch": "main", "commit": "bcf4b62b4acc36a7c3d19e423713a220c838a668" },
|
"conform.nvim": { "branch": "master", "commit": "016802de402556da54c36bd7359b441266b01cdd" },
|
||||||
"flash.nvim": { "branch": "main", "commit": "fcea7ff883235d9024dc41e638f164a450c14ca2" },
|
"diffview.nvim": { "branch": "main", "commit": "43e60bca414e4991ed10118e59f809fb03bbeddd" },
|
||||||
|
"flash.nvim": { "branch": "main", "commit": "5f0f270fdc7c5b0c21d903ee85b9cb06f2ac636a" },
|
||||||
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
|
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "42d6aed4e94e0f0bbced16bbdcc42f57673bd75e" },
|
"gitsigns.nvim": { "branch": "main", "commit": "42d6aed4e94e0f0bbced16bbdcc42f57673bd75e" },
|
||||||
"grug-far.nvim": { "branch": "main", "commit": "c69859c1d5427ab5fc7ed12380ab521b4e336691" },
|
"grug-far.nvim": { "branch": "main", "commit": "11595bf747edc270bce2069d1020502ad4ae56cf" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
|
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
|
||||||
"lazydev.nvim": { "branch": "main", "commit": "ff2cbcba459b637ec3fd165a2be59b7bbaeedf0d" },
|
"lazydev.nvim": { "branch": "main", "commit": "ff2cbcba459b637ec3fd165a2be59b7bbaeedf0d" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "221ce6b2d999187044529f49da6554a92f740a96" },
|
"lualine.nvim": { "branch": "master", "commit": "221ce6b2d999187044529f49da6554a92f740a96" },
|
||||||
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "47059d71b42d74b0a1e9f61c1d99d301039c3b5b" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "40276c4df7e6bdce6801d6c035c6227f9115a855" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d" },
|
"mason.nvim": { "branch": "main", "commit": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d" },
|
||||||
"mini.ai": { "branch": "main", "commit": "cb20f298ebf5ae91924cd0c6c310712de2ef4086" },
|
"mini.ai": { "branch": "main", "commit": "25248c6aa002391936a6200f12d1466015987133" },
|
||||||
"mini.diff": { "branch": "main", "commit": "0743d26bd858ebe32efcf5c86a91a422a000f273" },
|
"mini.diff": { "branch": "main", "commit": "626b8a5b93874c4d05ca25aedec56cfff0b378fb" },
|
||||||
"mini.icons": { "branch": "main", "commit": "24dbea2195c477e57d581215839a6ab915f34b14" },
|
"mini.icons": { "branch": "main", "commit": "98faae31e9be1cc054ae63485e58ceb185efcad0" },
|
||||||
"mini.pairs": { "branch": "main", "commit": "fd150ac39b78e6a2286f5138e472b7dc7eba43b9" },
|
"mini.pairs": { "branch": "main", "commit": "b1c5a726921b7a8c9321e9a7a208aa0571de5810" },
|
||||||
"mini.surround": { "branch": "main", "commit": "a2f644f3759edd3d3f8b6a6d55378408bfe6d290" },
|
"mini.surround": { "branch": "main", "commit": "8d5d0c5aa92449368ac251e85451d79d8f69d296" },
|
||||||
"noice.nvim": { "branch": "main", "commit": "7bfd942445fb63089b59f97ca487d605e715f155" },
|
"noice.nvim": { "branch": "main", "commit": "7bfd942445fb63089b59f97ca487d605e715f155" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
"nui.nvim": { "branch": "main", "commit": "10fc361835c856ba4233ef5ea135b919bf3dce97" },
|
||||||
"nvim-ansible": { "branch": "main", "commit": "c7f595d568b588942d4d0c37b5cd6cae3764a148" },
|
"nvim-ansible": { "branch": "main", "commit": "c7f595d568b588942d4d0c37b5cd6cae3764a148" },
|
||||||
"nvim-lint": { "branch": "master", "commit": "a219b2c9e5b4765e5c845aba119dad55806fcaf1" },
|
"nvim-lint": { "branch": "master", "commit": "3d55c8f67c6ae5c15e1042571e107c7a3d5c5f4e" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "292f44408498103c47996ff5c18fd366293840d8" },
|
"nvim-lspconfig": { "branch": "master", "commit": "16286347bdba1333c7d124d9de9fe6630731b2b2" },
|
||||||
"nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" },
|
"nvim-treesitter": { "branch": "main", "commit": "19071296d3d643b48615ee574a20e8a03ac40872" },
|
||||||
"nvim-treesitter-textobjects": { "branch": "main", "commit": "851e865342e5a4cb1ae23d31caf6e991e1c99f1e" },
|
"nvim-treesitter-textobjects": { "branch": "main", "commit": "898ee307df58f854d11cd7edd06472574d48014e" },
|
||||||
"nvim-ts-autotag": { "branch": "main", "commit": "88c1453db4ba7dd24131086fe51fdf74e587d275" },
|
"nvim-ts-autotag": { "branch": "main", "commit": "88c1453db4ba7dd24131086fe51fdf74e587d275" },
|
||||||
"octo.nvim": { "branch": "master", "commit": "b9a73e167f851a98d8f29d62658d3640bb8a7314" },
|
"octo.nvim": { "branch": "master", "commit": "af2411604b51cb4a0f3e2de50b1b7cacc2581c48" },
|
||||||
"persistence.nvim": { "branch": "main", "commit": "b20b2a7887bd39c1a356980b45e03250f3dce49c" },
|
"persistence.nvim": { "branch": "main", "commit": "b20b2a7887bd39c1a356980b45e03250f3dce49c" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
|
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
|
||||||
"render-markdown.nvim": { "branch": "main", "commit": "f422cb5c6855f150e2ddcfaf44e7157b98b34f6a" },
|
"render-markdown.nvim": { "branch": "main", "commit": "4663eb3ecd538bd5062628fb6d95bbe6bdca78f6" },
|
||||||
"sidekick.nvim": { "branch": "main", "commit": "208e1c5b8170c01fd1d07df0139322a76479b235" },
|
"sidekick.nvim": { "branch": "main", "commit": "208e1c5b8170c01fd1d07df0139322a76479b235" },
|
||||||
"snacks.nvim": { "branch": "main", "commit": "882c996cf28183f4d63640de0b4c02ec886d01f2" },
|
"snacks.nvim": { "branch": "main", "commit": "882c996cf28183f4d63640de0b4c02ec886d01f2" },
|
||||||
"todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" },
|
"todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" },
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dir = "/home/tgrosinger/code/claude-review",
|
url = "ssh://git@git.grosinger.net:22322/tgrosinger/claude-review.nvim.git",
|
||||||
cmd = "ClaudeReview",
|
cmd = "ClaudeReview",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"dlyongemallo/diffview.nvim",
|
"dlyongemallo/diffview.nvim",
|
||||||
|
|||||||
Reference in New Issue
Block a user