This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
When creating or managing GitHub repositories:
# Create a new repository and push
gh repo create [repo-name] --public --source=. --remote=origin --push
# If repository already exists
git remote add origin https://github.com/[username]/[repo-name].git
git push -u origin master
# View repository in browser
gh repo view --web
# Clone an existing repository
gh repo clone [owner]/[repo-name]The gh CLI handles authentication automatically and simplifies GitHub operations.
# Install dependencies (once implemented)
npm install
# Run tests (once implemented)
npm test
# Start development server/daemon
npm run dev# Queue a new issue
deck queue [issue-number] [priority]
# Release a completed issue
deck release [issue-number]
# Check system status
deck status
# Manage the daemon
deck daemon start|stop|restart|status
# Rebuild queue state
deck rebuild
# Monitor queue activity
deck monitor/home/clide/deck/
├── OVERVIEW.md # Comprehensive project documentation
├── CLAUDE.md # This file - Claude Code instructions
├── README.md # User-facing documentation (to be created)
├── src/ # Source code
│ ├── deck.sh # Main DECK CLI implementation
│ ├── daemon.sh # Background daemon process
│ └── lib/ # Shared utilities
├── config/ # Configuration templates
├── tests/ # Test suite
└── docs/ # Additional documentation
- File-based approach: Use filesystem operations for all state management
- Atomic operations: Ensure all file operations are atomic using proper UNIX primitives
- Error handling: Implement comprehensive error handling and recovery
- Logging: Log all operations for debugging and audit trails
- Testing: Write tests for all core functionality
- Unit tests for individual functions
- Integration tests for queue operations
- System tests for daemon behavior
- Use standard shell testing frameworks or simple assertion scripts
type: brief description
- Detailed change 1
- Detailed change 2
Fixes #issue-number (if applicable)
Types: feat, fix, docs, style, refactor, test, chore
- DECK uses
/var/clide/deck/as its runtime directory (requires appropriate permissions) - Lock files contain JSON metadata about work items
- The daemon must be running for automatic queue processing
- All operations should be idempotent and safe to retry