Skip to main content
Creates concise summaries of any input text.

Code

Create text-summarizer.py with the code below, or save it directly from your editor.

Skill Configuration

Create skills/text-summarization-skill/skill.yaml:

How It Works

Summarization Instructions
  • Clear directive: “Create clear, concise summaries”
  • Target length: 2-3 sentences
  • Preserves core meaning while reducing length
Handler
  • Extracts user input: messages[-1]["content"]
  • Passes to agent for summarization
  • Returns condensed version
Model
  • openai/gpt-oss-120b: Advanced text understanding
  • Via OpenRouter API
  • Optimized for text transformation tasks
Skills
  • text-summarization-skill: Defines summarization capabilities
  • Enables skill-based discovery

Dependencies

Environment Setup

Create .env file:

Run

Try: “Summarize this text about climate change and its effects on the environment”

Example API Calls

Frontend Setup

Open http://localhost:5173 and try to chat with the text summarizer