bun-shell-commands

Explain Bun Shell command usage for OpenCode custom commands.

4|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/shanepadgett/agent-extensions --skill bun-shell-commands
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bun-shell-commands
Source: https://github.com/shanepadgett/agent-extensions/tree/main/skills/bun-shell-commands
Command: npx skills add https://github.com/shanepadgett/agent-extensions --skill bun-shell-commands

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing effective Bun Shell commands for OpenCode custom commands, addressing cross-platform shell scripting quirks and Bun Shell limitations.

Core Features & Use Cases

  • Demonstrates argument passing, command substitution, pipes, and environment variables in Bun Shell templates.
  • Shows how to chain commands and manage intermediate results while avoiding unsupported structures.
  • Provides practical examples aligned with OpenCode workflows, including debugging tips and best practices.

Quick Start

Install Bun, review the examples, and run a simple Bun Shell command to verify argument passing and basic piping.

Frequently Asked Questions about bun-shell-commands

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

FAQPage Schema
How do I pass arguments and use command substitution in Bun Shell templates?

To pass arguments and use command substitution in Bun Shell templates, you utilize specific Bun Shell syntax designed for OpenCode custom commands. This allows you to dynamically inject values and capture command outputs directly within your shell scripting workflows.

What are the common pitfalls and unsupported control structures when scripting with Bun Shell?

Common pitfalls in Bun Shell scripting involve attempting to use unsupported control structures found in traditional shells. Avoiding these unsupported structures is necessary to safely use Bun Shell capabilities and prevent unexpected errors in OpenCode command execution.

Can I chain commands and manage intermediate results with pipes in Bun Shell for OpenCode?

Yes, you can chain commands and manage intermediate results using pipes in Bun Shell for OpenCode. The functionality demonstrates how to effectively connect multiple commands, ensuring data flows correctly between them in your custom workflows.

How do I handle environment variables in Bun Shell custom commands?

Handling environment variables in Bun Shell custom commands involves utilizing Bun's specific syntax for environment access within templates. This ensures your OpenCode workflows can securely reference and manipulate external configuration values during command execution.

Does Bun Shell work for cross-platform shell scripting in OpenCode workflows?

Bun Shell works for cross-platform shell scripting in OpenCode workflows by addressing cross-platform shell scripting quirks. It provides a consistent environment that bypasses differences between operating system default shells, ensuring reliable command execution.