create-pathfinder 1.3.0 → 1.4.1

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/CLAUDE.md CHANGED
@@ -57,6 +57,7 @@ Ask before actions identified in `context/ai-interaction.md`, especially depende
57
57
  - `to-specs` — generate context-sized feature specs
58
58
  - `load-feature` — prepare one feature for implementation
59
59
  - `start-feature` — implement scoped delivery chunks
60
+ - `debug-issue` — diagnose an observed failure to its root cause, apply the smallest justified fix, and verify it
60
61
  - `review-feature` — review against requirements, regressions, and standards
61
62
  - `complete-feature` — verify and close a feature cleanly
62
63
  - `learn-feature` — create an interactive lesson for a completed feature
package/README.md CHANGED
@@ -23,7 +23,7 @@ Pathfinder is a kit of context files and skills — not a framework. There is no
23
23
  | --- | --- |
24
24
  | `AGENTS.md`, `CLAUDE.md` | Entry files that tell an agent how to work in the project |
25
25
  | `context/` | Project truth — overview, standards, interaction rules, current feature |
26
- | `skills/` | Nineteen skills covering discovery, specs, delivery, review, and learning |
26
+ | `skills/` | Twenty skills covering discovery, specs, delivery, debugging, review, and learning |
27
27
  | `prompts/` | Manual launchers for tools that do not discover local skills |
28
28
  | `templates/` | Starting points the project copies when it needs them |
29
29
 
@@ -1,4 +1,8 @@
1
- # [Feature Name]
1
+ # Example Feature Spec
2
+
3
+ > A worked example of the shape `to-specs` writes into this folder. Real
4
+ > specs are new files here, titled with the feature's own name; copy
5
+ > `templates/feature-spec.template.md` to start one.
2
6
 
3
7
  ## Status
4
8
 
@@ -1,9 +1,10 @@
1
- # [Project Name] — Project Overview
1
+ # Project Overview
2
2
 
3
3
  > Describe the product, audience, intended feeling, and reason it should exist.
4
4
 
5
5
  ## Status
6
6
 
7
+ - Project: `[Project Name]`
7
8
  - Stage: `[idea / prototype / MVP / production / maintenance]`
8
9
  - Repo type: `[new / existing / application / library / service / monorepo / other]`
9
10
  - Primary goal: `[success definition]`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pathfinder",
3
- "version": "1.3.0",
3
+ "version": "1.4.1",
4
4
  "description": "Install the Pathfinder AI-assisted, human-in-the-loop workflow kit into a Git repository.",
5
5
  "keywords": [
6
6
  "pathfinder",
@@ -0,0 +1,15 @@
1
+ Use `skills/debug-issue/SKILL.md`.
2
+
3
+ Debug the failure I describe.
4
+
5
+ Establish expected behavior, actual behavior, and reproduction status before proposing any fix.
6
+
7
+ Read only the code, logs, tests, and configuration relevant to the failure. Do not refactor unrelated code while the cause is still unknown.
8
+
9
+ State a small ranked set of hypotheses, then test the cheapest one that meaningfully reduces uncertainty. Change one explanatory variable at a time.
10
+
11
+ Do not call something the root cause because the symptom disappeared. If the evidence only supports a probable cause or a workaround, say so.
12
+
13
+ Apply the smallest justified fix, then verify against the original failure and the nearby behavior it could have affected. Remove temporary instrumentation.
14
+
15
+ Stop and report rather than thrashing when the evidence runs out, the reproduction is too unstable, or the fix would require an architectural, dependency, security, or destructive change I have not approved. Preserve what has already been ruled out.
@@ -0,0 +1,225 @@
1
+ ---
2
+ name: debug-issue
3
+ description: Diagnose an observed software failure systematically, identify the root cause with evidence, apply the smallest justified fix, and verify the failure is resolved without introducing regressions.
4
+ ---
5
+
6
+ # Debug Issue
7
+
8
+ Debug an observed failure by reducing uncertainty before changing code.
9
+
10
+ The goal is not to try fixes until something works.
11
+
12
+ The goal is to explain the failure well enough that the smallest correct fix becomes justified.
13
+
14
+ > Reproduce before repairing.
15
+
16
+ ## When to use
17
+
18
+ Use Debug Issue when there is a concrete unexpected behavior such as:
19
+
20
+ * a failing test
21
+ * runtime error
22
+ * broken feature
23
+ * regression
24
+ * incorrect output
25
+ * integration failure
26
+ * environment-specific failure
27
+ * intermittent behavior that needs isolation
28
+ * production or staging behavior that differs from expectation
29
+
30
+ Do not use it merely because implementation work is difficult.
31
+
32
+ If the task is planned feature construction, use `start-feature`.
33
+
34
+ If the goal is reviewing completed implementation for possible defects, use `review-feature`.
35
+
36
+ If the real question is broad understanding of the repository, use `learn-codebase`.
37
+
38
+ ## Goal
39
+
40
+ Answer:
41
+
42
+ > What is failing, why is it failing, and what evidence proves the explanation?
43
+
44
+ Then apply the smallest justified correction and verify the original failure no longer occurs.
45
+
46
+ ## 1. Establish the failure
47
+
48
+ Before proposing a fix, define:
49
+
50
+ * expected behavior
51
+ * actual behavior
52
+ * where the failure occurs
53
+ * how it was observed
54
+ * whether it is reproducible
55
+ * relevant environment or conditions
56
+ * known recent changes when relevant
57
+
58
+ Prefer the smallest reliable reproduction.
59
+
60
+ If the failure cannot be reproduced, preserve the available evidence and state that limitation explicitly.
61
+
62
+ Do not manufacture certainty.
63
+
64
+ ## 2. Inspect before changing
65
+
66
+ Read only the code, logs, tests, configuration, dependencies, and context relevant to the failure.
67
+
68
+ Identify the execution path involved.
69
+
70
+ Do not begin with broad refactoring.
71
+
72
+ Do not change unrelated code while still determining the cause.
73
+
74
+ ## 3. Form hypotheses
75
+
76
+ Produce a small ranked set of plausible explanations.
77
+
78
+ For each hypothesis state:
79
+
80
+ * why it fits the evidence
81
+ * what evidence would support it
82
+ * what evidence would disprove it
83
+ * the cheapest useful test
84
+
85
+ Prefer hypotheses that explain all known symptoms rather than only one.
86
+
87
+ Do not create a long speculative list.
88
+
89
+ ## 4. Test discriminating evidence
90
+
91
+ Test the cheapest hypothesis that meaningfully reduces uncertainty.
92
+
93
+ Change one explanatory variable at a time when practical.
94
+
95
+ Examples:
96
+
97
+ * inspect a value at the failure boundary
98
+ * run one targeted test
99
+ * compare working and failing environments
100
+ * trace one request
101
+ * check one dependency or configuration assumption
102
+ * temporarily instrument the relevant path
103
+ * isolate one integration
104
+
105
+ A debugging action should answer a question.
106
+
107
+ Avoid random edits intended only to "see if it works."
108
+
109
+ ## 5. Identify the root cause
110
+
111
+ Do not call something the root cause merely because changing it makes the symptom disappear.
112
+
113
+ A root-cause claim should explain:
114
+
115
+ * why the failure occurred
116
+ * why it occurred under the observed conditions
117
+ * why the evidence supports this explanation
118
+ * why competing explanations are less likely
119
+
120
+ If the evidence only supports a workaround or probable cause, say so.
121
+
122
+ ## 6. Choose the smallest justified fix
123
+
124
+ Once the cause is sufficiently established:
125
+
126
+ * fix the cause rather than only the visible symptom when practical
127
+ * preserve existing behavior outside the failure
128
+ * avoid unrelated cleanup
129
+ * avoid dependency, architecture, schema, security, or workflow changes without required approval
130
+ * prefer a focused regression test when appropriate
131
+
132
+ If the correct fix expands beyond the active feature or approval boundary, stop and explain the decision required.
133
+
134
+ ## 7. Verify
135
+
136
+ Verification must include the original failure.
137
+
138
+ Where relevant also verify:
139
+
140
+ * the reproduction now passes
141
+ * nearby behavior still works
142
+ * regression tests pass
143
+ * edge/failure states remain correct
144
+ * temporary instrumentation is removed
145
+ * no unrelated behavior changed
146
+
147
+ Do not declare success only because the code compiles or one unrelated test passes.
148
+
149
+ ## 8. Stop conditions
150
+
151
+ Stop and report rather than thrashing when:
152
+
153
+ * 2–3 grounded hypotheses have been tested without reducing uncertainty
154
+ * necessary evidence or environment access is unavailable
155
+ * reproduction is too unstable to support a safe fix
156
+ * the likely fix requires an unapproved architectural, dependency, security, data, or destructive change
157
+ * the observed behavior conflicts with documented requirements and a human decision is needed
158
+
159
+ When stopping, preserve what has been ruled out so the next attempt does not restart from zero.
160
+
161
+ ## Output
162
+
163
+ Return:
164
+
165
+ ### Failure
166
+
167
+ Expected vs actual behavior and reproduction status.
168
+
169
+ ### Evidence
170
+
171
+ The relevant observations, logs, tests, or code paths.
172
+
173
+ ### Hypotheses tested
174
+
175
+ What was tested and what each result ruled in or out.
176
+
177
+ ### Root cause
178
+
179
+ The established cause, probable cause, or remaining uncertainty.
180
+
181
+ ### Fix
182
+
183
+ The smallest change made or recommended.
184
+
185
+ ### Verification
186
+
187
+ How the original failure and relevant regression surface were checked.
188
+
189
+ ### Residual risk
190
+
191
+ Anything still uncertain or unverified.
192
+
193
+ ### Handoff
194
+
195
+ If unresolved, state the exact next useful investigation step and what should not be repeated.
196
+
197
+ ## Boundaries
198
+
199
+ `debug-issue` diagnoses an observed failure.
200
+
201
+ It does not:
202
+
203
+ * implement unrelated feature scope
204
+ * perform a general repository review
205
+ * replace `review-feature`
206
+ * replace `complete-feature`
207
+ * silently change architecture or dependencies
208
+ * turn debugging into opportunistic refactoring
209
+ * hide uncertainty behind a successful-looking workaround
210
+
211
+ ## Principles
212
+
213
+ > Reproduce before repairing.
214
+
215
+ > A debugging action should answer a question.
216
+
217
+ > Change one explanatory variable at a time.
218
+
219
+ > Fixes follow evidence, not guesses.
220
+
221
+ > A symptom disappearing is not proof of root cause.
222
+
223
+ > Preserve what has already been ruled out.
224
+
225
+ > Stop when additional attempts are producing activity instead of information.
@@ -50,9 +50,9 @@ And:
50
50
 
51
51
  ---
52
52
 
53
- # Part 1 — Reflect on the work
53
+ ## Part 1 — Reflect on the work
54
54
 
55
- ## 1. Reconstruct what happened
55
+ ### 1. Reconstruct what happened
56
56
 
57
57
  Review the relevant work and available evidence.
58
58
 
@@ -73,7 +73,7 @@ Do not rely on vague recollection when repository evidence is available.
73
73
 
74
74
  Distinguish what actually happened from what was intended to happen.
75
75
 
76
- ## 2. Identify learning signals
76
+ ### 2. Identify learning signals
77
77
 
78
78
  Look specifically for:
79
79
 
@@ -96,11 +96,11 @@ Success alone is not evidence that the workflow was good.
96
96
 
97
97
  Failure alone is not evidence that the workflow must change.
98
98
 
99
- ## 3. Separate local knowledge from reusable learning
99
+ ### 3. Separate local knowledge from reusable learning
100
100
 
101
101
  Classify each finding as one of:
102
102
 
103
- ### PROJECT
103
+ #### PROJECT
104
104
 
105
105
  Specific to this repository, stack, business domain, architecture, environment, or team.
106
106
 
@@ -113,7 +113,7 @@ Examples:
113
113
  * this service must start before another service
114
114
  * a framework-specific workaround is required
115
115
 
116
- ### WORKFLOW CANDIDATE
116
+ #### WORKFLOW CANDIDATE
117
117
 
118
118
  Potentially useful across unrelated projects.
119
119
 
@@ -125,7 +125,7 @@ Examples:
125
125
  * an undocumented dependency should have been discovered during system analysis
126
126
  * the agent repeatedly needed human correction for something the workflow could have surfaced earlier
127
127
 
128
- ### NOISE
128
+ #### NOISE
129
129
 
130
130
  Interesting but not useful enough to preserve.
131
131
 
@@ -133,7 +133,7 @@ Discard it.
133
133
 
134
134
  Not every observation deserves memory.
135
135
 
136
- ## 4. Test generality
136
+ ### 4. Test generality
137
137
 
138
138
  For every WORKFLOW CANDIDATE ask:
139
139
 
@@ -149,7 +149,7 @@ If the lesson fails these tests, keep it project-specific.
149
149
 
150
150
  Generalize behavior, not technology.
151
151
 
152
- ## 5. Check for existing coverage
152
+ ### 5. Check for existing coverage
153
153
 
154
154
  Before proposing anything new, inspect the existing Pathfinder workflow and skills.
155
155
 
@@ -169,41 +169,41 @@ Avoid duplicate skills.
169
169
 
170
170
  Do not respond to every failure by adding another instruction.
171
171
 
172
- ## 6. Require evidence
172
+ ### 6. Require evidence
173
173
 
174
174
  Every proposed Pathfinder improvement must include:
175
175
 
176
- ### Observation
176
+ #### Observation
177
177
 
178
178
  What happened?
179
179
 
180
- ### Evidence
180
+ #### Evidence
181
181
 
182
182
  What concrete part of the execution demonstrates it?
183
183
 
184
- ### Generalization
184
+ #### Generalization
185
185
 
186
186
  Why could this recur outside this project?
187
187
 
188
- ### Current gap
188
+ #### Current gap
189
189
 
190
190
  Why does Pathfinder not already handle it?
191
191
 
192
- ### Proposed change
192
+ #### Proposed change
193
193
 
194
194
  What is the smallest change that would address it?
195
195
 
196
- ### Risk
196
+ #### Risk
197
197
 
198
198
  How could this rule become harmful, redundant, overly restrictive, or too specific?
199
199
 
200
- ### Validation
200
+ #### Validation
201
201
 
202
202
  How could future work demonstrate that the improvement actually helped?
203
203
 
204
204
  Do not promote intuition into workflow policy without evidence.
205
205
 
206
- ## 7. Prefer the smallest durable improvement
206
+ ### 7. Prefer the smallest durable improvement
207
207
 
208
208
  Possible outcomes include:
209
209
 
@@ -222,7 +222,7 @@ An improvement should remove more uncertainty than complexity it introduces.
222
222
 
223
223
  ---
224
224
 
225
- # Part 2 — Reflect on Reflect
225
+ ## Part 2 — Reflect on Reflect
226
226
 
227
227
  Reflect is subject to the same evidence standard it applies to Pathfinder.
228
228
 
@@ -234,7 +234,7 @@ Its purpose is not to endlessly rewrite Reflect.
234
234
 
235
235
  Its purpose is to discover whether Reflect systematically failed to do its own job.
236
236
 
237
- ## 8. Evaluate reflection quality
237
+ ### 8. Evaluate reflection quality
238
238
 
239
239
  Ask:
240
240
 
@@ -255,11 +255,11 @@ Do not search for a self-improvement merely because this section exists.
255
255
 
256
256
  "No improvement needed" is a valid and desirable result.
257
257
 
258
- ## 9. Identify Reflect improvement candidates
258
+ ### 9. Identify Reflect improvement candidates
259
259
 
260
260
  If the reflection process itself demonstrated a meaningful weakness, classify it as:
261
261
 
262
- ### REFLECT IMPROVEMENT CANDIDATE
262
+ #### REFLECT IMPROVEMENT CANDIDATE
263
263
 
264
264
  This classification is reserved for improvements to `reflect/SKILL.md` itself.
265
265
 
@@ -267,23 +267,23 @@ Do not use it for general Pathfinder improvements.
267
267
 
268
268
  For each candidate provide:
269
269
 
270
- ### Observed weakness
270
+ #### Observed weakness
271
271
 
272
272
  What was inadequate about Reflect's behavior or reasoning?
273
273
 
274
- ### Evidence
274
+ #### Evidence
275
275
 
276
276
  What concrete output, omission, human correction, or repeated failure demonstrates the weakness?
277
277
 
278
- ### Root cause
278
+ #### Root cause
279
279
 
280
280
  What part of the current Reflect process allowed the weakness?
281
281
 
282
- ### Proposed change
282
+ #### Proposed change
283
283
 
284
284
  What is the smallest change to `reflect/SKILL.md` that could improve future reflections?
285
285
 
286
- ### Regression risk
286
+ #### Regression risk
287
287
 
288
288
  Could the change make Reflect:
289
289
 
@@ -295,7 +295,7 @@ Could the change make Reflect:
295
295
  * excessively conservative
296
296
  * more expensive in context or execution time
297
297
 
298
- ### Validation
298
+ #### Validation
299
299
 
300
300
  What future behavior would demonstrate that the modification actually improved Reflect?
301
301
 
@@ -303,11 +303,11 @@ Do not recursively optimize stylistic preferences, wording preferences, or isola
303
303
 
304
304
  Self-improvements must materially improve reflection quality.
305
305
 
306
- ## 10. Evidence levels for self-improvement
306
+ ### 10. Evidence levels for self-improvement
307
307
 
308
308
  Treat evidence for changes to Reflect according to three levels:
309
309
 
310
- ### Level 1 — Incident
310
+ #### Level 1 — Incident
311
311
 
312
312
  One reflection exposed a plausible weakness.
313
313
 
@@ -315,13 +315,13 @@ This may justify an improvement candidate.
315
315
 
316
316
  It does not establish a general pattern.
317
317
 
318
- ### Level 2 — Pattern
318
+ #### Level 2 — Pattern
319
319
 
320
320
  The same weakness has appeared across multiple reflections or required repeated human correction.
321
321
 
322
322
  This provides stronger justification for changing Reflect.
323
323
 
324
- ### Level 3 — Validation
324
+ #### Level 3 — Validation
325
325
 
326
326
  A proposed change addresses the weakness and subsequent reflections demonstrate better behavior without obvious regression.
327
327
 
@@ -331,7 +331,7 @@ When history is available, prefer patterns over isolated incidents.
331
331
 
332
332
  Do not fabricate historical evidence.
333
333
 
334
- ## 11. Bound the recursion
334
+ ### 11. Bound the recursion
335
335
 
336
336
  Reflect may perform only one self-evaluation pass per invocation.
337
337
 
@@ -355,9 +355,9 @@ Recursive improvement should accumulate evidence across executions, not consume
355
355
 
356
356
  ---
357
357
 
358
- # Promotion rules
358
+ ## Promotion rules
359
359
 
360
- ## Pathfinder improvements
360
+ ### Pathfinder improvements
361
361
 
362
362
  Reflect proposes.
363
363
 
@@ -365,7 +365,7 @@ Humans promote.
365
365
 
366
366
  Do not silently modify Pathfinder's workflow, AGENTS.md, skills, templates, principles, or other durable guidance unless explicitly asked to implement an accepted recommendation.
367
367
 
368
- ## Reflect self-improvements
368
+ ### Reflect self-improvements
369
369
 
370
370
  The same rule applies to Reflect itself.
371
371
 
@@ -379,21 +379,21 @@ It raises it.
379
379
 
380
380
  ---
381
381
 
382
- # Output
382
+ ## Output
383
383
 
384
384
  Return only sections that contain meaningful information.
385
385
 
386
386
  Do not inflate the output to satisfy the template.
387
387
 
388
- ## What happened
388
+ ### What happened
389
389
 
390
390
  A concise reconstruction of the relevant execution.
391
391
 
392
- ## What we learned
392
+ ### What we learned
393
393
 
394
394
  The important findings and supporting evidence.
395
395
 
396
- ## Classification
396
+ ### Classification
397
397
 
398
398
  For each meaningful finding:
399
399
 
@@ -403,13 +403,13 @@ For each meaningful finding:
403
403
 
404
404
  Omit trivial noise when it adds no value.
405
405
 
406
- ## Pathfinder gaps
406
+ ### Pathfinder gaps
407
407
 
408
408
  Only genuine gaps not already covered.
409
409
 
410
410
  If none exist, say so.
411
411
 
412
- ## Recommended changes
412
+ ### Recommended changes
413
413
 
414
414
  Rank recommendations from highest to lowest value.
415
415
 
@@ -423,11 +423,11 @@ For each recommendation provide:
423
423
  * validation approach
424
424
  * confidence
425
425
 
426
- ## No-change findings
426
+ ### No-change findings
427
427
 
428
428
  Mention important observations that should not modify Pathfinder and explain why.
429
429
 
430
- ## Reflect self-evaluation
430
+ ### Reflect self-evaluation
431
431
 
432
432
  Briefly assess whether this reflection process itself performed adequately.
433
433
 
@@ -437,7 +437,7 @@ If no material weakness was discovered, state:
437
437
 
438
438
  Do not invent one.
439
439
 
440
- ## Reflect improvement candidates
440
+ ### Reflect improvement candidates
441
441
 
442
442
  Include this section only when evidence supports changing `reflect/SKILL.md`.
443
443
 
@@ -454,7 +454,7 @@ For each candidate provide:
454
454
 
455
455
  ---
456
456
 
457
- # Principles
457
+ ## Principles
458
458
 
459
459
  > Execution is evidence.
460
460
 
@@ -183,6 +183,7 @@ Do not silently run or imitate the responsibilities of those skills.
183
183
 
184
184
  Use only the sections that add value:
185
185
 
186
+ ```markdown
186
187
  # Reverse-Engineering Report
187
188
 
188
189
  ## Objective
@@ -220,6 +221,7 @@ Complexity, accessibility, performance, maintenance, legal, or fidelity concerns
220
221
  ## Recommended Pathfinder Handoff
221
222
 
222
223
  The appropriate next skill, if any, and why.
224
+ ```
223
225
 
224
226
  ## Rules
225
227
 
@@ -32,7 +32,7 @@ Split a feature when it mixes several systems, requires a repo-wide mental model
32
32
 
33
33
  ## Output
34
34
 
35
- Create only the coherent MVP roadmap in `context/features/`, using the example template and project-selected naming/delivery policies.
35
+ Create only the coherent MVP roadmap in `context/features/`, using `templates/feature-spec.template.md` and project-selected naming/delivery policies.
36
36
 
37
37
  Each spec must include Context Boundary, Delivery Chunks, and Learning Targets.
38
38
 
@@ -1,9 +1,10 @@
1
- # [Project Name] — Project Overview
1
+ # Project Overview
2
2
 
3
3
  > Describe the product, audience, intended feeling, and reason it should exist.
4
4
 
5
5
  ## Status
6
6
 
7
+ - Project: `[Project Name]`
7
8
  - Stage: `[idea / prototype / MVP / production / maintenance]`
8
9
  - Repo type: `[new / existing / application / library / service / monorepo / other]`
9
10
  - Primary goal: `[success definition]`