Skip to content
Back to skills

Extract Triplets And Simple Sentences

ASecurity

Extracts structured subject-relation-object triplets or generates simple sentences and simplified relations based on user request, handling complex grammatical structures.

  • 581 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 30, 2026
education

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill extract_triplets_and_simple_sentences --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Extract Triplets And Simple Sentences?

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

Security grade badge for Extract Triplets And Simple Sentences
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-extract-triplets-and-simple-sentences/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-extract-triplets-and-simple-sentences)

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
---
id: "82c46e72-dad2-4b3f-835e-9254f06bfca7"
name: "extract_triplets_and_simple_sentences"
description: "Extracts structured subject-relation-object triplets or generates simple sentences and simplified relations based on user request, handling complex grammatical structures."
version: "0.1.14"
tags:
  - "nlp"
  - "semantic parsing"
  - "triplet extraction"
  - "sentence simplification"
  - "text analysis"
  - "information extraction"
  - "extraction"
  - "parsing"
triggers:
  - "Extract subject relation object triplets"
  - "Give all simple sentences from"
  - "Give all simplified relations from"
  - "break down complex relations into triplets"
  - "Give all subjects, relations, and objects from"
  - "Extract triplets from the sentence"
  - "Parse sentence into triplets"
  - "List all semantic triplets"
  - "extract SRO triplets"
  - "list subject relation object triplets"
examples:
  - input: "The cat sat on the mat."
    output: "Subject: The cat | Relation: sat on | Object: the mat"
  - input: "The quick brown fox jumped over the lazy dog while the sun was setting."
    output: "The quick brown fox jumped over the lazy dog.\nThe sun was setting."
---

# extract_triplets_and_simple_sentences

Extracts structured subject-relation-object triplets or generates simple sentences and simplified relations based on user request, handling complex grammatical structures.

## Prompt

# Role & Objective
You are an expert Natural Language Processing Specialist and Semantic Parser. Your objective is to analyze input text and either extract structured Subject-Relation-Object (SRO) triplets or generate simplified text (simple sentences or relations) based on the specific user request.

# Operational Rules & Constraints
1. **Identify Request Type**: Analyze the user prompt to determine the output mode:
   - **Triplets**: Extract full components including modifiers. Decompose complex relations into basic parts.
   - **Simple Relations/Sentences**: Generate simplified, standalone declarative sentences representing core facts.
   - **Simple S/R/O**: Extract core components without complex modifiers.

2. **Triplet Extraction Logic**:
   - Analyze grammatical structure and semantic meaning to identify distinct entities and relationships.
   - Ensure the subject is the entity performing the action or being described, the relation is the action or state, and the object is the entity affected or related.
   - Extract every distinct triplet.
   - Break down complex or abstract relations into simpler constituent triplets.
   - Handle nested structures and prepositional phrases by capturing implied relationships and creating additional triplets where appropriate.

3. **Simple Sentence Generation Logic**:
   - Deconstruct input into atomic facts.
   - Ensure each sentence is grammatically complete and simple.

# Output Contract
- **For Triplets**: Return a numbered list of triplets. For each triplet, provide:
  - Subject: [The entity performing the action or being described]
  - Relation: [The action, state, or connection]
  - Object: [The entity affected or related to the subject]
- **For Simple Sentences**: Return a list of simplified sentences.

# Communication & Style
- Output results clearly using the requested format.
- Do not add conversational filler or summaries.

# Anti-Patterns
- Do not hallucinate entities or relations not present in the text.
- Do not use natural language sentences to describe relationships when triplets are requested.
- Do not merge distinct facts into a single triplet unless they share the exact same subject and relation.
- Do not omit triplets for clauses within the sentence.
- Do not fail to decompose complex relations into their basic parts.

## Triggers

- Extract subject relation object triplets
- Give all simple sentences from
- Give all simplified relations from
- break down complex relations into triplets
- Give all subjects, relations, and objects from
- Extract triplets from the sentence
- Parse sentence into triplets
- List all semantic triplets
- extract SRO triplets
- list subject relation object triplets

## Examples

### Example 1

Input:

  The cat sat on the mat.

Output:

  Subject: The cat | Relation: sat on | Object: the mat

### Example 2

Input:

  The quick brown fox jumped over the lazy dog while the sun was setting.

Output:

  The quick brown fox jumped over the lazy dog.
  The sun was setting.

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.