Skip to content

docs(templates): catalog templates and add Cargo update PR template #2203

Closed

Description

@josecelano

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.md as a concise catalog of every reusable template, including its purpose, intended destination, and primary workflow or agent.
  • Add docs/templates/CARGO-DEPENDENCY-UPDATE-PR.md as the canonical authoring template for Cargo dependency-update PR descriptions.
  • Update docs/index.md to link to the catalog and new template.
  • Update update-dependencies to 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-template to 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.md explains the directory and catalogs every current reusable template with purpose, intended destination, and primary workflow or agent.
  • docs/templates/CARGO-DEPENDENCY-UPDATE-PR.md provides a reusable PR structure and requires the complete unedited captured Cargo output in a fenced text block.
  • docs/index.md links to the catalog and new template.
  • update-dependencies uses one YYYYMMDD-HHMMSS timestamp at the beginning of the branch name and .tmp/<timestamp>-cargo-update.txt path.
  • update-dependencies links to the canonical template while keeping its mandatory process explicit.
  • create-markdown-template requires catalog maintenance and documents the GitHub-native exception.
  • No second independent canonical PR-description template is created in .github/PULL_REQUEST_TEMPLATE/.
  • linter all exits 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-dependencies with the template to confirm the process, reusable body, and timestamped output rule are unambiguous.

References

Activity

  1. self-assigned this
    on Sep 11, 2026
  2. added 3 commits that reference this issue on Sep 11, 2026
  3. added 4 commits that reference this issue on Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions