Nominal Extractors 标志

Nominal Extractors

组织
nominal-io
nominal-extractors

Use when building, testing, registering, or debugging Nominal containerized extractors — Docker images, written in any language, that convert proprietary or unsupported files during ingest. Covers the container contract (environment variables, mounted inputs, manifest.json, structured errors in the termination log, exit codes), the Python extractor framework (nominal.experimental.extractor decorators), image registration (register_image, registration_kwargs, nom container), and containerized ingest failures. For ordinary ingestion of formats Nominal already parses, use nominal-ingest instead.

概览

发布者nominal-io
代码仓库skills
技能名称nominal-extractors
星标数
40
复刻数
0
附带文件
6
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 6 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 nominal-io 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Nominal Extractors AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/nominal-io/skills/tree/main/skills/nominal-extractors
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nominal-io/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/nominal-extractors .claude/skills/nominal-extractors
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Nominal Extractors,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Nominal Extractors。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Nominal Extractors 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Nominal containerized extractors

A containerized extractor is a Docker image Nominal runs during ingest: uploaded files are mounted as inputs, your parser writes outputs, and Nominal ingests the declared files into a dataset. Use one for recurring proprietary or unsupported formats, including uploads from the web app. For supported formats or a one-off local conversion, use ordinary ingestion. They may also be used for doing any consistent post-processing or timestamp alignment that may be required for file formats that are supported natively (e.g., post processing the timestamp column in otherwise valid .parquet files).

The ContainerizedExtractor is the stable identity uploaders select; its versioned ContainerImages carry the execution contract (inputs, parameters, output format, timestamp defaults, exit-code mappings). Registration and activation are separate. The active image runs future jobs. Output measurements become channels, timestamps place samples on a timeline, and supported tags distinguish series within the dataset.

How a run works

The platform talks to the container only through the environment and the filesystem, so any language that runs in a linux/amd64 image can implement an extractor:

  1. An uploader submits files, parameter values and tags, through the web app or the SDK's add_containerized.
  2. Nominal resolves job-level timestamp metadata (the request's override, else the image default), mounts each file under /input, and runs the active image as a non-root user with each input's path and each parameter's value in its registered environment variable and the output directory in $OUTPUT_DIR.
  3. The container parses, writes outputs under $OUTPUT_DIR plus a manifest.json describing each one, and exits.
  4. Exit 0: Nominal uploads and ingests the declared files. Non-zero: the job fails with the structured error the container wrote to the termination log (/dev/termination-log), else the image's exit-code mapping for that exit status.

Contract is the authoritative wire-level description. Explain it in these terms when someone is new to extractors, before any SDK detail. Choose the implementation path by the parser, not the SDK:

PathUse whenConsequence
Python framework (nominal.experimental.extractor, nominal>=1.171)The parser is or can be PythonDecorators bind inputs and parameters, write manifest.json, report structured errors, and export registration metadata from one declaration.
Direct contract implementationAnother language, or wrapping an existing binaryThe code reads the environment and writes manifest.json and any structured error itself; registration metadata is kept in a checked-in nom config or script and tested against the code.

Everything else runs outside the container, whatever language the extractor uses: registration with the nom CLI or the Python SDK, scripted ingest with the Python SDK, and no-code uploads through the web app.

Guide the next decision

Inspect existing parser/registration code and the project README first. Derive file facts from samples or a format specification; reuse settled preferences from the conversation and project, including the implementation language. Separate observed facts, agreed choices, and unresolved assumptions. Recommend a choice with its consequence, then ask only the next question blocking progress. Do not repeat settled questions or turn every modeling detail into an intake questionnaire.

Keep executable choices and defaults in parser/registration code, with concise rationale in the project README (create one for a new project). Read live deployed state from Nominal when available; local code expresses intent, not proof of deployment. Do not add a parallel JSON state/config file or a new decision document. Modeling covers what to settle and an illustrative README note.

Work from the relevant stage

New work follows these stages; debugging or existing work resumes where the evidence points. Read the linked reference before changing that stage. Progress when its evidence is adequate and the action is authorized; an already agreed contract needs no repeated approval.

StageInputOutput and evidence to progress
Understand the filesSamples/spec, existing code and README, intended comparisonsObserved structure, measurements, units, clocks, dimensions; name missing evidence instead of guessing.
Agree on the contractObservations and existing preferencesImplementation path, inputs/parameters, output mode, timestamps, tags, units, and failure codes with rationale; resolve consequential unknowns using modeling.
Author and validate locallyContract and representative fixturesParser and focused checks of decoded values/time, declared outputs, error codes and edge cases; report actual results using authoring and contract.
Build and registerValidated parser, Docker, configured Nominal accessSettled base image, image archive with verified architecture, a passing local conformance run, registration script or config, and observed registration result; use registration.
Activate and operateRegistered image, authorization and representative uploadObserved active image, terminal extraction job and completed dataset-file ingestion, then inspect resulting data; use running.

Check only capabilities needed for the current stage. Inspect mentioned paths/profiles before asking for missing inputs, and reuse configured authentication rather than requesting tokens in chat. With the parser's toolchain but no Docker, validate locally and hand off build commands. With Docker but no Nominal access, build, run the conformance check, and hand off a registration script or config and exact commands. With none of these, author/review what the supplied evidence supports. Keep project outputs in the project, and distinguish executed checks from instructions still awaiting execution; generated commands do not prove build, registration, activation, or successful ingest.

Keep the execution contract aligned

  • Write outputs under $OUTPUT_DIR, declare every intended output, and write manifest.json last; the Python runtime writes it for you and owns the name.
  • Register the output format the code implements, MANIFEST for new work. registration_kwargs() sets it for @manifest_extractor; explicit register_image calls and the CLI otherwise default to PARQUET.
  • Keep environment-variable names identical across code, registration, and callers' sources/arguments; registration never infers them from code in other languages.
  • Report expected failures as structured errors in the termination log, with stable, non-reserved error codes and distinct exit statuses, and register an exit-code mapping for each status where the registration path supports it. Never log the container environment; it can carry credentials.
  • Build for linux/amd64 and confirm with docker image inspect <tag> --format '{{.Os}}/{{.Architecture}}' before registration; a READY image does not prove it can run.
  • Registration does not activate an image. Verify the active image after activation.
  • Confirm channel prefixes, units and videos on the target deployment after a representative ingest; some ingest routes ignore those manifest options.
  • Wait out both stages of an ingest — the container, then its files — with job.as_files_ingested(timeout=...), and check each file's status; see running.

Locate bundled resources

references/... paths are relative to the installed directory containing this SKILL.md, not the project or current working directory. Resolve that location through the host's skill path/resource interface, and read them through the host interface when the resources have no filesystem paths. This skill bundles no executables: the checks it asks for are ordinary docker, nom, Python SDK and project-toolchain commands, so a project or CI pipeline runs them directly rather than depending on an agent's plugin cache.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Nominal Extractors AI 技能有什么作用?

Use when building, testing, registering, or debugging Nominal containerized extractors — Docker images, written in any language, that convert proprietary or unsupported files during ingest. Covers the container contract (environment variables, mounted inputs, manifest.json, structured errors in the termination log, exit codes), the Python extractor framework (nominal.experimental.extractor decorators), image registration (register_image, registration_kwargs, nom container), and containerized ingest failures. For ordinary ingestion of formats Nominal already parses, use nominal-ingest instead.

为什么在 TypingMind 中使用 Nominal Extractors?

因为您只需安装一次,就能搭配任何模型使用。Nominal Extractors 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Nominal Extractors?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/nominal-io/skills/tree/main/skills/nominal-extractors。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Nominal Extractors?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Nominal Extractors 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Nominal Extractors 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Nominal Extractors AI 技能免费吗?

是的。nominal-io 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇