added
This commit is contained in:
1 parent
7af769f85e
commit
614d235bbe
1 file changed
+183
-106
@@ -1,160 +1,237 @@
|
||||
# AI-Ready Repository Template
|
||||
|
||||
A platform-neutral repository standard and reusable AI skill for creating repositories that humans and AI agents can discover, understand, validate, and reuse.
|
||||
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.
|
||||
|
||||
## What This Is
|
||||
Authored and published by [Eddie Soehnel](AUTHOR.md).
|
||||
|
||||
This repository contains:
|
||||
## What This Repository Provides
|
||||
|
||||
- a practical repository structure standard;
|
||||
- a reusable skill that plans and builds the structure in new or existing repositories;
|
||||
- machine-readable metadata and schema;
|
||||
- templates, examples, validation scripts, and tests;
|
||||
- contribution, security, versioning, and future-update guidance.
|
||||
This repository is a working reference implementation of its own standard. It combines three layers:
|
||||
|
||||
The standard supports documentation, AI skill/workflow, software/automation, and dataset repositories. It is intentionally modular: use the smallest profile that accurately represents the project.
|
||||
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.
|
||||
|
||||
## Problem It Solves
|
||||
It can be used as:
|
||||
|
||||
Repositories often make sense to their original author but leave future maintainers and AI agents guessing about purpose, authoritative files, setup, inputs, outputs, validation, licensing, and safe operating boundaries. This template makes those expectations explicit and machine-findable.
|
||||
- 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.
|
||||
|
||||
## Who It Is For
|
||||
|
||||
- People starting a new repository.
|
||||
- Maintainers correcting an inconsistent existing repository.
|
||||
- Teams publishing reusable prompts, skills, agents, workflows, templates, data, or software.
|
||||
- AI agents that need predictable entry points and approval boundaries.
|
||||
- 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.
|
||||
|
||||
## What It Helps You Do
|
||||
## Quick Start
|
||||
|
||||
- Select an appropriate repository profile.
|
||||
- Inventory and preserve useful existing content.
|
||||
- Propose exact file actions before restructuring a live repository.
|
||||
- Create human and AI entry points.
|
||||
- Add machine-readable metadata.
|
||||
- Validate required paths, versions, links, and entrypoints.
|
||||
- Record future changes in `UPDATES.md` without confusing them with released changes.
|
||||
### Use the AI skill
|
||||
|
||||
## Repository Contents
|
||||
Give your AI agent access to:
|
||||
|
||||
| Path | Purpose |
|
||||
| --- | --- |
|
||||
| `repository.json` | Authoritative machine-readable repository manifest. |
|
||||
| `AUTHOR.md` | Canonical author, publisher, maintainer, and attribution guidance. |
|
||||
| `AGENTS.md` | Instructions for AI agents working in this repository. |
|
||||
| `skills.md` | Index of reusable skills. |
|
||||
| `skills/structure-ai-ready-repository/` | Skill that assesses, plans, builds, and validates repository structure. |
|
||||
| `docs/` | Architecture, implementation guidance, and glossary. |
|
||||
| `templates/` | Reusable repository metadata and update-note templates. |
|
||||
| `examples/` | Synthetic examples showing completed artifacts. |
|
||||
| `schemas/` | JSON Schema for `repository.json`. |
|
||||
| `scripts/` | Deterministic repository validation. |
|
||||
| `tests/` | Automated validation tests. |
|
||||
| `UPDATES.md` | Notes and proposed changes to consider in future repository revisions. |
|
||||
| `CHANGELOG.md` | Versioned record of changes already released. |
|
||||
[`skills/structure-ai-ready-repository/SKILL.md`](skills/structure-ai-ready-repository/SKILL.md)
|
||||
|
||||
## How To Use It
|
||||
Then ask:
|
||||
|
||||
### With an AI agent
|
||||
```text
|
||||
Use $structure-ai-ready-repository to build or correct this repository.
|
||||
```
|
||||
|
||||
1. Give the agent access to `skills/structure-ai-ready-repository/SKILL.md`.
|
||||
2. Ask it to apply `$structure-ai-ready-repository` to a new or existing repository.
|
||||
3. By default, review the generated `tasks/<task-id>/repository-structure-plan.md`.
|
||||
4. Amend or explicitly approve the current plan revision.
|
||||
5. Let the skill implement and validate only the approved actions.
|
||||
The skill will normally:
|
||||
|
||||
The plan gate may be bypassed only when the user explicitly directs the agent to implement immediately and the platform's safety and permission rules allow it.
|
||||
1. confirm the author, publisher, maintainer, canonical URL, and license;
|
||||
2. inspect the target repository and preserve useful existing content;
|
||||
3. select the smallest appropriate repository profile;
|
||||
4. create `tasks/<task-id>/repository-structure-plan.md`;
|
||||
5. wait for review, amendments, and explicit approval;
|
||||
6. implement only the approved file actions;
|
||||
7. validate the completed repository and report the results.
|
||||
|
||||
### Manually
|
||||
The planning gate can be bypassed only when the user explicitly authorizes immediate implementation and applicable safety and permission rules allow it.
|
||||
|
||||
1. Read `docs/implementation.md`.
|
||||
2. Confirm author, publisher, maintainer, canonical URL, and license.
|
||||
3. Create `AUTHOR.md`.
|
||||
4. Choose the smallest applicable repository profile.
|
||||
5. Copy and adapt the relevant files.
|
||||
6. Replace all visible placeholders with verified project facts.
|
||||
7. Run:
|
||||
### Apply the standard manually
|
||||
|
||||
1. Read the [implementation guide](docs/implementation.md).
|
||||
2. Confirm repository identity and publication facts.
|
||||
3. Create or adapt [AUTHOR.md](AUTHOR.md).
|
||||
4. Select the smallest applicable repository profile.
|
||||
5. Start from the files in [`templates/`](templates/README.md).
|
||||
6. Replace every visible placeholder with verified information.
|
||||
7. Run the validator and tests:
|
||||
|
||||
```text
|
||||
python scripts/validate_repository.py .
|
||||
python -m unittest discover -s tests -p "test_*.py"
|
||||
```
|
||||
|
||||
## Repository Profiles
|
||||
## Supported Repository Profiles
|
||||
|
||||
| Profile | Best for |
|
||||
| Profile | Use for |
|
||||
| --- | --- |
|
||||
| Documentation/guide | Written standards, guides, playbooks, and research. |
|
||||
| Documentation/guide | Standards, guides, playbooks, research, and educational material. |
|
||||
| Skill/workflow | AI skills, prompts, agents, workflows, and reusable templates. |
|
||||
| Software/automation | Executable applications, services, scripts, and automations. |
|
||||
| Dataset | Versioned public or controlled datasets with provenance and schemas. |
|
||||
| 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.
|
||||
This repository implements the **skill/workflow** profile.
|
||||
|
||||
## Inputs Required
|
||||
Profiles are minimum useful structures, not commands to create every possible folder. Omit files and directories that have no real purpose.
|
||||
|
||||
Applying the template requires:
|
||||
## Repository Map
|
||||
|
||||
- the target repository path;
|
||||
- verified author, publisher, and maintainer identity;
|
||||
- the repository's purpose and intended users;
|
||||
- known publication, license, maintainer, and canonical URL details;
|
||||
- existing files and conventions that must be preserved;
|
||||
- the desired repository profile or enough context to infer one.
|
||||
### 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. |
|
||||
| [`repository.json`](repository.json) | Authoritative machine-readable repository manifest. |
|
||||
| [`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
|
||||
|
||||
| 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. |
|
||||
|
||||
### Supporting resources
|
||||
|
||||
| Path | Purpose |
|
||||
| --- | --- |
|
||||
| [`docs/`](docs/README.md) | Architecture, implementation guidance, and glossary. |
|
||||
| [`templates/`](templates/README.md) | Reusable manifest, author, and future-update templates. |
|
||||
| [`examples/`](examples/README.md) | Synthetic completed examples. |
|
||||
| [`schemas/`](schemas/README.md) | JSON Schema for the repository manifest. |
|
||||
| [`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
|
||||
|
||||
| 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.
|
||||
- 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.
|
||||
|
||||
## Expected Outputs
|
||||
|
||||
- a reviewed repository structure;
|
||||
Depending on the selected profile, the skill produces:
|
||||
|
||||
- clear human and AI entry points;
|
||||
- accurate `repository.json` metadata;
|
||||
- profile-appropriate documentation and indexes;
|
||||
- validation results and, when the normal plan flow is used, task receipts.
|
||||
- verified author and publication metadata;
|
||||
- a machine-readable `repository.json`;
|
||||
- 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.
|
||||
|
||||
## AI Usage Guidance
|
||||
## AI Retrieval Order
|
||||
|
||||
Read files in this order:
|
||||
An AI agent should read:
|
||||
|
||||
1. `README.md`
|
||||
2. `AUTHOR.md`
|
||||
3. `repository.json`
|
||||
4. `AGENTS.md`
|
||||
5. `skills.md`
|
||||
6. `skills/structure-ai-ready-repository/SKILL.md`
|
||||
7. Only the references, templates, scripts, or examples required for the current task
|
||||
1. [`README.md`](README.md)
|
||||
2. [`AUTHOR.md`](AUTHOR.md)
|
||||
3. [`repository.json`](repository.json)
|
||||
4. [`AGENTS.md`](AGENTS.md)
|
||||
5. [`skills.md`](skills.md)
|
||||
6. The relevant skill
|
||||
7. Only the references and supporting files required for the current task
|
||||
|
||||
Treat `UPDATES.md` as unapproved future work unless a user explicitly asks to implement an item. Treat `CHANGELOG.md` as the record of completed versioned changes.
|
||||
Treat `UPDATES.md` as planning context, not authorization. Treat `CHANGELOG.md` as the record of completed versioned work.
|
||||
|
||||
## How To Adapt It
|
||||
## Validation
|
||||
|
||||
Keep the core entry-point and metadata concepts stable, but tailor profiles, directories, host configuration, tests, and documentation to the repository's real purpose. Do not create unused folders merely to resemble the example tree.
|
||||
The included validator is read-only and uses only the Python standard library:
|
||||
|
||||
## Limitations
|
||||
```text
|
||||
python scripts/validate_repository.py .
|
||||
```
|
||||
|
||||
- This template does not choose a license, maintainer, security contact, or publication URL for you.
|
||||
- Structural validation cannot prove that documentation is accurate or complete.
|
||||
- Git-host configuration varies by platform.
|
||||
- The included skill does not create commits, remotes, releases, or hosting settings unless separately requested.
|
||||
It checks:
|
||||
|
||||
- required files and directories;
|
||||
- JSON parsing and core manifest fields;
|
||||
- author, publisher, maintainer, citation, and license alignment;
|
||||
- human, AI, skill, script, and template entry points;
|
||||
- declared content and retrieval paths;
|
||||
- version and license consistency;
|
||||
- relative Markdown links.
|
||||
|
||||
Run the unit tests with:
|
||||
|
||||
```text
|
||||
python -m unittest discover -s tests -p "test_*.py"
|
||||
```
|
||||
|
||||
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.
|
||||
|
||||
## Adapting This Repository
|
||||
|
||||
When using this template for another repository:
|
||||
|
||||
1. replace the identity values in `AUTHOR.md`;
|
||||
2. align `repository.json`, `CITATION.cff`, and `LICENSE`;
|
||||
3. replace the canonical URL and hosting metadata;
|
||||
4. choose the correct profile;
|
||||
5. remove irrelevant example structure;
|
||||
6. update tests and validation requirements;
|
||||
7. run the complete validation workflow.
|
||||
|
||||
Do not leave Eddie Soehnel's identity on a derived repository unless that attribution remains accurate.
|
||||
|
||||
## Security And Privacy
|
||||
|
||||
Never add credentials, private keys, access tokens, customer information, regulated data, private logs, or production databases. Use placeholders in examples and external secret management for live systems. See `SECURITY.md`.
|
||||
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.
|
||||
|
||||
## Version
|
||||
See [SECURITY.md](SECURITY.md).
|
||||
|
||||
Current version: `0.1.0`. See `VERSION`, `CHANGELOG.md`, and `UPDATES.md`.
|
||||
## Version, Author, And License
|
||||
|
||||
## Author And Publisher
|
||||
- **Version:** `0.1.0`
|
||||
- **Author, publisher, and maintainer:** Eddie Soehnel
|
||||
- **License:** MIT
|
||||
- **Canonical repository:** `https://projects.eddiesoehnel.com/adminprojects/repo-template`
|
||||
|
||||
Eddie Soehnel. See `AUTHOR.md` for canonical attribution and adaptation guidance.
|
||||
|
||||
## License
|
||||
|
||||
Licensed under the MIT License. See `LICENSE`.
|
||||
|
||||
## Contributing
|
||||
|
||||
See `CONTRIBUTING.md`.
|
||||
|
||||
## Canonical Repository
|
||||
|
||||
`https://projects.eddiesoehnel.com/adminprojects/repo-template`
|
||||
See [AUTHOR.md](AUTHOR.md), [VERSION](VERSION), [CHANGELOG.md](CHANGELOG.md), [CITATION.cff](CITATION.cff), and [LICENSE](LICENSE).
|
||||
Reference in new issue
Block a user