cui-diagnostic-patterns

Enforce Glob, Read, and Grep instead of Bash for file operations.

1|Updated Feb 3, 2025
One-click install
npx skills add https://github.com/cuioss/cui-llm-rules --skill cui-diagnostic-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cui-diagnostic-patterns
Source: https://github.com/cuioss/cui-llm-rules/tree/main/claude/marketplace/bundles/cui-frontend-expert/skills/cui-diagnostic-patterns
Command: npx skills add https://github.com/cuioss/cui-llm-rules --skill cui-diagnostic-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill codifies tool usage patterns to run diagnostic commands without user prompts, favoring Glob, Read, and Grep over Bash-based prompts.

Core Features & Use Cases

  • Core Tool Usage: Glob for discovery, Read for existence checks, Grep for content search.
  • Non-Prompting Principle: Avoids Bash prompts during automated tasks.
  • Workflow Guidance: Standardized patterns to apply in agents/commands.

Quick Start

Activate cui-diagnostic-patterns in your diagnostic workflow and replace Bash-based file operations with Glob/Read/Grep patterns.

Frequently Asked Questions about cui-diagnostic-patterns

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

FAQPage Schema
How do I run file diagnostics without prompting the user during automation?

Diagnostic patterns eliminate prompts by replacing Bash-based file operations with non-prompting tools: Glob for file discovery, Read for existence checks and content access, and Grep for searching. This enforces automated workflows across agents and diagnostic commands without user intervention.

When should I use Glob, Read, and Grep instead of Bash for file operations?

Use Glob for discovery and pattern matching, Read for checking file existence and retrieving content, and Grep for content search. Reserve Bash only for true shell execution needs like Git and build commands. This pattern ensures consistent error handling and non-prompting behavior in validation and analysis workflows.

What's the best way to implement error handling in diagnostic file operations?

Diagnostic patterns define consistent error handling across Glob, Read, and Grep operations with standardized results parsing and integration into your workflow. This prevents failures from interrupting automated diagnostics and ensures reliable structure validation across agents and commands.

Can I apply these file operation patterns to automated validation workflows?

Yes. These non-prompting patterns apply directly to diagnostic, validation, and analysis workflows. They govern file discovery, existence checks, content searches, and structure validation—standardizing tool usage across agents, commands, and skills for repeatable, uninterrupted automation.

Why should I avoid Bash prompts in automated diagnostic tasks?

Bash prompts halt automation and require user intervention, breaking unattended workflows. Non-prompting tool patterns (Glob, Read, Grep) enable continuous diagnostic operations without interruption while maintaining consistent error handling and predictable results parsing.