diff --git a/CLAUDE.md b/CLAUDE.md index 5d50084..bf8345b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -23,6 +23,13 @@ I'm an engineer. I know what I want. You must not propose next actions, unless I - Source comments always describe the current functions of the code, never document the history. - Unusual coding diverging from upstream documentation can be commented after the end-user approval. +### Translation + +You will ocassionally be asked to translate a program from one language to another, or one framework to a different one. Follow the rules below: + +- Never translate directly, always apply language established conventions and patterns. +- Assess target established convention. Ask if it does not exist. + ### Terraform - Do not create passthrough output variables, e.g. in an object or modules that take an input, do not expose the exact same value as output. @@ -30,7 +37,7 @@ I'm an engineer. I know what I want. You must not propose next actions, unless I # Markdown style - Do not put `---` directly before headers `#` of any level. -- Always sparate lists with a blank line from the preceeding paragraph. +- Always separate lists with a blank line from the preceding paragraph. ## All created files diff --git a/install.py b/install.py new file mode 100755 index 0000000..3d82be7 --- /dev/null +++ b/install.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Installation script for the CLAUDE.md file. +""" + +import os +import sys +import shutil +import pathlib + +# Find claude directory +if sys.platform == "win32": + claude_dir = pathlib.Path(os.environ["USERPROFILE"]) / ".claude" +else: + claude_dir = pathlib.Path(os.environ["HOME"]) / ".claude" + +print(f"Installing CLAUDE.md to {claude_dir}/CLAUDE.md") + +os.makedirs(claude_dir, exist_ok=True) +shutil.copy("CLAUDE.md", claude_dir / "CLAUDE.md")