Agent skill

LLM Generation Workflows

by lobehub in lobehub/lobehub

Implements business-facing LLM calls as explicit, traceable workflows, keeping prompt versions, model policy, structured output and tracing scenarios in separate places.

Custom licenceAuto-check passedAI & LLM Engineering

Install LLM Generation Workflows

skills CLI
$ npx skills add lobehub/lobehub --skill llm-generation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lobehub/lobehub llm-generation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lobehub/lobehub.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/llm-generation .claude/skills/llm-generation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
llm-generation
GitHub stars
83k
Token cost
~1.1k tokens
SKILL.md length
533 words
Files
2
Skills in repo
50
Repo updated
First seen
Licence
Custom licence

At a glance

Implements business-facing LLM calls as explicit, traceable workflows, keeping prompt versions, model policy, structured output and tracing scenarios in separate places.

  • Works in 5 steps: Assert the emitted scenario,… → Test the prompt's important behavioral… → Test structured-output validation and… → …
  • Adding a new structured LLM call to a server service
  • SKILL.md covers Locate the Existing Boundary, Prompt Ownership and Versioning, Scenario Semantics and Model Policy, plus 2 more sections
  • Calls bun

What it does

The skill covers application prompts, generateObject and generateText calls, model selection and generation tracing in LobeHub, but not provider adapters or agent snapshots. Before editing a call, the agent inspects the existing prompts package, the server-side structured generation wrapper, the constants file of tracing scenario names, the tracing package and the owning service. Reusable generation contracts, meaning the message builder, JSON schema, schema name and prompt version, are kept together in the prompts package, while model configuration, Zod validation, persistence and error handling stay in the server service.

Prompt versions are written as v followed by a major, or major and minor, number such as v1 or v1.2, stored on their own without a feature prefix, and bumped when a change should start a new evaluation or tracing cohort. A scenario names a stable product workflow and lifecycle stage. The agent checks the existing list first, reuses a scenario only for the same user-visible workflow, and adds a new one instead of borrowing a nearby one, which would contaminate latency, cost and quality data.

When your agent uses it

  • Adding a new structured LLM call to a server service
  • Versioning or changing an application prompt
  • Choosing or adding a tracing scenario for a generation

Example prompts

  • “Add a generateObject call that drafts goal criteria and trace it under the right scenario.”
  • “Bump the prompt version for the summary chain because its output schema changed.”
  • “Which tracing scenario should this verification-planning call use?”

Requirements

  • A checkout of the LobeHub repository

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Assert the emitted scenario, promptVersion, and schemaName where applicable.
  2. Test the prompt's important behavioral constraints without snapshotting the entire prose.
  3. Test structured-output validation and relevant failure behavior.
  4. Search for stale inline prompts, old version strings, and incorrectly reused scenarios.
  5. Run bun run check and bun run check --type for cross-package changes.

What it can do on your machine

Read from SKILL.md and the folder at commit 35d442e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bun

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

LLM Generation Workflows loads about 1.1k tokens when it runs. Until then it costs about 40 tokens; SKILL.md has 533 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~40
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 533 words (~1,089 tokens).

“Implement business-facing LLM calls as explicit, independently observable workflows. Keep prompt identity, model policy, structured output, and tracing responsibilities separate.”

— opening of SKILL.md by lobehub, Custom licence
name
llm-generation

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in .agents/skills/llm-generation of lobehub/lobehub.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 35d442e

Compare with similar skills

LLM Generation Workflows next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

LLM Generation Workflows compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
LLM Generation Workflows this skilllobehub/lobehub83k—~1.1kAutomated safety check: PassCustom licence
Claude Cookbooks Reference2025Emma/vibe-coding-cn23k1 repos~2.2kAutomated safety check: PassMIT
Prompt Engineering Patternswshobson/agents40k—~1.3kAutomated safety check: PassMIT
Add AI Chat Toolryokun6/ryos1.3k—~2.2kAutomated safety check: PassAGPL-3.0
Guidance Constrained GenerationOrchestra-Research/AI-Research-SKILLs13k5 repos~3.6kAutomated safety check: PassMIT
Lintlang Audithermes-labs-ai/lintlang138—~1.8kAutomated safety check: PassApache-2.0

Similar skills

  • Claude Cookbooks Reference

    2025Emma/vibe-coding-cn

    Reference of Claude API examples and guides covering tool use, vision, RAG, classification, summarization, text-to-SQL, prompt caching and agent patterns.

    23k GitHub starsUsed in 1 repo~2.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Reference for designing and tuning production LLM prompts: few-shot examples, chain-of-thought, structured outputs, templates and system prompts.

    40k GitHub stars~1.3k tokensUpdated 4 days ago
    AI & LLM EngineeringAuto-check passed
  • Add AI Chat Tool

    ryokun6/ryos

    Add or modify an AI chat tool ("Ask Ryo" capability) in ryOS.

    1.3k GitHub stars~2.2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Guidance Constrained Generation

    Orchestra-Research/AI-Research-SKILLs

    Constrains language model output with regex, selections and grammars using the Guidance library, so JSON, XML, code or formatted fields come out valid.

    13k GitHub starsUsed in 5 repos~3.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Lintlang Audit

    hermes-labs-ai/lintlang

    Audit a named AI agent config, system prompt, tool-definition or instruction file (YAML, JSON, Markdown, text, or Python) with the released LintLang CLI, on request.

    138 GitHub stars~1.8k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Sap AI Core

    secondsky/sap-skills

    Guides development with SAP AI Core and SAP AI Launchpad for enterprise AI/ML workloads on SAP BTP.

    462 GitHub stars~3.3k tokensUpdated 4 days ago
    AI & LLM EngineeringAuto-check passed

More from lobehub/lobehub

All 50 skills in this repo
  • Builds single-file interactive HTML prototypes rendered with the real LobeHub UI components and written as production-style React, so they can later be split into files.

    83k GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Verifies a delivery end to end by driving the real product on a CLI, web, desktop or iOS Simulator surface, capturing evidence and publishing a round with the lh CLI.

    83k GitHub stars~9.7k tokensUpdated today
    Auto-check passed
  • Git Worktree Cleanup

    lobehub/lobehub

    Audits stale Git worktrees and branches with a bundled script, classifies each one, and deletes only after you approve the exact candidates.

    83k GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Maintains LobeHub's model-backed alint rule set: writing rules, removing false positives against real code, deciding warn versus error and tracking token cost.

    83k GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Guides building LobeHub builtin agent tools, from the manifest and execution runtime to executors, chat UI renders and registry wiring.

    83k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Explains how LobeHub client code fetches data through services, SWR store hooks and cache keys, and when to avoid useEffect fetching or duplicated state.

    83k GitHub stars~1.7k tokensUpdated today
    Auto-check passed

Works with

Questions about LLM Generation Workflows

What does LLM Generation Workflows do?

Implements business-facing LLM calls as explicit, traceable workflows, keeping prompt versions, model policy, structured output and tracing scenarios in separate places. The skill covers application prompts, generateObject and generateText calls, model selection and generation tracing in LobeHub, but not provider adapters or agent snapshots. Before editing a call, the agent inspects the existing prompts package, the server-side structured generation wrapper, the constants file of tracing scenario names, the tracing package and the owning service.

When should I use LLM Generation Workflows?

LLM Generation Workflows fits situations like: adding a new structured LLM call to a server service; versioning or changing an application prompt; choosing or adding a tracing scenario for a generation.

How do I install LLM Generation Workflows in Claude Code?

Run `npx skills add lobehub/lobehub --skill llm-generation -a claude-code`. Or copy the skill folder (.agents/skills/llm-generation in lobehub/lobehub) into .claude/skills/llm-generation in your project. Claude Code loads it when a task matches its description.

How do I install LLM Generation Workflows in Codex?

Run `npx skills add lobehub/lobehub --skill llm-generation -a codex`. Or copy the skill folder (.agents/skills/llm-generation in lobehub/lobehub) into .agents/skills/llm-generation in your project. Codex loads it when a task matches its description.

Can I use LLM Generation Workflows in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lobehub/lobehub --skill llm-generation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/llm-generation, .gemini/skills/llm-generation, .github/skills/llm-generation and .opencode/skills/llm-generation in your project.

What does LLM Generation Workflows need to run?

Going by SKILL.md and its folder, LLM Generation Workflows needs the command-line tools its instructions call (bun). Our summary lists: A checkout of the LobeHub repository.

Does LLM Generation Workflows access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is LLM Generation Workflows safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does LLM Generation Workflows use?

LLM Generation Workflows has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does LLM Generation Workflows use?

About 1.1k tokens (SKILL.md is roughly 4.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to LLM Generation Workflows?

Skills that share tags, products or a category with LLM Generation Workflows: Claude Cookbooks Reference (2025Emma/vibe-coding-cn, 23k stars), Prompt Engineering Patterns (wshobson/agents, 40k stars), Add AI Chat Tool (ryokun6/ryos, 1.3k stars) and Guidance Constrained Generation (Orchestra-Research/AI-Research-SKILLs, 13k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains LLM Generation Workflows?

lobehub (a GitHub organization) maintains it in lobehub/lobehub, which has 83,074 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on October 9, 2026.

Source: lobehub/lobehub on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.