claude-code-autoconfig 1.0.119 → 1.0.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!-- @description The command you just ran. Analyzes your project and populates CLAUDE.md with real context. Re-run anytime your stack changes. -->
|
|
2
|
-
<!-- @version
|
|
2
|
+
<!-- @version 3 -->
|
|
3
3
|
|
|
4
4
|
# Autoconfig
|
|
5
5
|
|
|
@@ -103,12 +103,12 @@ Focus on what Claude Code actually needs to work effectively. Claude can explore
|
|
|
103
103
|
**Wrap content in markers** so `/sync-claude-md` knows what's auto-generated:
|
|
104
104
|
|
|
105
105
|
```markdown
|
|
106
|
-
<!-- AUTO-GENERATED BY /autoconfig at {TIMESTAMP} UTC — Do not edit
|
|
106
|
+
<!-- AUTO-GENERATED BY /autoconfig at {TIMESTAMP} UTC — Do not edit between markers. -->
|
|
107
107
|
|
|
108
108
|
# Project Name
|
|
109
109
|
...content...
|
|
110
110
|
|
|
111
|
-
<!-- END AUTO-GENERATED at {TIMESTAMP} UTC
|
|
111
|
+
<!-- END AUTO-GENERATED at {TIMESTAMP} UTC -->
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
Replace `{TIMESTAMP}` with the current UTC time in format `YYYY-MM-DD HH:MM:SS` (e.g., `2026-01-14 16:30:45`). Use the same timestamp in both markers.
|
|
@@ -148,14 +148,27 @@ Place this section near the top (after Tech Stack, before Commands) since versio
|
|
|
148
148
|
|
|
149
149
|
**Keep it tight.** A 30-line CLAUDE.md that hits the essentials beats a 200-line doc Claude has to parse every session.
|
|
150
150
|
|
|
151
|
-
**Always end with:**
|
|
151
|
+
**Always end with (inside markers):**
|
|
152
152
|
```markdown
|
|
153
153
|
## Team Feedback
|
|
154
154
|
The contents of `.claude/feedback/FEEDBACK.md` are an extension of this file.
|
|
155
155
|
Read it at the start of every session before taking any action.
|
|
156
|
+
FEEDBACK.md is reserved for human-authored corrections only — do not write to it.
|
|
156
157
|
```
|
|
157
158
|
|
|
158
|
-
|
|
159
|
+
**Always add below the end marker:**
|
|
160
|
+
```markdown
|
|
161
|
+
|
|
162
|
+
## Discoveries
|
|
163
|
+
<!-- Claude: append project-specific learnings, gotchas, and context below. This section persists across /autoconfig runs. -->
|
|
164
|
+
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
This creates two zones in CLAUDE.md:
|
|
168
|
+
1. **Between markers** — auto-generated by /autoconfig, never manually edited
|
|
169
|
+
2. **Below markers (Discoveries section)** — Claude appends learnings here instead of FEEDBACK.md
|
|
170
|
+
|
|
171
|
+
When Claude discovers project-specific context (related projects, non-obvious gotchas, critical workflows) during a session, it should append to the Discoveries section. This keeps FEEDBACK.md clean for human team corrections only.
|
|
159
172
|
|
|
160
173
|
## Step 4: Create Rules Directory
|
|
161
174
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!-- @description Re-analyzes your project and updates CLAUDE.md to reflect current state. -->
|
|
2
|
-
<!-- @version
|
|
2
|
+
<!-- @version 2 -->
|
|
3
3
|
|
|
4
4
|
# Sync CLAUDE.md
|
|
5
5
|
|
|
@@ -45,14 +45,14 @@ If multiple sources exist with different values, include a `## Version Managemen
|
|
|
45
45
|
CLAUDE.md uses markers to identify auto-generated content:
|
|
46
46
|
|
|
47
47
|
```markdown
|
|
48
|
-
<!-- AUTO-GENERATED BY /autoconfig at {TIMESTAMP} UTC — Do not edit
|
|
48
|
+
<!-- AUTO-GENERATED BY /autoconfig at {TIMESTAMP} UTC — Do not edit between markers. -->
|
|
49
49
|
...content...
|
|
50
|
-
<!-- END AUTO-GENERATED at {TIMESTAMP} UTC
|
|
50
|
+
<!-- END AUTO-GENERATED at {TIMESTAMP} UTC -->
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
**IMPORTANT:** Always replace `{TIMESTAMP}` with the CURRENT UTC time in format `YYYY-MM-DD HH:MM:SS` (e.g., `2026-01-14 16:30:45`).
|
|
54
54
|
|
|
55
|
-
**Only regenerate content between these markers.** Content
|
|
55
|
+
**Only regenerate content between these markers.** Content below the end marker (e.g., the `## Discoveries` section) is Claude-authored and must be preserved across syncs.
|
|
56
56
|
|
|
57
57
|
Compare detected state with current CLAUDE.md and update:
|
|
58
58
|
|
|
@@ -78,6 +78,7 @@ Show the user what changed in CLAUDE.md before finishing.
|
|
|
78
78
|
## Guidelines
|
|
79
79
|
|
|
80
80
|
- **Respect markers**: Only regenerate content between AUTO-GENERATED markers
|
|
81
|
+
- **Preserve Discoveries**: Content below the end marker (## Discoveries section) is Claude-authored and must never be removed or overwritten during sync
|
|
81
82
|
- **Be conservative**: Only update sections that actually changed
|
|
82
83
|
- **Keep it tight**: A 30-line CLAUDE.md that hits the essentials beats a 200-line doc Claude has to parse every session
|
|
83
84
|
- **No boilerplate**: If Claude can infer it from scanning `package.json` or config files, don't put it in CLAUDE.md
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<!-- @description
|
|
1
|
+
<!-- @description Human-authored corrections and guidance for Claude. Reserved for team feedback only — Claude must not write here. This directory persists across /autoconfig runs. -->
|
|
2
2
|
|
|
3
3
|
# Team Feedback
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
Claude reads this
|
|
5
|
+
**This file is for human-authored corrections and guidance only.**
|
|
6
|
+
Claude reads this file but must never write to it. When Claude discovers project context, gotchas, or learnings, it should append to the `## Discoveries` section in CLAUDE.md instead.
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<!-- @title Feedback to Discoveries Migration -->
|
|
2
|
+
<!-- @type migration -->
|
|
3
|
+
<!-- @description One-time migration of existing FEEDBACK.md content to CLAUDE.md Discoveries section -->
|
|
4
|
+
<!-- @files CLAUDE.md, .claude/feedback/FEEDBACK.md -->
|
|
5
|
+
|
|
6
|
+
# Migrate Existing Feedback to Discoveries
|
|
7
|
+
|
|
8
|
+
This is a one-time cleanup. The program has been updated to optimize CLAUDE.md and FEEDBACK.md:
|
|
9
|
+
- CLAUDE.md now has a `## Discoveries` section below the auto-generated markers where Claude appends learnings
|
|
10
|
+
- FEEDBACK.md has been tightened for human-authored corrections only
|
|
11
|
+
|
|
12
|
+
## Step 1: Read existing FEEDBACK.md
|
|
13
|
+
|
|
14
|
+
Read `.claude/feedback/FEEDBACK.md`. Extract all content below the header section (everything after the `---` that follows the intro text).
|
|
15
|
+
|
|
16
|
+
If the file only contains the default template with no custom entries, skip to Step 4 and output:
|
|
17
|
+
|
|
18
|
+
> No custom content found in FEEDBACK.md. Nothing to migrate.
|
|
19
|
+
|
|
20
|
+
## Step 2: Ensure Discoveries section exists in CLAUDE.md
|
|
21
|
+
|
|
22
|
+
Read `CLAUDE.md`. Look for `## Discoveries` below the end marker (`<!-- END AUTO-GENERATED`).
|
|
23
|
+
|
|
24
|
+
If it doesn't exist, append it below the end marker:
|
|
25
|
+
|
|
26
|
+
```markdown
|
|
27
|
+
|
|
28
|
+
## Discoveries
|
|
29
|
+
<!-- Claude: append project-specific learnings, gotchas, and context below. This section persists across /autoconfig runs. -->
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Step 3: Migrate content
|
|
34
|
+
|
|
35
|
+
Move all custom entries from FEEDBACK.md into the `## Discoveries` section in CLAUDE.md. Preserve the original formatting and section headers.
|
|
36
|
+
|
|
37
|
+
Then reset FEEDBACK.md to the clean template:
|
|
38
|
+
|
|
39
|
+
```markdown
|
|
40
|
+
<!-- @description Human-authored corrections and guidance for Claude. Reserved for team feedback only — Claude must not write here. This directory persists across /autoconfig runs. -->
|
|
41
|
+
|
|
42
|
+
# Team Feedback
|
|
43
|
+
|
|
44
|
+
**This file is for human-authored corrections and guidance only.**
|
|
45
|
+
Claude reads this file but must never write to it. When Claude discovers project context, gotchas, or learnings, it should append to the `## Discoveries` section in CLAUDE.md instead.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Step 4: Report
|
|
52
|
+
|
|
53
|
+
Tell the user:
|
|
54
|
+
|
|
55
|
+
> Migrated {N} sections from FEEDBACK.md to CLAUDE.md Discoveries.
|
|
56
|
+
> FEEDBACK.md has been reset for human feedback only.
|
|
57
|
+
> If any migrated entries were actually team corrections, you can move them back to FEEDBACK.md.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-autoconfig",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.121",
|
|
4
4
|
"description": "Intelligent, self-configuring setup for Claude Code. One command analyzes your project, configures Claude, and shows you what it did.",
|
|
5
5
|
"author": "ADAC 1001 <info@adac1001.com>",
|
|
6
6
|
"license": "MIT",
|