Skip to content
acc-troubleshooting-template logo

Troubleshooting Template Generator

acc-troubleshooting-template

Generates troubleshooting guides and FAQ sections for PHP projects. Creates problem-solution documentation.

SKILL.md

Full skill instructions

Troubleshooting Template Generator

Generate helpful troubleshooting guides and FAQ documentation.

Document Structure

# Troubleshooting

## Quick Fixes
{common issues with quick solutions}

## Installation Issues
{installation problems}

## Configuration Issues
{config problems}

## Runtime Errors
{errors during execution}

## FAQ
{frequently asked questions}

## Getting Help
{how to report issues}

Section Templates

Quick Fixes Section

## Quick Fixes

### Reset to Known Good State

```bash
# Clear cache
rm -rf var/​cache/​*

# Reinstall dependencies
rm -rf vendor/ composer.lock
composer install

# Verify installation
php vendor/​bin/​package verify

Check Common Issues

SymptomQuick Fix
"Class not found"Run composer dump-autoload
Permission deniedRun chmod -R 755 var/
Config not loadingCheck .env file exists
Connection refusedVerify service is running

### Installation Issues Section

```markdown
## Installation Issues

### Composer Install Fails

**Symptom:**

Your requirements could not be resolved to an installable set of packages.


**Solutions:**

1. **Update Composer:**
   ```bash
   composer self-update
  1. Clear Composer cache:

    composer clear-cache
    
  2. Check PHP version:

    php -v
    # Must be 8.5 or higher
    
  3. Check required extensions:

    php -m | grep -E "json|pdo|mbstring"
    

Extension Not Found

Symptom:

PHP Fatal error: Uncaught Error: Call to undefined function json_encode()

Solution:

Install missing PHP extension:

# Ubuntu/​Debian
sudo apt-get install php8.5-json

# macOS with Homebrew
brew install [email protected]

# Verify
php -m | grep json

### Configuration Issues Section

```markdown
## Configuration Issues

### Environment Variables Not Loading

**Symptom:**

API key not configured


**Checklist:**

1. **Verify `.env` file exists:**
   ```bash
   ls -la .env
  1. Check variable is set:

    grep "PACKAGE_API_KEY" .env
    
  2. Verify no syntax errors:

    # Values with spaces need quotes
    PACKAGE_NAME="My App Name"  # ✅ Correct
    PACKAGE_NAME=My App Name    # ❌ Wrong
    
  3. Clear config cache:

    php artisan config:clear  # Laravel
    rm var/​cache/​config.php   # Other frameworks
    

Invalid Configuration Value

Symptom:

Configuration error: 'timeout' must be a positive integer

Solution:

Check config/​package.php:

// ❌ Wrong
'timeout' => '30',  // String instead of int

// ✅ Correct
'timeout' => 30,    // Integer

### Runtime Errors Section

```markdown
## Runtime Errors

### Connection Timeout

**Symptom:**

Error: Connection timed out after 30 seconds


**Possible Causes:**

1. **Network issues** — Check connectivity
2. **Firewall blocking** — Check outbound rules
3. **Service down** — Check status page
4. **Timeout too short** — Increase timeout

**Solutions:**

```php
// Increase timeout
$client = new Client([
    'timeout' => 60,  // 60 seconds
]);
# Test connectivity
curl -v https://api.example.com/health

Rate Limit Exceeded

Symptom:

{
    "error": {
        "code": "RATE_LIMITED",
        "message": "Too many requests"
    }
}

Solutions:

  1. Implement backoff:

    $client = new Client([
        'retry' => [
            'max_attempts' => 3,
            'delay' => 1000,  // ms
        ],
    ]);
    
  2. Cache responses:

    $cache = new RedisCache();
    $client = new Client(['cache' => $cache]);
    
  3. Upgrade plan for higher limits


Memory Limit Exceeded

Symptom:

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted

Solutions:

  1. Process in batches:

    foreach ($client->paginate(100) as $batch) {
        process($batch);
    }
    
  2. Increase memory limit:

    ini_set('memory_limit', '256M');
    
  3. Use generators:

    foreach ($client->stream() as $item) {
        yield process($item);
    }
    

### FAQ Section

```markdown
## FAQ

### General

<details>
<summary><strong>Q: What PHP version is required?</​strong></​summary>

PHP 8.5 or higher is required. Check your version:

```bash
php -v

</​details>

<details> <summary><strong>Q: Is this library production-ready?</​strong></​summary>

Yes, the library is used in production by many projects. We follow semantic versioning and maintain backward compatibility within major versions. </​details>

Configuration

<details> <summary><strong>Q: How do I configure multiple environments?</​strong></​summary>

Use environment-specific .env files:

.env           # Base configuration
.env.local     # Local overrides (not committed)
.env.test      # Test environment
.env.prod      # Production environment

</​details>

<details> <summary><strong>Q: Can I use environment variables directly?</​strong></​summary>

Yes, you can pass configuration directly:

$client = new Client([
    'api_key' => getenv('MY_API_KEY'),
]);

</​details>

Performance

<details> <summary><strong>Q: How can I improve performance?</​strong></​summary>
  1. Enable caching — Reduces API calls
  2. Use connection pooling — Reuse connections
  3. Batch requests — Reduce round trips
  4. Use async — Parallel processing
$client = new Client([
    'cache' => new RedisCache(),
    'pool_size' => 10,
]);

</​details>


### Getting Help Section

```markdown
## Getting Help

### Before Asking for Help

1. **Search existing issues:** [GitHub Issues](https://github.com/​vendor/​package/​issues)
2. **Check documentation:** [Docs](https://docs.example.com)
3. **Review changelog:** [CHANGELOG.md](CHANGELOG.md)

### Collect Debug Information

Run this command and include output in your issue:

```bash
php -v
composer show vendor/​package
php -m | grep -E "json|pdo|curl"

Report a Bug

Create an issue with:

  1. Description — What happened?
  2. Expected — What should have happened?
  3. Steps to reproduce — How can we reproduce it?
  4. Environment — PHP version, OS, package version
  5. Error message — Full stack trace

Ask a Question


## Complete Example

```markdown
# Troubleshooting

## Quick Fixes

| Problem | Solution |
|---------|----------|
| Class not found | `composer dump-autoload` |
| Permission denied | `chmod -R 755 var/` |
| Config missing | Check `.env` exists |

## Common Errors

### "Invalid API Key"

**Symptom:**

Error: Invalid API key provided


**Solutions:**

1. Verify key in `.env`:
   ```bash
   grep "API_KEY" .env
  1. Check for extra whitespace:

    API_KEY=abc123   # ✅ No quotes needed
    API_KEY= abc123  # ❌ Extra space
    
  2. Regenerate key at dashboard

FAQ

<details> <summary><strong>Q: Why am I getting rate limited?</​strong></​summary>

Free tier allows 100 requests/​hour. Upgrade for more. </​details>

Get Help


## Generation Instructions

When generating troubleshooting docs:

1. **Start with symptoms** — What user sees
2. **Explain causes** — Why it happens
3. **Provide solutions** — Step-by-step fixes
4. **Include verification** — How to confirm fix
5. **Use collapsible FAQ** — Reduce scrolling
6. **Link to help** — Where to get more support

More skills from diegosouzapw

accessibility logo
diegosouzapw/awesome-omni-skill

accessibility

Accessibility guidelines for VS Code features — covers accessibility help dialogs, accessible views, verbosity settings, accessibility signals, ARIA alerts/status announcements, keyboard navigation, and ARIA labels/roles. Applies to both new interactive UI surfaces and updates to existing feature...

62 1
View
mermaid-diagrams logo
diegosouzapw/awesome-omni-skill

mermaid-diagrams

Mermaid diagram creation for flowcharts, sequences, ERDs, and more. Generate diagrams from text in markdown files. Use for documentation, architecture diagrams, and visual representations. Triggers on mermaid, flowchart, sequence diagram, ERD, entity relationship, gantt chart, pie chart, class di...

62 1
View
tauri2-react-rust logo
diegosouzapw/awesome-omni-skill

tauri2-react-rust

Guides development of cross-platform desktop apps with Tauri 2, TypeScript, React, and Rust. Use when building Tauri apps, implementing IPC, designing Rust backend or TypeScript/React frontend, when researching or cloning a website (open site, snapshot elements), when verifying local dev or built...

62 1
View
fp-ts-errors logo
diegosouzapw/awesome-omni-skill

fp-ts-errors

Handle errors as values using fp-ts Either and TaskEither for cleaner, more predictable TypeScript code. Use when implementing error handling patterns with fp-ts.

62 0
View
ring:pre-dev-research logo
diegosouzapw/awesome-omni-skill

ring:pre-dev-research

Gate 0 research phase for pre-dev workflow. Dispatches 3 parallel research agents to gather codebase patterns, external best practices, and framework documentation BEFORE creating PRD/TRD. Outputs research.md with file:line references.

62 0
View
create-assistant logo
diegosouzapw/awesome-omni-skill

create-assistant

Create and configure Vapi voice AI assistants with models, voices, transcribers, tools, hooks, and advanced settings. Use when building voice agents, phone bots, customer support assistants, or any conversational AI that handles phone or web calls.

62 0
View
codex-headless logo
diegosouzapw/awesome-omni-skill

codex-headless

Delegiere Aufgaben an OpenAI Codex CLI im Headless-Mode. Nutzt ChatGPT Subscription (KEIN API Key). Nur Workspace-Zugriff, KEIN System-Zugriff. Auto-Accept mit --full-auto. Web-Recherche mit --search.

62 0
View
social-media-scheduler logo
diegosouzapw/awesome-omni-skill

social-media-scheduler

Generate a full week of social media content for any topic. Outputs platform-optimized posts for Twitter/X, LinkedIn, and Instagram with hashtags and posting times.

62 0
View
Data Privacy Compliance logo
diegosouzapw/awesome-omni-skill

Data Privacy Compliance

Data privacy and regulatory compliance specialist for GDPR, CCPA, HIPAA, and international data protection laws. Use when implementing privacy controls, conducting data protection impact assessments, ensuring regulatory compliance, or managing data subject rights. Expert in consent management, da...

62 0
View
triple-review logo
diegosouzapw/awesome-omni-skill

triple-review

Reviews a task using the TRIPLE protocol, as the review agent.

62 0
View
Tech Stack & Architecture Decision logo
diegosouzapw/awesome-omni-skill

Tech Stack & Architecture Decision

Define and document the technology stack and architecture decisions for a project. Use when the user needs to choose a tech stack, make architecture decisions, define infrastructure choices, or document technology selections. Triggers on requests like "define the tech stack", "choose technologies...

62 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View