@jeremyy_prt/cc-config 1.0.0 → 1.0.2

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.
Files changed (3) hide show
  1. package/README.md +38 -129
  2. package/cli.js +3 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,159 +1,68 @@
1
- # Claude Config Jeremy
1
+ # CC Config
2
2
 
3
- Configuration personnalisée pour Claude Code avec commandes, agents et scripts en français.
3
+ Config Claude Code en français avec commandes, agents et scripts.
4
4
 
5
- ## ✨ Features
5
+ ## Installation
6
6
 
7
- ### 📝 Commandes (7)
8
- - `/commit` - Commits conventionnels rapides avec push automatique
9
- - `/corriger-orthographe` - Correction grammaticale et orthographique
10
- - `/creer-agent` - Créer et optimiser des agents personnalisés
11
- - `/creer-commande` - Créer et optimiser des commandes
12
- - `/liste-commande` - Liste toutes les commandes et agents avec exemples
13
- - `/memoire-claude` - Créer et mettre à jour les fichiers CLAUDE.md
14
- - `/surveiller-ci` - Surveiller et corriger automatiquement les erreurs de CI GitHub Actions
15
-
16
- ### 🤖 Agents (4)
17
- - `@corriger-orthographe` - Correction orthographique de fichiers
18
- - `@explorer-code` - Exploration de codebase
19
- - `@explorer-docs` - Exploration de documentation avec Context7
20
- - `@recherche-web` - Recherche web rapide
21
-
22
- ### 🔒 Sécurité
23
- - Hook PreToolUse avec validation des commandes bash (700+ lignes)
24
- - Bloque les commandes dangereuses (`rm -rf /`, `sudo`, etc.)
25
-
26
- ### 🎨 Autres
27
- - Statusline personnalisée avec Git et tracking des coûts
28
- - Sons de notification (finish, need-human)
29
- - Hooks configurés (PreToolUse, Stop, Notification)
30
-
31
- ## 🚀 Installation
32
-
33
- ### Option 1: Script Shell (local)
34
-
35
- ```bash
36
- cd /Users/jeremy/Documents/code/scripts/claude-config-jeremy
37
- ./install.sh
38
- ```
39
-
40
- ### Option 2: NPM Package (recommandé)
7
+ **Prérequis:** [Claude Code](https://claude.ai/download) installé
41
8
 
42
9
  ```bash
43
10
  npx @jeremyy_prt/cc-config setup
44
11
  ```
45
12
 
46
- ou avec bun:
47
-
48
- ```bash
49
- bunx @jeremyy_prt/cc-config setup
50
- ```
51
-
52
- ### Option 3: Installation manuelle
13
+ ⚠️ **Important:** Ne pas utiliser `npm install`, utiliser `npx` avec `setup`
53
14
 
54
- ```bash
55
- # Cloner/télécharger le repo
56
- git clone https://github.com/jeremy-prt/cc-config.git
15
+ ## Contenu
57
16
 
58
- # Copier les fichiers
59
- cp -r cc-config/commands/* ~/.claude/commands/
60
- cp -r cc-config/agents/* ~/.claude/agents/
61
- cp -r cc-config/scripts/* ~/.claude/scripts/
62
- ```
17
+ **7 Commandes:**
18
+ - `/commit` - Commits rapides avec push auto
19
+ - `/corriger-orthographe` - Correction grammaire/orthographe
20
+ - `/creer-agent` - Créer des agents
21
+ - `/creer-commande` - Créer des commandes
22
+ - `/liste-commande` - Lister tout avec exemples
23
+ - `/memoire-claude` - Gérer les fichiers CLAUDE.md
24
+ - `/surveiller-ci` - Auto-fix des erreurs CI
63
25
 
64
- ## 📦 Prérequis
26
+ **4 Agents:**
27
+ - `@corriger-orthographe` - Correction de fichiers
28
+ - `@explorer-code` - Explorer le code
29
+ - `@explorer-docs` - Explorer la doc
30
+ - `@recherche-web` - Recherche web
65
31
 
66
- - [Claude Code](https://claude.ai/download) installé
67
- - `bun` (optionnel, pour statusline)
68
- - `gh` CLI (optionnel, pour /surveiller-ci)
32
+ **Sécurité:**
33
+ - Hook de validation bash (bloque `rm -rf /`, `sudo`, etc.)
69
34
 
70
- ## 🔧 Configuration
35
+ **Bonus:**
36
+ - Statusline avec Git et coûts
37
+ - Sons de notification
38
+ - Hooks configurés
71
39
 
72
- ### Context7 MCP (recommandé pour @explorer-docs)
40
+ ## Exemples
73
41
 
74
42
  ```bash
75
- claude mcp add --transport http context7 https://mcp.context7.com/mcp
76
- ```
77
-
78
- Ou avec API key:
79
- ```bash
80
- claude mcp add --transport http context7 https://mcp.context7.com/mcp \
81
- --header "CONTEXT7_API_KEY: ta_clé"
82
- ```
83
-
84
- ## 📚 Exemples d'utilisation
85
-
86
- ### Commits rapides
87
- ```bash
43
+ # Commit rapide
88
44
  /commit
89
- ```
90
45
 
91
- ### Corriger l'orthographe
92
- ```bash
93
- /corriger-orthographe src/components/Header.vue
94
- /corriger-orthographe src/**/*.vue
95
- ```
46
+ # Corriger fichier
47
+ /corriger-orthographe src/app.vue
96
48
 
97
- ### Explorer la documentation
98
- ```bash
99
- @explorer-docs cherche la doc de Nuxt 4
100
- ```
101
- ou en conversationnel:
102
- ```
103
- Comment utiliser les server routes dans Vue 3 ?
104
- ```
49
+ # Explorer doc
50
+ @explorer-docs cherche Nuxt 4
105
51
 
106
- ### Surveiller le CI
107
- ```bash
52
+ # Surveiller CI
108
53
  /surveiller-ci
109
- ```
110
54
 
111
- ### Créer une commande personnalisée
112
- ```bash
113
- /creer-commande create deploy
114
- ```
115
-
116
- ### Lister toutes les commandes avec exemples
117
- ```bash
55
+ # Lister tout
118
56
  /liste-commande --exemples
119
57
  ```
120
58
 
121
- ## 🗂️ Structure
59
+ ## Config optionnelle
122
60
 
61
+ Context7 pour @explorer-docs:
62
+ ```bash
63
+ claude mcp add --transport http context7 https://mcp.context7.com/mcp
123
64
  ```
124
- claude-config-jeremy/
125
- ├── commands/ # Commandes slash personnalisées
126
- │ ├── commit.md
127
- │ ├── corriger-orthographe.md
128
- │ ├── creer-agent.md
129
- │ ├── creer-commande.md
130
- │ ├── liste-commande.md
131
- │ ├── memoire-claude.md
132
- │ └── surveiller-ci.md
133
- ├── agents/ # Agents spécialisés
134
- │ ├── corriger-orthographe.md
135
- │ ├── explorer-code.md
136
- │ ├── explorer-docs.md
137
- │ └── recherche-web.md
138
- ├── scripts/ # Scripts utilitaires
139
- │ ├── validate-command.js
140
- │ └── statusline/
141
- ├── song/ # Sons de notification
142
- │ ├── finish.mp3
143
- │ └── need-human.mp3
144
- ├── settings.json # Configuration des hooks et statusline
145
- ├── install.sh # Script d'installation shell
146
- └── README.md
147
- ```
148
-
149
- ## 🤝 Contribution
150
-
151
- N'hésite pas à proposer des améliorations ou de nouvelles commandes!
152
65
 
153
- ## 📝 License
66
+ ## License
154
67
 
155
68
  MIT
156
-
157
- ## 🙏 Crédits
158
-
159
- Inspiré par [AIBlueprint](https://github.com/Melvynx/aiblueprint) de Melvynx
package/cli.js CHANGED
@@ -145,7 +145,9 @@ function setup() {
145
145
 
146
146
  // Vérifier que Claude Code est installé
147
147
  try {
148
- execSync('which claude', { stdio: 'ignore' });
148
+ const isWindows = process.platform === 'win32';
149
+ const command = isWindows ? 'where claude' : 'which claude';
150
+ execSync(command, { stdio: 'ignore' });
149
151
  } catch {
150
152
  console.error('⚠️ Claude Code n\'est pas installé.');
151
153
  console.error(' Installe-le d\'abord: https://claude.ai/download');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeremyy_prt/cc-config",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Configuration personnalisée pour Claude Code avec commandes et agents en français",
5
5
  "main": "index.js",
6
6
  "bin": {