{"enrichment":{"faq":[{"a":"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.","q":"How do I write outputs to users in Claude Code?"},{"a":"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.","q":"What are the best practices for user output handling?"},{"a":"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.","q":"How should I format outputs for end users?"},{"a":"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\u2014this routing decision logic ensures outputs reach users through the most suitable pathway for their context.","q":"What's the difference between stdout, stderr, and directive files?"},{"a":"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.","q":"How do I generate effective user-facing messages?"},{"a":"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.","q":"What security considerations apply to user output writing?"}],"shadow_tags":["user-communication","output-formatting","message-generation","user-facing-results","response-delivery"],"summary_rewrite":"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."},"gist":{"api_url":"https://skillfed.io/api/skills/max-sixty/worktrunk/writing-user-outputs.json","as_of":"2026-07-27","description":"Writing User Outputs teaches you to format CLI messages, manage shell integration. npx skillfed install max-sixty/worktrunk/writing-user-outputs","install":{"manual":["git clone https://github.com/max-sixty/worktrunk","cp -r worktrunk ~/.claude/skills/writing-user-outputs"],"primary":"npx skillfed install max-sixty/worktrunk/writing-user-outputs","version":"4f58a636"},"kind":"skill","mirror_url":"https://skillfed.io/max-sixty/worktrunk/writing-user-outputs.md","similar":[{"id":"jjmartres/opencode/worktrunk","name":"worktrunk","publisher":"jjmartres/opencode","url":"https://skillfed.io/jjmartres/opencode/worktrunk"},{"id":"max-sixty/worktrunk/worktrunk","name":"Worktrunk","publisher":"max-sixty/worktrunk","url":"https://skillfed.io/max-sixty/worktrunk/worktrunk"},{"id":"max-sixty/worktrunk/wt-switch-create","name":"Wt Switch Create","publisher":"max-sixty/worktrunk","url":"https://skillfed.io/max-sixty/worktrunk/wt-switch-create"},{"id":"alfredolopez80/multi-agent-ralph-loop/worktree-pr","name":"Worktree Pr","publisher":"alfredolopez80/multi-agent-ralph-loop","url":"https://skillfed.io/alfredolopez80/multi-agent-ralph-loop/worktree-pr"},{"id":"max-sixty/worktrunk/running-tend","name":"Running Tend","publisher":"max-sixty/worktrunk","url":"https://skillfed.io/max-sixty/worktrunk/running-tend"}],"title":"Writing User Outputs by max-sixty: Learn how to write and format outputs for end users \u2014 SkillFed","use":{"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."]},"what":{"lead":"Writing User Outputs teaches you to format CLI messages, manage shell integration, and route output streams correctly in worktrunk.","rest":"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."}},"id":"max-sixty/worktrunk/writing-user-outputs","install":{"mode":"external","repo":"https://github.com/max-sixty/worktrunk"},"links":{"html":"https://skillfed.io/max-sixty/worktrunk/writing-user-outputs","md":"https://skillfed.io/max-sixty/worktrunk/writing-user-outputs.md","repo":"https://github.com/max-sixty/worktrunk"},"meta":{"agents_supported":["claude-code"],"first_seen":"2026-07-28","forks":219,"language":"Rust","last_updated":"2026-07-27","license":"NOASSERTION","name":"Writing User Outputs","publisher":"max-sixty","stars":6109},"relations":{"similar":[{"id":"jjmartres/opencode/worktrunk"},{"id":"max-sixty/worktrunk/worktrunk"},{"id":"max-sixty/worktrunk/wt-switch-create"},{"id":"alfredolopez80/multi-agent-ralph-loop/worktree-pr"},{"id":"max-sixty/worktrunk/running-tend"},{"id":"skydoves/compose-performance-skills/using-stability-analyzer-ide-plugin"},{"id":"max-sixty/worktrunk/release"},{"id":"llama-farm/llamafarm/wt"},{"id":"julianobarbosa/claude-code-skills/git-worktree"},{"id":"onsager-ai/dev-skills/worktree-devproxy"}]},"slug":{"owner":"max-sixty","repo":"worktrunk","skill":"writing-user-outputs"},"version":"4f58a636"}
