Files
repo-template-OPEN/skills/structure-ai-ready-repository/references/repository-structure-standard.md
T
2026-07-24 15:14:23 -06:00

2025 lines
37 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# AI-Ready Repository Template
## Purpose
This template defines a platform-neutral standard for repositories that should be easy for humans and AI agents to discover, understand, validate, and reuse.
Every repository should be understandable and usable as a standalone project, regardless of where it is hosted or how someone discovers it.
The repository should provide:
* A clear human-readable explanation.
* Machine-readable repository metadata.
* Instructions for using or adapting the resource.
* Licensing and reuse guidance.
* Contribution and security guidance where applicable.
* Version and change history.
* Clear entry points for humans and AI agents.
* Stable structure that can be validated and indexed automatically.
The template is intentionally broader than a traditional software repository because AI-ready repositories may contain:
* Skills
* Agents
* Workflows
* Templates
* Playbooks
* Prompts
* Scripts
* Applications
* Demonstration projects
* Research
* Datasets
* Policies
* Operating procedures
* Educational materials
---
# Recommended Repository Structure
```text
repository-name/
│
├── README.md
├── AUTHOR.md
├── repository-variables.json
├── repository.json
├── LICENSE
├── CHANGELOG.md
├── UPDATES.md
├── CONTRIBUTING.md
├── SECURITY.md
├── CITATION.cff
├── VERSION
│
├── AGENTS.md
├── skills.md
│
├── docs/
│ ├── README.md
│ ├── architecture.md
│ ├── implementation.md
│ └── glossary.md
│
├── skills/
│ ├── README.md
│ └── example-skill.md
│
├── templates/
│ ├── README.md
│ └── example-template.md
│
├── examples/
│ ├── README.md
│ └── example-output.md
│
├── scripts/
│ ├── README.md
│ └── validate_repository.py
│
├── schemas/
│ ├── README.md
│ └── example.schema.json
│
├── data/
│ ├── README.md
│ └── .gitkeep
│
├── receipts/
│ ├── README.md
│ └── .gitkeep
│
├── tasks/
│ ├── README.md
│ └── task-id/
│ └── repository-structure-plan.md
│
├── tests/
│ ├── README.md
│ └── .gitkeep
│
├── assets/
│ ├── README.md
│ ├── images/
│ └── diagrams/
│
└── host-config/ # use .github/, .gitea/, or the host's equivalent
├── ISSUE_TEMPLATE/
│ ├── bug-report.md
│ ├── feature-request.md
│ └── resource-submission.md
│
└── PULL_REQUEST_TEMPLATE.md
```
Not every repository must actively use every folder. Empty folders may be omitted until required, or retained with a `.gitkeep` file and a short `README.md` explaining their intended use.
The following root files should normally exist in every public repository:
```text
README.md
AUTHOR.md
repository-variables.json
repository.json
LICENSE
CHANGELOG.md
UPDATES.md
VERSION
```
The remaining files are conditionally required based on repository type.
---
# Root Files
## `README.md`
### Purpose
The primary human and AI entry point for the repository.
The README should let a visitor understand:
* What the repository contains.
* What problem it solves.
* Who it is for.
* Why it is useful.
* How to use it.
* What inputs are required.
* What outputs are produced.
* How to adapt it.
* Where the important files are.
* What limitations or risks exist.
* What license governs reuse.
AI agents should be instructed to read this file before retrieving deeper repository content.
### Format
Markdown.
### Recommended Structure
```markdown
# Repository Title
One- or two-sentence description of the repository.
## What This Is
Explain the resource in plain language.
## Problem It Solves
Describe the friction, need, or opportunity addressed.
## Who It Is For
List intended users, organizations, or industry segments.
## What It Helps You Do
Describe the primary capabilities or outcomes.
## Repository Contents
Summarize the major folders and files.
## How To Use It
Provide the normal starting workflow.
## Inputs Required
List required information, files, systems, credentials, or decisions.
## Expected Outputs
Explain what the user should receive or create.
## Example Use Cases
Provide practical examples.
## How To Adapt It
Explain what may be customized and what should remain stable.
## AI Usage Guidance
Explain how an AI agent should inspect and use the repository.
## Limitations
Identify what the resource does not do.
## Security And Privacy
Explain relevant data, credential, privacy, or operational risks.
## Version
State the current release or point to `VERSION`.
## License
Summarize reuse terms and link to `LICENSE`.
## Contributing
Link to `CONTRIBUTING.md`.
## Related Resources
Link to relevant websites, documentation, graphs, repositories, or skills.
```
### Notes
The opening section should contain useful descriptive text rather than slogans alone. Repository descriptions, headings, keywords, and use cases improve both human comprehension and AI retrieval.
Do not assume that users understand Git, the hosting platform, AI skills, agents, or the broader repository architecture.
---
## `AUTHOR.md`
### Purpose
Provides the canonical human-readable identity and attribution record for the repository.
It should state:
* Author or authors.
* Publisher.
* Maintainer.
* Preferred attribution.
* Canonical repository URL.
* Instructions for replacing attribution in derived repositories.
### Notes
Confirm these values with the user at the beginning of repository creation or restructuring. If an existing `AUTHOR.md` is present, present its values for confirmation rather than silently inheriting them.
Keep `repository-variables.json`, `AUTHOR.md`, `repository.json`,
`CITATION.cff`, and `LICENSE` aligned. Never leave a source-template author
attached to a derived repository unless that attribution remains accurate.
---
## `repository-variables.json`
### Purpose
Stores verified stable inputs that repository-structure skills and future
maintainers can reuse without repeatedly asking for the same facts.
Every supported repository profile should include this file. It should contain:
* Repository profile.
* Author or authors.
* Publisher and maintainer.
* Stable repository ID, name, title, canonical URL, and organization when
applicable.
* License and license-file path.
* Repository-skill defaults, including approval and preservation behavior.
* Verification source and date.
### Rules
Read this file before an identity and publication round. Treat its values as
defaults only when a verification source and date are present. Ask about values
that are missing, conflicting, explicitly unverified, or overridden by the
user.
Keep dynamic release values such as the current version out of this file; their
authoritative sources remain `VERSION`, `repository.json`, `CITATION.cff`, and
`CHANGELOG.md`.
When verified identity, repository, or rights values change, update
`repository-variables.json`, `AUTHOR.md`, `repository.json`, `CITATION.cff`, and
`LICENSE` together.
Use `templates/repository-variables.json.template` and validate against
`schemas/repository-variables.schema.json`.
---
## `repository.json`
### Purpose
The authoritative machine-readable manifest for the repository.
This file allows repository tooling and catalog systems to:
* Catalog the repository.
* Generate repository catalog records.
* Update `ai-index.json`.
* Build topic, audience, capability, and problem indexes.
* Validate repository completeness.
* Generate structured metadata.
* Route AI agents to the correct files.
* Track relationships between repositories.
* Detect renamed, archived, or superseded resources.
This file functions as repository-level front matter.
### Format
Strict JSON.
Do not include comments, trailing commas, Markdown, or JSON5 syntax.
### Recommended Structure
```json
{
"schema_version": "1.0",
"repository_id": "organization-repository-name",
"name": "repository-name",
"title": "Human-Readable Repository Title",
"description": "Concise description of what the repository contains and helps users accomplish.",
"summary": "Longer summary that explains the problem, intended audience, capabilities, and expected value.",
"canonical_url": "https://code.example.org/example-organization/repository-name",
"organization": {
"id": "example-organization",
"name": "Example Organization",
"url": "https://code.example.org/example-organization"
},
"authors": [
{
"name": "Author Name"
}
],
"publisher": {
"name": "Publisher Name",
"url": "https://example.org/"
},
"repository_status": "active",
"visibility": "public",
"maturity": "experimental",
"version": "0.1.0",
"created_at": "YYYY-MM-DD",
"updated_at": "YYYY-MM-DD",
"resource_types": [
"skill",
"workflow",
"template"
],
"topics": {
"technology": [
"ai",
"agents"
],
"business_function": [
"marketing"
],
"industry_context": [
"operators"
],
"artifact_type": [
"skill",
"workflow"
],
"concepts": []
},
"audiences": [
"domain organizations",
"operators",
"industry organizations"
],
"problems_solved": [
"Describe the operational problem addressed."
],
"capabilities": [
"Describe what the repository helps a user or agent do."
],
"use_cases": [
"Describe a realistic use case."
],
"required_inputs": [
{
"name": "Input name",
"description": "What must be supplied.",
"required": true,
"sensitivity": "non-sensitive"
}
],
"expected_outputs": [
{
"name": "Output name",
"description": "What the workflow produces.",
"format": "markdown"
}
],
"entrypoints": {
"human": "README.md",
"ai": "README.md",
"primary_skill": null,
"primary_agent": null,
"primary_script": null,
"primary_template": null
},
"contents": [
{
"path": "README.md",
"type": "documentation",
"title": "Repository Overview",
"description": "Primary repository explanation and usage guidance.",
"required_for_use": true
}
],
"relationships": {
"part_of": [
"https://example.org/"
],
"supports": [],
"depends_on": [],
"related_resources": [],
"supersedes": [],
"superseded_by": []
},
"access": {
"public": true,
"authentication_required": false,
"payment_required": false,
"registration_required": false
},
"rights": {
"license": "https://creativecommons.org/licenses/by/4.0/",
"license_file": "LICENSE",
"usage_guidance": "https://example.org/reuse-policy"
},
"provenance": {
"origin_type": "human-authored",
"creation_method": "authored-and-ai-assisted",
"contributors": [],
"source_references": []
},
"maintenance": {
"maintainer": "Maintainer Name",
"review_frequency": "as-needed",
"last_reviewed_at": "YYYY-MM-DD",
"deprecated": false,
"archived": false
},
"ai_retrieval": {
"read_first": [
"README.md",
"AUTHOR.md",
"repository-variables.json",
"repository.json"
],
"retrieve_as_needed": [],
"exclude_by_default": [
"receipts/",
"tests/"
],
"instructions": "Read the README first. Retrieve only the files required to complete the user's task."
}
}
```
### Recommended Controlled Values
For `repository_status`:
```text
draft
active
deprecated
archived
superseded
```
For `maturity`:
```text
concept
experimental
prototype
beta
stable
production
```
For `visibility`:
```text
public
restricted
private
```
For `resource_types`:
```text
agent
application
case-study
dataset
demo-project
documentation
framework
guide
playbook
prompt-library
research
schema
script
skill
software
template
workflow
```
### Notes
The `repository_id` should remain stable even if the human-facing title changes.
Recommended format:
```text
organization-repository-name
```
Example:
```text
example-organization-repository-name
```
Do not change IDs casually after publication because other catalogs, relationships, and AI indexes may reference them.
---
## `LICENSE`
### Purpose
Defines the legal terms under which the repository may be copied, reused, adapted, redistributed, or incorporated into other work.
### Format
Plain text or Markdown, depending on the license.
### Recommended Default
For public documentation, skills, templates, playbooks, and educational resources:
```text
Creative Commons Attribution 4.0 International
```
For software code, a software-specific license may be more appropriate, such as:
```text
Apache License 2.0
MIT License
```
A repository containing both software and documentation may require separate licensing statements.
Example:
```text
Code in this repository is licensed under the Apache License 2.0.
Documentation, templates, skills, and written materials are licensed under
Creative Commons Attribution 4.0 International unless otherwise noted.
```
### Notes
The license in `repository.json`, `CITATION.cff`, README, and `LICENSE` must be consistent.
Do not assume one license is appropriate for every artifact type.
---
## `CHANGELOG.md`
### Purpose
Records meaningful changes to the repository over time.
It helps humans and AI systems understand:
* What changed.
* When it changed.
* Whether instructions or outputs may have changed.
* Whether a version introduced breaking changes.
* Whether a resource was deprecated or replaced.
### Format
Markdown.
### Recommended Structure
```markdown
# Changelog
All notable changes to this repository are documented here.
## [Unreleased]
### Added
### Changed
### Fixed
### Removed
### Security
## [0.1.0] - YYYY-MM-DD
### Added
- Initial public version.
```
### Notes
Use newest entries first.
Do not list every typo correction unless it changes interpretation or use. Focus on meaningful changes.
---
## `UPDATES.md`
### Purpose
Captures notes, discoveries, pending decisions, and proposed improvements that may be applied to the repository in a future revision.
`UPDATES.md` is not:
* Approval to implement an item.
* A release commitment.
* A replacement for `CHANGELOG.md`.
* A substitute for a scoped task plan when one is required.
### Recommended Structure
```markdown
# Future Repository Updates
## Pending Decisions
## Proposed Improvements
## Discoveries And Notes
## Completed Or Superseded
```
### Notes
When an update is implemented, validate the change, update `VERSION` when appropriate, record the released result in `CHANGELOG.md`, and remove or mark the note completed.
AI agents should treat this file as planning context only unless the user explicitly asks to act on a listed item.
---
## `VERSION`
### Purpose
Provides a single deterministic source for the repository’s current version.
Scripts and catalog builders can read this file without parsing Markdown or JSON.
### Format
Plain text containing one semantic version:
```text
0.1.0
```
No additional commentary should be included.
### Notes
The version should match:
* `repository.json`
* `CITATION.cff`
* The latest stable release in `CHANGELOG.md`
* Any hosting-platform release or Git tag
Recommended semantic versioning:
```text
MAJOR.MINOR.PATCH
```
Example:
```text
1.4.2
```
---
## `CONTRIBUTING.md`
### Purpose
Explains how other people may suggest changes, submit resources, report problems, or contribute improvements.
### Format
Markdown.
### Recommended Structure
```markdown
# Contributing
## Who May Contribute
## Types Of Contributions
## Before You Submit
## Contribution Workflow
## Repository Standards
## Documentation Requirements
## Anonymization Requirements
## Intellectual Property And Licensing
## Review Process
## Code Of Conduct
## Questions
```
### Notes
This file should explain the repository's contribution model, including the expectation that submitted business workflows may need to be:
* Cleaned.
* Generalized.
* Anonymized.
* Documented.
* Licensed for public reuse.
Do not require technical Git knowledge from all contributors. Provide a nontechnical submission route where appropriate.
---
## `SECURITY.md`
### Purpose
Explains how to report vulnerabilities, exposed credentials, unsafe instructions, privacy problems, or other security concerns.
### Format
Markdown.
### Recommended Structure
```markdown
# Security Policy
## Supported Versions
## Reporting A Vulnerability
## Do Not Post Sensitive Information Publicly
## Credentials And Secrets
## Data Privacy
## AI-Specific Security Considerations
## Response Process
```
### Notes
Include this file when the repository contains:
* Code
* Scripts
* APIs
* Agents
* Automations
* Authentication
* User data
* External integrations
* Deployment instructions
* System administration guidance
At minimum, state clearly:
```text
Never commit passwords, tokens, API keys, private keys, personal data, or production credentials to this repository.
```
---
## `CITATION.cff`
### Purpose
Provides machine-readable citation and attribution metadata.
This is useful for:
* Research resources.
* Frameworks.
* Public datasets.
* Skills.
* Templates.
* Educational materials.
* Repositories that may be referenced in reports, articles, academic work, or derivative projects.
### Format
Citation File Format YAML.
### Recommended Structure
```yaml
cff-version: 1.2.0
message: "If you use this resource, please cite it as described below."
title: "Human-Readable Repository Title"
type: software
version: 0.1.0
date-released: YYYY-MM-DD
authors:
- family-names: "Doe"
given-names: "Alex"
organization:
name: "Publishing Organization"
website: "https://example.org/"
repository-code: "https://code.example.org/example-organization/repository-name"
url: "https://code.example.org/example-organization/repository-name"
license: "CC-BY-4.0"
keywords:
- domain-specific
- artificial intelligence
- skills
- workflows
```
### Notes
The `type` field may vary depending on the resource.
Possible values should be checked against the current Citation File Format specification when the template is implemented.
For mixed repositories, choose the type representing the primary artifact.
---
## `AGENTS.md`
### Purpose
Provides instructions for AI agents operating inside the repository.
It explains:
* How the repository should be interpreted.
* What files to read first.
* How to select skills or tools.
* What agents may and may not modify.
* What requires human approval.
* How outputs should be validated.
* How secrets and private information should be handled.
### Format
Markdown.
### Recommended Structure
```markdown
# Agent Instructions
## Repository Purpose
## Read Order
1. `README.md`
2. `AUTHOR.md`
3. `repository-variables.json`
4. `repository.json`
5. Relevant files listed in `entrypoints`
6. Supporting documentation only as needed
## Task Routing
## Available Skills
## Available Scripts
## Allowed Actions
## Restricted Actions
## Human Approval Requirements
## Security And Privacy Rules
## Validation Requirements
## Output Requirements
## Escalation Conditions
```
### Notes
This file should be procedural, not promotional.
Do not include an `AGENTS.md` file merely to repeat the README. It should govern agent behavior.
For a simple documentary repository, this file may contain only minimal retrieval and modification instructions.
---
## `skills.md`
### Purpose
Provides a repository-level index of AI skills contained in or associated with the repository.
It helps agents identify:
* Which skills exist.
* What each skill does.
* When to use each skill.
* What inputs each skill requires.
* What outputs each skill produces.
* Where each skill file is located.
### Format
Markdown.
### Recommended Structure
```markdown
# Repository Skills
## How To Use This Index
Read this file to determine which skill applies to the current task.
## Skills
### Skill Name
- **Path:** `skills/example-skill.md`
- **Purpose:** Describe what the skill does.
- **Use when:** Describe the triggering conditions.
- **Inputs:** Describe required inputs.
- **Outputs:** Describe expected outputs.
- **Human approval required:** Yes or no.
- **Related scripts:** List deterministic scripts, if any.
```
### Notes
If the repository contains no skills, either omit this file or include:
```markdown
# Repository Skills
This repository does not currently contain executable AI skills.
```
Do not describe ordinary documentation as a skill unless it contains clear task instructions, inputs, process rules, and outputs.
---
# Core Directories
## `docs/`
### Purpose
Contains supporting documentation that would make the root README too long or too specialized.
Typical files include:
```text
docs/architecture.md
docs/implementation.md
docs/deployment.md
docs/data-model.md
docs/glossary.md
docs/decisions.md
docs/troubleshooting.md
```
### `docs/README.md`
Should provide an index of documents in the folder.
Example:
```markdown
# Documentation
| File | Purpose |
| --- | --- |
| `architecture.md` | Explains the system architecture. |
| `implementation.md` | Provides implementation guidance. |
| `glossary.md` | Defines specialized terminology. |
```
### Notes
Use descriptive file names. Avoid generic names such as:
```text
notes.md
misc.md
new-document.md
```
---
## `skills/`
### Purpose
Contains reusable AI skills.
Each skill should define:
* Objective.
* Trigger conditions.
* Required inputs.
* Sources of authority.
* Workflow.
* Validation.
* Expected outputs.
* Failure and escalation rules.
* Human approval requirements.
### Recommended Skill Structure
```markdown
---
skill_id: organization-repository-skill-name
title: Human-Readable Skill Name
version: 0.1.0
status: experimental
---
# Skill Name
## Objective
## Use This Skill When
## Do Not Use This Skill When
## Required Inputs
## Source Of Authority
## Process
## Validation
## Expected Outputs
## Human Approval Requirements
## Failure And Escalation Conditions
## Related Skills
## Version History
```
### Notes
The folder should contain a `README.md` listing all available skills.
Stable skill IDs should be used so agents and catalogs can reference them reliably.
---
## `templates/`
### Purpose
Contains reusable starting documents, schemas, forms, prompts, configuration examples, or other user-editable artifacts.
Examples:
```text
templates/project-brief.md
templates/pid-template.md
templates/repository.json
templates/email-workflow.md
templates/config.example.yaml
```
### Notes
Templates should:
* Clearly identify placeholders.
* Avoid real credentials or private information.
* Explain required versus optional fields.
* Include examples where useful.
* State what the user should customize.
Use obvious placeholders:
```text
{{ORGANIZATION_NAME}}
{{REPOSITORY_NAME}}
{{CANONICAL_URL}}
```
Avoid ambiguous placeholders such as:
```text
XXX
TBD
stuff-here
```
---
## `examples/`
### Purpose
Provides realistic examples of inputs, outputs, completed templates, configurations, or use cases.
Examples help users and AI systems understand what success looks like.
### Notes
Examples must not contain:
* Customer information.
* Personal information.
* Credentials.
* Proprietary company data.
* Confidential prompts or logs.
* Identifying operational information unless explicitly approved.
Mark synthetic examples clearly.
Example:
```markdown
> This example is synthetic and does not represent an actual company or customer.
```
---
## `scripts/`
### Purpose
Contains deterministic code used to validate, transform, materialize, publish, test, or operate the repository.
Examples:
```text
scripts/validate_repository.py
scripts/generate_repository_manifest.py
scripts/check_links.py
scripts/build_catalog_record.py
```
### `scripts/README.md`
Should explain:
* What each script does.
* Required runtime.
* Dependencies.
* Exact commands.
* Inputs and outputs.
* Whether the script modifies files.
* Whether human approval is required.
### Notes
AI reasoning should not be used where a small deterministic script can perform the operation more reliably.
Scripts should fail clearly and should avoid silently overwriting important files.
---
## `schemas/`
### Purpose
Contains formal schemas used to validate JSON, YAML, CSV, or other structured repository artifacts.
Likely future files include:
```text
schemas/repository.schema.json
schemas/skill.schema.json
schemas/catalog-record.schema.json
schemas/example-output.schema.json
```
### Notes
Use standard JSON Schema where practical.
Every schema should include:
* `$schema`
* `$id`
* `title`
* `description`
* `type`
* Required fields
* Property definitions
* Appropriate constraints
Example:
```json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://schemas.example.org/repository.schema.json",
"title": "AI-Ready Repository Manifest",
"type": "object",
"required": [
"schema_version",
"repository_id",
"title",
"canonical_url"
]
}
```
---
## `data/`
### Purpose
Contains public data files used by or produced for the repository.
Examples:
```text
data/sample-input.json
data/public-reference-list.csv
data/example-records.json
```
### Notes
Do not use this directory for:
* Production databases.
* Private customer data.
* Credentials.
* Personal identity documents.
* Large untracked binary files.
* Runtime state.
* Logs.
The `data/README.md` should describe:
* Data source.
* Data ownership.
* Date collected.
* License.
* Known limitations.
* Update frequency.
* Field definitions.
---
## `receipts/`
### Purpose
Contains sanitized records showing how a workflow, agent, script, or process was executed.
A receipt may document:
* Inputs used.
* Skill version.
* Script version.
* Model or tool used.
* Execution date.
* Validation results.
* Output location.
* Human approval.
* Known limitations.
### Notes
Receipts should support reproducibility and auditability without exposing private information.
Possible format:
```json
{
"receipt_id": "example-2026-001",
"executed_at": "YYYY-MM-DDTHH:MM:SSZ",
"skill_id": "example-skill",
"skill_version": "0.1.0",
"inputs": [],
"outputs": [],
"validation": {
"passed": true,
"checks": []
},
"human_approved": true
}
```
Sensitive execution logs should remain outside the public repository.
---
## `tasks/`
### Purpose
Contains bounded planning and execution records for repository work. AI agents should place proposed repository-structure plans here before making approved structural changes.
Each task folder should use a stable, descriptive identifier and may contain:
```text
tasks/task-id/
├── repository-structure-plan.md
├── implementation-receipt.md
└── validation-results.md
```
### Notes
Do not treat a task plan as approval. Record the approval state and the exact approved scope in the plan. Keep task records only when they are useful to maintainers, and remove or exclude transient, sensitive, or machine-local content.
---
## `tests/`
### Purpose
Contains tests for code, schemas, workflows, or generated artifacts.
Tests may verify:
* JSON validity.
* Required files.
* Broken links.
* Schema compliance.
* Stable identifiers.
* Matching versions.
* Script outputs.
* Presence of prohibited secrets.
* Expected folder structure.
### Notes
Even a documentation-oriented repository may benefit from lightweight validation tests.
Example checks:
```text
README.md exists
repository.json parses
repository.json passes schema validation
VERSION matches repository.json
LICENSE exists
No obvious credentials are present
All listed entrypoint files exist
All internal links resolve
```
---
## `assets/`
### Purpose
Contains images, diagrams, downloadable media, and other supporting assets.
Suggested structure:
```text
assets/
├── images/
├── diagrams/
├── screenshots/
└── downloads/
```
### Notes
Use descriptive file names and document the source and usage rights.
Good:
```text
ai-ready-repository-workflow.svg
example-data-flow.png
```
Avoid:
```text
image1.png
screenshot-final-final2.png
```
Add alt text wherever assets are embedded in Markdown.
---
# Git Hosting Platform Files
## Issue templates
### Purpose
Provides structured forms for repository issues and submissions. Use the directory and filenames supported by the selected Git hosting platform, such as `.github/ISSUE_TEMPLATE/` or `.gitea/ISSUE_TEMPLATE/`.
Recommended templates:
```text
bug-report.md
feature-request.md
documentation-correction.md
resource-submission.md
security-concern.md
```
Do not use a public issue template for confidential vulnerability reporting. `SECURITY.md` should provide a private reporting route.
### Example `bug-report.md`
```markdown
---
name: Bug Report
about: Report a reproducible problem
title: "[BUG] "
labels: bug
---
## What Happened
## What You Expected
## Steps To Reproduce
## Repository Version
## Relevant Files
## Additional Context
```
---
## Pull request template
### Purpose
Provides a checklist for proposed repository changes. Store it at the location supported by the selected Git hosting platform.
### Recommended Structure
```markdown
# Change Summary
Describe the change and why it is needed.
## Type Of Change
- [ ] Documentation
- [ ] Skill
- [ ] Template
- [ ] Script
- [ ] Schema
- [ ] Bug fix
- [ ] New feature
- [ ] Breaking change
## Validation
- [ ] README remains accurate.
- [ ] `repository.json` remains valid.
- [ ] `VERSION` was updated if required.
- [ ] `CHANGELOG.md` was updated.
- [ ] Links were checked.
- [ ] No credentials or private information were added.
- [ ] Examples are anonymized or synthetic.
- [ ] Relevant tests passed.
## Human Review Required
Describe any decisions that require explicit approval.
```
---
# Optional Files
## `CODE_OF_CONDUCT.md`
Add when the repository expects outside community participation.
Purpose:
* Establish acceptable behavior.
* Explain reporting mechanisms.
* Set expectations for respectful collaboration.
This may eventually be maintained once at the organization level and referenced by individual repositories.
---
## `GOVERNANCE.md`
Add when a repository has multiple maintainers, formal decision rights, community voting, or a long-lived standards process.
Possible sections:
```text
Maintainers
Decision authority
Change approval
Versioning
Dispute resolution
Deprecation
Succession
```
---
## `ROADMAP.md`
Add when the repository has a meaningful planned development path.
Use broad milestones rather than promises with unsupported dates.
---
## `ARCHITECTURE.md`
This may live at the root for a complex software repository or under `docs/architecture.md` for most repositories.
It should explain:
* Components.
* Boundaries.
* Data flows.
* Dependencies.
* Trust boundaries.
* Deployment model.
* Design decisions.
* Known tradeoffs.
---
## `requirements.txt`, `pyproject.toml`, `package.json`, or equivalent
Add only when the repository contains executable software.
Dependencies should be explicit and version-controlled.
---
## `.env.example`
Add when users must configure environment variables.
It should contain placeholder values only:
```text
API_URL=https://example.com
API_KEY=replace-with-your-key
```
Never place real secrets in `.env.example`.
Add `.env` to `.gitignore`.
---
## `.gitignore`
Add when the repository generates local files, runtime environments, secrets, build output, or editor metadata.
Possible entries:
```text
.env
.venv/
__pycache__/
*.pyc
node_modules/
dist/
build/
logs/
temp/
.DS_Store
Thumbs.db
```
---
# Minimum Repository Profiles
Not every repository needs the complete structure on day one. The template can support several repository profiles.
## Profile 1: Documentation Or Guide
Required:
```text
README.md
AUTHOR.md
repository-variables.json
repository.json
LICENSE
CHANGELOG.md
UPDATES.md
VERSION
CITATION.cff
docs/
```
Optional:
```text
CONTRIBUTING.md
skills.md
templates/
examples/
assets/
```
---
## Profile 2: Skill Or Workflow Repository
Required:
```text
README.md
AUTHOR.md
repository-variables.json
repository.json
LICENSE
CHANGELOG.md
UPDATES.md
VERSION
AGENTS.md
skills.md
skills/
templates/
examples/
```
Recommended:
```text
schemas/
scripts/
tests/
receipts/
CONTRIBUTING.md
SECURITY.md
```
---
## Profile 3: Software Or Automation Repository
Required:
```text
README.md
AUTHOR.md
repository-variables.json
repository.json
LICENSE
CHANGELOG.md
UPDATES.md
VERSION
CONTRIBUTING.md
SECURITY.md
AGENTS.md
docs/
scripts/
tests/
```
Recommended:
```text
schemas/
examples/
assets/
.env.example
.gitignore
dependency manifest
```
---
## Profile 4: Dataset Repository
Required:
```text
README.md
AUTHOR.md
repository-variables.json
repository.json
LICENSE
CHANGELOG.md
UPDATES.md
VERSION
CITATION.cff
data/
schemas/
docs/
```
Recommended:
```text
scripts/
tests/
examples/
SECURITY.md
```
The README and `data/README.md` should document provenance, collection methodology, limitations, update frequency, field definitions, and rights.
---
# Repository Creation Rules
## Naming
Use lowercase kebab-case:
```text
ai-email-campaign-workflow
portable-identity-document-template-open
inventory-reorder-assistant
```
Avoid:
```text
NewProject
test
misc
repo-1
AI_Tool_Final
```
The repository name should communicate what the resource helps someone do.
---
## Topics
Every public repository should receive topics from several dimensions where applicable:
```text
technology
business function
industry context
artifact type
```
Example:
```text
ai
agents
marketing
operators
workflow
skill
```
Hosting-platform topics and `repository.json` should remain aligned.
---
## Descriptions
The hosting-platform repository description should be one concise sentence derived from the `description` field in `repository.json`.
Example:
```text
A reusable AI workflow for turning source material into a reviewed report.
```
---
## Stable Identifiers
Create stable IDs for:
* Repository.
* Skills.
* Schemas.
* Major templates.
* Agents.
* Published datasets.
IDs should not be changed merely because a title is rewritten.
---
## Human And AI Entry Points
Every repository should answer two questions:
```text
Where should a human start?
Where should an AI agent start?
```
In most repositories, both begin with:
```text
README.md
```
The next retrieval step should be declared in `repository.json`.
---
## Secrets And Private Data
Never commit:
```text
Passwords
API keys
Private keys
Access tokens
CAPTCHA secrets
Customer information
Personal or regulated data
Production databases
Private logs
Session cookies
Unredacted business records
```
Use:
```text
.env.example
synthetic examples
redacted receipts
external secret managers
server environment variables
```
---
## Version Alignment
These should match:
```text
VERSION
repository.json
CITATION.cff
CHANGELOG.md
UPDATES.md
Git tag
hosting-platform release
```
The repository validation process should report any mismatch.
---
## Repository Completion Checklist
Before publishing a new repository:
```text
[ ] Repository name is clear and uses lowercase kebab-case.
[ ] Hosting-platform description is complete.
[ ] hosting-platform topics are assigned.
[ ] README explains the purpose, users, process, inputs, and outputs.
[ ] repository-variables.json contains verified identity, repository, rights,
profile, workflow defaults, and verification metadata.
[ ] AUTHOR.md contains verified author, publisher, maintainer, canonical URL, and adaptation guidance.
[ ] repository.json is complete and valid JSON.
[ ] repository_id is stable and unique.
[ ] Canonical URL is correct.
[ ] LICENSE matches repository.json.
[ ] VERSION matches repository.json.
[ ] CHANGELOG includes the initial release.
[ ] UPDATES.md distinguishes future notes from completed changes.
[ ] CITATION.cff matches the current title and version.
[ ] AGENTS.md is present when agent instructions are needed.
[ ] skills.md is present when skills are included.
[ ] Required skills, templates, scripts, and schemas are indexed.
[ ] Examples are synthetic or anonymized.
[ ] No secrets or private data are present.
[ ] Internal links resolve.
[ ] Required scripts execute successfully.
[ ] Tests pass.
[ ] The repository is ready for any configured catalog or search indexing.
```
---
# Recommended Initial Baseline
For the first implementation, every repository should begin with:
```text
README.md
AUTHOR.md
repository-variables.json
repository.json
LICENSE
CHANGELOG.md
UPDATES.md
VERSION
CONTRIBUTING.md
SECURITY.md
CITATION.cff
AGENTS.md
skills.md
docs/README.md
skills/README.md
templates/README.md
examples/README.md
scripts/README.md
schemas/README.md
receipts/README.md
tests/README.md
assets/README.md
```
Folders not relevant to the repository can later be removed, but beginning with the same structure will make repository creation, AI navigation, validation, and catalog generation consistent.
The governing rule is:
> Every repository should explain itself to a human, describe itself to a machine, identify its authoritative files, state how it may be reused, and provide a predictable path from discovery to implementation.