Troubleshooting¶
Common issues and solutions for GuardKit workflows.
Quick Reference¶
First Steps:
- Run
/debugto check your configuration - Check the Common Issues section below
- Review Command-Specific Troubleshooting
- Report an issue if problem persists
Common Issues¶
Installation & Setup¶
Symlinks Not Working
If slash commands fail with "file not found":
# Check symlink exists
ls -l ~/.agentecflow/bin/agent-enhance
# Verify target is valid
readlink ~/.agentecflow/bin/agent-enhance
# Re-run installation
cd ~/Projects/guardkit
./installer/scripts/install.sh
Permission Denied
If you get permission errors:
# Make scripts executable
chmod +x ~/.agentecflow/bin/*
# Or re-run installation
./installer/scripts/install.sh
Template Initialization Fails
If guardkit init fails:
# Check available templates
guardkit init --list
# Verify template exists
ls -la installer/core/templates/
# Re-run with verbose output
/debug
Task Workflow Issues¶
Task Not Moving Between States
If /task-complete doesn't move files:
- Check you're in the correct directory (repo root)
- Verify task exists:
ls tasks/in_progress/ - Check git status:
git status - Run
/debugto check configuration
Quality Gates Failing
If tests or coverage checks fail:
- Compilation Errors: Fix build issues first
- Test Failures: Check Phase 4.5 auto-fix attempts (max 3)
- Coverage Below Threshold: Add more tests (≥80% line, ≥75% branch)
- Architectural Review: Review Phase 2.5 report (≥60/100 required)
Task Stuck in BLOCKED State
Causes and solutions:
- Tests failing: Check test output, fix failures
- Build errors: Fix compilation issues
- Coverage too low: Add tests to meet thresholds
- Review required: Human checkpoint needed (complexity ≥7)
Conductor Integration¶
Worktree Commands Failing
If commands fail in Conductor worktrees:
# Verify symlinks
ls -l ~/.agentecflow/
# Check state directory
ls -la .claude/state/
# Re-run installation
./installer/scripts/install.sh
State Not Syncing Across Worktrees
GuardKit state is auto-committed on every command. If state isn't syncing:
- Check symlinks:
ls -l .claude/ - Verify auto-commit working:
git log .claude/state/ - Pull latest from main:
git pull origin main
Template & Agent Issues¶
Agent Discovery Not Finding Specialists
If tasks always use task-manager:
- Check agent frontmatter metadata (stack, phase, keywords)
- Verify agents exist:
ls .claude/agents/ - Run
/agent-validateon agents - Check task file extensions match stack
Template Validation Failing
If /template-validate reports errors:
- Level 1 (Automatic): Auto-fix enabled, should resolve automatically
- Level 2 (Extended): Review validation report in template directory
- Level 3 (Comprehensive): Use interactive audit to fix issues
MCP Integration Issues¶
MCP Server Not Responding
If context7 or design-patterns MCP fails:
# Check MCP configuration
cat ~/.claude/mcp-config.json
# Verify MCP server running
npx -y @context7/mcp-server --help
# Re-install MCP
# See: docs/deep-dives/mcp-integration/context7-setup.md
Command-Specific Troubleshooting¶
/task-work Issues¶
Phase 2.5 Architectural Review Fails
If SOLID/DRY/YAGNI score <60/100:
- Review architectural recommendations
- Choose [R]evise to modify plan
- Address flagged issues before proceeding
Phase 4.5 Test Enforcement Loop
If tests fail repeatedly (3 attempts):
- Check test output for root cause
- Verify environment setup (dependencies installed)
- Fix manually if auto-fix can't resolve
- Use
/debugto check test runner configuration
/task-review Issues¶
Review Takes Too Long
Adjust depth level:
- Use
--depth=quick(15-30 min) for initial assessments - Use
--depth=standard(1-2 hours) for regular reviews - Reserve
--depth=comprehensive(4-6 hours) for security audits
Model Selection Unexpected
Review uses Opus 4.5 for:
- All security reviews (any depth)
- Comprehensive architectural reviews
- Decision analysis (standard/comprehensive)
Use Sonnet 4.5 for faster, cheaper reviews when appropriate.
/template-create Issues¶
Agent Tasks Not Created
By default, /template-create creates agent enhancement tasks. If not created:
- Check for
--no-create-agent-tasksflag (opt-out) - Verify template has agents
- Run
/debugto check configuration
Validation Fails
If template validation fails:
- Check CRUD completeness (all layers present)
- Verify layer symmetry (consistent patterns)
- Review placeholder consistency
- See validation report in template directory
Deep-Dive Troubleshooting¶
Debug Command¶
Use /debug to diagnose configuration issues:
What It Checks:
- Installation status (symlinks, directories)
- Configuration files (templates, agents, commands)
- Git repository status
- Conductor integration
- MCP server configuration
- Task state directory
- Test runner setup
Getting Help¶
Before Reporting Issues¶
- Run
/debugand include output - Check git status:
git status - Check recent commits:
git log --oneline -5 - Include error messages verbatim
- Specify which command failed
Reporting Issues¶
Include:
- Output from
/debug - Command that failed (full command with arguments)
- Error message (full text)
- Operating system (macOS, Linux, Windows)
- Project type (React, Python, .NET, etc.)
- Relevant git log (if task workflow issue)
Community Support¶
- GitHub Issues: guardkit/issues
- GitHub Discussions: guardkit/discussions
Next Steps¶
- Run Diagnostics: Use
/debugto check your setup - Review Workflow: GuardKit Workflow Guide
- Check Commands: Command Reference