add-terminal-block

Creates decorative terminal-style React components simulating developer tool output for the homepage.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/po4yka/blog --skill add-terminal-block-po4yka
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-terminal-block
Source: https://github.com/po4yka/blog/tree/main/.agents/skills/add-terminal-block
Command: npx skills add https://github.com/po4yka/blog --skill add-terminal-block-po4yka

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Adding new CLI-style visual blocks to the homepage requires manually recreating a consistent pattern of MacWindow frames, motion animations, hover states, and copy-to-copy interactions, which is error-prone and inconsistent without a codified template. ## Core Features & Use Cases - Standardized Component Template: Generates a complete MobileTerminal or Decoration component following the MacWindow + motion + hover pattern with staggered row animations. - Built-in Interaction Patterns: Includes scroll-triggered entrance via useInView, hover highlighting with accent color, and click-to-copy via the useCopy hook. - Integration Guidance: Covers barrel file exports, index.astro placement with client:visible and delay props, and side-by-side grid layouts. - Use Case: When you want to add a new homepage block simulating gradle build output or swiftlint results, this Skill produces a ready-to-use component with realistic mobile dev tool data and correct animation timing. ## Quick Start Ask the AI to add a new terminal block named gradle-build that simulates Gradle build output on the homepage.

Frequently Asked Questions about add-terminal-block

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new terminal block component to the homepage?

Create the component in src/components/MobileTerminal or src/components/Decorations using the MacWindow and motion template, export it from the barrel index.ts file, then add it to src/pages/index.astro with client:visible and a delay prop.

How do I create a React component that simulates CLI tool output?

Wrap static data rows in a MacWindow frame with a Cmd command header, animate rows with staggered motion.div transitions triggered by useInView, and add hover highlighting plus click-to-copy via the useCopy hook.

What animation timing should terminal block rows use?

Rows use delay + 0.12 + i * 0.05 for a 0.05 second stagger, sliding from opacity 0 and x -4 to visible. The Cmd header uses the base delay, MacWindow uses delay + 0.05, and the footer uses delay + 0.3.

Can terminal blocks be displayed side by side in a grid?

Yes, wrap two blocks in a div with grid grid-cols-1 lg:grid-cols-2 gap-6 classes and give the second block a higher delay value such as 0.1 so its animations sequence after the first.

What content should a decorative terminal block contain?

Use realistic mobile development tool output from tools like adb, gradle, xcodebuild, fastlane, ktlint, or swiftlint with believable package names and versions. Keep 3 to 8 rows with a command header and a summary footer line.