peterfei/ai-agent-team / .claude/skills/thread-manager
thread-manager
Flaggedsrc/tools/create-thread.ts
View on GitHubimport { ToolDefinition, ToolInvocation } from '../types';
import { ThreadManager } from '../core/thread-manager';
import { CreateThreadInput } from '../types';
export const toolDefinition: ToolDefinition = {
name: 'create_thread',
description: 'Create a new conversation thread to isolate context for a specific task.',
inputSchema: {
type: 'object',
properties: {
title: {
type: 'string',
description: 'Title of the thread (e.g., "Implement User Auth", "Fix Bug #123")'
},
description: {
type: 'string',
description: 'Optional detailed description of the task'
},
switchTo: {
type: 'boolean',
description: 'Whether to switch to this thread immediately (default: true)'
},
tags: {
type: 'array',
items: { type: 'string' },
description: 'Tags for categorization (e.g., "frontend", "bugfix")'
}
},
required: ['title']
}
};
export const toolHandler = async (invocation: ToolInvocation, threadManager: ThreadManager) => {
const input = invocation.input as CreateThreadInput;
// Default switchTo to true if not provided, consistent with command behavior
if (input.switchTo === undefined) {
input.switchTo = true;
}
return await threadManager.createThread(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 |