Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

flowsint-enricher-builder

БесплатноБез исполняемых скриптовНе проверен

Expert guidance for building Flowsint enrichers and their supporting types. Use when the user wants to add a new enricher, create a new Flowsint type, wire a…

lza6от lza6★ 19 звёзд на GitHub

Об этом скилле

Flowsint Enricher Builder

You build enrichers and types for Flowsint. You do not memorize the catalog — you know where to look and how the pieces fit. Always read source before generating code: type definitions and existing enrichers are the ground truth.

Authoritative source paths

Read these first. Never assume signatures or fields — open the file.

What Path
Type definitions flowsint-types/src/flowsint_types/<name>.py
Type registry + decorator flowsint-types/src/flowsint_types/registry.py
Type package exports flowsint-types/src/flowsint_types/__init__.py
Enricher base class flowsint-core/src/flowsint_core/core/enricher_base.py
Enricher registry + decorator flowsint-enrichers/src/flowsint_enrichers/registry.py
Existing enrichers (templates) flowsint-enrichers/src/flowsint_enrichers/<input_type>/to_<output>.py
UI category mapping flowsint-core/src/flowsint_core/core/services/type_registry_service.py (_get_category_definitions)
Vault interface flowsint-core/src/flowsint_core/core/vault.py
Logger interface flowsint-core/src/flowsint_core/core/logger.py
Tools (external CLI/API wrappers) tools/ (top-level), e.g. tools.network.subfinder.SubfinderTool
Doc — types tutorial docs/developers/managing-types.mdx
Doc — enrichers tutorial docs/developers/managing-enrichers.mdx
Doc — enricher catalog docs/sources/available-enrichers.mdx

The first question: new type or reuse?

When the user describes a enricher, decide before writing code:

  1. List the entities involved — input data, output data, intermediate fields you'll attach.
  2. For each, check flowsint-types/src/flowsint_types/ — open the closest candidate file and read its fields.
  3. Decide:
    • Reuse if existing type covers all required fields (extras allowed — ConfigDict.extra = "allow").
    • Extend an existing type if 1–2 fields are missing — propose adding optional fields to the existing model.
    • Create new type if the entity is conceptually distinct (different primary key, different label semantics, different graph role).
  4. Never cram data into a wrong type. If a "Domain" enricher returns risk scores, a RiskProfile exists — don't stuff scores into Domain metadata. If nothing fits, propose a new type and tell the user why.

Surface the decision to the user before generating code: list candidate types you found, what's missing, and your recommendation.

Anatomy of an enricher

Minimum surface (read enricher_base.py for the full contract):

from typing import List
from flowsint_core.core.enricher_base import Enricher
from flowsint_core.core.logger import Logger
from flowsint_enrichers.registry import flowsint_enricher
from flowsint_types import Domain, Ip  # or whatever types

@flowsint_enricher
class MyEnricher(Enricher):
    """[Source name] One-line purpose."""

    InputType = Domain      # base type, not List[Domain]
    OutputType = Ip

    @classmethod
    def name(cls) -> str: return "domain_to_ip"     # snake_case, unique
    @classmethod
    def category(cls) -> str: return "Domain"        # see note on casing below
    @classmethod
    def key(cls) -> str: return "domain"             # primary field of InputType

    @classmethod
    def get_params_schema(cls):                       # optional, only if params needed
        return [...]

    async def scan(self, data: List[InputType]) -> List[OutputType]:
        ...

    def postprocess(self, results, input_data):
        for src, dst in zip(input_data, results):
            self.create_node(src)
            self.create_node(dst)
            self.create_relationship(src, dst, "RESOLVES_TO")
        return results

InputType = MyEnricher.InputType
OutputType = MyEnricher.OutputType

File location: flowsint-enrichers/src/flowsint_enrichers/<input_type>/to_<target>.py. The directory matches the input type's lowercase name. If no directory exists for your input type, create it (no __init__.py needed — auto-discovery walks the tree).

Registration: the @flowsint_enricher decorator does it. Do not edit any registry.py. API restart picks up new files via load_all_enrichers().

Params and secrets

Defined via get_params_schema() classmethod. Each entry is a dict:

Field Required Notes
name yes Param key; for vaultSecret, also the default vault key name
type yes One of string, number, select, url, vaultSecret
description yes Shown in UI
required no Defaults to false
default no Default value
options for select List of {"label": ..., "value": ...}

Read params inside scan():

mode = self.params.get("mode", "passive")
api_key = self.get_secret("MY_API_KEY")   # vault-resolved during async_init

Vault resolution flow (see Enricher.resolve_params in enricher_base.py):

  1. If user
Полный SKILL.md на GitHub

Установить flowsint-enricher-builder в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл flowsint-enricher-builder?

Expert guidance for building Flowsint enrichers and their supporting types. Use when the user wants to add a new enricher, create a new Flowsint type, wire a new external API/tool into Flowsint, debug type/enricher discovery, or design a pivot from entity A to entity B. Knows where types live, how the enricher base class works, how vault secrets and params resolve, and when to recommend creating a new type instead of forcing data into an existing one.

Как установить скилл flowsint-enricher-builder?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл flowsint-enricher-builder запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить flowsint-enricher-builder с