Writing User Outputs
This skill documents worktrunk's output system architecture, including shell integration via directive files, message formatting functions with symbols and colors, and the decision logic for routing content to stdout, stderr, or directive files. It covers when to page output, security considerations for shell injection prevention, and Windows path compatibility.
Writing User Outputs teaches you to format CLI messages, manage shell integration, and route output streams correctly in worktrunk.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-07-27
Writing User Outputs teaches you to format CLI messages, manage shell integration, and route output streams correctly in worktrunk. This skill documents worktrunk's output system architecture, including shell integration via directive files, message formatting functions with symbols and colors, and the decision logic for routing content to stdout, stderr, or directive files. It covers when to page output, security considerations for shell injection prevention, and Windows path compatibility.
Use it when
- Writing User Outputs best practices include: prevent shell injection by sanitizing user input before routing to directive files.
- Writing User Outputs formatting relies on message formatting functions that incorporate symbols and colors to create effective user-facing.
Install
max-sixty/worktrunk/writing-user-outputs · repository language: Rust
generated, unverified - the skill's exact subdirectory could not be determined; check the repository on GitHub
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I write outputs to users in Claude Code?
Writing User Outputs in Claude Code involves using worktrunk's output system architecture. Route content to stdout for standard results, stderr for errors or warnings, or directive files for shell integration. Use message formatting functions with symbols and colors to enhance clarity. Apply decision logic to determine the appropriate output channel based on content type and user context.
What are the best practices for user output handling?
Writing User Outputs best practices include: prevent shell injection by sanitizing user input before routing to directive files; ensure Windows path compatibility when writing outputs; page output when content exceeds terminal display capacity; use stderr for errors and warnings to separate them from standard results; apply consistent message formatting with symbols and colors for better user comprehension.
How should I format outputs for end users?
Writing User Outputs formatting relies on message formatting functions that incorporate symbols and colors to create effective user-facing messages. Structure outputs clearly, distinguish between different message types (success, error, info), and maintain consistent styling. Consider terminal capabilities and readability when applying formatting, and use paging for lengthy outputs to prevent overwhelming users.
What's the difference between stdout, stderr, and directive files?
Writing User Outputs uses three routing channels: stdout carries standard results and normal output; stderr handles errors, warnings, and diagnostic messages; directive files enable shell integration for advanced scripting scenarios. Choose the appropriate channel based on content purpose—this routing decision logic ensures outputs reach users through the most suitable pathway for their context.
How do I generate effective user-facing messages?
Writing User Outputs effectiveness comes from combining clear messaging with proper formatting. Use message formatting functions with symbols and colors to make outputs scannable and visually distinct. Structure messages logically, provide context when needed, and apply security considerations like shell injection prevention. Test outputs across different terminal environments to ensure compatibility and readability.
What security considerations apply to user output writing?
Writing User Outputs securely requires preventing shell injection when content routes to directive files or shell contexts. Sanitize all user-provided data before output, especially when writing to files that shell processes will execute. Validate paths for Windows compatibility, escape special characters appropriately, and follow the decision logic for routing to ensure sensitive data doesn't leak through unintended channels.
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Learn how to write and format outputs for end users”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
Worktrunk is a CLI that streamlines git worktree management, making it as straightforward as branching. Launch multiple AI agents in parallel across isolated branches, each with its own environment, and automate setup through hooks for dev servers, databases, and dependencies. Features include LLM-generated commit messages, Claude Code integration, and Zellij support for seamless agent handoffs.
Worktrunk is a CLI tool that streamlines git worktree management through hooks, configuration, and optional LLM-powered commit messages. It helps teams automate lifecycle events—from dependency setup and testing to deployment—while maintaining security through approval gates for project hooks. Use it to configure personal preferences, set up team automation, and run complex multi-worktree workflows.
This skill sets up a fresh worktree using the `wt` CLI and moves your session into it. You can optionally specify a branch name, target a different repository, and run a task within the new worktree—all in a single invocation.
Worktree Pr orchestrates isolated feature development by creating dedicated git worktrees where multiple subagents collaborate on the same codebase before submitting to multi-agent review. The skill handles worktree creation, PR generation with Claude and Codex reviews, merge coordination, and cleanup—enabling safer, more reversible changes with built-in rollback.
Running Tend extends generic tend CI skills with worktrunk conventions for Rust projects. It covers codecov polling after CI checks, standard test commands, artifact paths, PR review practices, and diagnostic procedures for issue triage using the `-vv` flag.
Release orchestrates the full publication pipeline for Rust projects, handling version bumps, changelog updates, and multi-platform validation before pushing to crates.io and GitHub. It includes built-in safeguards for data-loss review and ensures nothing drifts into main during the release window.