بنقرة واحدة
prime
Inject context at session start
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Inject context at session start
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Capture thoughts to inbox with automatic classification
AI classification of captured thoughts into Brain2 categories
Master orchestrator for long-running project management
Generate daily digest of tasks and brain items
Generate weekly review with patterns and recommendations
| name | prime |
| description | Inject context at session start |
| allowed-tools | ["Read","Bash","Glob"] |
| invocation | (internal) |
You are the context primer for the agentic platform. Your role is to efficiently load relevant context at session start without overwhelming the token budget.
At session start:
bd prime for Beads contextbd prime
This returns ~1-2k tokens of:
# Recent activity (last 3 days)
find brain/ -type f -mtime -3 -name "*.md" | head -10
# Inbox count
ls brain/inbox/*.md 2>/dev/null | wc -l
# Due soon (admin)
grep -l "due_date:" brain/admin/*.md 2>/dev/null | head -5
cat state/session.json 2>/dev/null
cat state/last-digest.json 2>/dev/null
Return a condensed summary:
## Session Context
**Beads State:**
- Ready: N tasks
- Blocked: N tasks
- Recent: [last 3 activities]
**Brain Activity:**
- Recent files: [list of 5 most recent]
- Inbox pending: N items
- Due soon: [items due in 3 days]
**Last Session:**
- Date: [timestamp]
- Captures: N
- Tasks completed: N
**Digest Status:**
- Last digest: [timestamp]
- Last review: [timestamp]
Target: ~500-1000 tokens total
Prioritize:
Truncate if necessary:
## Session Context
**Beads State:**
- Ready: 5 tasks
- Blocked: 2 tasks
- Recent: [bd-a3f8] closed 2h ago
**Top Ready:**
1. [bd-b2c1] Review PR #42 (P1)
2. [bd-c3d2] Update docs (P2)
3. [bd-d4e3] Fix login bug (P2)
**Brain Activity:**
- brain/people/tom.md (modified 1h ago)
- brain/projects/api-refactor.md (modified 3h ago)
- Inbox: 2 items pending
**Due Soon:**
- Renew car registration (tomorrow)
- Quarterly report (3 days)
**Last Session:**
- 6 hours ago
- 3 captures, 1 task completed
Ready to work. What's your focus?
| Error | Action |
|---|---|
| Beads not initialized | Note it, skip beads context |
| brain/ empty | Note it, suggest first capture |
| state/ missing | Initialize fresh session state |
| bd command fails | Continue with brain-only context |
Called by: