added
This commit is contained in:
1 parent
1e52a733d1
commit
bd8f9a641f
27 files changed
+817
-33
No files matched your search
@@ -45,6 +45,7 @@ repository-name/
|
||||
├── AUTHOR.md
|
||||
├── repository-variables.json
|
||||
├── repository.json
|
||||
├── content-index.json # optional for content-heavy repositories
|
||||
├── LICENSE
|
||||
├── CHANGELOG.md
|
||||
├── UPDATES.md
|
||||
@@ -578,6 +579,62 @@ Do not change IDs casually after publication because other catalogs, relationshi
|
||||
|
||||
---
|
||||
|
||||
## `content-index.json`
|
||||
|
||||
### Purpose
|
||||
|
||||
Provides a compact machine-readable catalog of the individual documents inside
|
||||
a content-heavy repository.
|
||||
|
||||
Use the separation:
|
||||
|
||||
```text
|
||||
repository.json
|
||||
Repository identity, purpose, capabilities, entry points, and major collections.
|
||||
|
||||
content-index.json
|
||||
One compact discovery record per individual document.
|
||||
|
||||
Individual Markdown file
|
||||
Complete authoritative human- and AI-readable content.
|
||||
```
|
||||
|
||||
Use `content-index.json` for recurring platform updates, articles, research
|
||||
entries, policies, guides, or dozens of documents. A repository with only a few
|
||||
major files may list those files directly in `repository.json` and omit the
|
||||
content index.
|
||||
|
||||
The index should include stable content IDs, titles, concise descriptions,
|
||||
content types, repository-relative paths, status, dates, and topics. It may
|
||||
include canonical URLs and relationships to other indexed items.
|
||||
|
||||
Do not:
|
||||
|
||||
* Copy full document bodies into the index.
|
||||
* Treat the index as the authoritative source instead of the Markdown file.
|
||||
* Add chunk IDs or knowledge IDs merely because a document is indexed.
|
||||
* Generate `chunks.json` or `qa.json` unless a separate publishing or semantic
|
||||
materialization workflow requires them.
|
||||
* Allow duplicate IDs, duplicate paths, missing paths, absolute paths, or path
|
||||
traversal.
|
||||
|
||||
Declare the index in the `contents` array of `repository.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"path": "content-index.json",
|
||||
"type": "content-index",
|
||||
"title": "Repository Content Index",
|
||||
"description": "Machine-readable index of the repository's published documents.",
|
||||
"required_for_use": true
|
||||
}
|
||||
```
|
||||
|
||||
Use `templates/content-index.json.template` and validate against
|
||||
`schemas/content-index.schema.json`.
|
||||
|
||||
---
|
||||
|
||||
## `LICENSE`
|
||||
|
||||
### Purpose
|
||||
@@ -1701,6 +1758,7 @@ Optional:
|
||||
```text
|
||||
CONTRIBUTING.md
|
||||
skills.md
|
||||
content-index.json
|
||||
templates/
|
||||
examples/
|
||||
assets/
|
||||
@@ -1737,6 +1795,7 @@ tests/
|
||||
receipts/
|
||||
CONTRIBUTING.md
|
||||
SECURITY.md
|
||||
content-index.json when the repository contains a document collection
|
||||
```
|
||||
|
||||
---
|
||||
@@ -1771,6 +1830,7 @@ assets/
|
||||
.env.example
|
||||
.gitignore
|
||||
dependency manifest
|
||||
content-index.json when documentation or release notes form a large collection
|
||||
```
|
||||
|
||||
---
|
||||
@@ -1801,6 +1861,7 @@ scripts/
|
||||
tests/
|
||||
examples/
|
||||
SECURITY.md
|
||||
content-index.json when the repository catalogs many individually addressable records or documents
|
||||
```
|
||||
|
||||
The README and `data/README.md` should document provenance, collection methodology, limitations, update frequency, field definitions, and rights.
|
||||
@@ -1966,6 +2027,8 @@ Before publishing a new repository:
|
||||
profile, workflow defaults, and verification metadata.
|
||||
[ ] AUTHOR.md contains verified author, publisher, maintainer, canonical URL, and adaptation guidance.
|
||||
[ ] repository.json is complete and valid JSON.
|
||||
[ ] Content-heavy repositories include a valid `content-index.json`; small repositories intentionally omit it.
|
||||
[ ] Every indexed content ID and path is unique and every indexed path exists.
|
||||
[ ] repository_id is stable and unique.
|
||||
[ ] Canonical URL is correct.
|
||||
[ ] LICENSE matches repository.json.
|
||||
|
||||
Reference in new issue
Block a user