Agent Skill
2/7/2026

fetch-context

Fetch additional context from the platform, including recent messages, search through conversation history, or get user information. Use when you need more context than what's provided initially.

J
jim60105
1GitHub Stars
1Views
npx skills add jim60105/ai-friend

SKILL.md

Namefetch-context
DescriptionFetch additional context from the platform, including recent messages, search through conversation history, or get user information. Use when you need more context than what's provided initially.

name: fetch-context description: Fetch additional context from the platform, including recent messages, search through conversation history, or get user information. Use when you need more context than what's provided initially. allowed-tools: Bash

Fetch Context Skill

Retrieve additional context from the platform to better understand the conversation.

Usage

# Get recent messages
${HOME}/.agents/skills/fetch-context/scripts/fetch-context.ts \
  --session-id "$SESSION_ID" \
  --type recent_messages \
  --limit 20

# Search messages
${HOME}/.agents/skills/fetch-context/scripts/fetch-context.ts \
  --session-id "$SESSION_ID" \
  --type search_messages \
  --query "project deadline" \
  --limit 10

Available Types

  • recent_messages: Get more recent message history
  • search_messages: Search for messages by keyword
  • user_info: Get information about the current user

Critical Rules

  1. Timeout: The script won't run for more than 30 seconds. If it hangs, do stop_bash and do not retry, return an error message in JSON format.
Skills Info
Original Name:fetch-contextAuthor:jim60105