Add /init slash command to bootstrap repository context for sessions

Resolved 💬 2 comments Opened Apr 27, 2025 by tomc98 Closed Aug 7, 2025

Background

When starting work in a codebase, it’s easy to lose track of project-specific conventions, best practices, or architecture nuances. Developers often need to manually load or reference documentation, which interrupts workflow and onboarding.

Proposal

Introduce a Git-based slash command, /init, that auto-generates a “repository context” file. This file will capture:

  • Key architecture diagrams or links
  • Coding standards and linting rules
  • Important environment variables or config snippets
  • Common git workflows and branch/tagging conventions
  • Links to core documentation (e.g. ADRs, API specs)

Once created, this context file is automatically loaded into your editor’s AI assistant context (or any session tool) whenever you open the repo.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗