574 lines
9.2 KiB
Markdown
574 lines
9.2 KiB
Markdown
# Skill: Author Content Structuring
|
||||
|
|
|
|||
|
|
Human prompt to complete this skill:
|
|||
|
|
|
|||
|
|
Using the attached skill, referencing the the <file-name> attached. Reference the attached README.md file for the overall process and where this skill fits in the process.
|
|||
|
|
|
|||
|
|
# Overview
|
|||
|
|
|
|||
|
|
This skill takes authored or original content and adds lightweight semantic structure to prepare it for additional enrichment and processing later.
|
|||
|
|
|
|||
|
|
It converts human-authored content into an AI-native semantic publishing structure.
|
|||
|
|
|
|||
|
|
The goal is not to rewrite content.
|
|||
|
|
|
|||
|
|
The goal is to:
|
|||
|
|
|
|||
|
|
- preserve the author’s original meaning and voice;
|
|||
|
|
- enrich the content with semantic structure;
|
|||
|
|
- create stable reasoning boundaries for AI systems;
|
|||
|
|
- prepare content for downstream chunk extraction, JSON generation, embeddings, retrieval, and knowledge graph operations.
|
|||
|
|
|
|||
|
|
This process works for:
|
|||
|
|
|
|||
|
|
- websites;
|
|||
|
|
- knowledgebases;
|
|||
|
|
- white papers;
|
|||
|
|
- documentation;
|
|||
|
|
- reports;
|
|||
|
|
- emails;
|
|||
|
|
- transcripts;
|
|||
|
|
- research libraries;
|
|||
|
|
- educational systems;
|
|||
|
|
- AI retrieval systems.
|
|||
|
|
|
|||
|
|
This skill creates the initial authored knowledge graph structure.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
# Core Principles
|
|||
|
|
|
|||
|
|
## 1. Meaning Over Formatting
|
|||
|
|
|
|||
|
|
Chunk boundaries are semantic boundaries, not formatting boundaries.
|
|||
|
|
|
|||
|
|
Do NOT split content simply because:
|
|||
|
|
|
|||
|
|
- a heading exists;
|
|||
|
|
- a paragraph is short;
|
|||
|
|
- a section visually changes.
|
|||
|
|
|
|||
|
|
Instead, split content where:
|
|||
|
|
|
|||
|
|
- reasoning shifts;
|
|||
|
|
- concepts change;
|
|||
|
|
- retrieval value changes;
|
|||
|
|
- independent understanding becomes possible.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## 2. Preserve Original Content
|
|||
|
|
|
|||
|
|
Do NOT:
|
|||
|
|
|
|||
|
|
- rewrite;
|
|||
|
|
- summarize;
|
|||
|
|
- shorten;
|
|||
|
|
- paraphrase;
|
|||
|
|
- optimize for marketing;
|
|||
|
|
- alter tone.
|
|||
|
|
|
|||
|
|
Only:
|
|||
|
|
|
|||
|
|
- structure;
|
|||
|
|
- annotate;
|
|||
|
|
- enrich.
|
|||
|
|
|
|||
|
|
The authored content remains the canonical source.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## 3. IDs
|
|||
|
|
|
|||
|
|
All semantic chunk boundaries must use the following structure:
|
|||
|
|
|
|||
|
|
```html
|
|||
|
|
<!-- CHUNK START
|
|||
|
|
chunk_id="chk-550e8400-e29b-41d4-a716-446655440000"
|
|||
|
|
knowledge_id="kid-7c9e6679-7425-40de-944b-e07fc1f90ae7"
|
|||
|
|
|
|||
|
|
chunk_label="industriesig-overview"
|
|||
|
|
knowledge_label="industriesig-findability"
|
|||
|
|
-->
|
|||
|
|
|
|||
|
|
[content]
|
|||
|
|
|
|||
|
|
<!-- CHUNK END -->
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
### Identity Model
|
|||
|
|
|
|||
|
|
This system intentionally separates:
|
|||
|
|
|
|||
|
|
- infrastructure identity;
|
|||
|
|
- semantic meaning;
|
|||
|
|
- human readability.
|
|||
|
|
|
|||
|
|
This distinction is critical for:
|
|||
|
|
|
|||
|
|
- long-term knowledge graph stability;
|
|||
|
|
- semantic evolution;
|
|||
|
|
- version lineage;
|
|||
|
|
- trust inheritance;
|
|||
|
|
- embeddings;
|
|||
|
|
- retrieval systems;
|
|||
|
|
- future CIS integration.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
### UUID/DID-Based IDs
|
|||
|
|
|
|||
|
|
The following fields are permanent infrastructure identities:
|
|||
|
|
|
|||
|
|
- `chunk_id`
|
|||
|
|
- `knowledge_id`
|
|||
|
|
|
|||
|
|
These should use UUID/DID-style identifiers.
|
|||
|
|
|
|||
|
|
Examples:
|
|||
|
|
|
|||
|
|
```text
|
|||
|
|
chunk_id="chk-550e8400-e29b-41d4-a716-446655440000"
|
|||
|
|
knowledge_id="kid-7c9e6679-7425-40de-944b-e07fc1f90ae7"
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
These IDs are:
|
|||
|
|
|
|||
|
|
- stable;
|
|||
|
|
- durable;
|
|||
|
|
- opaque;
|
|||
|
|
- non-semantic;
|
|||
|
|
- location-independent;
|
|||
|
|
- intended for long-term graph continuity.
|
|||
|
|
|
|||
|
|
These identifiers should NOT encode meaning directly.
|
|||
|
|
|
|||
|
|
They exist to preserve stable references even if:
|
|||
|
|
|
|||
|
|
- chunk structures change;
|
|||
|
|
- wording changes;
|
|||
|
|
- ontologies evolve;
|
|||
|
|
- semantic labels are renamed;
|
|||
|
|
- documents are re-chunked later.
|
|||
|
|
|
|||
|
|
#### UUID Generation
|
|||
|
|
|
|||
|
|
The AI should generate valid UUIDv4 identifiers for:
|
|||
|
|
|
|||
|
|
- hunk_id
|
|||
|
|
- knowledge_id
|
|||
|
|
|
|||
|
|
Example:
|
|||
|
|
|
|||
|
|
chunk_id="chk-550e8400-e29b-41d4-a716-446655440000"
|
|||
|
|
knowledge_id="kid-7c9e6679-7425-40de-944b-e07fc1f90ae7"
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
### Human-Readable Semantic Labels
|
|||
|
|
|
|||
|
|
The following fields exist for readability and semantic interpretation:
|
|||
|
|
|
|||
|
|
- `chunk_label`
|
|||
|
|
- `knowledge_label`
|
|||
|
|
|
|||
|
|
Examples:
|
|||
|
|
|
|||
|
|
```text
|
|||
|
|
chunk_label="industriesig-overview"
|
|||
|
|
knowledge_label="industriesig-findability"
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
These labels help:
|
|||
|
|
|
|||
|
|
- authors;
|
|||
|
|
- editors;
|
|||
|
|
- debugging;
|
|||
|
|
- ontology mapping;
|
|||
|
|
- retrieval interpretation;
|
|||
|
|
- AI reasoning.
|
|||
|
|
|
|||
|
|
These labels are semantic and human-readable.
|
|||
|
|
|
|||
|
|
Unlike UUID-based IDs, semantic labels MAY evolve over time if naming conventions or ontology structures improve.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
### Conceptual Distinction
|
|||
|
|
|
|||
|
|
#### `chunk_id`
|
|||
|
|
|
|||
|
|
Represents:
|
|||
|
|
|
|||
|
|
- a specific chunk instance;
|
|||
|
|
- a particular structural segmentation of content.
|
|||
|
|
|
|||
|
|
Chunk IDs may change later if:
|
|||
|
|
|
|||
|
|
- chunk boundaries change;
|
|||
|
|
- content is re-segmented;
|
|||
|
|
- structural chunking improves.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
#### `knowledge_id`
|
|||
|
|
|
|||
|
|
Represents:
|
|||
|
|
|
|||
|
|
- the enduring underlying concept or meaning.
|
|||
|
|
|
|||
|
|
Knowledge IDs should persist across:
|
|||
|
|
|
|||
|
|
- re-chunking;
|
|||
|
|
- restructuring;
|
|||
|
|
- minor edits;
|
|||
|
|
- semantic enrichment.
|
|||
|
|
|
|||
|
|
Multiple chunks MAY reference the same `knowledge_id`.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
### Future CIS Compatibility
|
|||
|
|
|
|||
|
|
This identity structure is intentionally designed to align with future CIS envelope architecture, including:
|
|||
|
|
|
|||
|
|
- DID_chunk;
|
|||
|
|
- CID_chunk;
|
|||
|
|
- version lineage;
|
|||
|
|
- semantic inheritance;
|
|||
|
|
- trust migration;
|
|||
|
|
- graph relationships;
|
|||
|
|
- provenance systems;
|
|||
|
|
- decentralized resolution;
|
|||
|
|
- economic access systems.
|
|||
|
|
|
|||
|
|
This skill creates the initial authored identity layer that later systems will build upon.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
### Important Constraint
|
|||
|
|
|
|||
|
|
At this stage:
|
|||
|
|
|
|||
|
|
- IDs may initially be generated directly by the AI structuring process;
|
|||
|
|
- future systems may replace this with authoritative ID generation services or registries.
|
|||
|
|
|
|||
|
|
The goal in this stage is to establish stable identity early in the publishing pipeline so downstream systems inherit continuity automatically.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## 4. Structure Content For AI Retrieval
|
|||
|
|
|
|||
|
|
The output should improve:
|
|||
|
|
|
|||
|
|
- AI parsing;
|
|||
|
|
- semantic retrieval;
|
|||
|
|
- embeddings;
|
|||
|
|
- reasoning;
|
|||
|
|
- future knowledge graph construction;
|
|||
|
|
- downstream chunk extraction.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
# Output Requirements
|
|||
|
|
|
|||
|
|
The skill outputs a NEW enriched markdown document.
|
|||
|
|
|
|||
|
|
The original content remains intact but is enriched with:
|
|||
|
|
|
|||
|
|
- frontmatter;
|
|||
|
|
- semantic chunk boundaries;
|
|||
|
|
- chunk IDs;
|
|||
|
|
- knowledge IDs.
|
|||
|
|
|
|||
|
|
The file may overwrite the original `.md` file because no original authored content is removed.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
# Output Structure
|
|||
|
|
|
|||
|
|
## Step 1 — Add Frontmatter
|
|||
|
|
|
|||
|
|
Insert YAML frontmatter at the top of the document.
|
|||
|
|
|
|||
|
|
Example:
|
|||
|
|
|
|||
|
|
```yaml
|
|||
|
|
---
|
|||
|
|
document_id: "doc-indx-overview"
|
|||
|
|
title: "iNDX Overview"
|
|||
|
|
date: 2026-05-06
|
|||
|
|
slug: "indx-overview"
|
|||
|
|
summary: "Overview of the iNDX platform and its interconnected systems."
|
|||
|
|
tags:
|
|||
|
|
- ai
|
|||
|
|
- indexing
|
|||
|
|
- discovery
|
|||
|
|
- findability
|
|||
|
|
author: "Eddie Soehnel"
|
|||
|
|
document_type: "overview"
|
|||
|
|
status: "published"
|
|||
|
|
---
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
### Frontmatter Rules
|
|||
|
|
|
|||
|
|
#### `title`
|
|||
|
|
|
|||
|
|
Human-readable document title.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
#### `date`
|
|||
|
|
|
|||
|
|
Use:
|
|||
|
|
|
|||
|
|
- publication date if known;
|
|||
|
|
- otherwise current date.
|
|||
|
|
|
|||
|
|
Format:
|
|||
|
|
|
|||
|
|
```text
|
|||
|
|
YYYY-MM-DD
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
#### `slug`
|
|||
|
|
|
|||
|
|
Lowercase kebab-case identifier.
|
|||
|
|
|
|||
|
|
Example:
|
|||
|
|
|
|||
|
|
```text
|
|||
|
|
indx-overview
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
#### `summary`
|
|||
|
|
|
|||
|
|
1–2 sentence semantic summary describing:
|
|||
|
|
|
|||
|
|
- what the document is;
|
|||
|
|
- what it helps explain.
|
|||
|
|
|
|||
|
|
Do NOT generate marketing copy.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
#### `tags`
|
|||
|
|
|
|||
|
|
Generate semantic tags for:
|
|||
|
|
|
|||
|
|
- concepts;
|
|||
|
|
- industries;
|
|||
|
|
- technologies;
|
|||
|
|
- systems;
|
|||
|
|
- domains.
|
|||
|
|
|
|||
|
|
Avoid excessive tags.
|
|||
|
|
|
|||
|
|
Usually:
|
|||
|
|
|
|||
|
|
- 3–10 tags.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
#### `author`
|
|||
|
|
|
|||
|
|
Use provided author if known.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
#### `document_type`
|
|||
|
|
|
|||
|
|
Examples:
|
|||
|
|
|
|||
|
|
- overview
|
|||
|
|
- article
|
|||
|
|
- whitepaper
|
|||
|
|
- email
|
|||
|
|
- transcript
|
|||
|
|
- faq
|
|||
|
|
- documentation
|
|||
|
|
- research
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
#### `status`
|
|||
|
|
|
|||
|
|
Examples:
|
|||
|
|
|
|||
|
|
- draft
|
|||
|
|
- published
|
|||
|
|
- archived
|
|||
|
|
|
|||
|
|
Default:
|
|||
|
|
|
|||
|
|
```text
|
|||
|
|
published
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## Step 2 — Insert Semantic Chunk Boundaries
|
|||
|
|
|
|||
|
|
Insert chunk boundaries at semantic transitions.
|
|||
|
|
|
|||
|
|
Use BOTH start and end markers.
|
|||
|
|
|
|||
|
|
Format:
|
|||
|
|
|
|||
|
|
```html
|
|||
|
|
<!-- CHUNK START
|
|||
|
|
id="chunk:industriesig-overview"
|
|||
|
|
knowledge="k:industriesig-findability"
|
|||
|
|
-->
|
|||
|
|
|
|||
|
|
[content]
|
|||
|
|
|
|||
|
|
<!-- CHUNK END -->
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
### Chunk Boundary Rules
|
|||
|
|
|
|||
|
|
A chunk should represent:
|
|||
|
|
|
|||
|
|
- a coherent reasoning unit;
|
|||
|
|
- a retrievable concept;
|
|||
|
|
- an independently understandable idea;
|
|||
|
|
- a stable semantic block.
|
|||
|
|
|
|||
|
|
Avoid chunks that are:
|
|||
|
|
|
|||
|
|
- too small;
|
|||
|
|
- too fragmented;
|
|||
|
|
- purely visual;
|
|||
|
|
- dependent on surrounding chunks for meaning.
|
|||
|
|
|
|||
|
|
Ideal chunk size:
|
|||
|
|
|
|||
|
|
- 1–8 paragraphs;
|
|||
|
|
- sometimes larger if conceptually unified.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## Chunking Guidance
|
|||
|
|
|
|||
|
|
### GOOD Chunk Boundary
|
|||
|
|
|
|||
|
|
A reasoning shift occurs:
|
|||
|
|
|
|||
|
|
- macroeconomic framing → platform architecture;
|
|||
|
|
- platform overview → IndustrySIG;
|
|||
|
|
- IndustrySIG → NetworkSIG.
|
|||
|
|
|
|||
|
|
Each can stand independently for retrieval.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
### BAD Chunk Boundary
|
|||
|
|
|
|||
|
|
Do NOT split merely because:
|
|||
|
|
|
|||
|
|
- a bullet list starts;
|
|||
|
|
- a paragraph is long;
|
|||
|
|
- a heading exists without semantic change.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
# Handling Headings
|
|||
|
|
|
|||
|
|
Preserve original markdown headings.
|
|||
|
|
|
|||
|
|
Do NOT:
|
|||
|
|
|
|||
|
|
- rewrite;
|
|||
|
|
- renumber;
|
|||
|
|
- flatten hierarchy.
|
|||
|
|
|
|||
|
|
Headings are human structure.
|
|||
|
|
|
|||
|
|
Chunks are semantic structure.
|
|||
|
|
|
|||
|
|
These are NOT the same thing.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
# Links
|
|||
|
|
|
|||
|
|
Preserve all original links exactly.
|
|||
|
|
|
|||
|
|
Do NOT:
|
|||
|
|
|
|||
|
|
- shorten;
|
|||
|
|
- rewrite;
|
|||
|
|
- replace;
|
|||
|
|
- remove tracking parameters unless explicitly instructed.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
# HTML Preservation
|
|||
|
|
|
|||
|
|
Preserve inline HTML when present.
|
|||
|
|
|
|||
|
|
Examples:
|
|||
|
|
|
|||
|
|
- forms;
|
|||
|
|
- underline tags;
|
|||
|
|
- embedded snippets.
|
|||
|
|
|
|||
|
|
Do NOT sanitize unless instructed.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
# Future Compatibility
|
|||
|
|
|
|||
|
|
This structure is intentionally designed to support future systems including:
|
|||
|
|
|
|||
|
|
- chunk extraction;
|
|||
|
|
- vectorization;
|
|||
|
|
- embeddings;
|
|||
|
|
- semantic search;
|
|||
|
|
- retrieval augmented generation (RAG);
|
|||
|
|
- trust systems;
|
|||
|
|
- CIS envelopes;
|
|||
|
|
- knowledge graphs;
|
|||
|
|
- AI agents;
|
|||
|
|
- economic access layers;
|
|||
|
|
- AI-native publishing systems.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
# Important Constraint
|
|||
|
|
|
|||
|
|
This skill creates ONLY the authored semantic structure layer.
|
|||
|
|
|
|||
|
|
This skill does NOT:
|
|||
|
|
|
|||
|
|
- generate embeddings;
|
|||
|
|
- create vector databases;
|
|||
|
|
- generate JSON outputs;
|
|||
|
|
- generate Q&A datasets;
|
|||
|
|
- create CIS envelopes;
|
|||
|
|
- assign trust scores;
|
|||
|
|
- apply policy overlays;
|
|||
|
|
- implement economic access systems.
|
|||
|
|
|
|||
|
|
Those occur later in the pipeline.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
# Final Output Requirement
|
|||
|
|
|
|||
|
|
Output a COMPLETE enriched markdown document.
|
|||
|
|
|
|||
|
|
Do NOT output:
|
|||
|
|
|
|||
|
|
- partial fragments;
|
|||
|
|
- explanations;
|
|||
|
|
- summaries;
|
|||
|
|
- commentary.
|
|||
|
|
|
|||
|
|
The output should be production-ready markdown that can directly replace the original source file.
|