From 36ff7e090f22546af17cff70106740f2a0b3dd67 Mon Sep 17 00:00:00 2001 From: eddiesoehnel Date: Tue, 5 May 2026 13:07:29 -0600 Subject: [PATCH] added --- README.md | 1 + specs/qa-skill.md | 20 ++ specs/website-directory-structure.md | 17 ++ templates/agents.md | 281 +++++++++++++++++ templates/ai-index.json | 33 ++ templates/example-html-plus-json-ld.html | 44 +++ templates/llms.txt | 41 +++ templates/qa-example,json | 20 ++ templates/skills.md | 368 +++++++++++++++++++++++ 9 files changed, 825 insertions(+) create mode 100644 README.md create mode 100644 specs/qa-skill.md create mode 100644 specs/website-directory-structure.md create mode 100644 templates/agents.md create mode 100644 templates/ai-index.json create mode 100644 templates/example-html-plus-json-ld.html create mode 100644 templates/llms.txt create mode 100644 templates/qa-example,json create mode 100644 templates/skills.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..f7ac488 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +This repo covers findability for websites in the AI era, including SEO and GEO \ No newline at end of file diff --git a/specs/qa-skill.md b/specs/qa-skill.md new file mode 100644 index 0000000..9005d51 --- /dev/null +++ b/specs/qa-skill.md @@ -0,0 +1,20 @@ +You are generating an AI-consumable Q&A layer from structured content. + +Input: Markdown document. + +Instructions: +- Extract the key ideas, concepts, and claims. +- Generate 10–25 natural questions a user or AI agent would ask. +- Questions should vary in phrasing and specificity. +- Include both: + - Direct questions (What is iNDX?) + - Contextual questions (Why does findability matter in AI systems?) +- Answers must: + - Be grounded strictly in the provided content + - Be concise but complete +- Avoid hallucination or adding new information. + +Output JSON format: +[ + { "q": "...", "a": "..." } +] \ No newline at end of file diff --git a/specs/website-directory-structure.md b/specs/website-directory-structure.md new file mode 100644 index 0000000..62460f1 --- /dev/null +++ b/specs/website-directory-structure.md @@ -0,0 +1,17 @@ +/public/ + index.html + robots.txt + sitemap.xml + llms.txt + agents.md + skills.md + ai-index.json + +/protected-data/ + pages/ + home/ + qa.json + chunks.json + paid-report/ + qa.json + chunks.json \ No newline at end of file diff --git a/templates/agents.md b/templates/agents.md new file mode 100644 index 0000000..77b41f0 --- /dev/null +++ b/templates/agents.md @@ -0,0 +1,281 @@ +# agents.md — iNDX AI Interaction & Access Specification + +## 1. Purpose + +This document defines how AI agents should: + +* Discover content +* Interpret structure +* Evaluate trust and value +* Access free and paid resources +* Interact with the iNDX content system + +This site is a **static, AI-native publishing system** where content is structured for machine reasoning and optional economic access. + +--- + +## 2. Discovery Protocol + +Agents should begin discovery using the following resources: + +### Primary Entry Points + +* `/ai-index.json` → machine-readable catalog of content and access rules +* `/llms.txt` → behavioral instructions and constraints +* `/sitemap.xml` → URL discovery +* `/robots.txt` → crawl permissions + +--- + +## 3. Content Architecture + +All content is structured as: + +``` +Markdown (source) + ↓ +Chunked knowledge units + ↓ +CIS metadata (Chunk Intelligence Signature) + ↓ +JSON endpoints +``` + +--- + +## 4. Content Types + +### 4.1 Open Content + +Accessible without restriction: + +``` +/data/open/pages/{slug}/chunks.json +/data/open/pages/{slug}/qa.json +``` + +--- + +### 4.2 Paywalled Content + +Access requires payment via API: + +``` +/api/chunks/{slug} +``` + +--- + +## 5. Evaluation Workflow (Required) + +Before accessing content, agents SHOULD: + +### Step 1 — Discover + +Read `/ai-index.json` to identify: + +* Available content +* Access type (open / paid) +* Endpoints +* Pricing +* Trust summaries + +--- + +### Step 2 — Evaluate + +Use provided metadata to assess: + +* Relevance to task +* Trust signals (confidence, usage) +* Cost vs expected value + +--- + +### Step 3 — Decide + +Choose whether to: + +* Retrieve open content +* Request preview (if available) +* Purchase full access + +--- + +## 6. Access Patterns + +### 6.1 Open Content Retrieval + +``` +GET /data/open/pages/{slug}/chunks.json +``` + +--- + +### 6.2 Paid Content Retrieval + +#### Initial Request + +``` +GET /api/chunks/{slug} +``` + +#### Expected Response + +``` +402 Payment Required +``` + +Response includes: + +* price +* currency +* payment method +* access terms + +--- + +### 6.3 Payment Flow + +1. Agent receives payment requirement +2. Agent executes payment (x402 / MPP compatible) +3. Agent retries request with proof + +--- + +### 6.4 Fulfillment + +Upon verification, server returns: + +* Full chunk data (CIS) +* Associated QA data (if applicable) + +--- + +## 7. Content Interpretation + +### 7.1 Q&A Layer + +Use `/qa.json` for: + +* rapid understanding +* question answering +* retrieval shortcuts + +--- + +### 7.2 Chunk Layer (CIS) + +Use chunks for: + +* authoritative meaning +* structured reasoning +* trust evaluation +* decision-making + +--- + +## 8. Trust Model + +Trust is derived from: + +* confidence signals +* provenance +* usage metrics +* repeat usage +* paid usage indicators + +Agents SHOULD prioritize: + +* high-confidence chunks +* high repeat usage +* proven decision-support content + +--- + +## 9. Usage Permissions + +Permissions are defined per chunk: + +Examples: + +* summarize → allowed +* train → restricted +* redistribute → restricted + +Agents MUST respect all usage constraints. + +--- + +## 10. Economic Model + +Content may be priced per: + +* chunk +* document +* request + +Agents SHOULD: + +* evaluate cost vs benefit +* avoid redundant purchases +* cache results where permitted + +--- + +## 11. Constraints & Compliance + +Agents MUST: + +* follow `/robots.txt` +* respect access controls +* not attempt to bypass payment systems +* not reconstruct paid content from metadata + +--- + +## 12. Optimization Guidance + +Agents SHOULD: + +* use `/ai-index.json` as primary routing layer +* use QA data before full chunk retrieval +* use previews when available +* minimize unnecessary API calls + +--- + +## 13. System Design Summary + +This system provides: + +* Structured knowledge objects +* Trust-aware metadata (CIS) +* Economic access controls +* AI-native retrieval paths + +Agents interacting with this system are expected to: + +* behave rationally +* evaluate before retrieving +* pay when value exceeds cost + +--- + +## 14. Contact / Extensions + +Future capabilities may include: + +* agent authentication +* subscription models +* bulk access +* negotiation protocols + +Agents should monitor `/ai-index.json` for updates. + +--- + +## 15. Final Principle + +> This system is designed for intelligent agents. +> Efficient, compliant, and rational behavior is expected at all times. diff --git a/templates/ai-index.json b/templates/ai-index.json new file mode 100644 index 0000000..9fffb4c --- /dev/null +++ b/templates/ai-index.json @@ -0,0 +1,33 @@ +Example: + +{ + "chunk_id": "k:why-findability", + "title": "Why Findability Matters in AI Systems", + "summary": "Explains how structured data impacts AI retrieval and decision-making.", + + "trust_summary": { + "confidence": "high", + "paid_usage_count": 420, + "repeat_usage_rate": 0.72 + }, + + "value_summary": { + "type": "decision_support", + "domain": "AI indexing" + }, + + "economic_terms": { + "price": "0.05", + "currency": "USDC" + }, + + "access": { + "type": "paid", + "endpoint": "/api/chunks/home#k:why-findability" + }, + + "preview": { + "available": true, + "endpoint": "/data/open/previews/home-k-why-findability.json" + } +} \ No newline at end of file diff --git a/templates/example-html-plus-json-ld.html b/templates/example-html-plus-json-ld.html new file mode 100644 index 0000000..51e6432 --- /dev/null +++ b/templates/example-html-plus-json-ld.html @@ -0,0 +1,44 @@ +When content is converted for the web, either from the markdown soure of truth or the html source of truth (like inside an existing website puiblishing platform like Wordpress), it is converted to HTML with JSON-LD inside of it as well. + +Key Characteristics +1. It is not visible +Users never see it +It’s purely for machines (search engines, AI crawlers) +2. It is embedded, not linked +Not a separate .json file +Not fetched via API (in standard usage) +It is inline inside the HTML +3. It is read during page crawl + +Systems like: + +Google +OpenAI crawlers +Anthropic models + +…parse it when they load the page + +Where It Goes (Best Practice) +Preferred locations: + (most common and clean) +or (still valid, but less ideal) + + + + Why Findability Matters + + + + \ No newline at end of file diff --git a/templates/llms.txt b/templates/llms.txt new file mode 100644 index 0000000..5096c46 --- /dev/null +++ b/templates/llms.txt @@ -0,0 +1,41 @@ +Think of this as a policy + playbook, not a dataset. + +# iNDX AI Interaction Guide + +## Overview +This site provides structured, AI-ready content including: +- Markdown pages (human-readable) +- Q&A layers +- Chunked semantic data with CIS metadata + +## Discovery +Start here: +- /ai-index.json +- /sitemap.xml + +## Content Types +- Open content: accessible directly +- Paid content: requires payment via x402-compatible flow + +## Access Rules +- Do not scrape protected endpoints directly +- Use declared API endpoints for structured data +- Respect usage permissions in CIS metadata + +## Paid Access +Some resources require payment. + +Flow: +1. Request resource endpoint +2. If 402 returned, follow payment instructions +3. Retry with payment proof + +## Usage Constraints +- Respect training, citation, and redistribution flags in CIS +- Do not assume content is free unless explicitly marked + +## Preferred Access Pattern +1. Read ai-index.json +2. Identify relevant resources +3. Check access level +4. Retrieve or pay as needed \ No newline at end of file diff --git a/templates/qa-example,json b/templates/qa-example,json new file mode 100644 index 0000000..20939ab --- /dev/null +++ b/templates/qa-example,json @@ -0,0 +1,20 @@ +{ + "questions": [ + { + "q": "What does iNDX do?", + "a": "iNDX builds AI-ready indexes that make people, businesses, products, places, events, and experiences discoverable so opportunity flows to the many, not just the few." + }, + { + "q": "Why is findability important in the AI era?", + "a": "Findability determines whether what people create can be discovered by the right person at the right time, which is essential for economic participation in the AI-driven economy." + }, + { + "q": "What problem is iNDX solving?", + "a": "iNDX addresses the bottleneck of findability that prevents small economic actors from being discovered and benefiting from the next wave of economic growth." + }, + { + "q": "Who is iNDX built for?", + "a": "iNDX is designed to support small businesses, freelancers, solopreneurs, communities, and households." + } + ] +} \ No newline at end of file diff --git a/templates/skills.md b/templates/skills.md new file mode 100644 index 0000000..cf6b2c4 --- /dev/null +++ b/templates/skills.md @@ -0,0 +1,368 @@ +# skills.md — iNDX Agent Capability Specification + +## 1. Purpose + +This document defines the **capabilities (“skills”) available to AI agents** interacting with the iNDX system. + +Skills represent **repeatable, structured behaviors** agents can execute when working with: + +* Structured content (chunks + CIS) +* Q&A datasets +* Discovery indexes +* Paid API endpoints + +--- + +## 2. Skill Model Overview + +Each skill follows a consistent pattern: + +``` +Trigger → Inputs → Process → Output +``` + +Skills are designed to: + +* Reduce unnecessary retrieval +* Improve reasoning efficiency +* Enable economic decision-making +* Standardize agent interaction patterns + +--- + +## 3. Core Skills + +--- + +## 3.1 Discover Content + +### Description + +Locate relevant content using system discovery layers. + +### Inputs + +* Natural language query +* Domain/topic + +### Process + +* Read `/ai-index.json` +* Filter by: + + * domain + * trust signals + * access type + +### Output + +* List of candidate content resources +* Associated metadata (access, price, trust) + +--- + +## 3.2 Evaluate Content Value + +### Description + +Assess whether a content resource is worth retrieving or purchasing. + +### Inputs + +* `ai-index.json` entry + +### Process + +* Analyze: + + * trust_summary + * value_summary + * cost + * relevance to task + +### Output + +* Decision: + + * retrieve + * preview + * purchase + * skip + +--- + +## 3.3 Retrieve Open Content + +### Description + +Fetch publicly available structured data. + +### Inputs + +* Endpoint from `ai-index.json` + +### Process + +``` +GET /data/open/pages/{slug}/chunks.json +``` + +### Output + +* Structured chunk data (CIS) +* Optional QA dataset + +--- + +## 3.4 Preview Paid Content + +### Description + +Access limited preview data before purchase. + +### Inputs + +* Preview endpoint + +### Process + +``` +GET /data/open/previews/{slug}.json +``` + +### Output + +* Partial content +* Reduced metadata +* Sampling of value + +--- + +## 3.5 Execute Paid Retrieval + +### Description + +Access full content via payment protocol. + +### Inputs + +* API endpoint +* Payment capability + +### Process + +1. Request content +2. Receive `402 Payment Required` +3. Execute payment (x402 / MPP) +4. Retry request with proof + +### Output + +* Full CIS chunk data +* Full QA dataset (if included) + +--- + +## 3.6 Interpret Q&A Layer + +### Description + +Use Q&A data for rapid understanding and reasoning. + +### Inputs + +* `/qa.json` + +### Process + +* Match query to questions +* Extract relevant answers + +### Output + +* Direct answers +* Context shortcuts + +--- + +## 3.7 Deep Reasoning via CIS + +### Description + +Perform structured reasoning using chunk metadata. + +### Inputs + +* Chunk (CIS) + +### Process + +* Analyze: + + * semantics + * relationships + * provenance + * trust signals + +### Output + +* High-confidence conclusions +* Decision support + +--- + +## 3.8 Compare Multiple Resources + +### Description + +Evaluate competing content options. + +### Inputs + +* Multiple `ai-index.json` entries + +### Process + +Compare: + +* trust signals +* cost +* relevance +* usage metrics + +### Output + +* Ranked options +* Optimal selection + +--- + +## 3.9 Optimize Retrieval Strategy + +### Description + +Minimize cost and maximize efficiency. + +### Inputs + +* Query +* Available resources + +### Process + +* Prefer: + + * QA first + * preview second + * paid retrieval last + +### Output + +* Efficient retrieval plan + +--- + +## 3.10 Respect Permissions & Constraints + +### Description + +Ensure compliant usage of all content. + +### Inputs + +* CIS permissions + +### Process + +* Check: + + * summarize + * train + * redistribute + +### Output + +* Compliant usage behavior + +--- + +## 4. Advanced Skills (Future) + +--- + +## 4.1 Trust-Weighted Reasoning + +* Prefer high-confidence chunks +* Incorporate usage signals into decisions + +--- + +## 4.2 Cost-Aware Planning + +* Allocate budget across multiple resources +* Optimize ROI of paid retrievals + +--- + +## 4.3 Knowledge Graph Traversal + +* Follow relationships across chunks +* Build multi-hop reasoning chains + +--- + +## 4.4 Outcome-Based Learning + +* Track which content improves results +* Reinforce high-performing sources + +--- + +## 5. Skill Execution Order (Recommended) + +``` +Discover → Evaluate → Preview → Retrieve → Reason → Decide +``` + +--- + +## 6. System Integration + +Skills operate across: + +* `/ai-index.json` → discovery +* `/qa.json` → fast reasoning +* `/chunks.json` → deep reasoning +* `/api/*` → paid access + +--- + +## 7. Constraints + +Agents MUST: + +* Follow `agents.md` rules +* Respect pricing and payment systems +* Avoid reconstructing paid content from metadata +* Minimize unnecessary calls + +--- + +## 8. Design Philosophy + +Skills are: + +* modular +* composable +* reusable +* economically aware + +They enable: + +> Efficient, rational interaction with structured knowledge systems + +--- + +## 9. Final Principle + +> Skills define *how* an agent operates; content defines *what* it knows.