Ask me what skills you need
What are you building?
Tell me what you're working on and I'll find the best agent skills for you.
LLMService API contract — the correct signatures for complete(), stream(), embed(), and response types. Use when calling LLMService from any layer, writing reasoning strategies, or building LLM-dependent features.
The most common source of bugs in this codebase is calling LLMService incorrectly. This skill defines the exact API contract.
export class LLMService extends Context.Tag("LLMService")<
LLMService,
{
readonly complete: (
request: CompletionRequest,
) => Effect.Effect<CompletionResponse, LLMErrors>;
readonly stream: (
request: CompletionRequest,
) => Effect.Effect<Stream.Stream<StreamEvent, LLMErrors>, LLMErrors>;
readonly completeStructured: <A>(
request: StructuredCompletionRequest<A>,
) => Effect.Effect<A, LLMErrors>;
readonly embed: (
texts: readonly string[],
model?: string,
) => Effect.Effect<readonly number[][], LLMErrors>;
readonly countTokens: (
messages: readonly LLMMessage[],
) => Effect.Effect<number, LLMErrors>;
readonly getModelConfig: () => Effect.Effect<ModelConfig, never>;
}
>() {}
// Matches packages/llm-provider/src/types.ts — keep in sync
export type CompletionRequest = {
readonly messages: readonly LLMMessage[];
readonly model?: ModelConfig;
npx skills add tylerjrbuell/reactive-agents-ts --skill llm-api-contractHow clear and easy to understand the SKILL.md instructions are, rated from 1 to 5.
Very clear and well structured, with almost no room for misunderstanding.
How directly an agent can act on the SKILL.md instructions, rated from 1 to 5.
Highly actionable with clear, concrete steps that an agent can follow directly.