Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

receive

verified

Receive context from parent, child, or sibling session

View on GitHub

Marketplace

cadrianmae-claude-marketplace

cadrianmae/claude-marketplace

Plugin

context

Repository

cadrianmae/claude-marketplace

plugins/context/skills/receive/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/cadrianmae/claude-marketplace/blob/main/plugins/context/skills/receive/SKILL.md -a claude-code --skill receive

Installation paths:

Claude
.claude/skills/receive/
Powered by add-skill CLI

Instructions

## Receiving Context

**Received At**: !`date '+%Y-%m-%d %H:%M:%S'`
**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:receive child api-implementation
# ✓ Context received from child session
#   File: /tmp/claude-ctx/ctx-child-to-parent-api-implementation.md
```

---

# receive - Receive context from parent, child, or sibling session

Read and integrate context from session handoff file.

## Usage

```
/context:receive parent [subject] [path]
/context:receive child [subject] [path]
/context:receive sibling [subject] [path]
```

**IMPORTANT: Direction is REQUIRED.** Must be one of: `parent`, `child`, or `sibling`.

Subject and path are optional:
- **subject**: Claude will infer from 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. **Records received timestamp** (auto-captured)
7. If subject provided, looks for `{path}/ctx-{direction}-{subject}.md`
8. If no subject, uses wildcard: `{path}/ctx-{direction}-*.md` **sorted by newest first**
9. Path defaults to `/tmp/cl

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
4536 chars