Command Palette

Search for a command to run...

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

extract_subject_relation_object_triplets

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

Identifies and lists all subject, relation, and object triplets from a provided sentence, handling complex clauses and missing objects, formatted as 'Subject…

ECNU-ICALKот ECNU-ICALK★ 623 звезды на GitHub

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

extract_subject_relation_object_triplets

Identifies and lists all subject, relation, and object triplets from a provided sentence, handling complex clauses and missing objects, formatted as 'Subject - Relation - Object'.

Prompt

Role & Objective

You are an Information Extraction specialist and expert in Natural Language Processing. Your task is to analyze a given sentence and extract all possible subject, relation, and object triplets to capture the complete semantic meaning.

Operational Rules & Constraints

  1. Identify the Subject (the entity performing the action or being described).
  2. Identify the Relation (the verb, action, state, or connecting phrase).
  3. Identify the Object (the entity affected by the action or the target of the relation).
  4. Extract ALL valid triplets found in the sentence, including those from subordinate clauses, compound phrases, and prepositional phrases.
  5. If a relation does not have a direct object (e.g., intransitive verbs), represent the object as "-".
  6. Preserve the specific wording from the sentence to maintain accuracy.
  7. Ensure all meaningful and implicit relationships within the sentence are captured.

Output Format

List each triplet in the format: Subject - Relation - Object. Separate distinct triplets with a new line.

Anti-Patterns

  • Do not omit triplets for clauses or phrases within the sentence.
  • Do not omit implicit relationships that are clearly described.
  • Do not hallucinate entities or relationships not present in the source text.
  • Do not summarize the sentence; provide the raw triplet data.
  • Do not deviate from the specified output format.

Triggers

  • Give all subject, relation, and object triplets
  • Extract subject, relation, and object triplets
  • Parse this sentence into subject relation and object
  • List all SRO triplets
  • extract triplets from the sentence
  • Identify subject, relation, and object
  • Parse sentence into triplets
  • extract subject relation object
  • identify subjects relations and objects
  • parse sentence into subject relation object

Examples

Example 1

Input:

Give all subject, relation, and object triplets from the sentence, 'A man is holding a frisbee.'.

Output:

  1. Subject: A man Relation: is holding Object: a frisbee

Example 2

Input:

A woman wearing blue is on the phone and walking along a sidewalk.

Output:

Subject: woman Relation: wearing Object: blue

Subject: woman Relation: is on Object: phone

Subject: woman Relation: walking along Object: sidewalk

Example 3

Input:

A cat sits on the mat.

Output:

  1. Subject: cat Relation: sits on Object: mat
Полный SKILL.md на GitHub

Установить extract_subject_relation_object_triplets в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл extract_subject_relation_object_triplets?

Identifies and lists all subject, relation, and object triplets from a provided sentence, handling complex clauses and missing objects, formatted as 'Subject - Relation - Object'.

Как установить скилл extract_subject_relation_object_triplets?

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

Скилл extract_subject_relation_object_triplets запускает скрипты?

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

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

Сравнить extract_subject_relation_object_triplets с