peterfei/ai-agent-team / .claude/skills/thread-manager
thread-manager
Flaggedsrc/tools/list-threads.ts
View on GitHubimport { ToolDefinition, ToolInvocation } from '../types';
import { ThreadManager } from '../core/thread-manager';
import { ListThreadsInput } from '../types';
export const toolDefinition: ToolDefinition = {
name: 'list_threads',
description: 'List all conversation threads with filtering and sorting options.',
inputSchema: {
type: 'object',
properties: {
sortBy: {
type: 'string',
enum: ['updatedAt', 'createdAt', 'messageCount'],
description: 'Field to sort by (default: updatedAt)'
},
order: {
type: 'string',
enum: ['asc', 'desc'],
description: 'Sort order (default: desc)'
},
tags: {
type: 'array',
items: { type: 'string' },
description: 'Filter threads by tags'
},
limit: {
type: 'number',
description: 'Maximum number of threads to return (default: 50)'
},
offset: {
type: 'number',
description: 'Pagination offset'
}
}
}
};
export const toolHandler = async (invocation: ToolInvocation, threadManager: ThreadManager) => {
const input = invocation.input as ListThreadsInput;
return await threadManager.listThreads(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 |