4.4 KiB
Implementation Guide
Choose A Profile
Select the smallest profile that accurately represents the repository:
- Documentation/guide: written standards, guides, playbooks, or research.
- Skill/workflow: AI skills, prompts, agents, workflows, or templates.
- Software/automation: executable code, services, applications, or operations.
- Dataset: versioned data with provenance, field definitions, and schemas.
Add profile-specific files only when they support real content or validation.
New Repository Workflow
- Choose a clear lowercase kebab-case repository name.
- Create human and AI entry points.
- Create
repository-variables.jsonusingtemplates/repository-variables.json.template. - Create
repository.jsonusingtemplates/repository.json.template. - If the repository contains recurring or numerous individual documents,
create
content-index.jsonusingtemplates/content-index.json.template; otherwise leave it absent. - Select and create profile-required documentation and folders.
- Add a verified license, version, and change record.
- Add host-specific contribution templates.
- Validate the repository.
Existing Repository Workflow
- Inspect all files, Git status, agent instructions, host configuration, manifests, tests, and documentation.
- Identify authoritative existing content and conventions.
- Classify each proposed file action as create, preserve, modify, move, deprecate, or leave absent.
- Use the skill's normal plan and approval gate unless the user explicitly authorizes immediate implementation.
- Merge useful content rather than replacing it mechanically.
- Reinspect for concurrent changes before writing.
- Validate and report deviations.
Required Entry Points
Every implementation should answer:
- Where should a human start?
- Where should an AI agent start?
- Which file is the authoritative machine-readable manifest?
- What should be retrieved next for the current task?
Declare these answers in repository.json.
Content Index Decision
Use content-index.json when the repository contains recurring updates,
articles, research entries, policies, guides, or enough individual documents
that listing them directly in repository.json would be cumbersome.
Keep repository.json focused on repository identity, capabilities, entry
points, and major collections. Put one compact record per document in
content-index.json, and keep each Markdown file as the authoritative complete
text.
For only three or four major documents, list them directly in
repository.json and omit the content index.
Validate:
- unique
content_idvalues; - unique repository-relative paths;
- existence of every indexed file;
- resolution of
related_content_ids; - declaration of
content-index.jsoninrepository.json.
Identity And Publication
At the beginning of a repository build, read repository-variables.json when
present. Treat its verified values as defaults, then confirm only absent,
conflicting, or explicitly unverified values:
- author or authors;
- publisher;
- maintainer;
- canonical repository URL;
- intended license.
Record stable verified values in repository-variables.json and the canonical
human-readable identity in AUTHOR.md. Keep both files aligned with
repository.json, CITATION.cff, and LICENSE. When adapting an existing
template, never inherit its author automatically.
Metadata Rules
- Use stable IDs.
- Use verified URLs.
- Keep optional unknown values null or omit them when allowed.
- Keep version values aligned.
- Keep host topics and manifest topics aligned.
- Update
updated_atwhen metadata meaningfully changes.
UPDATES.md Workflow
Use UPDATES.md for unapproved future notes, discoveries, and proposed improvements. Do not present its contents as committed roadmap work.
When implementing an item:
- confirm scope and authority;
- make and validate the change;
- update the version if required;
- record the released result in
CHANGELOG.md; - remove or mark the update item completed.
Validation
For this repository:
python scripts/validate_repository.py .
python -m unittest discover -s tests -p "test_*.py"
For another repository using the bundled skill audit:
python skills/structure-ai-ready-repository/scripts/audit_repository.py <repository> --profile <profile>
Structural validation should be supplemented with project-native tests and human review of accuracy.