AI-Ready Repository Template
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.
Authored and published by Eddie Soehnel.
What This Repository Provides
This repository is a working reference implementation of its own standard. It combines three layers:
- Repository standard — defines recommended files, metadata, entry points, profiles, safety boundaries, and validation expectations.
- 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.
- Deterministic validation — checks required paths, metadata, attribution, versions, entry points, declared contents, licenses, and relative links.
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.
It can be used as:
- 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 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.
Quick Start
Use the AI skill
Give your AI agent access to:
skills/structure-ai-ready-repository/SKILL.md
Then ask:
Use $structure-ai-ready-repository to build or correct this repository.
The skill will normally:
- read
repository-variables.jsonwhen present; - confirm only missing or conflicting author, publisher, maintainer, canonical URL, and license values;
- inspect the target repository and preserve useful existing content;
- select the smallest appropriate repository profile;
- create
tasks/<task-id>/repository-structure-plan.md; - wait for review, amendments, and explicit approval;
- implement only the approved file actions;
- validate the completed repository and report the results.
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
- Read the implementation guide.
- Confirm repository identity and publication facts.
- Create or adapt
repository-variables.json. - Create or adapt AUTHOR.md.
- Select the smallest applicable repository profile.
- Start from the files in
templates/. - Replace every visible placeholder with verified information.
- Run the validator and tests:
python scripts/validate_repository.py .
python -m unittest discover -s tests -p "test_*.py"
Supported Repository Profiles
| Profile | Use for |
|---|---|
| Documentation/guide | Standards, guides, playbooks, research, and educational material. |
| Skill/workflow | AI skills, prompts, agents, workflows, and reusable templates. |
| 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 |
Primary human overview and usage guide. |
AUTHOR.md |
Canonical author, publisher, maintainer, and attribution record. |
repository-variables.json |
Verified stable identity, publication, rights, profile, and skill defaults. |
repository.json |
Authoritative machine-readable repository manifest. |
content-index.json |
Machine-readable catalog of the principal individual documents in this content-heavy reference repository. |
AGENTS.md |
Repository-scoped operating instructions for AI agents. |
skills.md |
Skill index, triggers, inputs, outputs, and approval requirements. |
Standard and skill
| Path | Purpose |
|---|---|
skills/structure-ai-ready-repository/SKILL.md |
Interactive repository assessment and implementation workflow. |
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 |
Review and approval plan template. |
skills/structure-ai-ready-repository/scripts/audit_repository.py |
Read-only profile audit for target repositories. |
Supporting resources
| Path | Purpose |
|---|---|
docs/ |
Architecture, implementation guidance, and glossary. |
templates/ |
Reusable variables, manifest, author, and future-update templates. |
examples/ |
Synthetic completed examples. |
schemas/ |
JSON Schemas for the repository manifest, content index, and stable repository variables. |
scripts/ |
Dependency-free validation for this repository. |
tests/ |
Automated repository validation tests. |
data/ |
Rules for public data when a repository needs it. |
receipts/ |
Guidance for sanitized execution records. |
tasks/ |
Planning and execution records created by workflows. |
assets/ |
Images, diagrams, screenshots, and downloads. |
.gitea/ |
Gitea issue and pull-request templates. |
Governance and lifecycle
| Path | Purpose |
|---|---|
UPDATES.md |
Unapproved notes and proposed future repository improvements. |
CHANGELOG.md |
Completed, versioned repository changes. |
VERSION |
Deterministic current version. |
CONTRIBUTING.md |
Contribution standards and review workflow. |
SECURITY.md |
Vulnerability, privacy, credential, and AI-safety guidance. |
CITATION.cff |
Machine-readable citation metadata. |
LICENSE |
MIT License and copyright terms. |
Inputs The Skill Needs
- Target repository path.
- Repository purpose and intended users.
- Existing
repository-variables.json, when present. - 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
Depending on the selected profile, the skill produces:
- clear human and AI entry points;
- a verified, reusable
repository-variables.json; - verified author and publication metadata;
- a machine-readable
repository.json; - an optional
content-index.jsonfor repositories with recurring or numerous individual documents; - 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 Retrieval Order
An AI agent should read:
README.mdAUTHOR.mdrepository-variables.jsonrepository.jsoncontent-index.jsonwhen locating an individual documentAGENTS.mdskills.md- The relevant skill
- Only the references and supporting files required for the current task
Treat UPDATES.md as planning context, not authorization. Treat CHANGELOG.md as the record of completed versioned work.
Validation
The included validator is read-only and uses only the Python standard library:
python scripts/validate_repository.py .
It checks:
- required files and directories;
- JSON parsing and core manifest and repository-variable fields;
- alignment between reusable variables and repository metadata;
- author, publisher, maintainer, citation, and license alignment;
- human, AI, skill, script, and template entry points;
- declared content and retrieval paths;
content-index.jsonrequired fields, unique IDs and paths, indexed-file existence, and related-content references;- version and license consistency;
- relative Markdown links.
Run the unit tests with:
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:
- replace the verified values in
repository-variables.json; - replace the identity values in
AUTHOR.md; - align
repository.json,CITATION.cff, andLICENSE; - decide whether the repository is content-heavy enough to require
content-index.json; - replace the canonical URL and hosting metadata;
- choose the correct profile;
- remove irrelevant example structure;
- update tests and validation requirements;
- 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 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.
See SECURITY.md.
Version, Author, And License
- Version:
0.3.0 - Author, publisher, and maintainer: Eddie Soehnel
- License: MIT
- Canonical repository:
https://projects.eddiesoehnel.com/adminprojects/repo-template
See AUTHOR.md, VERSION, CHANGELOG.md, CITATION.cff, and LICENSE.