home / skills / shotaiuchi / dotclaude / debug-environment
This skill helps diagnose environment and configuration issues causing failures by verifying settings, permissions, and platform differences across contexts.
npx playbooks add skill shotaiuchi/dotclaude --skill debug-environmentReview the files below or copy the command above to add this skill to your agents.
---
name: debug-environment
description: >-
Environment and configuration investigation. Apply when debugging
environment-specific failures, missing configuration, permission errors,
platform differences, and deployment issues.
user-invocable: false
---
# Environment Checker Investigation
Investigate environment and configuration issues that cause failures in specific contexts.
## Investigation Checklist
### Configuration Verification
- Compare actual configuration values against expected defaults
- Check for missing required environment variables or config keys
- Identify configuration override precedence conflicts
- Verify config file format and encoding are parsed correctly
- Look for environment-specific config that was not applied
### Platform Differences
- Identify OS-specific behavior differences causing the failure
- Check for path separator, line ending, or case sensitivity issues
- Verify runtime version compatibility across environments
- Look for locale or timezone settings that affect data processing
- Check for architecture-specific issues in native dependencies
### File System & Permissions
- Verify file and directory existence at expected paths
- Check read, write, and execute permissions for the running process
- Identify symlink resolution failures or broken links
- Look for disk space or inode exhaustion conditions
- Check for file locking conflicts with other processes
### Network & Connectivity
- Verify DNS resolution and endpoint reachability
- Check for proxy, firewall, or VPN interference
- Identify timeout values that are too aggressive for the environment
- Verify TLS certificate validity and trust chain
- Look for port conflicts or binding failures on the host
## Output Format
Report findings with confidence ratings:
| Confidence | Description |
|------------|-------------|
| High | Root cause clearly identified with supporting evidence |
| Medium | Probable cause identified but needs verification |
| Low | Hypothesis formed but insufficient evidence |
| Inconclusive | Unable to determine from available information |
This skill inspects environment and configuration issues that cause failures in specific contexts. It helps pinpoint missing variables, permission problems, platform differences, and deployment mismatches that lead to runtime errors. The output is a concise investigative report with confidence ratings and actionable next steps.
The skill runs a systematic checklist across configuration, platform, filesystem, and network layers to collect evidence. It compares actual values against expected defaults, validates file formats and permissions, checks runtime and OS compatibility, and tests network reachability and TLS. Findings are categorized with confidence levels (High, Medium, Low, Inconclusive) and include suggested verification steps and remediation actions.
What does each confidence rating mean?
High: root cause identified with clear evidence. Medium: probable cause with supporting signs that need verification. Low: hypothesis with minimal evidence. Inconclusive: insufficient information to form a hypothesis.
Can this skill modify my environment?
No. The skill focuses on non-destructive inspections and evidence gathering. Remediation steps are suggested but applied manually or via separate automation.
What inputs are required?
Provide the failing command or scenario, logs, expected config values, and the target environment metadata (OS, runtime versions, architecture). Additional access to the host or CI logs improves accuracy.