Debug command
Skill datamaker-kr/synapse-claude-marketplace/plugins/synapse-plugin-helper/skills/debug-command
시냅스 제품군 개발을 위한 공용 Claude Marketplace 입니다. 용도 및 목적 별 plugins 를 통해 claude plugins, agents, skills, commands 를 제공합니다.
npx -y skills add datamaker-kr/synapse-claude-marketplace --skill debug-commandAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Run the `synapse-plugin-helper:debug` workflow from the original Claude slash command. Use when the user asks to diagnose and fix common Synapse plugin issues
SKILL.md
3.6 KB, 825 tokens by cl100k_base, as published. Nobody here has run it
synapse-plugin-helper:debug Command Workflow
Codex Adaptation
- Treat the user request or explicitly supplied text as the command arguments.
- Use the available Codex file, search, terminal, and clarification capabilities that match the workflow.
- Do not depend on Claude-only slash command variables or tool names.
Debug Synapse Plugin
Diagnose and resolve common issues with Synapse plugins.
Arguments: the user request or explicit arguments
Workflow
Step 1: Identify Problem
If error message provided in the user request or explicit arguments:
- Parse the error type and message
- Identify likely cause
If no specific error:
- Ask user to describe the issue
- Run diagnostic checks
Step 2: Run Diagnostic Checks
Execute these checks in order:
1. Config Validation
# Check config.yaml or synapse.yaml exists and is valid
CONFIG_FILE=config.yaml
if [ -f synapse.yaml ]; then CONFIG_FILE=synapse.yaml; fi
cat "$CONFIG_FILE"
Verify:
-
nameandcodefields present -
actionssection defined - Entrypoints use correct format (
module:ClassNameormodule.function)
2. Entrypoint Verification
# Check entrypoint files exist
python -c "from [module] import [class]"
Verify:
- Module file exists
- Class/function is importable
- No syntax errors
3. Dependency Check
# Verify requirements installed
pip check
pip list | grep -E "synapse|pydantic|ray"
Verify:
- synapse-sdk installed
- pydantic installed
- All requirements.txt packages installed
4. Parameter Schema Check
# Validate Pydantic models
python -c "from [module] import [ParamsClass]; print([ParamsClass].model_json_schema())"
Step 3: Common Issues & Solutions
| Error | Cause | Solution |
|---|---|---|
ModuleNotFoundError | Missing dependency | pip install -r requirements.txt |
ImportError: cannot import | Wrong entrypoint path | Check module.path:ClassName format |
ValidationError | Invalid parameters | Check Pydantic model types |
RuntimeContextError | Missing context | Ensure action receives ctx parameter |
ConfigError: invalid action | Wrong method type | Use job, task, or serve |
Warning: config out of sync | Entry points/types drifted | Run synapse plugin update-config |
Step 4: Detailed Analysis
If automated checks don't find issue:
- Use the troubleshooter agent for deeper analysis
- Check logs with
/synapse-plugin:logs - Review recent changes in config.yaml or action code
Step 5: Provide Solution
After identifying the issue:
- Explain the root cause
- Provide specific fix instructions
- Show corrected code if applicable
- Suggest prevention measures
Quick Fixes
Fix import errors:
export PYTHONPATH="${PYTHONPATH}:$(pwd)"
Fix missing synapse-sdk:
pip install synapse-sdk
Fix config.yaml formatting:
python -c "import yaml; yaml.safe_load(open('config.yaml'))"
Sync config with code:
synapse plugin update-config
Invoke Troubleshooter Agent
For complex issues, the troubleshooter agent provides:
- Deep error log analysis
- Pattern matching against known issues
- Web search for similar problems
- Step-by-step resolution guidance
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.