Skip to content
Back to skills

2614 Assistant Chat 34b08162

ASecurity

Chat with a Pinecone Assistant and receive answers with source citations

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
toolsbashapi

Works with

  • claude code
  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2614-assistant-chat_34b08162 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2614 Assistant Chat 34b08162?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2614 Assistant Chat 34b08162
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2614-assistant-chat-34b08162/badge)](https://www.skillsdirectory.com/skills/tools-only-2614-assistant-chat-34b08162)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
description: Chat with a Pinecone Assistant and receive answers with source citations
argument-hint: assistant [name] message [your question]
model: claude-haiku-4-5
allowed-tools: Skill, Bash, BashOutput, Read
---

Before proceeding, ALWAYS INVOKE the pinecone:assistant skill before commencing workflow. This will allow
correct resolution of plugin root directory for scripts being run.

> **Script paths are relative to the plugin root directory.**
> Run scripts with: `uv run skills/assistant/scripts/script_name.py [arguments]`

## Overview

Chat with a Pinecone Assistant and receive cited responses. This command invokes the assistant chat script to send messages and display responses with citations.

## Workflow

1. **Parse Arguments**:
   - `assistant`: Name of the assistant (required)
   - `message`: The user's question or message (required)
   - `stream`: Enable streaming responses (optional, flag)

2. **If Arguments Missing**:
   - If no assistant name provided: Run `uv run skills/assistant/scripts/list.py --json` to get available assistants
   - Use AskUserQuestion to let user select an assistant from the list
   - If no message provided: Prompt user for their question

3. **Execute Chat Script**:
   ```bash
   uv run skills/assistant/scripts/chat.py \
     --assistant "assistant-name" \
     --message "user's question"
   ```

4. **Display Results**:
   - The script will show the assistant's response
   - Citations table with:
     - Citation number
     - Source file name (e.g., "document.pdf", "notes.txt")
     - Page numbers (e.g., "1, 2, 3" or "N/A" for text files)
     - Position in response text
   - Token usage statistics
   - Follow-up suggestions

**Note**: File URLs are temporary signed links valid for approximately 1 hour. They are not displayed in the output to keep it clean.

## Example Usage

**With all arguments:**
```
/pinecone:assistant-chat assistant docs-qa message "What is the main feature?"
```

**With streaming:**
```
/pinecone:assistant-chat assistant my-assistant message "Explain the architecture" --stream
```

**Interactive mode** (missing arguments):
- User invokes: `/pinecone:assistant-chat`
- Claude lists assistants and asks user to select
- Claude prompts for the message
- Claude executes the script

## Script Location

`skills/assistant/scripts/chat.py`

## Troubleshooting

**Error: PINECONE_API_KEY not set**
- Remind user to export PINECONE_API_KEY before starting Claude Code
- Provide signup link: https://app.pinecone.io/?sessionType=signup

**Error: Assistant not found**
- Run list command to show available assistants
- Check for typos in assistant name

**Error: No response or timeout**
- Check if assistant has files uploaded
- Verify assistant status is "ready" (not "indexing")
- Suggest waiting if files are still processing

**Empty or poor responses**
- Assistant may not have relevant documents uploaded
- Suggest uploading relevant files with `/pinecone:assistant-upload`

## Related Commands

- `/pinecone:assistant-context` - Get context snippets without full chat response
- `/pinecone:assistant-upload` - Upload files to provide knowledge to the assistant
- List assistants: Run `uv run skills/assistant/scripts/list.py`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…