This commit is contained in:
eddiesoehnel committed 2026-07-23 14:13:45 -06:00
1 parent 92ef20cee0
commit 7af769f85e
46 files changed
+4417 -2

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
# Documentation
| File | Purpose |
| --- | --- |
| `architecture.md` | Explains how the standard, skill, templates, schema, validation, and tests fit together. |
| `implementation.md` | Provides the manual and AI-assisted implementation workflow. |
| `glossary.md` | Defines repository and AI workflow terms used by this project. |
Begin with the root `README.md`. Retrieve these documents only when deeper implementation or design context is required.
+64
View File
@@ -0,0 +1,64 @@
# Architecture
## Overview
The repository separates human guidance, machine-readable contracts, reusable AI behavior, deterministic validation, and examples.
```text
README.md + AGENTS.md
|
v
repository.json ----> schemas/repository.schema.json
|
v
skills/structure-ai-ready-repository/
|
+----> references/repository-structure-standard.md
+----> assets/repository-structure-plan-template.md
+----> scripts/audit_repository.py
|
v
target repository changes
|
v
scripts/validate_repository.py + tests/
```
## Components
### Entry points
`README.md` is the human entry point. `AUTHOR.md` is the canonical attribution record. `AGENTS.md` is the AI operating entry point. `repository.json` provides authoritative structured metadata and retrieval order.
### Standard
The detailed standard lives with the skill at `skills/structure-ai-ready-repository/references/repository-structure-standard.md`. The root README summarizes how to use it.
### Skill
The skill inspects a target repository, selects a profile, creates a reviewable plan by default, applies only approved actions, and validates the result.
### Templates and examples
Templates provide reusable starting artifacts with explicit placeholders. Examples are synthetic completed artifacts that demonstrate expected shape without carrying private or organization-specific data.
### 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.
## Boundaries
- The standard defines recommended repository shape, not hosting-platform state.
- The skill may edit repository files only within user authorization and platform permissions.
- The validator is read-only.
- `UPDATES.md` records possible future work but does not authorize changes.
- `CHANGELOG.md` records completed, versioned changes.
## Design Decisions
- Use one stateful skill instead of separate planning and implementation skills.
- Keep detailed guidance in a skill reference to reduce default context usage.
- Require explicit approval by default before structural changes.
- Allow a user to explicitly authorize immediate implementation.
- Prefer verified nulls or visible placeholders over invented metadata.
- Use deterministic scripts for structural validation.
+49
View File
@@ -0,0 +1,49 @@
# Glossary
## AI entry point
The first file an AI agent should read to understand repository purpose, authority, constraints, and retrieval order.
## AI findability
The degree to which an AI system can discover a repository's purpose, relevant files, authoritative sources, capabilities, inputs, outputs, and safe usage path.
## Approval gate
A required pause where a user reviews and explicitly authorizes a current plan before material changes occur.
## Authoritative file
The file designated as the primary source for a value or contract, such as `VERSION` for the release number or `repository.json` for repository metadata.
## AUTHOR.md
The canonical human-readable record of repository authorship, publishing, maintenance, preferred attribution, and downstream replacement guidance.
## Entry point
A declared starting file for a human or AI agent.
## Profile
A minimum repository structure selected for a type of resource: documentation/guide, skill/workflow, software/automation, or dataset.
## Receipt
A sanitized record of a workflow execution, including inputs, outputs, versions, validation, and approval.
## Repository manifest
The machine-readable `repository.json` file describing identity, purpose, content, relationships, rights, entrypoints, and AI retrieval guidance.
## Stable identifier
An identifier intended to remain unchanged when a title or description is rewritten.
## Task record
A bounded planning or execution record under `tasks/`. Task records are not approval unless they contain explicit approval evidence.
## UPDATES.md
A notes file for possible future repository changes. It is neither a changelog nor automatic authorization to implement an item.
+93
View File
@@ -0,0 +1,93 @@
# Implementation Guide
## Choose A Profile
Select the smallest profile that accurately represents the repository:
- **Documentation/guide:** written standards, guides, playbooks, or research.
- **Skill/workflow:** AI skills, prompts, agents, workflows, or templates.
- **Software/automation:** executable code, services, applications, or operations.
- **Dataset:** versioned data with provenance, field definitions, and schemas.
Add profile-specific files only when they support real content or validation.
## New Repository Workflow
1. Choose a clear lowercase kebab-case repository name.
2. Create human and AI entry points.
3. Create `repository.json` using `templates/repository.json.template`.
4. Select and create profile-required documentation and folders.
5. Add a verified license, version, and change record.
6. Add host-specific contribution templates.
7. Validate the repository.
## Existing Repository Workflow
1. Inspect all files, Git status, agent instructions, host configuration, manifests, tests, and documentation.
2. Identify authoritative existing content and conventions.
3. Classify each proposed file action as create, preserve, modify, move, deprecate, or leave absent.
4. Use the skill's normal plan and approval gate unless the user explicitly authorizes immediate implementation.
5. Merge useful content rather than replacing it mechanically.
6. Reinspect for concurrent changes before writing.
7. Validate and report deviations.
## Required Entry Points
Every implementation should answer:
- Where should a human start?
- Where should an AI agent start?
- Which file is the authoritative machine-readable manifest?
- What should be retrieved next for the current task?
Declare these answers in `repository.json`.
## Identity And Publication
At the beginning of a repository build, confirm:
- author or authors;
- publisher;
- maintainer;
- canonical repository URL;
- intended license.
Record the verified values in `AUTHOR.md` and keep `repository.json`, `CITATION.cff`, and `LICENSE` aligned. When adapting an existing template, never inherit its author automatically.
## Metadata Rules
- Use stable IDs.
- Use verified URLs.
- Keep optional unknown values null or omit them when allowed.
- Keep version values aligned.
- Keep host topics and manifest topics aligned.
- Update `updated_at` when metadata meaningfully changes.
## UPDATES.md Workflow
Use `UPDATES.md` for unapproved future notes, discoveries, and proposed improvements. Do not present its contents as committed roadmap work.
When implementing an item:
1. confirm scope and authority;
2. make and validate the change;
3. update the version if required;
4. record the released result in `CHANGELOG.md`;
5. remove or mark the update item completed.
## Validation
For this repository:
```text
python scripts/validate_repository.py .
python -m unittest discover -s tests -p "test_*.py"
```
For another repository using the bundled skill audit:
```text
python skills/structure-ai-ready-repository/scripts/audit_repository.py <repository> --profile <profile>
```
Structural validation should be supplemented with project-native tests and human review of accuracy.