dwgx/SmartCLI / skills/cmd-art
cmd-art
VerifiedDesign and render terminal/CMD visual effects and ASCII art from a one-line request via the pluggable `fx` engine (30 effects, hot-swappable and themeable, plus scripted shows). Effects include donut, matrix rain, plasma, fire, a spinning 3D ball, a solar-system orrery, Game of Life, wireframe cube, 3D text banners, rainbow/lolcat gradient text, starfield, tunnel, fireworks, image-to-ASCII, and more. Use when the request is for a terminal animation, ANSI/CLI art, or a new console effect. Pure Python stdlib; truecolor.
fx/effects/typewriter.py
View on GitHub"""Typewriter reveal: text appears at chars-per-second with a blinking cursor.
``n = floor(t * cps)`` characters visible; block cursor blinks at ~2 Hz in the
theme accent. Multi-line text supported (\\n in the param).
"""
from __future__ import annotations
from ..core import RESET, rgb
from ..base import Effect, FrameCtx, Param
from ..registry import register
@register
class Typewriter(Effect):
name = "typewriter"
description = "Character-by-character text reveal with a blinking cursor."
tags = ("text", "reveal")
default_fps = 20.0
params = (
Param("text", "str", "Hello from SmartCLI.\nThis terminal is alive.",
"text to type (use \\n for line breaks)"),
Param("cps", "float", 18.0, "characters per second", min=1.0, max=400.0),
Param("margin", "int", 2, "left/top margin", min=0, max=20),
)
def render(self, ctx: FrameCtx) -> str:
p = ctx.params
text = p["text"].replace("\\n", "\n")
n = int(ctx.t * p["cps"])
visible = text[:n]
cursor_on = int(ctx.t * 4) % 2 == 0 and n <= len(text)
m = p["margin"]
theme = ctx.theme
ink = rgb(*theme.primary)
cur = rgb(*theme.accent)
rows = [""] * ctx.height
lines = visible.split("\n")
for i, line in enumerate(lines):
y = m // 2 + i
if 0 <= y < ctx.height:
s = " " * m + ink + line
if cursor_on and i == len(lines) - 1:
s += cur + "\u258c"
rows[y] = s + RESET
return "\n".join(rows)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |