# Building Langflow Components — Safe, Tested, Forever-Named

> Ship Langflow Components safely: permanent names, typed inputs/outputs, AI runtime rules, ComponentTestBase tests.

Building Langflow Components — Safe, Tested, Forever-Named is a free AI agent skill on Agensi by Cristhian Zanforlin Lousa, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Cristhian Zanforlin Lousa](https://www.agensi.io/creators/cristhian-zanforlin-lousa)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Uses: 2
- Version: 1.2
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/building-langflow-components-safe-tested-forever-named
- Tags: ai-agents, api, langflow, llm, python, ai-components, langchain

## About this skill

**Building Langflow Components** is a workflow skill for creating and shipping custom Components for [Langflow](https://github.com/langflow-ai/langflow), the visual builder for LLM flows. A Component is a Python class that appears as a node in the flow editor. Its class name and its input and output names are stored in every saved flow, so a careless rename breaks other people's work without any warning.

**Problems it solves**
- Renamed classes or inputs that delete a component from every saved flow.
- `MessageTextInput` used for API keys, so they are stored in clear text.
- SDK clients created at import time, which crash the whole backend.
- LLM calls without a timeout that hang a flow.
- Raw prompts and keys in logs.
- Niche components placed in `langflow-base`.
- Bundle changes that fail the `BUNDLE_API.md` changelog check.
- Scope creep inside a component: renamed inputs or extra options nobody asked for.

**The 12-step workflow.** Each step ends with a check you can verify:

1. Decide between bundle and base.
2. Choose a class name you can keep forever (`<Provider><Capability>Component`).
3. Pick the icon.
4. Define `inputs` and `outputs` with permanent names.
5. Implement the output methods, importing the SDK inside the method.
6. Apply the AI runtime rules (explicit timeout, mapped errors, redaction).
7. Hot-reload with `LFX_DEV`.
8. Test with `ComponentTestBaseWith[out]Client` and its three required fixtures.
9. Prefer real integrations marked `api_key_required`.
10. Register the component.
11. Commit with `uv run git commit`.
12. Record a learning.

**References**
- `component-anatomy.md`: tool, Data, DataFrame and multi-output shapes, plus deprecating without breaking flows.
- `io-reference.md`: every input and output type.
- `testing.md`: base classes, fixtures, marks, real integrations vs mocks.
- `ai-component-patterns.md`: timeouts, retries, error mapping, streaming, token accounting, redaction.
- `icons.md`: wiring a custom SVG icon.
- `bundles.md`: bundle layout and the `BUNDLE_API.md` changelog check.

**When it triggers.** "Create a component", "add an OpenAI/Anthropic/Chroma integration", "wrap this LangChain class as a Component".

This is a community skill, not affiliated with or endorsed by the Langflow project. Free and MIT-licensed. Part of the claude-skills-czl collection.

**Source on GitHub:** [this skill](https://github.com/Cristhianzl/claude-skills-czl/tree/main/configs/langflow/skills/building-langflow-components) · [full repository](https://github.com/Cristhianzl/claude-skills-czl)

## Requires

- Git

## Known limitations

Targets a Langflow source checkout: hot reload, ComponentTestBase tests and bundle registration assume the Langflow repo layout and its AGENTS.md. Input/output types depend on your Langflow version. Refactoring existing components is covered by Langflow's own component-refactoring skill. Community skill, not affiliated with the Langflow project.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Building Langflow Components — Safe, Tested, Forever-Named skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Does it work outside Claude Code?

Yes. Any agent that supports SKILL.md can use it. It was built and tested mainly on Claude Code.

### Do I need the Langflow source code?

Yes. The workflow targets a Langflow checkout: hot reload with `LFX_DEV`, `ComponentTestBase` tests and bundle registration all assume the repo layout. It also tells the agent to read `AGENTS.md` at the repo root, which is the canonical source.

### Does it change my code or run anything?

Yes. It writes the component, tests and registration, runs the dev server and tests, and commits locally through pre-commit. It does not push.

### Can I use it to refactor an existing component?

Its focus is creating and evolving components safely. For larger refactors it points to Langflow's own `component-refactoring` skill in `.agents/skills/`.

### How do I install it?

Unzip it into `~/.claude/skills/` to use it in every project, or into your Langflow checkout's `.claude/skills/`. Keep the folder named `building-langflow-components/`.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
