* add libreoffice skill and +29 workflow bundles. * Add documentation for workflow bundles Added comprehensive documentation for workflow bundles, detailing granular and consolidated bundles across various development scenarios including frontend, backend, WordPress, system administration, security testing, AI/ML, cloud/DevOps, database, testing/QA, and LibreOffice skills. * add readme for workflow bundles. correct descriptions of libreoffice skills and match them with folder names. * add readme for workflow bundles. correct descriptions of libreoffice skills and match them with folder names. * Simplify LibreOffice skill names in README * Refactor LibreOffice Base skill to LibreOffice Writer Updated the skill from LibreOffice Base to LibreOffice Writer, modifying the name, description, and core capabilities. Adjusted workflows and examples to reflect document creation and automation. * Rename skill from Writer to Base and update capabilities Updated the LibreOffice skill from Writer to Base, reflecting changes in functionality related to database management and operations. * Revise LibreOffice Calc skill details and capabilities Updated the LibreOffice Calc skill description and removed outdated sections. Streamlined capabilities and workflows while maintaining essential information. * Refine LibreOffice Draw skill details and capabilities Updated the LibreOffice Draw skill description and capabilities. Removed flowchart automation example and adjusted related skills. * Refine SKILL.md for LibreOffice Impress Updated the SKILL.md file for LibreOffice Impress to refine the name and description, streamline core capabilities, and adjust related skills. * Refine LibreOffice Writer skill details and capabilities Updated the LibreOffice Writer skill description and capabilities. Simplified the name and improved clarity in the core capabilities section. * chore: sync generated registry files [ci skip] * feat: add Game Development Expansion Bundle (Bevy ECS, GLSL, Godot 4 Migration) --------- Co-authored-by: Munir Abbasi <munir@ayubmed.edu.pk> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3.9 KiB
3.9 KiB
name, description, source, risk, domain, category, version
| name | description | source | risk | domain | category | version |
|---|---|---|---|---|---|---|
| bash-scripting | Bash scripting workflow for creating production-ready shell scripts with defensive patterns, error handling, and testing. | personal | safe | system-administration | granular-workflow-bundle | 1.0.0 |
Bash Scripting Workflow
Overview
Specialized workflow for creating robust, production-ready bash scripts with defensive programming patterns, comprehensive error handling, and automated testing.
When to Use This Workflow
Use this workflow when:
- Creating automation scripts
- Writing system administration tools
- Building deployment scripts
- Developing backup solutions
- Creating CI/CD scripts
Workflow Phases
Phase 1: Script Design
Skills to Invoke
bash-pro- Professional scriptingbash-defensive-patterns- Defensive patterns
Actions
- Define script purpose
- Identify inputs/outputs
- Plan error handling
- Design logging strategy
- Document requirements
Copy-Paste Prompts
Use @bash-pro to design production-ready bash script
Phase 2: Script Structure
Skills to Invoke
bash-pro- Script structurebash-defensive-patterns- Safety patterns
Actions
- Add shebang and strict mode
- Create usage function
- Implement argument parsing
- Set up logging
- Add cleanup handlers
Copy-Paste Prompts
Use @bash-defensive-patterns to implement strict mode and error handling
Phase 3: Core Implementation
Skills to Invoke
bash-linux- Linux commandslinux-shell-scripting- Shell scripting
Actions
- Implement main functions
- Add input validation
- Create helper functions
- Handle edge cases
- Add progress indicators
Copy-Paste Prompts
Use @bash-linux to implement system commands
Phase 4: Error Handling
Skills to Invoke
bash-defensive-patterns- Error handlingerror-handling-patterns- Error patterns
Actions
- Add trap handlers
- Implement retry logic
- Create error messages
- Set up exit codes
- Add rollback capability
Copy-Paste Prompts
Use @bash-defensive-patterns to add comprehensive error handling
Phase 5: Logging
Skills to Invoke
bash-pro- Logging patterns
Actions
- Create logging function
- Add log levels
- Implement timestamps
- Configure log rotation
- Add debug mode
Copy-Paste Prompts
Use @bash-pro to implement structured logging
Phase 6: Testing
Skills to Invoke
bats-testing-patterns- Bats testingshellcheck-configuration- ShellCheck
Actions
- Write Bats tests
- Run ShellCheck
- Test edge cases
- Verify error handling
- Test with different inputs
Copy-Paste Prompts
Use @bats-testing-patterns to write script tests
Use @shellcheck-configuration to lint bash script
Phase 7: Documentation
Skills to Invoke
documentation-templates- Documentation
Actions
- Add script header
- Document functions
- Create usage examples
- List dependencies
- Add troubleshooting section
Copy-Paste Prompts
Use @documentation-templates to document bash script
Script Template
#!/usr/bin/env bash
set -euo pipefail
readonly SCRIPT_NAME=$(basename "$0")
readonly SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
log() { echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*"; }
error() { log "ERROR: $*" >&2; exit 1; }
usage() { cat <<EOF
Usage: $SCRIPT_NAME [OPTIONS]
Options:
-h, --help Show help
-v, --verbose Verbose output
EOF
}
main() {
log "Script started"
# Implementation
log "Script completed"
}
main "$@"
Quality Gates
- ShellCheck passes
- Bats tests pass
- Error handling works
- Logging functional
- Documentation complete
Related Workflow Bundles
os-scripting- OS scriptinglinux-troubleshooting- Linux troubleshootingcloud-devops- DevOps automation