Skip to content
Back to skills

134 Fn 910 25982163

ASecurity

Create OutputPanel component for streaming log output with auto-scroll.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
developmenttypescriptbashapi

Works with

  • terminal
  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 134-fn-910_25982163 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 134 Fn 910 25982163?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 134 Fn 910 25982163
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-134-fn-910-25982163/badge)](https://www.skillsdirectory.com/skills/tools-only-134-fn-910-25982163)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# fn-9.10 OutputPanel component

## Description

Create OutputPanel component for streaming log output with auto-scroll.

### File

`src/components/output.ts`

### Features

- Bordered with "─Iteration N─" header
- Tool icons by type
- Auto-scroll to bottom (unless user scrolled up)
- 500 line buffer (configurable)
- Scroll with arrow keys

### Interface

```typescript
interface OutputPanelProps {
  buffer: LogEntry[];
  iteration: number;
  theme: Theme;
  maxBuffer?: number;     // default 500
}

class OutputPanel implements Component {
  appendLine(entry: LogEntry): void
  render(width: number): string[]
  handleInput(data: string): void
  invalidate(): void
}
```

### Auto-scroll detection

Track if user scrolled up manually. Reset when at bottom.

### Tool icons

- `→` file ops (Read/Write/Glob)
- `⚡` bash
- `◆` API calls
- `✓` success (green)
- `✗` failure (red)
## Acceptance
- [ ] Border renders with iteration number
- [ ] Tool icons show by type
- [ ] Auto-scrolls when new lines added
- [ ] User scroll up disables auto-scroll
- [ ] Scrolling to bottom re-enables auto-scroll
- [ ] Buffer limited to maxBuffer lines
## Done summary
- Added OutputPanel component with bordered header showing iteration number
- Implemented tool icons (→ file ops, ⚡ bash, ◆ API, ✓/✗ status indicators)
- Auto-scroll to bottom, disabled when user scrolls up, re-enabled on scroll to bottom
- Buffer limited to configurable maxBuffer (default 500)
- j/k/g/G/arrows/space/ctrl+d/ctrl+u scrolling supported
- ASCII mode for non-Unicode terminals
- Content sanitized for control chars and ANSI sequences

Verified via bun test (298 tests pass, 37 in output.test.ts)
## Evidence
- Commits: 0907671
- Tests: bun test
- PRs:

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.