From 9af6a7639e807788e6f07f0fa9364be2b2912427 Mon Sep 17 00:00:00 2001 From: Dasemu Date: Sun, 18 Oct 2026 11:41:26 +0200 Subject: [PATCH] chore: bootstrap Claude setup Co-Authored-By: Claude Sonnet 5 --- .claude/bootstrap-version | 1 + .claude/settings.json | 25 ++++++++++++++ .env.example | 2 ++ .github/workflows/ci.yml | 17 +++++++++ .github/workflows/version.yml | 65 +++++++++++++++++++++++++++++++++++ CLAUDE.md | 27 +++++++++++++++ LESSONS.md | 6 ++++ README.md | 4 +++ VERSION | 1 + docs/.gitkeep | 0 10 files changed, 148 insertions(+) create mode 100644 .claude/bootstrap-version create mode 100644 .claude/settings.json create mode 100644 .env.example create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/version.yml create mode 100644 CLAUDE.md create mode 100644 LESSONS.md create mode 100644 README.md create mode 100644 VERSION create mode 100644 docs/.gitkeep diff --git a/.claude/bootstrap-version b/.claude/bootstrap-version new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/.claude/bootstrap-version @@ -0,0 +1 @@ +2 diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..5a80c45 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,25 @@ +{ + "hooks": { + "PostToolUse": [ + { + "matcher": "Edit|Write", + "hooks": [ + { + "type": "command", + "command": "echo 'No formatter/linter configured yet for this repo; skipping.'" + } + ] + } + ], + "Stop": [ + { + "hooks": [ + { + "type": "command", + "command": "echo 'No test runner or linter configured yet for this repo; nothing to check.'" + } + ] + } + ] + } +} diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..46ffa08 --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +# No environment variables are used yet. +# Add them here (names only, no real values) as soon as the code reads any. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5584a56 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +name: CI + +on: + pull_request: + branches: [development] + push: + branches: [development, main] + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: No lint/test tooling configured yet + run: | + echo "This repository has no source code, package manager, linter, or test runner yet." + echo "Add real lint/test steps here once the stack is chosen." diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml new file mode 100644 index 0000000..0d07108 --- /dev/null +++ b/.github/workflows/version.yml @@ -0,0 +1,65 @@ +name: Version bump + +on: + push: + branches: [development, main] + +permissions: + contents: write + +jobs: + bump: + if: github.actor != 'github-actions[bot]' && !contains(github.event.head_commit.message, '[skip ci]') + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Configure git + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + - name: Bump version + id: bump + run: | + set -e + CURRENT=$(cat VERSION) + MAJOR=$(echo "$CURRENT" | cut -d. -f1) + MINOR=$(echo "$CURRENT" | cut -d. -f2) + PATCH=$(echo "$CURRENT" | cut -d. -f3) + + if [ "${{ github.ref_name }}" = "development" ]; then + PATCH=$((PATCH + 1)) + elif [ "${{ github.ref_name }}" = "main" ]; then + # Did this push bring in commits that all come from development + # (i.e. an approved development -> main PR merge)? + PARENTS=$(git log -1 --pretty=%P HEAD) + PARENT_COUNT=$(echo "$PARENTS" | wc -w) + if [ "$PARENT_COUNT" -gt 1 ] && [ "${{ github.event.head_commit.message }}" != "" ] && git log -1 --pretty=%B | grep -qi "development"; then + MINOR=$((MINOR + 1)) + PATCH=0 + else + PATCH=$((PATCH + 1)) + fi + fi + + NEW_VERSION="$MAJOR.$MINOR.$PATCH" + echo "$NEW_VERSION" > VERSION + echo "new_version=$NEW_VERSION" >> "$GITHUB_OUTPUT" + + - name: Commit version bump + run: | + git add VERSION + git commit -m "chore(release): v${{ steps.bump.outputs.new_version }} [skip ci]" + git push origin HEAD:${{ github.ref_name }} + + - name: Merge main back into development + if: github.ref_name == 'main' + run: | + git fetch origin development + git checkout development + git merge --no-edit main + git push origin development diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..e97e38e --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,27 @@ +# CLAUDE.md + +## Overview +`faust-vn` is a new, currently empty repository. No source code, language, or +stack has been chosen yet. Update this file once the project structure exists. + +## Commands +No package manager, test runner, linter, or build tool is set up yet. Add the +actual commands here as soon as the stack is chosen. + +## Architecture +Not applicable yet — no code exists. See `docs/` for any design notes once +they are written. + +## Conventions +Follow the global `~/.claude/CLAUDE.md` conventions (Conventional Commits, +English in the repo, minimal diffs) until project-specific conventions are +needed. + +## Workflow quirks +None yet. + +## Deployment +Not set up yet. If this becomes a web service, use the `web-deploy` skill. + +## Gotchas +None yet. diff --git a/LESSONS.md b/LESSONS.md new file mode 100644 index 0000000..8db2d77 --- /dev/null +++ b/LESSONS.md @@ -0,0 +1,6 @@ +# LESSONS.md + +Recurring mistakes and how to avoid them. Read before starting a task; add an +entry whenever the same mistake happens twice. + +(No entries yet.) diff --git a/README.md b/README.md new file mode 100644 index 0000000..ca964b5 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# faust-vn + +Project scaffold — no code yet. See `CLAUDE.md` for working conventions and +`docs/` for documentation as it is added. diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..6e8bf73 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.1.0 diff --git a/docs/.gitkeep b/docs/.gitkeep new file mode 100644 index 0000000..e69de29