Skip to content
Back to skills

Llm Station Patterns

ASecurity

Search for and instantiate design patterns and reusable code templates. Includes Gang of Four patterns (Observer, Strategy, Factory, etc.) and previously crystallized action templates. Always check before writing new code.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
ai-agentsgobashapi

Works with

  • api

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add Ugbot/ai-grind --skill llm-station-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Llm Station Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Llm Station Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ugbot-llm-station-patterns/badge)](https://www.skillsdirectory.com/skills/ugbot-llm-station-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: llm-station-patterns
description: Search for and instantiate design patterns and reusable code templates. Includes Gang of Four patterns (Observer, Strategy, Factory, etc.) and previously crystallized action templates. Always check before writing new code.
user-invocable: false
---

# LLM Station Pattern Library & Code Reuse

**Always check for existing implementations before writing new code.** LLM Station searches across three sources:
1. Existing code already in the workspace
2. Previously successful action templates
3. Built-in Gang of Four design patterns

## Search for patterns and existing implementations
```bash
!`echo $LLMSTATION_BIN` run crystal_search query="$ARGUMENTS"
```
This returns matches ranked by relevance, showing whether it's existing code, a template, or a design pattern.

## Execute a pattern template
```bash
!`echo $LLMSTATION_BIN` run crystal_execute template_id=ID params='{"class_name":"Foo","namespace":"Bar"}'
```

## Dry run (preview without executing)
```bash
!`echo $LLMSTATION_BIN` run crystal_execute template_id=ID params='{"class_name":"Foo"}' dry_run=true
```

## List available templates
```bash
!`echo $LLMSTATION_BIN` run crystal_manage action=list
```

## Check system status
```bash
!`echo $LLMSTATION_BIN` run crystal_manage action=status
```

## Available built-in patterns
- **observer_pattern** — Subject/listener with typed events
- **strategy_pattern** — Swappable algorithms via interface
- **factory_pattern** — Object creation with type registration
- **builder_pattern** — Step-by-step construction with fluent API
- **singleton_pattern** — Thread-safe lazy initialization
- **command_pattern** — Encapsulated requests with undo/redo
- **adapter_pattern** — Interface conversion wrapper
- **decorator_pattern** — Dynamic behavior extension
- **repository_pattern** — Abstract data access (CRUD)
- **service_pattern** — Business logic with dependency injection

**When to use:** Before writing any new class or pattern. If you need an observer, factory, repository, etc., check here first. The pattern will be instantiated with your specific class names, namespaces, and parameters.

*Note: the first call for a workspace auto-starts the daemon if not already running (a few seconds); subsequent calls are fast.*

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…