Files
repo-template-OPEN/docs/implementation.md
T

93 lines
3.1 KiB
Markdown
Raw Permalink Normal View History

2026-07-23 14:13:45 -06:00
# 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
1. Choose a clear lowercase kebab-case repository name.
2. Create human and AI entry points.
3. Create `repository.json` using `templates/repository.json.template`.
4. Select and create profile-required documentation and folders.
5. Add a verified license, version, and change record.
6. Add host-specific contribution templates.
7. Validate the repository.
## Existing Repository Workflow
1. Inspect all files, Git status, agent instructions, host configuration, manifests, tests, and documentation.
2. Identify authoritative existing content and conventions.
3. Classify each proposed file action as create, preserve, modify, move, deprecate, or leave absent.
4. Use the skill's normal plan and approval gate unless the user explicitly authorizes immediate implementation.
5. Merge useful content rather than replacing it mechanically.
6. Reinspect for concurrent changes before writing.
7. 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`.
## Identity And Publication
At the beginning of a repository build, confirm:
- author or authors;
- publisher;
- maintainer;
- canonical repository URL;
- intended license.
Record the verified values in `AUTHOR.md` and keep `repository.json`, `CITATION.cff`, and `LICENSE` aligned. 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_at` when 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:
1. confirm scope and authority;
2. make and validate the change;
3. update the version if required;
4. record the released result in `CHANGELOG.md`;
5. remove or mark the update item completed.
## Validation
For this repository:
```text
python scripts/validate_repository.py .
python -m unittest discover -s tests -p "test_*.py"
```
For another repository using the bundled skill audit:
```text
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.