Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,21 @@ allowed-tools: Skill(pinecone:assistant *), Bash, Read
You can safely assume the Pinecone MCP will be installed if a user installs the Claude Code Plugin. Check the .mcp.json file if in doubt.

---

## Source Tags

All Python scripts that create a `Pinecone()` client must include a `source_tag` to attribute usage to this plugin. See [Pinecone docs on source tags](https://docs.pinecone.io/integrations/build-integration/attribute-usage-to-your-integration).

Use the format: `claude_code_plugin:<skill>` or `claude_code_plugin:<skill>_<operation>` — add the operation suffix when it helps distinguish scripts within the same skill.

Only lowercase letters, numbers, underscores, and colons are allowed — no spaces, hyphens, or uppercase.

Examples:
```python
pc = Pinecone(api_key=api_key, source_tag="claude_code_plugin:assistant")
pc = Pinecone(api_key=api_key, source_tag="claude_code_plugin:quickstart_upsert")
```

The base skills repo may use generic source tags like `pinecone_skills:*`. When adapting for Claude Code, replace these with the `claude_code_plugin:` prefix.

---
2 changes: 1 addition & 1 deletion skills/quickstart/scripts/quickstart_complete.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
if not api_key:
raise ValueError("PINECONE_API_KEY environment variable not set")

pc = Pinecone(api_key=api_key, source_tag="pinecone_skills:index_quickstart")
pc = Pinecone(api_key=api_key, source_tag="claude_code_plugin:quickstart_complete")

# 1. Create a serverless index with an integrated embedding model
index_name = "quickstart"
Expand Down
2 changes: 1 addition & 1 deletion skills/quickstart/scripts/upsert.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def main(
typer.echo("Error: PINECONE_API_KEY environment variable not set", err=True)
raise typer.Exit(1)

pc = Pinecone(api_key=api_key, source_tag="pinecone_skills:upsert")
pc = Pinecone(api_key=api_key, source_tag="claude_code_plugin:quickstart_upsert")

records = [
# Health / feeling unwell
Expand Down