opendcai/dataflow-webui/general-filter
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 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-filterSKILL.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
2. Constructor
| Parameter | Required | Default | Description | |
|---|---|---|---|---|
filter_rules | Yes | None | List 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
| Parameter | Required | Default | Description | |
|---|---|---|---|---|
storage | Yes | None | DataFlowStorage 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:
- Read the DataFrame from
storage.read("dataframe"). - Initialize a boolean mask as
pd.Series(True, index=df.index). - For each rule in
filter_rules:
- Validate the rule is callable.
- Call
cond = rule_fn(df). - Validate
condis a boolean Series. - Update mask:
mask &= cond.
- Filter the DataFrame:
filtered_df = df[mask]. - Write the filtered DataFrame back via
storage.write(filtered_df). - Return
"".
Key Behavior Notes
- Each rule must return a boolean
pd.Series; otherwise raisesValueError. - Columns referenced in rules must already exist in the current step's DataFrame.
- Only removes rows; adds no new columns.
- Multiple rules are combined with AND — only rows satisfying all conditions are kept.
5. Pipeline Usage Pattern
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
- SKILL.md in the repositoryCheckingskills/canonical/core_text/filter/general-filter/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/general-filter)