Skip to content
Back to skills

Secretflow

ASecurity

"Guides SecretFlow workflows for runtime setup, federated data

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
datapythongonodeapibackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill secretflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Secretflow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Secretflow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-secretflow/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-secretflow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: secretflow
description: "Guides SecretFlow workflows for runtime setup, federated data
  containers, the component CLI, preprocessing/statistics/classical ML, and
  privacy-oriented deployment tasks."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# SecretFlow

SecretFlow is a unified framework for privacy-preserving data intelligence and
machine learning. Use this skill when the task mentions the `secretflow`
package, `sf.init`, `PYU`, `SPU`, `HEU`, `TEEU`, `VDataFrame`, `HDataFrame`,
`FedNdarray`, `component`, preprocessing, statistics, classical ML, PSI,
Kuscia, or TEE-style deployment.

## Start here

- Use Python 3.10 for the most reliable runtime coverage.
- Install `secretflow` in the target environment and keep `python -m pip check`
  clean.
- Minimal import check: `python -c "import secretflow as sf; print(sf.__version__)"`
- If you are validating an installed environment, run
  `scripts/check_secretflow_install.py`.
- Read `references/repo-provenance.md` when checking whether this skill still
  matches the repository snapshot that produced it.
- Read `references/troubleshooting.md` when the install, import, CLI, backend,
  or deployment path is failing.

## Route map

### `sub-skills/runtime-data/`
Use this route for local startup, device creation, reveal/to/wait behavior,
FedNdarray, HDataFrame, VDataFrame, MixDataFrame, CSV/ORC IO, and small local
simulation flows.

Typical triggers:
- `sf.init` with `local` or a simple `cluster_config`
- `PYU`, `SPU`, `HEU`, `TEEU`
- `reveal`, `to`, `wait`
- `read_csv`, `read_orc`, `partition`
- device-mismatch or direct-to-SPU/HEU errors

### `sub-skills/component-cli/`
Use this route for the component registry and the `secretflow component`
command family, component evaluation payloads, model export, serving model
inferencer, and plugin packaging.

Typical triggers:
- `secretflow component ls|inspect|translate|get_translation|run`
- `comp_eval`, `Registry`, `NodeEvalParam`, `StorageConfig`, `DistData`
- model export or serving package generation
- plugin entry-point or component registration questions

### `sub-skills/analytics/`
Use this route for preprocessing, statistics, score-card helpers, and direct
classical ML APIs.

Typical triggers:
- `StandardScaler`
- `psi_eval`, `table_statistics`, `categorical_statistics`, `ScoreCard`
- `SSGLM`, `SSRegression`, `FlLogisticRegressionMix`,
  `FlLogisticRegressionVertical`, `HESSLogisticRegression`
- `KMeans`, `GNB`, `GPC`, `KNNClassifer`, and related model workflows

### `sub-skills/privacy-orchestration/`
Use this route for PSI, secure aggregation/comparison, Kuscia, TEEU simulation,
and deployment-mode questions.

Typical triggers:
- `psi_df`, `psi_eval`, `SPUAggregator`, `PlainComparator`
- `KusciaTaskConfig`, `get_sf_cluster_config`, `convert_domain_data_to_individual_table`
- `TEEU`, `auth_manager`, Ray/Kuscia setup, simulation/production mode choice
- deployment and orchestration troubleshooting

## Working style

- Read the nearest sub-skill first, then cross-reference the shared root
  troubleshooting guidance when something fails.
- Keep runtime instructions inside this skill tree; do not rely on the original
  repository checkout being present later.
- For backend-specific work, prefer the smallest environment that can truthfully
  cover the selected task. CPU coverage is enough for the core local runtime
  and component CLI paths in this skill; advanced GPU, Kuscia, or TEE paths are
  routed to their own guidance.

## Companion files

- `references/repo-provenance.md` — source snapshot and refresh baseline.
- `references/repo-routing-metadata.json` — router metadata for repo-skills routing.
- `references/troubleshooting.md` — cross-cutting install/import/backend issues.
- `scripts/check_secretflow_install.py` — quick environment and API smoke check.

Files in this skill

  • SKILL.md3.8 KB
  • references/repo-provenance.md1.2 KB
  • references/repo-routing-metadata.json505 B
  • references/troubleshooting.md4.4 KB
  • scripts/check_secretflow_install.py1.1 KB
  • sub-skills/analytics/SKILL.md2.7 KB
  • sub-skills/analytics/references/analytics.md3.8 KB
  • sub-skills/analytics/scripts/analytics_smoke.py1.1 KB
  • sub-skills/component-cli/SKILL.md3 KB
  • sub-skills/component-cli/references/component-cli.md4.1 KB
  • sub-skills/component-cli/scripts/build_plugin_wheel.sh400 B
  • sub-skills/component-cli/scripts/component_registry_smoke.py592 B
  • sub-skills/component-cli/scripts/plugin_entry_template.py564 B
  • sub-skills/privacy-orchestration/SKILL.md2.7 KB
  • sub-skills/privacy-orchestration/references/privacy-orchestration.md4.6 KB
  • sub-skills/privacy-orchestration/scripts/kuscia_config_smoke.py819 B
  • sub-skills/runtime-data/SKILL.md3 KB
  • sub-skills/runtime-data/references/benchmark-notes.md802 B
  • sub-skills/runtime-data/references/runtime-data.md4.1 KB
  • sub-skills/runtime-data/scripts/local_quickstart.py668 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.