langchain-agents-scaffold
- Repo stars 0
- Author updated Live
- Author repo skills-registry
- Domain
- AI
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @tomevault-io · no license declared
- Token usage
- Lean
- Setup complexity
- Manual integration
- External API key
- Required · Anthropic
- Operating systems
- Docker
- Runtime requirements
- Python · Docker
- Permissions
-
- Read-only
- Write / modify
- Env read
- Network behavior
- External requests
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: langchain-agents-scaffold
description: Use when creating a new LangChain / LangGraph / DeepAgents project from scratch. Picks the right…
category: ai
runtime: Python / Docker
---
# langchain-agents-scaffold output preview
## PART A: Task fit
- Use case: Use when creating a new LangChain / LangGraph / DeepAgents project from scratch. Picks the right scaffolder for graphs vs. DeepAgents vs. LCEL chains. There is no single scaffolder that covers all three project shapes. Pick the right path: requires Anthropic API key; runs on Python. Works with Claude Code, Cursor, Cline and 23 more..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “LangGraph: langgraph new / DeepAgents: write the file directly / LCEL chains: write the file directly” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “Use when creating a new LangChain / LangGraph / DeepAgents project from scratch. Picks the right scaffolder for graphs vs. DeepAgents vs. LCEL chains. There is no single scaffolder that covers all three project shapes. Pick the right path: requires Anthropic API key; runs on Python. Works with Claude Code, Cursor, Cline and 23 more.”.
- **02** When the source has headings, the agent prioritizes “LangGraph: langgraph new / DeepAgents: write the file directly / LCEL chains: write the file directly” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files, read environment variables; may access external network resources; requires Anthropic API keys.
## Running Rules
- read files, write/modify files, read environment variables; may access external network resources; requires Anthropic API keys.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source does not require a stable slash command. After installation, invoke the skill by name and describe the task.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files, read environment variables.
Start with a small task and check whether the result follows “LangGraph: langgraph new / DeepAgents: write the file directly / LCEL chains: write the file directly”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: langchain-agents-scaffold
description: Use when creating a new LangChain / LangGraph / DeepAgents project from scratch. Picks the right…
category: ai
source: tomevault-io/skills-registry
---
# langchain-agents-scaffold
## When to use
- Use when creating a new LangChain / LangGraph / DeepAgents project from scratch. Picks the right scaffolder for graphs…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “LangGraph: langgraph new / DeepAgents: write the file directly / LCEL chains: write the file directly” and keep inference separate from source facts.
- read files, write/modify files, read environment variables; may access external network resources; requires Anthropic API keys.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "langchain-agents-scaffold" {
input -> user goal + target files + boundaries + acceptance criteria
context -> LangGraph: langgraph new / DeepAgents: write the file directly / LCEL chains: write the file directly
rules -> SKILL.md triggers / order / output contract
runtime -> Python / Docker | read files, write/modify files, read environment variables | may access external network resources
guardrails -> requires Anthropic API keys + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} Scaffolding LangChain ecosystem projects
There is no single scaffolder that covers all three project shapes. Pick the right path:
| Project shape | Scaffolder |
|---|---|
| LangGraph agent (explicit StateGraph) | langgraph new (from langgraph-cli) |
| DeepAgents agent (planning + sub-agents + virtual FS) | No scaffolder — write ~15 lines yourself (recipe below) |
| LCEL pipeline (chains, RAG, classification) | No scaffolder — write ~10 lines yourself (recipe below) |
LangGraph: langgraph new
pip install "langgraph-cli>=0.4" # if not installed
langgraph new my-agent --template react-agent
cd my-agent
pip install -e .
langgraph-cli ships several templates. List them with langgraph new --help. Common picks:
react-agent— single-LLM-with-tools loop. The most common starting point.retrieval-agent— RAG over a vector store.memory-agent— long-term memory using the LangGraph store.data-enrichment-agent— structured data extraction.
Each template ships its own pyproject.toml, langgraph.json, and src/<package>/graph.py — read those after scaffolding to learn the layout. Do not assume the layout matches across templates. The conventions vary.
DeepAgents: write the file directly
There's no deepagents new. Create the project by hand:
mkdir my-deep-agent && cd my-deep-agent
python -m venv .venv && source .venv/bin/activate
pip install \
"deepagents>=0.5.3" \
"langchain>=1.2" \
"langchain-anthropic>=1.4" \
"langsmith>=0.7"
mkdir agent
Pin floors matter: deepagents>=0.5 removed the legacy subagents API and added async sub-agents; 0.5.2 added the filesystem permissions system; 0.5.3 made model=None a deprecated kwarg (you must pass an explicit model) and added structured outputs for sub-agent responses.
Then agent/__init__.py (empty) and agent/agent.py:
"""DeepAgent for my-deep-agent. Always exported as `agent`."""
from deepagents import create_deep_agent
from langchain.chat_models import init_chat_model
SYSTEM_PROMPT = "You are my-deep-agent, a helpful agent."
TOOLS = [] # add user tools here
SUBAGENTS = [] # add sub-agents here (see deepagents-code skill)
agent = create_deep_agent(
model=init_chat_model("anthropic:claude-sonnet-4-6"), # explicit model required as of 0.5.3
tools=TOOLS,
subagents=SUBAGENTS,
instructions=SYSTEM_PROMPT,
)
Plus a pyproject.toml (or requirements.txt) and a .env with ANTHROPIC_API_KEY and LANGSMITH_*. That's the whole project.
For deploy: DeepAgents' create_deep_agent returns a compiled LangGraph, so a langgraph.json pointing at agent.agent:agent works for langgraph dev and langgraph build/deploy.
LCEL chains: write the file directly
For non-agentic flows (RAG, summarization, classification):
mkdir my-chain && cd my-chain
python -m venv .venv && source .venv/bin/activate
pip install "langchain>=1.2" "langchain-openai>=1.0" "langsmith>=0.7"
mkdir agent
Then agent/agent.py:
"""LCEL chain. Exposed as `agent` (a Runnable)."""
from langchain.chat_models import init_chat_model
from langchain_core.messages import HumanMessage, SystemMessage
from langchain_core.runnables import RunnableLambda
SYSTEM_PROMPT = "You are a helpful assistant."
def _to_messages(payload: dict) -> list:
msgs = [SystemMessage(content=SYSTEM_PROMPT)]
for m in payload.get("messages", []):
msgs.append(HumanMessage(content=m["content"]))
return msgs
agent = RunnableLambda(_to_messages) | init_chat_model("openai:gpt-4o-mini")
For RAG, see the langchain-agents-langchain-code skill.
Naming conventions worth following (not enforced)
These are conventions, not requirements. They make follow-up work easier because every other skill in this bundle assumes them:
- The runnable artifact is named
agentand lives atagent/agent.py. - Provider keys and
LANGSMITH_*go in.env. Commit a.env.example. - Evalsets live under
evals/datasets/*.jsonl; the eval runner atevals/run.py. - A FastAPI host (if needed for Docker/Cloud Run deploy) lives at
server/app.py.
Skills that follow assume these names. If the project diverges, adapt — these are not hard rules, just the path of least resistance.
Source: cwijayasundara/agent_cli_langchain — distributed by TomeVault.
Decide Fit First
Design Intent
How To Use It
Boundaries And Review