Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / todo-calendar

todo-calendar

TODO 週曆面板:在面板顯示一週任務,由 Claude 用工具新增與修改任務

Code you can checkTerminal + desktopPaneBoxButtonInputText
writes files, draws

What it does

  • Draws a pane
  • Adds /todo
  • Watches mcp__todo-calendar__add_task, mcp__todo-calendar__list_tasks calls
  • Hooks session.start
  • Keeps its own state between turns

Good points

  • No network calls
  • Starts no processes
  • Written in TypeScript
  • 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 todo-calendar by jacky (pane), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/jaaaackielai-todo-calendar/
// 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: "TODO 週曆" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button, Input } = $.ui.resolve(e)
    const weekLabel = '…'
    const length = '…'
    const length2 = '…'
    const title = '…'
    const date = '…'
    const error = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="row" justifyContent="space-between" flexWrap="wrap">
          <Text bold>
            {weekLabel}
          </Text>
          <Text dimColor>
            {"共 "}
            {length}
            {" 項,完成 "}
            {length2}
          </Text>
        </Box>
        <Box flexDirection="row" gap={3} flexWrap="wrap" marginBottom={1}>
          <Button plain hotkey="p" label="◀ 上週" />
          <Button variant="primary" hotkey="t" label="本週" />
          <Button plain hotkey="n" label="下週 ▶" />
        </Box>
        <Box flexDirection="row" gap={1} />
        <Box flexDirection="column" borderStyle="round" borderColor="permission" paddingX={1} marginTop={1}>
          <Input label="名稱 " value={`${title}`} autoFocus submitLabel="儲存" />
          <Input label="日期 " value={`${date}`} placeholder="YYYY-MM-DD" submitLabel="儲存" />
          <Text color="warning">
            {error}
          </Text>
          <Box flexDirection="row" gap={2}>
            <Button plain label="儲存" />
            <Button plain label="取消" />
          </Box>
        </Box>
      </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.

plugins/todo-calendar/hooks/register.tsx lines 352–511 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const elements = $.ui.resolve(e)
    const { Box, Text, Button } = elements
    // mobile 沒有 Input,那裡不提供編輯
    const Input = e.surface !== 'mobile' && 'Input' in elements ? elements.Input : undefined
    const tasks = await read($, tasksAtom)
    const offset = await read($, weekOffsetAtom)
    const today = (await read($, todayAtom)) || (await computeToday($))
    const selection = await read($, selectionAtom)
    const days = weekDays(today, offset)
    const weekTasks = tasksBetween(tasks, days[0], days[6])
    const isWide = e.props.bodyColumns >= WIDE_COLUMNS
    // 橫排時七欄之間有 6 格空隙
    const columnWidth = Math.floor((e.props.bodyColumns - 6) / 7)

    const taskTitle = (task: Task) => {
      if (task.done) {
        return (
          <Text dimColor strikethrough wrap="wrap">
            {task.title}
          </Text>
        )
      }
      if (isOverdue(task, today)) {
        return (
          <Text color="error" wrap="wrap">
            {task.title}
          </Text>
        )
      }

      return <Text wrap="wrap">{task.title}</Text>
    }

    const taskLine = (task: Task) => (
      <Box key={`task-${task.id}`} flexDirection="row" gap={1}>
        <Button
          key={`check-${task.id}`}
          plain
          label={task.done ? '✓' : '○'}
          dimColor={task.done}
          onPress={() => changeTask($, task.id, { done: !task.done })}
        />
        <Box flexGrow={1}>{taskTitle(task)}</Box>
        <Button
          key={`pick-${task.id}`}
          plain
          label="⋯"
          dimColor={selection?.id !== task.id}
          onPress={() =>
            update($, selectionAtom, held =>
              held?.id === task.id ? null : { id: task.id, mode: 'menu', title: task.title, date: task.date, error: '' },
            )
          }
        />
      </Box>
    )

    const selected = tasks.find(task => task.id === selection?.id)
    const close = () => update($, selectionAtom, () => null)
    // 週末都用藍色,今天用深金黃,整個面板只有今天最搶眼
    const headingColor = (date: string, isToday: boolean) => {
      if (isToday) {
        return TODAY_COLOR
      }
      const index = weekdayIndex(date)

      return index >= 5 ? 'suggestion' : undefined
    }

    const day = (date: string) => {
      const isToday = date === today
      const list = tasksOn(tasks, date)
      const color = headingColor(date, isToday)

      return (
        <Box
          key={`day-${date}`}
          flexDirection="column"
          width={isWide ? columnWidth : undefined}
          borderStyle={isWide || isToday ? 'round' : undefined}
          borderColor={isToday ? TODAY_COLOR : undefined}
          borderDimColor={!isToday}
          paddingX={isWide || isToday ? 1 : 0}
        >
          {/* 星期幾、日期標籤、今天的記號,彼此空一格 */}
          <Box flexDirection="row" flexWrap="wrap" alignItems="center" gap={1}>
            <Text bold color={color}>
              {WEEKDAY_NAMES[weekdayIndex(date)]}
            </Text>
            {/* 一行高的底色標籤:inverse 把字色當底色,平日用暗色底 */}
            <Text bold inverse color={color} dimColor={color === undefined}>
              {` ${shortDate(date)} `}
            </Text>
            {isToday && (
              <Text bold color={color}>
                ● 今天
              </Text>
            )}
          </Box>
          {list.length === 0 ? <Text dimColor>—</Text> : list.map(taskLine)}
        </Box>
      )
    }

    const pickedLabel = (picked: Task) =>
      `${picked.title}(${shortDate(picked.date)} ${WEEKDAY_NAMES[weekdayIndex(picked.date)]})`

    const setDraft = (draft: Partial<Selection>) =>
      update($, selectionAtom, held => (held === null ? null : { ...held, ...draft }))

    /** 讀最新的草稿再存檔,避免用到畫面當下抓到的舊值 */
    const saveDraft = async (draft: Partial<Selection> = {}) => {
      const held = await read($, selectionAtom)
      if (held === null) {
        return
      }
      const title = (draft.title ?? held.title).trim()
      const date = (draft.date ?? held.date).trim()
      if (title === '') {
        await setDraft({ ...draft, error: '名稱不可空白。' })
        return
      }
      if (!isValidDate(date)) {
        await setDraft({ ...draft, error: '日期要用 YYYY-MM-DD 格式,例如 2026-10-07。' })
        return
      }
      await changeTask($, held.id, { title, date })
      await close()
    }

    const actionBar = (picked: Task, held: Selection) => {
      if (held.mode === 'edit' && Input !== undefined) {
        return (
          <Box flexDirection="column" borderStyle="round" borderColor="permission" paddingX={1} marginTop={1}>
            <Input
              key="edit-title"
              label="名稱 "
              value={held.title}
              autoFocus
              submitLabel="儲存"
              onInput={(title: string) => setDraft({ title })}
              onSubmit={(title: string) => saveDraft({ title })}
            />
            <Input
              key="edit-date"
              label="日期 "
              value={held.date}
              placeholder="YYYY-MM-DD"
              submitLabel="儲存"
              onInput={(date: string) => setDraft({ date })}
              onSubmit={(date: string) => saveDraft({ date })}
            />
            {held.error !== '' && <Text color="warning">{held.error}</Text>}
            <Box flexDirection="row" gap={2}>
              <Button key="save" plain label="儲存" onPress={() => saveDraft()} />
              <Button key="cancel" plain label="取消" onPress={close} />
            </Box>
          </Box>
        )
Licence text (MIT)
MIT License

Copyright (c) 2026 jacky

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

writes filesenv varstool callsremembers

What its code shows

Read from the source at commit ee13ef94401b 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.plugins/todo-calendar/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.2 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.listed in its repository's .claude-plugin/marketplace.json: installs from there
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.starts no programs
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 $.no settings hooks: its function hooks alone
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.command add-task: allowed-tools mcp__todo-calendar__add_task, mcp__todo-calendar_…
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 tool add_task, adds tool update_task, adds tool complete_task, adds tool delete_task, adds tool list_tasks, adds command todo
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 (todo), tool.call (mcp__todo-calendar__add…, mcp__todo-calendar__upd…, mcp__todo-calendar__com… (+2)) · also: session.start, ui.render (Pane) · timers: clock.every
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, USERPROFILE, HOME; 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.

From its marketplace

Its repository is its marketplace. Add that marketplace (in the terminal with these commands, or in the desktop app's plugin settings) and install the mod from it:

/plugin marketplace add jaaaackieLai/claude-mods
/plugin install todo-calendar@claude-mods
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (ee13ef94401b). Compare them before you install. /reload-plugins loads it into a session that is already open.

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/jaaaackieLai/claude-mods
git -C claude-mods checkout ee13ef94401b0265132285b4d28f9dbdc9f063bd
claude plugin validate claude-mods/plugins/todo-calendar
claude --plugin-dir claude-mods/plugins/todo-calendar

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 "jaaaackielai-todo-calendar" 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/jaaaackielai-todo-calendar.svg)](https://modscode.com/claude-mods/mods/jaaaackielai-todo-calendar/)