parallel-debug-orchestrator
Parallel Debug Orchestrator
Overview
This skill provides guidance for debugging tasks using modern best practices and proven patterns.
When to Use This Skill
Use this skill when:
- Working with debugging projects
- Implementing debugging-related features
- Following best practices for debugging
Core Principles
1. Follow Industry Standards
Always adhere to established conventions and best practices
# Example: Follow naming conventions and structure
# Adapt this to your specific domain and language
2. Prioritize Code Quality
Write clean, maintainable, and well-documented code
- Use consistent formatting and style
- Add meaningful comments for complex logic
- Follow SOLID principles where applicable
3. Test-Driven Approach
Write tests to validate functionality
- Unit tests for individual components
- Integration tests for system interactions
- End-to-end tests for critical workflows
Best Practices
Structure and Organization
- Organize code into logical modules and components
- Use clear and descriptive naming conventions
- Keep files focused on single responsibilities
- Limit file size to maintain readability (< 500 lines)
Error Handling
- Implement comprehensive error handling
- Use specific exception types
- Provide actionable error messages
- Log errors with appropriate context
Performance Considerations
- Optimize for readability first, performance second
- Profile before optimizing
- Use appropriate data structures and algorithms
- Consider memory usage for large datasets
Security
- Validate all inputs
- Sanitize outputs to prevent injection
- Use secure defaults
- Keep dependencies updated
Common Patterns
Pattern 1: Configuration Management
# Separate configuration from code
# Use environment variables for sensitive data
# Provide sensible defaults
Pattern 2: Dependency Injection
# Inject dependencies rather than hardcoding
# Makes code testable and flexible
# Reduces coupling between components
Pattern 3: Error Recovery
# Implement graceful degradation
# Use retry logic with exponential backoff
# Provide fallback mechanisms where appropriate
Anti-Patterns
❌ Avoid: Hardcoded Values
Don't hardcode configuration, credentials, or magic numbers
# BAD: Hardcoded values
API_TOKEN = "hardcoded-value-bad" # Never do this!
max_retries = 3
✅ Instead: Use configuration management
# GOOD: Configuration-driven
API_TOKEN = os.getenv("API_TOKEN") # Get from environment
max_retries = config.get("max_retries", 3)
❌ Avoid: Silent Failures
Don't catch exceptions without logging or handling
# BAD: Silent failure
try:
risky_operation()
except Exception:
pass
✅ Instead: Explicit error handling
# GOOD: Explicit handling
try:
risky_operation()
except SpecificError as e:
logger.error(f"Operation failed: {e}")
raise
❌ Avoid: Premature Optimization
Don't optimize without measurements
✅ Instead: Profile first, then optimize
- Measure performance with realistic workloads
- Identify actual bottlenecks
- Optimize the critical paths only
- Validate improvements with benchmarks
Testing Strategy
Unit Tests
- Test individual functions and classes
- Mock external dependencies
- Cover edge cases and error conditions
- Aim for >80% code coverage
Integration Tests
- Test component interactions
- Use test databases or services
- Validate data flow across boundaries
- Test error propagation
Best Practices for Tests
- Make tests independent and repeatable
- Use descriptive test names
- Follow AAA pattern: Arrange, Act, Assert
- Keep tests simple and focused
Debugging Techniques
Common Issues and Solutions
Issue: Unexpected behavior in production
Solution:
- Enable detailed logging
- Reproduce in staging environment
- Use debugger to inspect state
- Add assertions to catch assumptions
Issue: Performance degradation
Solution:
- Profile the application
- Identify bottlenecks with metrics
- Optimize critical paths
- Monitor improvements with benchmarks
Related Skills
- test-driven-development: Write tests before implementation
- systematic-debugging: Debug issues methodically
- code-review: Review code for quality and correctness
References
- Industry documentation and best practices
- Official framework/library documentation
- Community resources and guides
- Code examples and patterns
Version History
- 1.0.0 (2026-01-01): Initial version
More from zpankz/mcp-skillset
network-meta-analysis-appraisal
Systematically appraise network meta-analysis papers using integrated 200-point checklist (PRISMA-NMA, NICE DSU TSD 7, ISPOR-AMCP-NPC, CINeMA) with triple-validation methodology, automated PDF extraction, semantic evidence matching, and concordance analysis. Use when evaluating NMA quality for peer review, guideline development, HTA, or reimbursement decisions.
16software-architecture
Guide for quality focused software architecture. This skill should be used when users want to write code, design architecture, analyze code, in any case that relates to software development.
13cursor-skills
Cursor is an AI-powered code editor and development environment that combines intelligent coding assistance with enterprise-grade features and workflow automation. It extends beyond basic AI code comp...
13textbook-grounding
Orthogonally-integrated Hegelian syntopical analysis for SAQ/VIVA/concept grounding with systematic textbook citations. Implements thesis extraction → antithesis identification → abductive synthesis across multiple authoritative sources. Tensor-integrated with /m command: activates S×T×L synergies (textbook-grounding × pdf-search × qmd = 0.95). Triggers on requests for model SAQ responses, VIVA preparation, concept explanations requiring textbook evidence, or any PEX exam content needing systematic cross-reference validation.
12obsidian-process
This skill should be used when batch processing Obsidian markdown vaults. Handles wikilink extraction, tag normalization, frontmatter CRUD operations, and vault analysis. Use for vault-wide transformations, link auditing, tag standardization, metadata management, and migration workflows. Integrates with obsidian-markdown for syntax validation and obsidian-data-importer for structured imports.
12terminal-ui-design
Create distinctive, production-grade terminal user interfaces with high design quality. Use this skill when the user asks to build CLI tools, TUI applications, or terminal-based interfaces. Generates creative, polished code that avoids generic terminal aesthetics.
10