Files
repo-template-OPEN/README.md
T

258 lines
11 KiB
Markdown
Raw Permalink Normal View History

2026-07-23 14:13:45 -06:00
# AI-Ready Repository Template
2026-07-23 19:08:21 +00:00
2026-07-23 14:19:12 -06:00
A platform-neutral repository standard, interactive AI skill, and validation toolkit for building repositories that humans and AI agents can discover, understand, safely modify, and reuse.
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
Authored and published by [Eddie Soehnel](AUTHOR.md).
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
## What This Repository Provides
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
This repository is a working reference implementation of its own standard. It combines three layers:
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
1. **Repository standard** — defines recommended files, metadata, entry points, profiles, safety boundaries, and validation expectations.
2. **Interactive AI skill** — assesses a new or existing repository, proposes the right structure, waits for approval by default, then creates and validates the approved assets.
3. **Deterministic validation** — checks required paths, metadata, attribution, versions, entry points, declared contents, licenses, and relative links.
2026-07-23 14:13:45 -06:00
2026-07-24 16:17:28 -06:00
For content-heavy repositories, the standard also defines
`content-index.json`: a compact file-level catalog that keeps recurring
updates, articles, research, policies, and other document collections out of
the repository-level manifest.
2026-07-23 14:19:12 -06:00
It can be used as:
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
- a template for a new repository;
- a correction framework for an existing repository;
- a reusable skill given to an AI agent;
- a reference standard for repository consistency and AI findability.
## Why It Exists
Repositories often depend on knowledge held by their original author. A new maintainer—or an AI agent—may not know:
- what the repository is for;
- where to begin;
- which files are authoritative;
- what inputs and outputs are expected;
- what may be safely changed;
- how identity, licensing, and versioning should be handled;
- how to determine whether the repository is complete.
This template makes those answers explicit, structured, and testable.
2026-07-23 14:13:45 -06:00
## Who It Is For
- People starting a new repository.
2026-07-23 14:19:12 -06:00
- Maintainers cleaning up or standardizing an existing repository.
- Teams publishing AI skills, prompts, agents, workflows, templates, data, documentation, or software.
- AI agents that need predictable entry points, verified attribution, and clear approval boundaries.
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
## Quick Start
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
### Use the AI skill
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
Give your AI agent access to:
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
[`skills/structure-ai-ready-repository/SKILL.md`](skills/structure-ai-ready-repository/SKILL.md)
Then ask:
```text
Use $structure-ai-ready-repository to build or correct this repository.
```
The skill will normally:
2026-07-24 15:14:23 -06:00
1. read `repository-variables.json` when present;
2. confirm only missing or conflicting author, publisher, maintainer, canonical
URL, and license values;
3. inspect the target repository and preserve useful existing content;
4. select the smallest appropriate repository profile;
5. create `tasks/<task-id>/repository-structure-plan.md`;
6. wait for review, amendments, and explicit approval;
7. implement only the approved file actions;
8. validate the completed repository and report the results.
2026-07-23 14:19:12 -06:00
The planning gate can be bypassed only when the user explicitly authorizes immediate implementation and applicable safety and permission rules allow it.
### Apply the standard manually
1. Read the [implementation guide](docs/implementation.md).
2. Confirm repository identity and publication facts.
2026-07-24 15:14:23 -06:00
3. Create or adapt
[`repository-variables.json`](repository-variables.json).
4. Create or adapt [AUTHOR.md](AUTHOR.md).
5. Select the smallest applicable repository profile.
6. Start from the files in [`templates/`](templates/README.md).
7. Replace every visible placeholder with verified information.
8. Run the validator and tests:
2026-07-23 14:13:45 -06:00
```text
python scripts/validate_repository.py .
python -m unittest discover -s tests -p "test_*.py"
```
2026-07-23 14:19:12 -06:00
## Supported Repository Profiles
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
| Profile | Use for |
2026-07-23 14:13:45 -06:00
| --- | --- |
2026-07-23 14:19:12 -06:00
| Documentation/guide | Standards, guides, playbooks, research, and educational material. |
2026-07-23 14:13:45 -06:00
| Skill/workflow | AI skills, prompts, agents, workflows, and reusable templates. |
2026-07-23 14:19:12 -06:00
| Software/automation | Applications, services, scripts, integrations, and operational automation. |
| Dataset | Versioned data with provenance, field definitions, limitations, and schemas. |
This repository implements the **skill/workflow** profile.
Profiles are minimum useful structures, not commands to create every possible folder. Omit files and directories that have no real purpose.
## Repository Map
### Start here
| Path | Purpose |
| --- | --- |
| [`README.md`](README.md) | Primary human overview and usage guide. |
| [`AUTHOR.md`](AUTHOR.md) | Canonical author, publisher, maintainer, and attribution record. |
2026-07-24 15:14:23 -06:00
| [`repository-variables.json`](repository-variables.json) | Verified stable identity, publication, rights, profile, and skill defaults. |
2026-07-23 14:19:12 -06:00
| [`repository.json`](repository.json) | Authoritative machine-readable repository manifest. |
2026-07-24 16:17:28 -06:00
| [`content-index.json`](content-index.json) | Machine-readable catalog of the principal individual documents in this content-heavy reference repository. |
2026-07-23 14:19:12 -06:00
| [`AGENTS.md`](AGENTS.md) | Repository-scoped operating instructions for AI agents. |
| [`skills.md`](skills.md) | Skill index, triggers, inputs, outputs, and approval requirements. |
### Standard and skill
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
| Path | Purpose |
| --- | --- |
| [`skills/structure-ai-ready-repository/SKILL.md`](skills/structure-ai-ready-repository/SKILL.md) | Interactive repository assessment and implementation workflow. |
| [`skills/structure-ai-ready-repository/references/repository-structure-standard.md`](skills/structure-ai-ready-repository/references/repository-structure-standard.md) | Detailed repository structure standard. |
| [`skills/structure-ai-ready-repository/assets/repository-structure-plan-template.md`](skills/structure-ai-ready-repository/assets/repository-structure-plan-template.md) | Review and approval plan template. |
| [`skills/structure-ai-ready-repository/scripts/audit_repository.py`](skills/structure-ai-ready-repository/scripts/audit_repository.py) | Read-only profile audit for target repositories. |
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
### Supporting resources
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
| Path | Purpose |
| --- | --- |
| [`docs/`](docs/README.md) | Architecture, implementation guidance, and glossary. |
2026-07-24 15:14:23 -06:00
| [`templates/`](templates/README.md) | Reusable variables, manifest, author, and future-update templates. |
2026-07-23 14:19:12 -06:00
| [`examples/`](examples/README.md) | Synthetic completed examples. |
2026-07-24 16:17:28 -06:00
| [`schemas/`](schemas/README.md) | JSON Schemas for the repository manifest, content index, and stable repository variables. |
2026-07-23 14:19:12 -06:00
| [`scripts/`](scripts/README.md) | Dependency-free validation for this repository. |
| [`tests/`](tests/README.md) | Automated repository validation tests. |
| [`data/`](data/README.md) | Rules for public data when a repository needs it. |
| [`receipts/`](receipts/README.md) | Guidance for sanitized execution records. |
| [`tasks/`](tasks/README.md) | Planning and execution records created by workflows. |
| [`assets/`](assets/README.md) | Images, diagrams, screenshots, and downloads. |
| [`.gitea/`](.gitea/PULL_REQUEST_TEMPLATE.md) | Gitea issue and pull-request templates. |
### Governance and lifecycle
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
| Path | Purpose |
| --- | --- |
| [`UPDATES.md`](UPDATES.md) | Unapproved notes and proposed future repository improvements. |
| [`CHANGELOG.md`](CHANGELOG.md) | Completed, versioned repository changes. |
| [`VERSION`](VERSION) | Deterministic current version. |
| [`CONTRIBUTING.md`](CONTRIBUTING.md) | Contribution standards and review workflow. |
| [`SECURITY.md`](SECURITY.md) | Vulnerability, privacy, credential, and AI-safety guidance. |
| [`CITATION.cff`](CITATION.cff) | Machine-readable citation metadata. |
| [`LICENSE`](LICENSE) | MIT License and copyright terms. |
## Inputs The Skill Needs
- Target repository path.
- Repository purpose and intended users.
2026-07-24 15:14:23 -06:00
- Existing `repository-variables.json`, when present.
2026-07-23 14:19:12 -06:00
- Verified author or authors.
- Publisher and maintainer.
- Canonical repository URL.
- Intended license.
- Existing files and conventions that must be preserved.
- Constraints, risks, and actions requiring human approval.
If an existing `AUTHOR.md` is present, the skill reads and confirms it rather than silently inheriting identity.
2026-07-23 14:13:45 -06:00
## Expected Outputs
2026-07-23 14:19:12 -06:00
Depending on the selected profile, the skill produces:
2026-07-23 14:13:45 -06:00
- clear human and AI entry points;
2026-07-24 15:14:23 -06:00
- a verified, reusable `repository-variables.json`;
2026-07-23 14:19:12 -06:00
- verified author and publication metadata;
- a machine-readable `repository.json`;
2026-07-24 16:17:28 -06:00
- an optional `content-index.json` for repositories with recurring or numerous individual documents;
2026-07-23 14:19:12 -06:00
- profile-appropriate documentation, indexes, templates, examples, scripts, schemas, and tests;
- host-specific contribution files when relevant;
- validation results and, in the normal workflow, task plans and receipts.
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
## AI Retrieval Order
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
An AI agent should read:
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
1. [`README.md`](README.md)
2. [`AUTHOR.md`](AUTHOR.md)
2026-07-24 15:14:23 -06:00
3. [`repository-variables.json`](repository-variables.json)
4. [`repository.json`](repository.json)
2026-07-24 16:17:28 -06:00
5. [`content-index.json`](content-index.json) when locating an individual document
6. [`AGENTS.md`](AGENTS.md)
7. [`skills.md`](skills.md)
8. The relevant skill
9. Only the references and supporting files required for the current task
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
Treat `UPDATES.md` as planning context, not authorization. Treat `CHANGELOG.md` as the record of completed versioned work.
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
## Validation
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
The included validator is read-only and uses only the Python standard library:
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
```text
python scripts/validate_repository.py .
```
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
It checks:
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
- required files and directories;
2026-07-24 15:14:23 -06:00
- JSON parsing and core manifest and repository-variable fields;
- alignment between reusable variables and repository metadata;
2026-07-23 14:19:12 -06:00
- author, publisher, maintainer, citation, and license alignment;
- human, AI, skill, script, and template entry points;
- declared content and retrieval paths;
2026-07-24 16:17:28 -06:00
- `content-index.json` required fields, unique IDs and paths, indexed-file existence, and related-content references;
2026-07-23 14:19:12 -06:00
- version and license consistency;
- relative Markdown links.
Run the unit tests with:
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
```text
python -m unittest discover -s tests -p "test_*.py"
```
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
Structural validation cannot prove that documentation is accurate, that a license is legally appropriate, or that external URLs are available. Human review and project-native tests remain necessary.
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
## Adapting This Repository
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
When using this template for another repository:
2026-07-23 14:13:45 -06:00
2026-07-24 15:14:23 -06:00
1. replace the verified values in `repository-variables.json`;
2. replace the identity values in `AUTHOR.md`;
3. align `repository.json`, `CITATION.cff`, and `LICENSE`;
2026-07-24 16:17:28 -06:00
4. decide whether the repository is content-heavy enough to require
`content-index.json`;
5. replace the canonical URL and hosting metadata;
6. choose the correct profile;
7. remove irrelevant example structure;
8. update tests and validation requirements;
9. run the complete validation workflow.
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
Do not leave Eddie Soehnel's identity on a derived repository unless that attribution remains accurate.
## Security And Privacy
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
Never commit passwords, API keys, access tokens, private keys, customer information, regulated data, production logs, session cookies, or proprietary records. Use synthetic examples and external secret management.
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
See [SECURITY.md](SECURITY.md).
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
## Version, Author, And License
2026-07-23 14:13:45 -06:00
2026-07-24 16:17:28 -06:00
- **Version:** `0.3.0`
2026-07-23 14:19:12 -06:00
- **Author, publisher, and maintainer:** Eddie Soehnel
- **License:** MIT
- **Canonical repository:** `https://projects.eddiesoehnel.com/adminprojects/repo-template`
2026-07-23 14:13:45 -06:00
2026-07-23 14:19:12 -06:00
See [AUTHOR.md](AUTHOR.md), [VERSION](VERSION), [CHANGELOG.md](CHANGELOG.md), [CITATION.cff](CITATION.cff), and [LICENSE](LICENSE).