/twinmind-pack:twinmind-sdk-patternsfrom twinmind-pack
Provides client wrapper patterns for TwinMind's memory and meeting intelligence REST API in TypeScript and Python.
Ships in twinmind-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Production patterns for TwinMind's AI memory and meeting intelligence REST API. TwinMind captures, organizes, and retrieves contextual memories from conversations and meetings.
import requests
import os
class TwinMindClient:
def __init__(self, api_key: str = None, base_url: str = "https://api.twinmind.com/v1"):
self.api_key = api_key or os.environ["TWINMIND_API_KEY"]
self.base_url = base_url
self.session = requests.Session()
self.session.headers.update({
"Authorization": f"Bearer {self.api_key}",
"Content-Type": "application/json"
})
def _request(self, method: str, path: str, **kwargs):
response = self.session.request(method, f"{self.base_url}{path}", **kwargs)
response.raise_for_status()
return response.json()
class TwinMindClient:
# ... (continued from Step 1)
def store_memory(self, content: str, context: dict = None, tags: list = None) -> dict:
return self._request("POST", "/memories", json={
"content": content,
"context": context or {},
"tags": tags or [],
"timestamp": datetime.utcnow().isoformat()
})
def search_memories(self, query: str, limit: int = 10, tags: list = None) -> list:
params = {"q": query, "limit": limit}
if tags:
params["tags"] = ",".join(tags)
return self._request("GET", "/memories/search", params=params)
def get_memory(self, memory_id: str) -> dict:
return self._request("GET", f"/memories/{memory_id}")
def create_meeting_context(self, meeting_id: str, transcript: str, participants: list) -> dict:
return self._request("POST", "/contexts/meeting", json={
"meeting_id": meeting_id,
"transcript": transcript,
"participants": participants,
"extract_action_items": True,
"extract_decisions": True
})
def get_meeting_insights(self, meeting_id: str) -> dict:
return self._request("GET", f"/contexts/meeting/{meeting_id}/insights")
import time
def batch_store_memories(client: TwinMindClient, memories: list, batch_size: int = 20):
results = []
for i in range(0, len(memories), batch_size):
batch = memories[i:i+batch_size]
for memory in batch:
try:
result = client.store_memory(**memory)
results.append({"status": "ok", "id": result["id"]})
except requests.HTTPError as e:
if e.response.status_code == 429: # HTTP 429 Too Many Requests
time.sleep(int(e.response.headers.get("Retry-After", 5)))
result = client.store_memory(**memory)
results.append({"status": "ok", "id": result["id"]})
else:
results.append({"status": "error", "error": str(e)})
time.sleep(1) # rate limit between batches
return results
| Error | Cause | Solution |
|---|---|---|
401 Unauthorized | Invalid API key | Verify TWINMIND_API_KEY |
429 Rate Limited | Too many requests | Respect Retry-After header |
404 Not Found | Invalid memory/meeting ID | Validate IDs before lookup |
| Empty search results | Query too specific | Broaden query terms |
client = TwinMindClient()
# After meeting ends
ctx = client.create_meeting_context(
meeting_id="mtg-123",
transcript=transcript_text,
participants=["[email protected]", "[email protected]"]
)
insights = client.get_meeting_insights("mtg-123")
for item in insights.get("action_items", []):
print(f"- [{item['assignee']}] {item['task']}")
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
24 skills in this plugin
/twinmind-ci-integrationIntegrate TwinMind meeting transcription workflows into CI/CD pipelines for automated meeting documentation and action item tracking.
Use when implementing ci integration,
or managing TwinMind meeting AI operations.
Trigger with phrases like "twinmind ci integration", "twinmind ci integration".
/twinmind-common-errorsDiagnose and fix TwinMind common errors and exceptions.
Use when encountering transcription errors, debugging failed requests,
or troubleshooting integration issues.
Trigger with phrases like "twinmind error", "fix twinmind",
"twinmind not working", "debug twinmind", "transcription failed".
/twinmind-core-workflow-aExecute TwinMind primary workflow: Meeting transcription and summary generation.
Use when implementing meeting capture, building transcription features,
or automating meeting documentation.
Trigger with phrases like "twinmind transcription workflow",
"meeting transcription", "capture meeting with twinmind".
/twinmind-core-workflow-bExecute TwinMind secondary workflow: Action item extraction and follow-up automation.
Use when automating meeting follow-ups, extracting tasks,
or integrating with project management tools.
Trigger with phrases like "twinmind action items",
"meeting follow-up automation", "extract tasks from meeting".
/twinmind-cost-tuningOptimize TwinMind costs across Free, Pro ($10/mo), and Enterprise tiers with usage monitoring and tier selection guidance.
Use when implementing cost tuning,
or managing TwinMind meeting AI operations.
Trigger with phrases like "twinmind cost tuning", "twinmind cost tuning".
/twinmind-data-handlingHandle TwinMind meeting data with GDPR compliance: transcript storage, memory vault management, data export, and deletion policies.
Use when implementing data handling,
or managing TwinMind meeting AI operations.
Trigger with phrases like "twinmind data handling", "twinmind data handling".
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin twinmind-packOther plugins' skills for the same job