Repository navigation
Description
Goal
Make reusable repository Markdown templates discoverable through a concise catalog and provide a canonical PR-description template for Cargo dependency updates.
Background
docs/templates/ is already the canonical location for reusable repository Markdown templates, and several skills and agents link to templates stored there. The directory has no index that explains each template's purpose, intended output, or the workflow that uses it.
Cargo dependency updates have a stable pull-request description shape: a short summary, the affected lockfile, validation results, and the complete verbatim output captured in an invocation-specific .tmp/<timestamp>-cargo-update.txt file. The fixed .tmp/cargo-update.txt path can be overwritten when concurrent update workflows share a working tree.
The workflow should derive one high-resolution timestamp (YYYYMMDD-HHMMSS) and use it at the beginning of both the branch and output filenames. This prevents capture-file collisions but does not make concurrent Git operations in one working tree safe.
GitHub-native contributor templates are separate: use .github/PULL_REQUEST_TEMPLATE/ only when GitHub's template picker is specifically required. This issue does not create that adapter.
Scope
In scope
- Add
docs/templates/README.mdas a concise catalog of every reusable template, including its purpose, intended destination, and primary workflow or agent. - Add
docs/templates/CARGO-DEPENDENCY-UPDATE-PR.mdas the canonical authoring template for Cargo dependency-update PR descriptions. - Update
docs/index.mdto link to the catalog and new template. - Update
update-dependenciesto use one high-resolution timestamp for branch and captured output paths, and link to the canonical template while requiring verbatim output insertion. - Update
create-markdown-templateto require catalog maintenance and record the GitHub-native-template exception. - Verify templates, skills, catalog links, Markdown, and spelling quality.
Out of scope
- Moving existing reusable templates from
docs/templates/. - Creating
.github/PULL_REQUEST_TEMPLATE/adapters. - Changing Cargo update behavior beyond timestamped capture naming and removing duplicated PR-body structure.
- Updating unrelated templates or historical records.
Acceptance criteria
-
docs/templates/README.mdexplains the directory and catalogs every current reusable template with purpose, intended destination, and primary workflow or agent. -
docs/templates/CARGO-DEPENDENCY-UPDATE-PR.mdprovides a reusable PR structure and requires the complete unedited captured Cargo output in a fencedtextblock. -
docs/index.mdlinks to the catalog and new template. -
update-dependenciesuses oneYYYYMMDD-HHMMSStimestamp at the beginning of the branch name and.tmp/<timestamp>-cargo-update.txtpath. -
update-dependencieslinks to the canonical template while keeping its mandatory process explicit. -
create-markdown-templaterequires catalog maintenance and documents the GitHub-native exception. - No second independent canonical PR-description template is created in
.github/PULL_REQUEST_TEMPLATE/. -
linter allexits successfully. - Manual verification confirms a contributor can discover and use the template without searching the skills tree.
Verification
- Run
linter all. - Read the catalog, identify the Cargo dependency-update template, and open it.
- Read
update-dependencieswith the template to confirm the process, reusable body, and timestamped output rule are unambiguous.
References
- Related PR: chore: update dependencies #2201
- Related ADR:
docs/adrs/20260821172000_establish_ai_agent_context_capability_and_portability_governance.md
Activity
docs(issues): add issue specification for #2203
Merge #2204: docs(issues): [#2203] add template catalog specification
docs(templates): [torrust#2203] catalog templates and add Cargo updat…
Merge torrust#2205: docs(templates): [torrust#2203] catalog templates…
chore(issues): archive closed issue specs torrust#1586, torrust#1588, t…
chore(issues): archive closed issue specs torrust#1586, torrust#1588, t…
Merge #2207: chore(issues): archive closed issue specifications