claude-code-autoconfig 1.0.115 → 1.0.117

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 1 -->
2
+ <!-- @version 2 -->
3
3
 
4
4
  # Autoconfig
5
5
 
@@ -151,10 +151,11 @@ Place this section near the top (after Tech Stack, before Commands) since versio
151
151
  **Always end with:**
152
152
  ```markdown
153
153
  ## Team Feedback
154
- See `.claude/feedback/` for corrections and guidance from the team.
154
+ The contents of `.claude/feedback/FEEDBACK.md` are an extension of this file.
155
+ Read it at the start of every session before taking any action.
155
156
  ```
156
157
 
157
- This pointer persists across autoconfig runs and directs Claude to team-maintained content.
158
+ This pointer persists across autoconfig runs and ensures FEEDBACK.md guidance is reliably loaded every session.
158
159
 
159
160
  ## Step 4: Create Rules Directory
160
161
 
@@ -1,4 +1,4 @@
1
- <!-- @screenshotDir -->
1
+ <!-- @screenshotDir /c/Users/andre/OneDrive/Pictures/Screenshots 1 -->
2
2
  <!-- @version 1 -->
3
3
  Get the latest screenshot(s) and display them.
4
4
 
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * @name Feedback Rule Migration Check
5
+ * @description After FEEDBACK.md is edited, notifies Claude to evaluate
6
+ * whether any entries would be more reliably delivered as
7
+ * .claude/rules/ files with glob patterns.
8
+ * @trigger PostToolUse on Write|Edit
9
+ */
10
+
11
+ // Read hook input from stdin
12
+ let input = '';
13
+ process.stdin.setEncoding('utf8');
14
+ process.stdin.on('data', chunk => input += chunk);
15
+ process.stdin.on('end', () => {
16
+ try {
17
+ const data = JSON.parse(input);
18
+ const filePath = data?.tool_input?.file_path || '';
19
+
20
+ // Only fire for FEEDBACK.md edits
21
+ if (!filePath.endsWith('FEEDBACK.md')) {
22
+ process.exit(0);
23
+ }
24
+
25
+ console.log([
26
+ 'FEEDBACK.md was just modified.',
27
+ 'Review the changes and evaluate whether any entries are tied to specific file types,',
28
+ 'frameworks, or patterns that could be scoped with a glob (e.g., *.py, *.tsx, src/api/**).',
29
+ '',
30
+ 'If any entries qualify, ask the user:',
31
+ '"Some of this guidance targets specific file types. Want me to migrate it to .claude/rules/',
32
+ 'for more reliable delivery? Rules auto-inject when matching files are touched."',
33
+ '',
34
+ 'If the user confirms, create the rule file with the appropriate glob and remove the entry from FEEDBACK.md.',
35
+ 'If nothing qualifies, do nothing — not every FEEDBACK.md entry needs to be a rule.',
36
+ ].join('\n'));
37
+
38
+ process.exit(0);
39
+ } catch (err) {
40
+ process.exit(0);
41
+ }
42
+ });
@@ -2,6 +2,19 @@
2
2
  "env": {
3
3
  "CLAUDE_CODE_DISABLE_AUTO_MEMORY": "0"
4
4
  },
5
+ "hooks": {
6
+ "PostToolUse": [
7
+ {
8
+ "matcher": "Edit|Write",
9
+ "hooks": [
10
+ {
11
+ "type": "command",
12
+ "command": "node .claude/hooks/feedback-rule-check.js"
13
+ }
14
+ ]
15
+ }
16
+ ]
17
+ },
5
18
  "permissions": {
6
19
  "allow": [
7
20
  "Read(./**)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-autoconfig",
3
- "version": "1.0.115",
3
+ "version": "1.0.117",
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",