modscode JA

modscode / Gallery / mascotte-du-jour

mascotte-du-jour

An animated pixel-art Claude mascot above your prompt, with a theme of the day picked by Claude itself / Une mascotte Claude animée en pixel art au-dessus du prompt, avec un thème du jour choisi par Claude

Code you can checkTerminal + desktopBandBoxSvgText

What it does

  • Draws a band above the prompt
  • Watches tool calls and can refuse them
  • Hooks prompt.submit, session.start, turn.complete, turn.start
  • Keeps its own state between turns

Good points

  • No network calls
  • Starts no processes
  • Written in TypeScript
  • Has a desktop-specific branch

Code to start from

Two kinds: a starter modscode writes from the design above, and the lines of the mod's own code that draw it.

Starter (register.tsx)

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

// Drawn like mascotte-du-jour by amaitre (band), as modscode read it from the mod's code:
// https://modscode.com/gallery/arseum-mascotte-du-jour/
// 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 band above the prompt; what else goes there is drawn under it
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    const { Box, Svg, Text } = $.ui.resolve(e)
    const source = '…'
    const themeName = '…'
    const animName = '…'
    const emoji = '…'
    const progress = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="row" alignItems="center">
          <Box width="80%">
            <Svg source={`${source}`} alt={`${themeName} : ${animName}`} isInteractive />
          </Box>
          <Box flexDirection="column" marginLeft={2} width="20%">
            <Text bold>
              {emoji}
              {" "}
              fr
            </Text>
            <Text italic dimColor wrap="wrap">
              fr
            </Text>
            <Text dimColor wrap="wrap">
              {progress}
            </Text>
          </Box>
        </Box>
        {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.

plugins/mascotte-du-jour/hooks/register.tsx lines 550–675 · Band
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    const below = await next(e)
    const columns = e.props.bodyColumns
    const textColumns = Math.min(TEXT_MAX_COLUMNS, Math.max(TEXT_MIN_COLUMNS, Math.round(columns * TEXT_SHARE)))
    const size = SIZES.find(
      s =>
        s.rows <= e.props.maxRows &&
        minColumnsAt(s) <= columns &&
        // La taille géante dès qu'elle tient (le moteur borne déjà la bande à la moitié
        // du terminal), pourvu que le texte tienne encore à côté.
        (s.scale <= 1.5 || minColumnsAt(s) + textColumns + 2 <= columns),
    )
    const view = e.viewport ? `${e.viewport.columns}×${e.viewport.rows}, plein écran : ${e.viewport.isFullscreen ?? '?'}` : 'inconnu'
    lastBand =
      `surface ${e.surface}, maxRows ${e.props.maxRows}, bodyColumns ${columns}, sondage ${e.props.hasSurvey}, ` +
      `terminal ${view} → ${size === undefined ? 'masquée (pas la place)' : `affichée en taille ${size.name}`}`
    const isSvg = e.surface !== 'terminal'
    if (e.props.hasSurvey || (!isSvg && size === undefined)) {
      if (playing?.requestId === e.requestId) playing = null
      return below
    }

    // À la reprise d'une discussion, la bande peut se dessiner avant la première
    // synchronisation : on lit alors le thème enregistré plutôt que de retomber sur
    // le premier de la liste, et sans thème connu, la bande reste vide.
    const today = (await read($, daily)) ?? (await storedDaily($))
    if (today === null) {
      if (playing?.requestId === e.requestId) playing = null
      return below
    }
    const animId = await read($, anim)
    const choosing = await read($, isChoosing)
    const theme = themeById(today?.theme)
    const doing = await read($, activity)
    await read($, minute)
    const all = turnAnims(theme, today?.date)
    const idle = specialFor(theme, today?.date) ?? theme.idle
    const current =
      doing !== null && (isReaction(doing) || e.props.isWorking)
        ? activityAnim(doing, theme, lang)
        : e.props.isWorking
          ? (all.find(a => a.id === animId) ?? all[0]!)
          : idle
    const draw = withSky(current.draw, theme, hour)
    const phrase = choosing ? t(lang, 'choosing') : (today?.phrase ?? '')
    const themeName = themeText(lang, theme.name)
    const animName = themeText(lang, current.name)
    // La ligne de suivi : ce qu'il fait, depuis combien de temps, combien d'actions.
    const start = await read($, turnStart)
    const minutes = start === null ? 0 : Math.floor(((await $.clock.now()) - start) / 60_000)
    const progress = [
      `${e.props.isWorking ? '▶' : '⏸'} ${animName}`,
      ...(e.props.isWorking && minutes > 0 ? [t(lang, 'minutes', { n: minutes })] : []),
      ...(e.props.isWorking && tracking.actions > 0 ? [t(lang, tracking.actions > 1 ? 'actionsPlural' : 'actions', { n: tracking.actions })] : []),
    ].join(' · ')

    if (e.surface !== 'terminal') {
      await read($, clip)
      if (playing?.id !== `${theme.id}/${current.id}`) startTick = tick
      playing = { requestId: e.requestId, id: `${theme.id}/${current.id}`, draw, width: SVG_WIDTH, size: SIZES[1]!, isWorking: e.props.isWorking, isSvg: true }
      // En haute définition si le clip garde au moins 5 s sous le plafond de taille ; sinon
      // (scène très chargée), à la finesse d'origine, pour ne pas recalculer trop souvent.
      const hd = svgClip(draw, elapsed(), SVG_WIDTH, SVG_FPS, SVG_FRAMES, 2)
      const { source, seconds } = hd.seconds >= SVG_MIN_HD_SECONDS ? hd : svgClip(draw, elapsed(), SVG_WIDTH, SVG_FPS, SVG_FRAMES)
      clipStartTick = tick
      clipSeconds = seconds
      const { Box, Svg, Text } = $.ui.resolve(e)
      const scale = Math.max(SVG_MIN_SCALE, Math.min(SVG_MAX_SCALE, Math.floor((columns * SVG_PX_PER_COLUMN * SVG_STAGE_SHARE - 16) / SVG_WIDTH)))
      return (
        <Box flexDirection="column">
          <Box flexDirection="row" alignItems="center">
            <Box width="80%">
              <Svg source={source} alt={`${themeName} : ${animName}`} width={SVG_WIDTH * scale} height={STAGE_H * scale} isInteractive />
            </Box>
            <Box flexDirection="column" marginLeft={2} width="20%">
              <Text bold>
                {theme.emoji} {themeName}
              </Text>
              {phrase !== '' && (
                <Text italic dimColor wrap="wrap">
                  {t(lang, 'phrase', { phrase })}
                </Text>
              )}
              <Text dimColor wrap="wrap">{progress}</Text>
            </Box>
          </Box>
          {below}
        </Box>
      )
    }

    if (size === undefined) return below
    const minColumns = minColumnsAt(size)

    const hasText = columns - textColumns - 2 >= minColumns
    const fullWidth = Math.min(Math.round(MAX_STAGE_PX * size.scale), hasText ? columns - textColumns - 2 : columns)
    // Une largeur paire en taille géante : deux colonnes par pixel de la scène.
    const width = size.scale === 2 ? fullWidth - (fullWidth % 2) : fullWidth

    if (playing?.id !== `${theme.id}/${current.id}`) startTick = tick
    playing = { requestId: e.requestId, id: `${theme.id}/${current.id}`, draw, width, size, isWorking: e.props.isWorking, isSvg: false }

    const { Box, Raster, Text } = $.ui.resolve(e)

    return (
      <Box flexDirection="column">
        <Box flexDirection="row" alignItems="center" justifyContent="center">
          <Raster key="stage" columns={width} rows={size.rows} cells={paint(draw, elapsed(), width, size)} />
          {hasText && (
            <Box flexDirection="column" marginLeft={2} width={textColumns}>
              <Text bold>
                {theme.emoji} {themeName}
              </Text>
              {phrase !== '' && (
                <Text italic dimColor wrap="wrap">
                  {t(lang, 'phrase', { phrase })}
                </Text>
              )}
              <Text dimColor wrap="wrap">{progress}</Text>
            </Box>
          )}
        </Box>
        {below}
      </Box>
    )
  })
Licence text (MIT)
MIT License

Copyright (c) 2026 amaitre

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.

What its code calls

env varsdrives Claudetool callsremembers

What its code shows

Read from the source at commit f2325c2fdfc4 on 2026-10-06. 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/mascotte-du-jour/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.22 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 files or environment variables and reaches the network.reaches no network
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

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 the code below (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.

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 arseum/claude-mods
/plugin install mascotte-du-jour@claude-mods

This installs the marketplace's latest commit, which may not be the one read here (f2325c2fdfc4). Compare them before you install.

Ask Claude about it

With the modscode connector added, Claude can read this design, what its code reaches and its code, and build on them. Ask it like this:

Read the modscode design "arseum-mascotte-du-jour" with its code and make me a pane like it

Search them from Claude: the MCP connector

Similar designs