anbeime/skill / skills/hairline/hairline
hairline
Flagged一句话生成跟随鼠标的交互式等轴测线框图(单文件、零依赖、双击即开),或把已有 SVG/Logo 重建为可交互线框。
apps/site/components/code-block.tsx
View on GitHub"use client";
import { useRef } from "react";
import { CopyIcon } from "./copy";
/**
* A code sample in its frame: a bar with its title and a copy icon, then the
* code, which is the block's one tab stop so the keyboard can scroll it.
* Line numbers are drawn in CSS, so they are never selected or copied;
* `plain` leaves them off.
*/
export function CodeBlock({ title, html, plain = false }: { title: string; html: string; plain?: boolean }) {
const body = useRef<HTMLDivElement>(null);
return (
<div className="code" data-code>
<div className="code-bar">
<span className="code-title">{title}</span>
<CopyIcon text={() => body.current?.textContent ?? ""} select={body} label="Copy code" />
</div>
<div ref={body} tabIndex={0} className="code-body" data-plain={plain || undefined} dangerouslySetInnerHTML={{ __html: html }} />
</div>
);
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |