peterfei/ai-agent-team / .claude/skills/thread-manager
thread-manager
Flaggedsrc/tools/update-thread.ts
View on GitHubimport { ToolDefinition, ToolInvocation } from '../types';
import { ThreadManager } from '../core/thread-manager';
import { UpdateThreadInput } from '../types';
export const toolDefinition: ToolDefinition = {
name: 'update_thread',
description: 'Update the metadata (title, description, tags) of a thread.',
inputSchema: {
type: 'object',
properties: {
threadId: {
type: 'string',
description: 'ID of the thread to update'
},
title: {
type: 'string',
description: 'New title'
},
description: {
type: 'string',
description: 'New description'
},
tags: {
type: 'array',
items: { type: 'string' },
description: 'New list of tags (replaces existing tags)'
}
},
required: ['threadId']
}
};
export const toolHandler = async (invocation: ToolInvocation, threadManager: ThreadManager) => {
const input = invocation.input as UpdateThreadInput;
// Separate threadId for the first argument, but pass the full input as the second argument
// because UpdateThreadInput requires threadId.
return await threadManager.updateThread(input.threadId, input);
};
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |