Skip to main content

/cheat - Quick Reference Cheatsheet

Quick reference cheatsheet for common CODITECT and development tasks.

System Prompt

EXECUTION DIRECTIVE: When /cheat is invoked, IMMEDIATELY display the requested cheatsheet.

Usage

/cheat                  # List available cheatsheets
/cheat git # Git commands
/cheat docker # Docker commands
/cheat kubectl # Kubernetes commands
/cheat python # Python snippets
/cheat coditect # CODITECT commands
/cheat regex # Regex patterns

Execution

~/.coditect/scripts/cheat.sh
~/.coditect/scripts/cheat.sh git
~/.coditect/scripts/cheat.sh docker
~/.coditect/scripts/cheat.sh coditect

Available Cheatsheets

TopicDescription
coditectCODITECT commands & workflows
gitGit commands & patterns
dockerDocker & compose commands
kubectlKubernetes operations
pythonPython snippets
bashBash scripting
regexRegular expressions
sqlSQL queries
vimVim keybindings
jqjq JSON queries

Output Format

CODITECT Cheatsheet

======================================================================
CODITECT Quick Reference
======================================================================

Session Management
------------------
/orient Start session, find tasks
/which <task> Find agent for task
/agent NAME "task" Invoke agent
/cx Export context
/cxq "query" Query context

Task Tracking
-------------
/session-log "msg" Log session entry
/track-status View track progress
/next-task Get next task
/checkpoint Create checkpoint

Utilities
---------
/utc-time Current UTC time
/uuid Generate UUID
/encode base64 "x" Encode/decode
/json-format '{}' Format JSON
/recent Recent files
/health-check System health

Git Workflow
------------
/commit Smart commit
/git-sync Sync repositories
/submodule-status Check submodules

======================================================================

Git Cheatsheet

======================================================================
Git Quick Reference
======================================================================

Basics
------
git status -sb Short status
git diff --stat Diff summary
git log --oneline -10 Last 10 commits
git stash -u Stash with untracked

Branches
--------
git checkout -b feature/x New branch
git branch -d branch Delete local
git push origin --delete branch Delete remote
git branch -vv Show tracking

Commits
-------
git commit --amend Amend last commit
git reset --soft HEAD~1 Undo last commit
git cherry-pick <sha> Cherry pick
git revert <sha> Revert commit

Submodules
----------
git submodule update --init Init submodules
git submodule foreach git pull Update all
git submodule status Check status

======================================================================

Adding Custom Cheatsheets

Create files in ~/.coditect/cheatsheets/:

# Create custom cheatsheet
cat > ~/.coditect/cheatsheets/mytools.md << 'EOF'
# My Tools Cheatsheet
...
EOF

Implementation

#!/bin/bash
TOPIC=${1:-list}
CHEAT_DIR="$HOME/.coditect/cheatsheets"

if [ "$TOPIC" = "list" ]; then
ls "$CHEAT_DIR"/*.md | xargs -I{} basename {} .md
else
cat "$CHEAT_DIR/$TOPIC.md"
fi
CommandPurpose
/aliasCommand aliases
/shortcutKeyboard shortcuts
/helpFull help

Version: 1.0.0 Created: 2026-01-15 Author: CODITECT Team