opendcai/dataflow-webui/format-str-prompted-generator
Claude Code and agent skill by opendcai/dataflow-webui
- community
Checking that the SKILL.md file is still in the repository.
Reference documentation for the FormatStrPromptedGenerator operator. Covers the constructor, prompt template restrictions, placeholder-to-column mapping, actual prompt-building logic, and runnable example usage. Use when: one generation task needs multiple dataframe columns combined into a single prompt through a template.
Install
npx vskill@latest install opendcai/dataflow-webui/format-str-prompted-generatorSKILL.md
FormatStrPromptedGenerator Operator Reference
FormatStrPromptedGenerator is DataFlow's multi-field template-based LLM generation operator. It maps multiple dataframe columns into template placeholders, builds one prompt per row, calls the LLM, writes the result into output_key, persists the dataframe, and returns the output_key string.
1. Imports
2. Constructor
| Parameter | Required | Default | Description | |
|---|---|---|---|---|
llm_serving | Yes | None | LLM service object implementing generate_from_input(...) | |
system_prompt | No | "You are a helpful agent." | System prompt passed to the serving layer | |
prompt_template | Yes in practice | FormatStrPrompt | Must be an instantiated FormatStrPrompt(...) or a DIYPromptABC subclass instance | |
json_schema | No | None | Optional schema forwarded to generate_from_input(...) |
Important prompt_template Notes
- The source code default is
FormatStrPrompt, which is the class object, not
an instance. Because of @prompt_restrict, omitting prompt_template entirely can raise TypeError at construction time.
- Passing
prompt_template=Noneis also invalid here. Unlike
BenchAnswerGenerator, this operator explicitly raises:
- The practical safe pattern is to always pass an instantiated template:
Constructing FormatStrPrompt
3. run() Signature
| Parameter | Required | Default | Description | |
|---|---|---|---|---|
storage | Yes | None | Current operator-step storage object | |
output_key | No | "generated_content" | Output column to write | |
**input_keys | Yes | None | Mapping from template placeholder name to dataframe column name |
Placeholder Mapping Rule
In run(...), each kwarg uses this convention:
- kwarg name = placeholder name inside
f_str_template - kwarg value = dataframe column name to read from
Example:
This means:
{title}is replaced withrow["headline_col"]{body}is replaced withrow["article_body_col"]
4. Actual Execution Logic
The current implementation behaves as follows:
- Read the dataframe from
storage. - Collect
need_fields = set(input_keys.keys()). - For each row, build:
- Call:
- Append all row prompts into
llm_inputs. - Call:
- Write generated outputs into
dataframe[output_key]. - Persist via
storage.write(dataframe). - Return
output_key.
5. Important Rules
- Always pass an instantiated
FormatStrPrompt(...)or a compatible DIY prompt instance. - Do not omit
prompt_template, do not pass the class object, and do not passNone. - Every value in
**input_keysmust be an existing dataframe column name. - The operator does not validate template placeholders against the template string itself. If you forget to map a placeholder that appears in
f_str_template, that placeholder can remain unreplaced in the final prompt. - If you provide a placeholder name in
**input_keysthat is not used in the template, the extra value is simply unused by string replacement. - The operator adds or overwrites
output_key, and does not filter rows. - The return value is the bare
output_keystring, not a list.
6. Typical Usage
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/canonical/core_text/generate/format-str-prompted-generator/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/opendcai/dataflow-webui/format-str-prompted-generator)