Browse Source

.claude settings

Yuki Takei 2 months ago
parent
commit
945ad1ef46
3 changed files with 45 additions and 1 deletions
  1. 17 0
      .claude/settings.json
  2. 27 0
      .claude/skills/learned/.gitkeep
  3. 1 1
      .gitignore

+ 17 - 0
.claude/settings.json

@@ -0,0 +1,17 @@
+{
+  "hooks": {
+    "PostToolUse": [
+      {
+        "matcher": "Write|Edit",
+        "hooks": [
+          {
+            "type": "command",
+            "command": "if [[ \"$FILE\" == */apps/app/* ]]; then REPO_ROOT=\"${FILE%%/apps/app/*}\"; cd \"$REPO_ROOT/apps/app\" && pnpm run lint:biome:fix \"${FILE#$REPO_ROOT/apps/app/}\"; fi",
+            "timeout": 30,
+            "description": "Auto-format edited files in apps/app with Biome"
+          }
+        ]
+      }
+    ]
+  }
+}

+ 27 - 0
.claude/skills/learned/.gitkeep

@@ -0,0 +1,27 @@
+# Learned Skills Directory
+
+This directory contains Skills learned from development sessions using the `/learn` command.
+
+Each learned skill is automatically applied when working on related code based on its description.
+
+## Structure
+
+```
+learned/
+├── {topic-name-1}/
+│   └── SKILL.md
+├── {topic-name-2}/
+│   └── SKILL.md
+└── {topic-name-3}/
+    └── SKILL.md
+```
+
+## How Skills Are Created
+
+Use the `/learn` command after completing a feature or solving a complex problem:
+
+```
+/learn
+```
+
+Claude will extract reusable patterns and save them as Skills in this directory.

+ 1 - 1
.gitignore

@@ -37,7 +37,7 @@ yarn-error.log*
 
 # IDE, dev #
 .idea
-.claude
+**/.claude/settings.local.json
 *.orig
 *.code-workspace
 *.timestamp-*.mjs