An Open Proposal to the Community

What if any Git repository could become more than a place to host code?

What if a repository could also serve as a blog, a book, a research paper, a dataset, a knowledge collection, or a structured resource that both humans and AI agents can discover, read, understand, and reuse?

We believe Git repositories have the potential to become a universal foundation for knowledge publishing and distribution.

Git has already provided a powerful foundation for versioning, collaboration, traceability, and distributed ownership. Yet most Git repositories are still primarily treated as software development resources. Their content, structure, and knowledge value are not always accessible or discoverable beyond the development workflow.

We propose the GitData Repository Publication Protocol (GRPP) as a way to extend this capability.

At the heart of the proposal is a simple idea: introduce a lightweight, declarative .gitdata/ directory that allows any Git repository to describe its identity, content structure, and publication preferences.

A publication engine can then interpret these declarations and transform the repository into a structured digital publication.

This is an early proposal, not a finalized industry standard. We are sharing it openly to invite developers, researchers, publishers, and the broader Git community to challenge our assumptions, explore alternative approaches, and help shape the protocol.

We welcome disagreement as much as support. The goal is not simply to validate an idea, but to make the protocol better through collective discussion and practical experimentation.


1. Motivation: Beyond Code Hosting

Git has become one of the most important foundations of modern software development.

Its core capabilities — version control, branching, merging, distributed collaboration, and traceability — have made it possible for developers around the world to work together on shared projects.

But the value of Git is not limited to source code.

A Git repository can contain almost any form of structured digital knowledge:

  • Articles, essays, and documentation
  • Books and educational materials
  • Academic papers and research projects
  • Datasets and data products
  • Machine learning models and experiments
  • Skills, prompts, agents, and workflows
  • Software packages, applications, and templates

These resources share several fundamental characteristics: they evolve over time, require organization, benefit from versioning, and need to be shared and reused.

Git already provides many of the underlying capabilities needed to manage them. What is missing is a common way to describe how repository content should be interpreted, organized, and published.

Today, publishing a Git repository as a readable and discoverable digital resource often requires a separate website framework, a custom build process, or a platform-specific implementation.

This creates unnecessary fragmentation between content creation, version management, and publication.

We believe a Git repository should not need to become something else in order to be published.

Instead, publication should become a natural capability of the repository itself.

2. The Core Idea

The GitData Repository Publication Protocol introduces a lightweight declaration layer to Git repositories.

The .gitdata/ directory serves as the protocol entry point.

It allows a repository to declare three fundamental things:

Identity

What is this repository?

For example, is it a personal profile, a blog, a book, a research project, a dataset, or a software package?

Structure

What does the repository contain, and how are its contents organized and related?

For example, which Markdown files are articles, which directories contain chapters, and which resources are datasets, code, or experimental results?

Publication

How should the repository be presented and published?

For example, what is its title, description, language, navigation structure, or preferred presentation layout?

The protocol does not require repositories to adopt a proprietary storage system or move their content to GitData.

It aims to work with existing Git repositories and preserve their existing structures wherever possible.

The proposed architecture is:

Any Git Repository → .gitdata/ → Publication Engine → Digital Publication

GitData provides an implementation of the protocol, while the protocol itself is intended to remain open to independent implementations.

3. Design Principles

The protocol is guided by the following principles.

3.1 Git-native

Git remains the foundation for content storage, versioning, history, and collaboration.

The protocol extends Git’s capabilities rather than replacing them.

3.2 Declarative, Not Prescriptive

A repository should describe what it is and how its content should be interpreted, without being forced into a rigid directory structure.

The protocol should favor automatic discovery and sensible defaults, while allowing explicit configuration when needed.

3.3 Open and Platform-independent

The protocol should not depend on a specific Git hosting provider.

Repositories hosted on GitHub, GitLab, GitData, or self-hosted Git services should be able to use the same protocol.

3.4 Minimal Configuration

A repository should require as little additional configuration as possible.

The goal is to make publication accessible without introducing another complex content management system.

3.5 Versioned and Reproducible

A publication should be traceable to a specific repository state.

Git history provides the foundation for understanding how content evolves and reproducing a previous version of a publication.

3.6 Human- and Agent-readable

Repository structures and publication metadata should be understandable by both humans and AI agents.

The protocol should make knowledge easier to discover, interpret, reference, and reuse.

3.7 Open Extensibility

The protocol should support new repository types, content formats, assets, and presentation methods without requiring changes to its core principles.

4. Repository Types

A repository’s type describes its primary identity and purpose, not merely the file formats it contains.

We propose an extensible Repository Type Registry.

Initial repository types may include:

Category Types
Creator profile, portfolio
Publication blog, book, documentation, research, journal, course, newsletter
Engineering code, package, app, template, api
Data & AI dataset, model, skill, agent, workflow, benchmark
Project project, experiment, collection

The initial implementation may prioritize:

profile, blog, book, documentation, research, code, dataset, model, skill, agent, workflow, and course.

These types are not intended to impose rigid boundaries on repository content.

For example, a research repository may contain a paper, datasets, source code, models, figures, and experimental workflows.

A dataset may exist as an asset inside a research repository, or as an independent repository with type: dataset.

The distinction is important:

  • Type describes what a repository is.
  • Layout describes how it is presented.
  • Content describes what it contains.
  • Assets describe the resources it includes or references.

5. The .gitdata/ Directory

The .gitdata/ directory is the entry point of the protocol.

Our design goal is to keep it minimal.

A proposed structure:

.gitdata/
├── publication.yml       # Required
├── navigation.yml        # Optional
├── theme.yml             # Optional
└── publishing.yml        # Optional

The only required file in the initial design is publication.yml.

Other configuration files are optional and should only be introduced when a repository needs them.

5.1 Example: publication.yml

version: 1
type: blog

publication:
  title: "My Knowledge Journal"
  description: "Writing about AI, Knowledge and Research"
  language: en

author:
  id: taosheng
  name: Taosheng Shi
  avatar: assets/avatar.jpg

content:
  articles: articles/**/*.md
  pages: pages/**/*.md

layout:
  preset: personal-blog

This example illustrates the proposed configuration model, not a finalized schema.

The protocol should define clear defaults and allow the publication engine to discover common content structures automatically.

Explicit configuration should override automatic discovery when necessary.

5.2 Repository Structure Examples

Profile Repository

A personal profile should be an independent repository.

Its README.md can serve as the primary entry point for personal information, experience, research interests, selected work, and external links.

my-profile/
├── .gitdata/
│   └── publication.yml
├── README.md
└── assets/
    ├── avatar.jpg
    └── banner.png

The profile repository represents a creator’s identity. Other repositories can reference that identity through a stable Creator ID.

Blog Repository

A blog is one repository containing multiple articles.

my-blog/
├── .gitdata/
│   └── publication.yml
├── README.md
├── articles/
│   ├── article-01.md
│   └── article-02.md
└── assets/

Each article is a content object within the repository. It does not need to become a separate repository.

Book Repository

A book or documentation collection can be published from an independent repository.

my-book/
├── .gitdata/
│   └── publication.yml
├── README.md
├── chapters/
│   ├── 01-introduction.md
│   └── 02-practice.md
└── assets/

The repository maintains the book’s chapters, assets, and version history as one coherent publication.

Research Repository

A research project should bring its paper and supporting resources together.

ai-research/
├── .gitdata/
│   └── publication.yml
├── README.md
├── paper.md
├── datasets/
├── code/
├── experiments/
├── figures/
└── references.bib

The paper, data, code, and experimental materials belong to the same research context and can evolve together.

These examples illustrate possible conventions. The protocol should not require every repository to follow these exact directory structures.

6. Publication Engine

The protocol describes how a repository declares its publication identity and structure.

A Publication Engine interprets those declarations and turns repository content into a usable publication.

A proposed engine architecture includes:

  1. Repository Adapter — Connects to GitHub, GitLab, GitData, and self-hosted Git services.
  2. Configuration Parser — Reads and validates .gitdata/ configuration.
  3. Content Parser — Processes Markdown, MDX, LaTeX, Jupyter Notebooks, and other supported formats.
  4. Asset Resolver — Identifies and resolves images, datasets, code, models, and other resources.
  5. Validator — Checks configuration, content structure, and resource references.
  6. Normalizer — Converts repository content into a unified internal content model.
  7. Renderer — Produces readable digital publications using appropriate layouts.
  8. Publisher — Manages publication status, versions, and access policies.
  9. Discovery Integration — Makes publications and relevant events discoverable.

The engine should remain independent of the repository’s original Git hosting provider.

The same repository should be interpretable by different compatible publication engines.

7. Creator, Repository, Publication, and Asset

To support different types of publications, we propose distinguishing four core concepts.

Creator

The individual or organization responsible for creating or maintaining knowledge resources.

A Creator has a stable identity that can be referenced across repositories.

Repository

The Git-based production and versioning unit.

A Creator may own or maintain multiple repositories.

Publication

The published expression of repository content.

A repository may have one primary publication, while its content can be presented in different ways over time.

Asset

A reusable knowledge or production resource, such as an article, dataset, code module, model, figure, skill, or workflow.

A publication can reference multiple assets, and the same asset may be referenced by multiple publications.

This separation allows identity, source material, publication, and reusable resources to evolve independently while remaining connected.

8. Discovery and Distribution

Publishing a repository is only part of the problem.

Knowledge also needs to be discovered, followed, referenced, and reused.

We envision a discovery network built around Creators, Publications, Repositories, and Assets.

A Feed can help people discover new publications and meaningful updates across different repository types.

However, not every Git commit should automatically become a new publication.

We propose distinguishing three events:

Publish

A content object is intentionally made public as a publication.

Release

A formal version of a publication or resource is made available.

Commit

A change is recorded in the repository’s version history.

These events have different meanings and should not be treated as interchangeable.

A Feed may include publication events, release events, and selected meaningful repository activities.

It should reference the original content and version rather than unnecessarily duplicating the underlying content.

We also believe discovery should preserve human intent.

People should remain in control of what they follow, save, subscribe to, or pay for.

AI agents may help users discover and process resources according to their preferences, but should not independently make these decisions on their behalf.

9. Compatibility and Evolution

The protocol should evolve without fragmenting the Git ecosystem.

Several questions need further exploration:

  • How should different protocol versions remain compatible?
  • How should unknown repository types and extensions be handled?
  • How should a publication reference a specific commit, branch, or release?
  • How should private repositories and access-controlled publications work?
  • How should large files and external assets be resolved?
  • How should multiple publication engines interpret the same repository consistently?

We believe these questions should be addressed through practical implementations and community discussion.

The protocol should remain lightweight at its core while allowing the ecosystem around it to grow.

10. Roadmap

The proposed development path is:

Phase 1 — Core Protocol

Define the .gitdata/ entry point, basic metadata, repository types, and content discovery conventions.

Phase 2 — Reference Implementation

Build the TypeScript Publication Engine and support the initial repository types.

Phase 3 — Publication Experience

Provide readable publication interfaces for profiles, blogs, books, research, and documentation.

Phase 4 — Discovery Network

Connect Creators, Publications, Repositories, and Assets through discovery and distribution capabilities.

Phase 5 — Ecosystem and Interoperability

Encourage independent implementations, integrations, and broader adoption across Git-based platforms.

This roadmap is a working direction, not a commitment to a fixed release schedule.


Help Shape the Protocol

This proposal is an invitation to the community.

We believe Git repositories can become more than places to host and manage code. They can serve as a foundation for publishing, organizing, versioning, and distributing knowledge — for both humans and AI agents.

But we don’t assume we’ve got the design right.

We want to hear from developers, researchers, publishers, open-source maintainers, and anyone building with Git.

In particular:

  • What assumptions in this proposal do you disagree with?
  • What use cases are we missing?
  • Is .gitdata/ the right approach?
  • Should repository types be standardized, or should they remain entirely extensible?
  • How should this protocol work across different Git hosting platforms?
  • What would make you willing to adopt it?

You don’t need to agree with the proposal to participate. Critical feedback, alternative designs, and practical use cases are all welcome.

Don’t just tell us whether you like the idea. Help us make it better.

Join the discussion in KenCloud Space:

Discuss the GitData Repository Publication Protocol

Let’s make every Git repository publishable — together.