Back to skills
SKILL.md
Worldarchitect Local Debugging
ASecurity**Flask server logs:** ``` /tmp/your-project.com/<branch-name>/flask-server.log ```
- 6 stars
- 0 votes
- 0 copies
- 5 views
- Added November 26, 2026
Works with
Security analysis
100/100npx -y skills add jleechanorg/jleechan-skills --skill worldarchitect-local-debugging --agent claude-codeAre you the author of Worldarchitect Local Debugging?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jleechanorg-worldarchitect-local-debugging)# Your Project Local Debugging Reference
## Log File Locations
**Flask server logs:**
```
/tmp/your-project.com/<branch-name>/flask-server.log
```
**MCP server logs:**
```
/tmp/your-project.com/<branch-name>/mcp-server.log
```
## Quick Log Commands
```bash
# Tail recent logs for current branch
tail -100 /tmp/your-project.com/codex_integrate-gemini-and-openrouter-apis-czdlzo/flask-server.log
# Search for errors
grep -i "error\|cerebras\|400\|500" /tmp/your-project.com/*/flask-server.log | tail -50
# Watch logs in real-time
tail -f /tmp/your-project.com/*/flask-server.log
```
## When Server Restart is Required
Python caches modules, so restart needed after changing:
- `constants.py` - any constant values
- Any `__init__.py` files
- Import structure changes
- New dependencies
**No restart needed for:**
- Template changes (Jinja reloads)
- Static files (CSS/JS)
- Most Flask route logic (with debug mode)
## Running Server
```bash
# From project root
./run_local_server.sh
# Server runs on port 8005-8007 (check output)
```
## Common Debug Patterns
```bash
# Find provider/model being used
grep "MODEL_INFO\|Using provider" /tmp/your-project.com/*/flask-server.log | tail -10
# Find token/context errors
grep "context_length\|token" /tmp/your-project.com/*/flask-server.log | tail -10
# Find API errors with response body
grep -A2 "API error" /tmp/your-project.com/*/flask-server.log | tail -20
```
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.