Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / obw

obw

Obsidian Workspace — project-scoped vault productivity (capture / notes / PM). Skills own folder layout and templates; /obw:pm splits a spec into blocking tickets; /issue is a Claude Mod pane that lists a view of the project's dashboard, d…

Code you can checkTerminal + desktopPaneBandBoxButtonText
writes files, runs programs, draws

What it does

  • Draws a pane, a band above the prompt
  • Adds /issue
  • Watches Bash calls and can refuse them
  • Hooks session.start, turn.complete, ui.close, ui.focus and 1 more
  • Keeps its own state between turns

Good points

  • No network calls
  • Written in TypeScript
  • Has a desktop-specific branch
  • Handles errors

Code to start from

A starter ModsCode writes from the drawing it read, and the mod's own lines that draw, where there are any.

Starter (register.tsx)

register.tsx
import type { Register } from 'claude-code'

// Drawn like obw by musingfox (pane, band), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/musingfox-obw/
// Written by ModsCode from that reading, not copied from the mod: use it as you like.
// Each value below stands for one the mod works out at run time; put in your own.
export const register: Register = on => {
  // the pane: open it with $.ui.open({ id: 'my-pane', title: "obw" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const text = '…'
    const hints = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="row" justifyContent="space-between">
          <Text color="inactive" wrap="truncate-end">
            {text}
          </Text>
          <Button plain hotkey="b" label="back" autoFocus />
        </Box>
        <Box flexDirection="column" marginTop={1}>
          <Text dimColor>
            ────────
          </Text>
        </Box>
        <Box marginTop={1}>
          <Text color="subtle" wrap="truncate-end">
            {hints}
          </Text>
        </Box>
      </Box>
    )
  })

  // the band above the prompt; what else goes there is drawn under it
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    const { Box, Text } = $.ui.resolve(e)
    const text = '…'
    const title = '…'
    const ac = '…'
    return (
      <Box flexDirection="column">
        <Text wrap="truncate-end">
          <Text color="success">
            ●
          </Text>
          {` ${text}`}
          {`  ${title}`}
          {`  ${ac}`}
        </Text>
        {await next(e)}
      </Box>
    )
  })
}

The mod's own code

Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.

obsidian-workspace/hooks/register.ts lines 790–802 · Pane
  on('ui.render', { component: 'Pane' }, async ($, e, next) => {
    if (e.requestId !== PANE_ID) return next(e)
    try {
      return await drawPane($, e)
    } catch {
      try {
        const { Text } = await $.ui.resolve(e)
        return Text({ dimColor: true, children: ['obw: the card could not be drawn.'] })
      } catch {
        return next(e)
      }
    }
  })
obsidian-workspace/hooks/register.ts lines 554–604 · Pane
async function drawPane($: any, e: any) {
  const ui = await $.ui.resolve(e)
  const { Box, Text, Select } = ui
  const state = await read($, pane)
  const settings = await read($, list)
  const safe = (text: string) => bounded(text).text
  const dim = (text: string) => Text({ dimColor: true, children: [safe(text)] })
  const error = (text: string) => Text({ color: ERROR, children: [safe(text)] })
  const line = ({ kind, text }: Line) => (kind === 'error' ? error(text) : dim(text))
  const span = (text: string, color?: string) => Text({ ...(color ? { color } : {}), children: [safe(text)] })
  const bodyColumns = Number.isInteger(e.props?.bodyColumns) && e.props.bodyColumns > 0 ? e.props.bodyColumns : null
  const columns = bodyColumns ?? 80
  const ruleWidth = Math.min(bodyColumns ?? 40, MAX_CHARS)
  const draw: DrawContext = { ui, state, bound: await read($, binding), e, dim, error, line, span }

  if (state.trail.length) return cardView($, draw, { columns, ruleWidth })

  const children: any[] = []
  if (state.listing) children.push(line(state.listing))
  if (!state.loading && state.views.length && state.scope && state.chosen) {
    children.push(
      Select({
        key: 'views',
        options: state.views.map((name) => ({ value: safe(name), label: safe(name) })),
        value: safe(state.chosen),
        onSelect: (name: string) => void pickView($, name).catch(() => {}),
      }),
    )
  }
  const drawnList = state.allTasks && state.allTasks.groups.length ? state.allTasks : null
  if (drawnList) {
    children.push(...listChildren(ui, { surface: e.surface, columns, ruleWidth, allTasks: drawnList, list: settings, handlers: listHandlers($) }))
  } else if (state.cards.length) {
    children.push(
      Select({
        key: 'cards',
        options: state.cards.map((card) => ({ value: safe(card.path), label: safe(card.label) })),
        ...(state.selected ? { value: safe(state.selected) } : {}),
        onSelect: (path: string) => void show($, (before) => ({ trail: before, path })).catch(() => {}),
      }),
    )
  }
  if (state.message) children.push(line(state.message))
  if (state.hint) children.push(dim(state.hint))
  if (drawnList) children.push(listHints(ui, e.surface))
  const card = state.card
  if (!card) return Box({ flexDirection: 'column', children })
  // A blank row and a thin rule set the card off from the list above it.
  children.push(Box({ flexDirection: 'column', marginTop: 1, children: [dim('─'.repeat(ruleWidth)), ...cardRegion($, draw, card)] }))
  return Box({ flexDirection: 'column', children })
}
obsidian-workspace/hooks/register.ts lines 705–728 · Pane
function cardView($: any, draw: DrawContext, { columns, ruleWidth }: { columns: number; ruleWidth: number }) {
  const { ui, state, dim } = draw
  const { Box, Text, Button } = ui
  const { card } = state
  const crumbs = ['list', ...state.trail.slice(0, -1).map((path) => bounded(cardName(path)).text)]
  const hasRelations = card?.kind === 'shown' && Object.values(card.relations).some((names) => names.length > 0)
  const hints = ['↑↓ scroll', ...(hasRelations ? ['tab links'] : []), 'esc or b back']
  return Box({
    flexDirection: 'column',
    children: [
      Box({
        flexDirection: 'row',
        justifyContent: 'space-between',
        width: Math.max(0, columns - 2),
        children: [
          Text({ color: INACTIVE, wrap: 'truncate-end', children: [bounded(fitWidth(`${crumbs.join(' › ')} ›`, Math.max(10, columns - 12)).trimEnd()).text] }),
          Button({ plain: true, key: BACK_KEY, hotkey: 'b', label: 'back', autoFocus: true, onPress: () => void back($).catch(() => {}) }),
        ],
      }),
      Box({ flexDirection: 'column', marginTop: 1, children: [dim('─'.repeat(ruleWidth)), ...(card ? cardRegion($, draw, card) : [])] }),
      Box({ marginTop: 1, children: [Text({ color: SUBTLE, wrap: 'truncate-end', children: [hints.join(' · ')] })] }),
    ],
  })
}
obsidian-workspace/hooks/register.ts lines 644–702 · Pane
function cardRegion($: any, draw: DrawContext, card: ObwCard) {
  const { ui, state, bound, e, dim, error, line, span } = draw
  const { Text, Markdown, Button, Code, Box } = ui
  const region: any[] = []
  if (card.kind === 'loading') region.push(dim(`Reading ${cardName(card.path)}…`))
  if (card.kind === 'error') region.push(error(card.message))
  if (card.kind === 'shown') {
    const { title, status, priority } = card.header
    const body = bounded(card.body)
    const ac = acLabel(card.body)
    region.push(Text({ bold: true, children: [bounded(title ?? cardName(card.path)).text] }))
    region.push(
      Text({
        children: [
          dim('status: '),
          span(status ?? '—', statusColor(status)),
          dim(' · priority: '),
          span(priority ?? '—', priorityColor(priority)),
          ...(ac ? [dim(' · '), span(ac)] : []),
        ],
      }),
    )
    // Only the All Tasks card view knows the rows a link can name; another view's cards are not all of them.
    const relations = state.trail.length ? relationLines($, draw, card) : []
    if (relations.length) region.push(Box({ flexDirection: 'column', children: relations }))
    if (e.surface === 'terminal') {
      region.push(Button({ key: 'bind', label: 'Bind this session', onPress: () => { void bindShown($).catch(() => {}) } }))
      if (bound && state.scope && sameBinding(bound, { cardPath: card.path, vault: state.scope.vault })) {
        region.push(Button({ key: 'unbind', label: 'Unbind this session', onPress: () => { void unbindShown($).catch(() => {}) } }))
      }
      if (card.bindLine) region.push(line(card.bindLine))
    }
    // Only the terminal can run render.sh: `process` is CLI only.
    if (card.vizRoot && e.surface === 'terminal') {
      region.push(
        Button({
          key: 'open-in-browser',
          label: 'Open in browser',
          onPress: () => {
            void openInBrowser($).catch(() => {})
          },
        }),
        ...browserLines(card.browser).map(line),
      )
    }
    const bodyClip = clipNotice(body)
    if (bodyClip) region.push(dim(bodyClip))
    for (const part of bodyParts(card.segments, card.diagrams)) {
      if ('markdown' in part) region.push(Markdown({ text: bounded(part.markdown).text }))
      else {
        const diagram = bounded(part.diagram)
        const diagramClip = clipNotice(diagram)
        if (diagramClip) region.push(dim(diagramClip))
        region.push(Code({ source: diagram.text, wrap: 'truncate-end' }))
      }
    }
  }
  return region
}
obsidian-workspace/hooks/register.ts lines 815–836 · Band
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    const bound = await read($, binding)
    if (!bound || e.props?.hasSurvey) return next(e)
    const beneath = await next(e)
    try {
      const { Box, Text } = await $.ui.resolve(e)
      const { cardPath, card } = bound
      const title = card?.title
      const line = Text({
        wrap: 'truncate-end',
        children: [
          Text({ color: 'success', children: ['●'] }),
          ` ${bounded(cardName(cardPath)).text}`,
          ...(title ? [`  ${title}`] : []),
          ...(card?.ac ? [`  ${card.ac}`] : []),
        ],
      })
      return Box({ flexDirection: 'column', children: [line, beneath] })
    } catch {
      return beneath
    }
  })
Licence text (MIT)
MIT License

Copyright (c) 2025 Nick Huang

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

How to build this: Pane (panel), Deny a tool call

What its code calls

runs programswrites filesenv varstool callsrememberssettings hooks

What its code shows

Read from the source at commit 57d4dc7b23ef on 2026-10-11. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.

Decides the listing: code you can check
Entry readEvery module hooks/hooks.json names was read.obsidian-workspace/hooks/register.ts
ParsesEvery file parses as TypeScript or JavaScript.19 files parsed
All its code is in the modEvery import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod
ReadableNo minified lines, no eval or new Function, no import of a computed path, no encoded blobs.no minified code, no eval, no encoded blobs
Calls in the openNetwork and programs are reached as $.http.fetch and $.process.run in place, never passed around.every call outside goes through $ in the open
For you to weigh before installing
Where it drawsThe terminal, the desktop app, both, or nothing (hooks only: a guard or a prompt rewriter), as its code says. Shown, never a reason to leave a mod out.draws in the terminal and the desktop app, the same in both
Install lineWhether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.its repository's .claude-plugin/marketplace.json does not list it: no marketplace line to give; the page shows how to try the commit read
Programs on WindowsWhether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks
NetworkWhether every fetch names its https host in the code.no network
ProgramsWhether every program it starts is named in the code and is not a shell, an interpreter or a network tool.obsidian-workspace/hooks/register.ts:50 a program named at run time
Reads and sendsWhether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reads environment variables, files, but reaches nothing outside
Keys in the sourceWhether the source holds what looks like an API key or a private key.no keys in the source
LicenceAn open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets ModsCode show its code; otherwise the code is linked.MIT
Settings hooksHooks declared in hooks/hooks.json or plugin.json beside the module: a command (a shell when it has no args), an HTTP request, an MCP tool or a model prompt at an event. They run outside $.UserPromptSubmit: writeback.sh; Stop: writeback.sh; Notification: writeback.sh
Servers it shipsMCP servers (a program, or a URL; a headersHelper is a shell command; a .mcpb bundle is unpacked at run time), LSP servers, monitors (a shell command for the whole session) and bin/ (on the PATH of the Bash tool).ships no MCP or LSP server, no monitor, no bin/
Skills, commands, agentsWhat its Markdown declares beyond text: allowed-tools granted for the turn, hooks added when a skill is invoked, a command run before Claude reads the skill.3 skills: text only
Tools and MCPWhether every tool it calls through $.tool.call and $.mcp.call is named in the code, and none is a shell (Bash through the tool runs a shell without $.process).calls no tool, MCP server or command
Asks of the modelCompletions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.adds command issue
Events it hooksBy what a hook there can do: gates (refuse a tool call, a prompt, a setting, another plugin), shapes (what the model reads: the system prompt, tool descriptions, each request), reads (your input, the events of the settings hooks, every event with *), and the rest.gates: command.run (issue), tool.call (Bash) · also: session.start, ui.close, ui.focus, ui.scroll (+2)
Reads, by nameThe environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.env: CLAUDE_CONFIG_DIR, HOME, OBW_LAUNCHES_DIR; files: a path computed at run time
Writes, by nameThe files and environment variables it names, and whether it changes settings, the prompt box, the clipboard, the conversation (a row the model reads) or another session.files: a path computed at run time

This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen

Install it

Check it yourself before you install it. Mods run unsandboxed, with your permissions, and ModsCode does not vouch for what this code does. Read its code (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.

Its repository's .claude-plugin/marketplace.json does not list it, so there is no marketplace line to give.

Try the commit ModsCode read

No marketplace needed. In a terminal, clone the repository, check out the commit read, validate the mod, and load it for one session:

git clone https://github.com/musingfox/cc-plugins
git -C cc-plugins checkout 57d4dc7b23eff9243a9ecc548b1e70b9cc982e47
claude plugin validate cc-plugins/obsidian-workspace
claude --plugin-dir cc-plugins/obsidian-workspace

The validate line lists the events the mod hooks and what it asks Claude Code to do, without running it. The last line loads the mod for this session only and writes nothing to your settings. If the author has rewritten history, the commit may no longer exist.

Ask Claude about it

With the ModsCode connector added, Claude can read this mod's code and what it reaches, and build on them. Ask it like this:

Read the ModsCode mod "musingfox-obw" with its code and make me one like it

Search them from Claude: the MCP connector

Similar mods

More from this repository

Badge for your README

If this is your mod, paste this into your README. It links to this page.

README.md
[![ModsCode](https://modscode.com/badge/musingfox-obw.svg)](https://modscode.com/claude-mods/mods/musingfox-obw/)