added
This commit is contained in:
1 parent
1e52a733d1
commit
bd8f9a641f
27 files changed
+817
-33
No files matched your search
+16
-1
@@ -12,6 +12,10 @@ repository-variables.json ---> schemas/repository-variables.schema.json
|
||||
|
|
||||
v
|
||||
repository.json -------------> schemas/repository.schema.json
|
||||
|
|
||||
+----> content-index.json ---> schemas/content-index.schema.json
|
||||
| |
|
||||
| +----> individual authoritative documents
|
||||
|
|
||||
v
|
||||
skills/structure-ai-ready-repository/
|
||||
@@ -35,7 +39,9 @@ scripts/validate_repository.py + tests/
|
||||
record. `repository-variables.json` stores verified stable inputs for future
|
||||
repository-structure work. `AGENTS.md` is the AI operating entry point.
|
||||
`repository.json` provides authoritative structured metadata and retrieval
|
||||
order.
|
||||
order. For content-heavy repositories, `content-index.json` provides the
|
||||
file-level discovery layer between the repository manifest and the complete
|
||||
authoritative documents.
|
||||
|
||||
### Standard
|
||||
|
||||
@@ -49,6 +55,13 @@ The skill inspects a target repository, selects a profile, creates a reviewable
|
||||
|
||||
Templates provide reusable starting artifacts with explicit placeholders. Examples are synthetic completed artifacts that demonstrate expected shape without carrying private or organization-specific data.
|
||||
|
||||
### Content indexing
|
||||
|
||||
`repository.json` stays small by describing major collections.
|
||||
`content-index.json` contains one compact record per individual document. The
|
||||
Markdown files remain authoritative and do not require chunk IDs, knowledge
|
||||
IDs, or semantic QA artifacts merely because they are indexed.
|
||||
|
||||
### Validation
|
||||
|
||||
The root validator checks this implemented template. The skill audit checks required structure for a selected profile in any target repository. Unit tests protect validator behavior and repository consistency.
|
||||
@@ -69,3 +82,5 @@ The root validator checks this implemented template. The skill audit checks requ
|
||||
- Allow a user to explicitly authorize immediate implementation.
|
||||
- Prefer verified nulls or visible placeholders over invented metadata.
|
||||
- Use deterministic scripts for structural validation.
|
||||
- Use a separate content index only when individual-document volume would make
|
||||
the repository manifest cumbersome.
|
||||
@@ -20,6 +20,18 @@ The file designated as the primary source for a value or contract, such as `VERS
|
||||
|
||||
The canonical human-readable record of repository authorship, publishing, maintenance, preferred attribution, and downstream replacement guidance.
|
||||
|
||||
## Content index
|
||||
|
||||
The optional machine-readable `content-index.json` file that catalogs
|
||||
individual documents in a content-heavy repository without duplicating their
|
||||
full text.
|
||||
|
||||
## Content-heavy repository
|
||||
|
||||
A repository with recurring or numerous individually useful documents, such as
|
||||
updates, articles, research entries, policies, or guides, where listing every
|
||||
file in `repository.json` would be cumbersome.
|
||||
|
||||
## Entry point
|
||||
|
||||
A declared starting file for a human or AI agent.
|
||||
|
||||
+29
-4
@@ -18,10 +18,13 @@ Add profile-specific files only when they support real content or validation.
|
||||
3. Create `repository-variables.json` using
|
||||
`templates/repository-variables.json.template`.
|
||||
4. Create `repository.json` using `templates/repository.json.template`.
|
||||
5. Select and create profile-required documentation and folders.
|
||||
6. Add a verified license, version, and change record.
|
||||
7. Add host-specific contribution templates.
|
||||
8. Validate the repository.
|
||||
5. If the repository contains recurring or numerous individual documents,
|
||||
create `content-index.json` using
|
||||
`templates/content-index.json.template`; otherwise leave it absent.
|
||||
6. Select and create profile-required documentation and folders.
|
||||
7. Add a verified license, version, and change record.
|
||||
8. Add host-specific contribution templates.
|
||||
9. Validate the repository.
|
||||
|
||||
## Existing Repository Workflow
|
||||
|
||||
@@ -44,6 +47,28 @@ Every implementation should answer:
|
||||
|
||||
Declare these answers in `repository.json`.
|
||||
|
||||
## Content Index Decision
|
||||
|
||||
Use `content-index.json` when the repository contains recurring updates,
|
||||
articles, research entries, policies, guides, or enough individual documents
|
||||
that listing them directly in `repository.json` would be cumbersome.
|
||||
|
||||
Keep `repository.json` focused on repository identity, capabilities, entry
|
||||
points, and major collections. Put one compact record per document in
|
||||
`content-index.json`, and keep each Markdown file as the authoritative complete
|
||||
text.
|
||||
|
||||
For only three or four major documents, list them directly in
|
||||
`repository.json` and omit the content index.
|
||||
|
||||
Validate:
|
||||
|
||||
- unique `content_id` values;
|
||||
- unique repository-relative paths;
|
||||
- existence of every indexed file;
|
||||
- resolution of `related_content_ids`;
|
||||
- declaration of `content-index.json` in `repository.json`.
|
||||
|
||||
## Identity And Publication
|
||||
|
||||
At the beginning of a repository build, read `repository-variables.json` when
|
||||
|
||||
Reference in new issue
Block a user