opendcai/dataflow-webui/general-filter

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 GeneralFilter operator. Covers the constructor, rule-based filtering logic, and pipeline usage notes. Use when: filtering rows based on column value conditions that can be expressed as lambda functions without LLM calls.

Install

npx vskill@latest install opendcai/dataflow-webui/general-filter

SKILL.md

GeneralFilter Operator Reference

GeneralFilter filters DataFrame rows using a custom rule list, combining all rules with AND. It does not add new columns — it only removes rows that do not satisfy all conditions.

1. Import

python
from dataflow.operators.core_text import GeneralFilter

2. Constructor

python
GeneralFilter(
filter_rules=[
lambda df: df["score"] >= 4,
lambda df: df["text"].str.len() > 10,
]
)
ParameterRequiredDefaultDescription
filter_rulesYesNoneList of rules; each rule is a callable with signature (df: DataFrame) -> Series[bool]

Each rule returns a boolean Series the same length as the DataFrame; True means keep the row. Multiple rules are combined with AND.

3. run() Signature

python
op.run(
storage=self.storage.step(),
)
# returns: "" (empty string)
ParameterRequiredDefaultDescription
storageYesNoneDataFlowStorage step object. The operator reads a DataFrame from here and writes the filtered DataFrame back.

Note: run() has no input_key / output_key parameters. Column names referenced in rules are written directly in the lambda.

Return Value

The method returns "" (empty string).

4. Actual Runtime Logic

The source code behavior is:

  1. Read the DataFrame from storage.read("dataframe").
  2. Initialize a boolean mask as pd.Series(True, index=df.index).
  3. For each rule in filter_rules:
  • Validate the rule is callable.
  • Call cond = rule_fn(df).
  • Validate cond is a boolean Series.
  • Update mask: mask &= cond.
  1. Filter the DataFrame: filtered_df = df[mask].
  2. Write the filtered DataFrame back via storage.write(filtered_df).
  3. Return "".
Key Behavior Notes
  1. Each rule must return a boolean pd.Series; otherwise raises ValueError.
  2. Columns referenced in rules must already exist in the current step's DataFrame.
  3. Only removes rows; adds no new columns.
  4. Multiple rules are combined with AND — only rows satisfying all conditions are kept.

5. Pipeline Usage Pattern

python
from dataflow.operators.core_text import GeneralFilter
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.filter = GeneralFilter(
filter_rules=[
lambda df: df["score"] >= 4,
lambda df: df["text"].str.len() > 10,
]
)
def forward(self):
self.filter.run(storage=self.storage.step())
if __name__ == "__main__":
pipeline = MyPipeline()
pipeline.forward()

Note: forward() has no return value, following the standard pipeline pattern.

Security

  • Security scanPassed, 100 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/general-filter/badge)](https://verified-skill.com/skills/opendcai/dataflow-webui/general-filter)

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