This commit is contained in:
eddiesoehnel committed 2026-05-07 15:43:51 -06:00
1 parent 08c48d268c
commit d8e8186597
9 files changed
+2132 -204

No files matched your search

@@ -1,5 +1,9 @@
# Skill: CIS-Guided Semantic Chunk Materialization
Human prompt to complete this skill:
Using the attached skill, referencing the the <file-name> attached, create the chunks.json file. Reference the attached chunk-intelligence-signature.md file to accompany this skill. For more reference, see the attached README.md file for the overall process and where the chunks.json fits and where we are in this process. Reference the attached skills and prior outputs for structural consistency.
## Overview
This skill converts semantically structured authored content into machine-readable `chunks.json` files.
@@ -17,6 +21,10 @@ This skill uses the Chunk Intelligence Signature (CIS) envelope as the reference
Instead, this skill helps the human operator and AI determine the appropriate level of CIS-guided metadata depth for the corpus, use case, and downstream systems.
This skill is the basis for an interative processed between the human and the AI to arrive at the right mix of CIS envelope metadata that should be included when creating `chunks.json` files.
Consider carefully the final outcome/intent of this project, and works backwards from there. It is possible we start with a limited set of metadata from the CIS envelope now, and later, re-process the `chunks.json` with more metadata.
The goal is to create a `chunks.json` file that is:
- useful now;
@@ -175,16 +183,18 @@ Example added fields:
"entities": [],
"key_concepts": []
}
Level 3 — Ontology-Aware Retrieval
```
## Level 3 — Ontology-Aware Retrieval
Use for:
AI-native knowledgebases;
research corpora;
industry intelligence systems;
structured archives;
policy libraries;
technical reference systems.
- AI-native knowledgebases;
- research corpora;
- industry intelligence systems;
- structured archives;
- policy libraries;
- technical reference systems.
Purpose:
@@ -192,18 +202,19 @@ Make chunks more useful for graph traversal, ontology mapping, multi-hop reasoni
Includes everything in Levels 1 and 2, plus optional:
ontology references;
controlled taxonomy labels;
explicit semantic assertions;
relationship mappings;
applicability context;
assumptions;
scope;
prerequisites;
basic provenance.
- ontology references;
- controlled taxonomy labels;
- explicit semantic assertions;
- relationship mappings;
- applicability context;
- assumptions;
- scope;
- prerequisites;
- basic provenance.
Example added fields:
```json
"ontology": {
"ontology_refs": [],
"taxonomy_tags": [],
@@ -215,16 +226,18 @@ Example added fields:
"intended_audience": [],
"prerequisites": []
}
Level 4 — Graph-Native Semantic Infrastructure
```
## Level 4 — Graph-Native Semantic Infrastructure
Use for:
serious knowledge graph systems;
high-value research libraries;
multi-author corpora;
agent-facing knowledge systems;
evolving AI-native reference systems;
corpora where trust and lineage matter.
- serious knowledge graph systems;
- high-value research libraries;
- multi-author corpora;
- agent-facing knowledge systems;
- evolving AI-native reference systems;
- corpora where trust and lineage matter.
Purpose:
@@ -232,19 +245,20 @@ Create chunks that can support long-term semantic evolution, lineage, trust inhe
Includes everything in Levels 1–3, plus optional:
version lineage;
supersedes / superseded_by;
derived_from;
semantic similarity to prior chunk;
trust inheritance hints;
cross-chunk links;
interpretive relationships;
assertion records;
provenance records;
enrichment workflow metadata.
- version lineage;
- supersedes / superseded_by;
- derived_from;
- semantic similarity to prior chunk;
- trust inheritance hints;
- cross-chunk links;
- interpretive relationships;
- assertion records;
- provenance records;
- enrichment workflow metadata.
Example added fields:
```json
"lineage": {
"supersedes": [],
"superseded_by": [],
@@ -259,18 +273,20 @@ Example added fields:
"contradicts": [],
"summarizes": []
}
Level 5 — Full CIS Implementation
```
## Level 5 — Full CIS Implementation
Use for:
paywalled knowledge systems;
regulated content;
legal or compliance systems;
scientific datasets;
high-value commercial corpora;
decentralized knowledge infrastructure;
agent-to-agent economic access systems;
content requiring permissions, trust, provenance, and auditability.
- paywalled knowledge systems;
- regulated content;
- legal or compliance systems;
- scientific datasets;
- high-value commercial corpora;
- decentralized knowledge infrastructure;
- agent-to-agent economic access systems;
- content requiring permissions, trust, provenance, and auditability.
Purpose:
@@ -278,25 +294,25 @@ Implement the CIS envelope as a full metadata infrastructure layer.
Includes everything in Levels 1–4, plus:
DID_chunk;
CID_chunk;
CID_source;
full provenance;
ownership history;
origin purity;
rights and permissions;
economic terms;
privacy and compliance controls;
reputation and utility signals;
execution constraints;
derivative artifact tracking;
attribution requirements;
policy overlays;
payment or access metadata.
- DID_chunk;
- CID_chunk;
- CID_source;
- full provenance;
- ownership history;
- origin purity;
- rights and permissions;
- economic terms;
- privacy and compliance controls;
- reputation and utility signals;
- execution constraints;
- derivative artifact tracking;
- attribution requirements;
- policy overlays;
- payment or access metadata.
This level is not recommended for simple static websites unless there is a clear need.
3. Human + AI Metadata Negotiation
# 3. Human + AI Metadata Negotiation
Before generating the final chunks.json, the human operator and AI should agree on the metadata depth and schema.
@@ -308,7 +324,8 @@ legal, scientific, financial, or technical content;
monetized content;
agent-facing content;
reusable knowledgebases.
Step 1 — Identify Corpus Type
## Step 1 — Identify Corpus Type
The AI should determine or ask the human to confirm the corpus type.
@@ -324,7 +341,8 @@ product knowledgebase;
internal company knowledgebase;
public AI-readable knowledgebase;
paywalled content library.
Step 2 — Identify Intended Use
## Step 2 — Identify Intended Use
Determine what the chunk output will support.
@@ -342,7 +360,8 @@ graph traversal;
compliance review;
monetized access;
future CIS integration.
Step 3 — Select Materialization Level
## Step 3 — Select Materialization Level
Choose one of:
@@ -354,7 +373,7 @@ Level 5 — Full CIS Implementation
If uncertain, choose the lowest level that satisfies current needs while preserving future compatibility.
Step 4 — Select Fields
## Step 4 — Select Fields
The AI should propose a field list based on the selected level.
@@ -362,17 +381,19 @@ The human should approve, remove, or add fields.
The final schema should be explicit before output generation.
Step 5 — Generate chunks.json
## Step 5 — Generate chunks.json
Once the field list is approved, generate the final JSON.
4. Minimal vs Extended Schemas
Minimal Schema
# 4. Minimal vs Extended Schemas
## Minimal Schema
Use for Level 1.
Recommended default:
```json
{
"document": {
"title": "",
@@ -396,6 +417,7 @@ Recommended default:
}
]
}
```
Use this when the goal is:
@@ -403,12 +425,14 @@ simple AI readability;
basic retrieval;
static publishing;
low operational complexity.
Extended Schema
## Extended Schema
Use for Levels 2–4.
Example:
```json
{
"document": {
"title": "",
@@ -475,6 +499,8 @@ Example:
}
]
}
```
```
Use this when the goal is:
@@ -483,7 +509,8 @@ semantic filtering;
ontology mapping;
relationship discovery;
future knowledge graph integration.
Full CIS-Aligned Schema
## Full CIS-Aligned Schema
Use for Level 5 only.
@@ -491,7 +518,7 @@ The schema should be project-specific and derived directly from the full CIS env
Do not generate a full Level 5 schema unless the human explicitly requests it.
5. Corpus-Specific Semantic Strategies
# 5. Corpus-Specific Semantic Strategies
Different corpora require different chunking and metadata strategies.
@@ -541,12 +568,14 @@ action items if present.
Useful optional fields:
```json
"email_context": {
"campaign": "",
"audience": [],
"original_send_date": "",
"source_platform": ""
}
```
Goal:
@@ -591,12 +620,14 @@ version applicability.
Useful optional fields:
```json
"task_context": {
"task_type": "",
"prerequisites": [],
"systems": [],
"dependencies": []
}
```
Goal:
@@ -694,12 +725,14 @@ knowledge_label="industriesig-findability"
[content]
<!-- CHUNK END -->
Output File
# Output File
The output should be a single machine-readable JSON file:
chunks.json
Output Structure
# Output Structure
The top-level structure should follow this format:
@@ -707,8 +740,10 @@ The top-level structure should follow this format:
"document": {},
"chunks": []
}
Field Rules
chunk_id
# Field Rules
## chunk_id
Represents the specific chunk instance.
@@ -716,7 +751,7 @@ Must preserve the authored UUID/DID-style identifier exactly.
Do NOT regenerate.
knowledge_id
## knowledge_id
Represents the enduring conceptual identity.
@@ -724,7 +759,7 @@ Must preserve the authored UUID/DID-style identifier exactly.
Do NOT regenerate.
chunk_label
## chunk_label
Human-readable structural label.
@@ -742,7 +777,7 @@ Represents the enduring meaning of the chunk.
Multiple chunks MAY reference the same knowledge_label.
order
## order
Represents narrative sequence within the document.
@@ -751,7 +786,8 @@ Must preserve original document order.
Starts at:
1
heading_path
## heading_path
Represents the hierarchical heading structure above the chunk.
@@ -768,7 +804,8 @@ semantic hierarchy;
contextual breadcrumbs;
retrieval weighting;
structural context.
content
## content
Contains the full original chunk text.
@@ -780,7 +817,8 @@ summarize;
paraphrase;
rewrite;
compress.
summary
## summary
Generate a short semantic retrieval summary.
@@ -796,7 +834,8 @@ This is NOT marketing copy.
Ideal length:
1–3 sentences.
tags
## tags
Generate lightweight semantic tags.
@@ -814,7 +853,8 @@ Avoid excessive tagging.
Ideal range:
3–10 tags.
Output Constraints
# Output Constraints
Do NOT:
@@ -825,7 +865,8 @@ alter IDs;
rewrite meaning;
flatten heading hierarchy;
add unsupported claims.
Important Architectural Principle
# Important Architectural Principle
This layer represents:
@@ -835,7 +876,7 @@ It does not replace the CIS envelope.
It is a practical, selected projection of CIS-informed metadata into a usable chunk file.
Final Output Requirement
# Final Output Requirement
Output a COMPLETE valid chunks.json file.
@@ -846,4 +887,15 @@ commentary;
explanations;
partial fragments.
The output should be production-ready JSON suitable for direct ingestion into downstream systems.
The output should be production-ready JSON suitable for direct ingestion into downstream systems.
# Validation Requirements
After generating the chunk.json:
1. Verify all referenced files exist
2. Verify all slugs match
3. Verify no orphaned resources exist
5. Verify access routes are internally consistent
A second AI agent should validate the output.