Customization
Customization
Section titled “Customization”This repository is designed to be forked and tailored to your team’s needs. This guide explains which files to change, how to keep your fork in sync with upstream, and how to distribute customized standards to your projects.
Forking the Repository
Section titled “Forking the Repository”- Fork the repository on GitHub (or clone it into your own organization).
- Clone your fork locally:
git clone https://github.com/<your-org>/coding-standards.gitcd coding-standards- Add the upstream remote so you can pull future updates:
git remote add upstream https://github.com/c65llc/coding-standards.gitWhat to Customize
Section titled “What to Customize”Standards Documents
Section titled “Standards Documents”The files under standards/ are the core of what AI agents reference:
| Path | Purpose |
|---|---|
standards/architecture/ | Architecture patterns (Clean Architecture, SOLID) |
standards/languages/ | Language-specific conventions and tooling |
standards/process/ | Git workflow, documentation, code review |
standards/shared/core-standards.md | Cross-cutting rules (error handling, testing thresholds) |
Edit these files to match your team’s conventions. For example, you might change the required test coverage thresholds in core-standards.md, or add a new language file.
Agent Configuration Templates
Section titled “Agent Configuration Templates”Each AI agent has a configuration template in standards/agents/:
standards/agents/copilot/.github/copilot-instructions.mdstandards/agents/aider/.aiderrcstandards/agents/codex/.codexrc
These templates are what scripts/setup.sh copies into your projects. Customize them to reference your modified standards.
.cursorrules
Section titled “.cursorrules”The .cursorrules file at the repository root is copied directly into projects. Update it whenever you add or rename standards files.
Gemini Configuration
Section titled “Gemini Configuration”The .gemini/GEMINI.md file acts as the system prompt for Gemini CLI. Update the project mission, tech stack, and coding standards sections to reflect your team’s practices.
Cursor Commands
Section titled “Cursor Commands”The .cursor/commands/ directory contains Cursor slash commands (/pr, /review, /address_feedback). You can add new commands or modify existing ones to fit your workflow.
Keeping Your Fork Updated
Section titled “Keeping Your Fork Updated”Periodically merge changes from the upstream repository:
# Fetch upstream changesgit fetch upstream
# Merge upstream main into your fork's maingit checkout maingit merge upstream/main
# Resolve any conflicts, then pushgit push origin mainIf you prefer a rebase workflow:
git fetch upstreamgit checkout maingit rebase upstream/maingit push origin main --force-with-leaseHandling Conflicts
Section titled “Handling Conflicts”Conflicts typically occur in files you have customized. When resolving:
- Keep your customizations where they differ intentionally.
- Accept upstream changes for new features or bug fixes you want.
- Review new standards files that upstream has added and decide whether to adopt them.
Distributing Standards to Your Team
Section titled “Distributing Standards to Your Team”As a Submodule
Section titled “As a Submodule”Point your projects at your fork instead of the upstream:
git submodule add https://github.com/<your-org>/coding-standards.git .standards.standards/scripts/setup.shAs a Template Repository
Section titled “As a Template Repository”Mark your fork as a GitHub template repository. New projects created from the template automatically include your customized standards.
Via the Installer
Section titled “Via the Installer”Modify install.sh to point at your fork’s URL, then share the one-liner with your team:
curl -fsSL https://raw.githubusercontent.com/<your-org>/coding-standards/main/install.sh | bashAdding Project-Specific Standards
Section titled “Adding Project-Specific Standards”If a single project needs extra rules beyond what the shared standards cover:
- Create a file like
standards/languages/15_project_specific.md. - Update
.cursorrulesto reference it. - Commit to the project repository (not the standards repo) if the rule only applies to that project.
This keeps the shared standards clean while allowing per-project overrides.
- Start small. Fork the repo, change only what you need, and expand over time.
- Document deviations. If you intentionally diverge from upstream, note the reason in a commit message or in the file itself.
- Automate sync. Set up a scheduled GitHub Action to check for upstream updates and open a PR on your fork.
- Version your fork. Use git tags so projects can pin to a stable version of your customized standards.