send
Send context to parent, child, or sibling session before switching
What this skill does
## Current Project State (Auto-Captured)
**Timestamp**: !`date '+%Y-%m-%d %H:%M:%S'`
**Working Directory**: !`pwd`
**Git Branch**: !`git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "Not in git repo"`
**Git Status**: !`git status --short 2>/dev/null | head -10 || echo "No changes"`
**Last Commit**: !`git log -1 --oneline 2>/dev/null || echo "No commits"`
**Context Directory**: !`[[ -d /tmp/claude-ctx ]] && echo "Exists" || echo "Does not exist - will create"`
---
**Note**: If `/tmp/claude-ctx/` does not exist, create it with:
```bash
mkdir -p /tmp/claude-ctx
cat > /tmp/claude-ctx/README.md << 'EOF'
# Claude Context Handoff Directory
This is an **ephemeral directory** for Claude Code session context handoff. Created by claude slash commands. '/context:send' and '/context:receive'.
EOF
```
---
## Quick Example
```bash
/context:send parent
# ✓ Context prepared for parent session
# File: /tmp/claude-ctx/ctx-child-to-parent-bug-fix.md
```
---
# send - Send context to child, parent, or sibling session
Create a context handoff file for transitioning between sessions.
## Usage
```
/context:send child [subject] [path]
/context:send parent [subject] [path]
/context:send sibling [subject] [path]
```
**IMPORTANT: Direction is REQUIRED.** Must be one of: `parent`, `child`, or `sibling`.
**Direction is REQUIRED** - must be first argument: `parent`, `child`, or `sibling`
Subject and path are optional:
- **subject**: Claude will infer from current conversation context if not provided
- **path**: Defaults to `/tmp/claude-ctx/` if not provided
## What it does
1. **Validates direction** - Errors if direction is not parent|child|sibling
2. Check "Context Directory" status above (from dynamic injection)
3. Create directory only if status shows "Does not exist - will create"
4. If creating directory, generates minimal README.md:
```markdown
# Claude Context Handoff Directory
This is an **ephemeral directory** for Claude Code session context handoff. Created by claude slash commands. '/context:send' and '/context:receive'.
```
5. Determines direction flow based on argument
6. **Auto-captures project state** (timestamp, git branch, working dir, git status)
7. If subject provided, creates `{path}/ctx-{direction}-{subject}.md`
8. If no subject, infers from current conversation context and creates file with inferred name
9. Path defaults to `/tmp/claude-ctx/` but can be customized
10. Uses `cat > filename.md << 'EOF'` to clear file and write context
11. Includes:
- Direction and timestamp (auto-captured)
- Current situation and context
- Decisions made and work completed
- Blockers and next actions
- Files modified
- Git state (auto-captured)
12. Shows clear "next steps" for user
**File naming pattern:**
- `/context:send child` → `/tmp/claude-ctx/ctx-parent-to-child-{inferred-subject}.md`
- `/context:send parent` → `/tmp/claude-ctx/ctx-child-to-parent-{inferred-subject}.md`
- `/context:send sibling` → `/tmp/claude-ctx/ctx-sibling-to-sibling-{inferred-subject}.md`
## Example: Sending to Child with Subject
```
/context:send child database-migration
✓ Context prepared for child session
File: /tmp/claude-ctx/ctx-parent-to-child-database-migration.md
Next steps:
1. Start child session for focused work
2. In new session, run: /context:receive parent
```
## Example: Sending to Parent (Subject Inferred)
```
/context:send parent
✓ Context prepared for parent session
File: /tmp/claude-ctx/ctx-child-to-parent-api-implementation.md
Next steps:
1. Exit this session
2. Resume parent session
3. In parent session, run: /context:receive child
```
## Example: Sending to Sibling Session
```
/context:send sibling parallel-task
✓ Context prepared for sibling session
File: /tmp/claude-ctx/ctx-sibling-to-sibling-parallel-task.md
Next steps:
1. Start sibling session for parallel work
2. In new session, run: /context:receive sibling parallel-task
```
## Example: Custom Path
```
/context:send child feature-work ~/Documents/context/
✓ Context prepared for child session
File: ~/Documents/context/ctx-parent-to-child-feature-work.md
Next steps:
1. Start child session
2. In new session, run: /context:receive parent feature-work ~/Documents/context/
```
## Example: Missing Direction (Error)
```
/context:send database-work
✗ Error: Must specify direction: parent, child, or sibling
Usage: /context:send <parent|child|sibling> [subject] [path]
```
## Context File Contents
The context file should include:
### Current Situation
- What work is being done
- Why the handoff is happening
- What the next session needs to focus on
### Decisions Made
- Key technical choices
- Trade-offs considered
- Rationale for decisions
### Work Completed
- What has been implemented
- Files created/modified
- Tests written
- Commits made
### Blockers & Issues
- Problems encountered
- Questions that arose
- Things to investigate
### Next Actions
- What should happen next
- Specific tasks for the receiving session
- Dependencies or prerequisites
## Implementation Pattern
**Create directory if needed:**
```bash
# Check if directory exists, create only if needed
[[ -d /tmp/claude-ctx ]] || {
mkdir -p /tmp/claude-ctx
cat > /tmp/claude-ctx/README.md << 'EOF'
# Claude Context Handoff Directory
This is an **ephemeral directory** for Claude Code session context handoff. Created by claude slash commands. '/context:send' and '/context:receive'.
EOF
}
```
**Write context file:**
Use heredoc to write context file:
```bash
cat > /tmp/claude-ctx/ctx-parent-to-child-{subject}.md << 'EOF'
# Context: Parent → Child
[Context content here]
EOF
```
This pattern clears the file first, preventing accumulation of old context.
## When to use
- Before starting a child session from parent
- Before returning to parent after completing child work
- When switching between hierarchy levels
- When starting a sibling session for parallel work
- When context needs to be passed between sessions
## Related commands
- `/context:receive` - Receive context from parent/child session
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.