diff --git a/prompts/CODE_STYLEGUIDE.md b/prompts/CODE_STYLEGUIDE.md index ba12807..2e24701 100644 --- a/prompts/CODE_STYLEGUIDE.md +++ b/prompts/CODE_STYLEGUIDE.md @@ -1,15 +1,6 @@ -# sneak/styleguide +Version: 2026-02-22 -The following is the first released version of my personal code styleguide. -There are many like it, but this one is mine. - -Only the Go portion is "complete". The others are mostly just placeholders. - -Feedback and suggestions are not only welcome but explicitly encouraged. - -[sneak@sneak.berlin](mailto:sneak@sneak.berlin) - -# My 2024 Code Styleguide +# Code Styleguide ## All diff --git a/prompts/CODE_STYLEGUIDE_GO.md b/prompts/CODE_STYLEGUIDE_GO.md index 995032b..bb43528 100644 --- a/prompts/CODE_STYLEGUIDE_GO.md +++ b/prompts/CODE_STYLEGUIDE_GO.md @@ -1,3 +1,5 @@ +Version: 2026-02-22 + # Golang 1. Try to hard wrap long lines at 77 characters or less. diff --git a/prompts/CODE_STYLEGUIDE_JS.md b/prompts/CODE_STYLEGUIDE_JS.md index dfd3669..6d22401 100644 --- a/prompts/CODE_STYLEGUIDE_JS.md +++ b/prompts/CODE_STYLEGUIDE_JS.md @@ -1,3 +1,5 @@ +Version: 2026-02-22 + # JavaScript / ECMAScript / ES6 1. Use `const` for everything. If you need to reassign, use `let`. Never use diff --git a/prompts/CODE_STYLEGUIDE_PYTHON.md b/prompts/CODE_STYLEGUIDE_PYTHON.md index d12f0fe..454fe53 100644 --- a/prompts/CODE_STYLEGUIDE_PYTHON.md +++ b/prompts/CODE_STYLEGUIDE_PYTHON.md @@ -1,3 +1,5 @@ +Version: 2026-02-22 + # Python 1. Format all code with `black`, with four space indents. diff --git a/prompts/EXISTING_REPO_CHECKLIST.md b/prompts/EXISTING_REPO_CHECKLIST.md index 7a9a416..0efd7da 100644 --- a/prompts/EXISTING_REPO_CHECKLIST.md +++ b/prompts/EXISTING_REPO_CHECKLIST.md @@ -1,7 +1,7 @@ # Existing Repo Checklist Use this checklist when beginning work in a repo that may not yet conform to our -[development policies](https://git.eeqj.de/sneak/prompts/raw/branch/main/prompts/REPO_POLICIES.md). +[repository policies](https://git.eeqj.de/sneak/prompts/raw/branch/main/prompts/REPO_POLICIES.md). Work on a feature branch. Check each item and fix any gaps before proceeding with your task. diff --git a/prompts/GO_HTTP_SERVER_CONVENTIONS.md b/prompts/GO_HTTP_SERVER_CONVENTIONS.md index 53bc824..d3f860f 100644 --- a/prompts/GO_HTTP_SERVER_CONVENTIONS.md +++ b/prompts/GO_HTTP_SERVER_CONVENTIONS.md @@ -1,3 +1,5 @@ +Version: 2026-02-22 + # Go HTTP Server Conventions This document defines the architectural patterns, design decisions, and diff --git a/prompts/REPO_POLICIES.md b/prompts/REPO_POLICIES.md index 3f861cb..57f380d 100644 --- a/prompts/REPO_POLICIES.md +++ b/prompts/REPO_POLICIES.md @@ -1,7 +1,19 @@ -# Development Policies - Version: 2026-02-22 +# Repository Policies + +This document covers repository structure, tooling, and workflow standards. Code +style conventions are in separate documents: + +- [Code Styleguide](https://git.eeqj.de/sneak/prompts/raw/branch/main/prompts/CODE_STYLEGUIDE.md) + (general, bash, Docker) +- [Go](https://git.eeqj.de/sneak/prompts/raw/branch/main/prompts/CODE_STYLEGUIDE_GO.md) +- [JavaScript](https://git.eeqj.de/sneak/prompts/raw/branch/main/prompts/CODE_STYLEGUIDE_JS.md) +- [Python](https://git.eeqj.de/sneak/prompts/raw/branch/main/prompts/CODE_STYLEGUIDE_PYTHON.md) +- [Go HTTP Server Conventions](https://git.eeqj.de/sneak/prompts/raw/branch/main/prompts/GO_HTTP_SERVER_CONVENTIONS.md) + +--- + - Cross-project documentation (such as this file) must include a `Version: YYYY-MM-DD` line near the top so it can be kept in sync with the authoritative source as policies evolve. @@ -143,7 +155,8 @@ Version: 2026-02-22 - New repos must contain at minimum: - `README.md`, `.git`, `.gitignore`, `.editorconfig` - - `REPO_POLICIES.md` (copy from the `prompts` repo) + - `LICENSE`, `REPO_POLICIES.md` (copy from the `prompts` repo) + - `Makefile` - `Dockerfile`, `.dockerignore` - `.gitea/workflows/check.yml` - Go: `go.mod`, `go.sum`, `.golangci.yml`