opendcai/dataflow-webui/prompted-refiner

Claude Code and agent skill by opendcai/dataflow-webui

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Reference documentation for the PromptedRefiner operator. Use when: refining text with LLM, overwriting original column.

Install

npx vskill@latest install opendcai/dataflow-webui/prompted-refiner

SKILL.md

PromptedRefiner Operator Reference

PromptedRefiner uses an LLM to refine/rewrite text in a column and overwrites the original column with refined results.

1. Import

python
from dataflow.operators.core_text import PromptedRefiner

2. Constructor

python
PromptedRefiner(
llm_serving=llm_serving,
system_prompt="You are a helpful agent.",
)
ParameterRequiredDefaultDescription
llm_servingYesNoneLLM service object
system_promptNo"You are a helpful agent."Instruction for text refinement

3. run() Signature

python
op.run(
storage=self.storage.step(),
input_key="raw_content",
)
# returns: None
ParameterRequiredDefaultDescription
storageYesNoneStorage step object
input_keyNo"raw_content"Column to refine (overwritten in place)

4. Usage Example

python
from dataflow.operators.core_text import PromptedRefiner
from dataflow.serving import APILLMServing_request
from dataflow.utils.storage import FileStorage
class MyPipeline:
def __init__(self):
self.storage = FileStorage(
first_entry_file_name="./data/input.jsonl",
cache_path="./cache",
file_name_prefix="step",
cache_type="jsonl"
)
self.llm_serving = APILLMServing_request(
api_url="https://api.openai.com/v1/chat/completions",
key_name_of_api_key="DF_API_KEY",
model_name="gpt-4o",
max_workers=10
)
self.refiner = PromptedRefiner(
llm_serving=self.llm_serving,
system_prompt="Refine the following text for clarity."
)
def forward(self):
self.refiner.run(
storage=self.storage.step(),
input_key="content"
)
if __name__ == "__main__":
pipeline = MyPipeline()
pipeline.forward()

5. Runtime Logic

  1. Read DataFrame from storage.
  2. Extract text from input_key column.
  3. For each non-empty row, concatenate system_prompt + text as LLM input.
  4. Call LLM to generate refined text.
  5. Overwrite input_key column with refined results.
  6. Empty/falsy rows are skipped (not sent to LLM).
  7. Return None.

6. Important Notes

  • Overwrites input_key column in place (original text is lost)
  • To preserve original text, copy column first using PandasOperator
  • Empty rows in input_key are skipped but remain in DataFrame
  • No output_key parameter exists

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/opendcai/dataflow-webui/prompted-refiner/badge)](https://verified-skill.com/skills/opendcai/dataflow-webui/prompted-refiner)

Something wrong with this skill or its page? Tell us.