refacil-sdd-ai 5.0.2 → 5.0.3
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.
- package/package.json +1 -1
- package/skills/setup/SKILL.md +23 -5
package/package.json
CHANGED
package/skills/setup/SKILL.md
CHANGED
|
@@ -141,7 +141,16 @@ A monorepo may add `.agents/services.md`; a library may combine testing in stack
|
|
|
141
141
|
|
|
142
142
|
### Step 4b: Overwrite `CLAUDE.md` and `.cursorrules`
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
Before writing IDE-specific files, detect installed IDE directories in repo root (`.claude/`, `.cursor/`, `.opencode/`).
|
|
145
|
+
Only create/update files for IDEs whose directory exists. Never create files for an IDE that is not present.
|
|
146
|
+
|
|
147
|
+
Rules:
|
|
148
|
+
- If `.claude/` exists: overwrite `CLAUDE.md`.
|
|
149
|
+
- If `.cursor/` exists: overwrite `.cursorrules`.
|
|
150
|
+
- If both exist: overwrite both.
|
|
151
|
+
- If neither exists: do not create either file; report that no supported IDE folder was detected and suggest running `refacil-sdd-ai init`.
|
|
152
|
+
|
|
153
|
+
When created, these files are thin indexes toward `AGENTS.md` and must not contain project detail.
|
|
145
154
|
|
|
146
155
|
**`CLAUDE.md`** — minimal index, no project content:
|
|
147
156
|
|
|
@@ -158,12 +167,17 @@ All project detail, stack, rules and `refacil:*` commands live in `.agents/` and
|
|
|
158
167
|
|
|
159
168
|
### Step 5: Context exclusion files
|
|
160
169
|
|
|
161
|
-
|
|
170
|
+
Sync ignore files only for detected IDE directories:
|
|
171
|
+
- `.claude/` → `.claudeignore`
|
|
172
|
+
- `.cursor/` → `.cursorignore`
|
|
173
|
+
- `.opencode/` → `.opencodeignore`
|
|
174
|
+
|
|
175
|
+
Do not create `.claudeignore`, `.cursorignore`, or `.opencodeignore` if the matching IDE directory does not exist.
|
|
162
176
|
|
|
163
177
|
If the files already exist, only missing entries are added — custom content is not overwritten.
|
|
164
178
|
|
|
165
179
|
Inform the user of the result:
|
|
166
|
-
- **Created**:
|
|
180
|
+
- **Created**: the detected IDE ignore file(s) were created from scratch.
|
|
167
181
|
- **Updated**: missing entries were added.
|
|
168
182
|
- **No changes**: they already had all the entries.
|
|
169
183
|
|
|
@@ -171,14 +185,18 @@ If the user wants to customize additional exclusions, they can edit them directl
|
|
|
171
185
|
|
|
172
186
|
### Step 6: Verify skills
|
|
173
187
|
|
|
174
|
-
- Refacil: `refacil-*` folders under
|
|
188
|
+
- Refacil: verify `refacil-*` folders only under detected IDE directories:
|
|
189
|
+
- `.claude/` detected → check `.claude/skills/`
|
|
190
|
+
- `.cursor/` detected → check `.cursor/skills/`
|
|
191
|
+
- `.opencode/` detected → check `.opencode/skills/`
|
|
192
|
+
If missing for any detected IDE: run `refacil-sdd-ai init` and restart session.
|
|
175
193
|
- Verify `sdd` subcommand: `refacil-sdd-ai sdd 2>&1 || true` — must show subcommands `status`, `mark-reviewed`, `tasks-update`, `archive`.
|
|
176
194
|
|
|
177
195
|
### Step 7: Final summary
|
|
178
196
|
|
|
179
197
|
```
|
|
180
198
|
=== refacil:setup completed ===
|
|
181
|
-
Node.js / refacil-sdd-ai / refacil-sdd/changes/ / branch config / AGENTS.md /
|
|
199
|
+
Node.js / refacil-sdd-ai / refacil-sdd/changes/ / branch config / AGENTS.md / IDE files (detected only) / ignore files (detected only) / skills OK
|
|
182
200
|
|
|
183
201
|
Restart Claude Code or Cursor session if this is the first skills installation.
|
|
184
202
|
The next step is to review the available flow.
|