Add installation script for CLAUDE.md
This commit is contained in:
@@ -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.
|
- 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.
|
- 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
|
### 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.
|
- 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
|
# Markdown style
|
||||||
|
|
||||||
- Do not put `---` directly before headers `#` of any level.
|
- 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
|
## All created files
|
||||||
|
|
||||||
|
|||||||
Executable
+21
@@ -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")
|
||||||
Reference in New Issue
Block a user