create-pathfinder 1.3.0

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 (62) hide show
  1. package/AGENTS.md +7 -0
  2. package/CLAUDE.md +71 -0
  3. package/LICENSE +21 -0
  4. package/README.md +60 -0
  5. package/bin/create-pathfinder.mjs +8 -0
  6. package/context/ai-interaction.md +76 -0
  7. package/context/coding-standards.md +72 -0
  8. package/context/current-feature.md +46 -0
  9. package/context/features/example-feature-spec.md +99 -0
  10. package/context/history.md +14 -0
  11. package/context/learning/learner-profile.md +35 -0
  12. package/context/learning/lessons/.gitkeep +0 -0
  13. package/context/learning/progress.md +28 -0
  14. package/context/project-overview.md +198 -0
  15. package/copy-list.json +11 -0
  16. package/package.json +51 -0
  17. package/prompts/01-kickstart-project.md +1 -0
  18. package/prompts/01-teach-current-feature.md +9 -0
  19. package/prompts/02-debate-me.md +1 -0
  20. package/prompts/02-quiz-current-feature.md +7 -0
  21. package/prompts/03-challenge-current-feature.md +7 -0
  22. package/prompts/03-prototype.md +1 -0
  23. package/prompts/04-teach-current-architecture.md +7 -0
  24. package/prompts/04-to-specs.md +1 -0
  25. package/prompts/05-learning-review.md +5 -0
  26. package/prompts/05-load-feature.md +1 -0
  27. package/prompts/06-start-feature.md +1 -0
  28. package/prompts/07-review-feature.md +1 -0
  29. package/prompts/08-complete-feature.md +1 -0
  30. package/prompts/09-learn-feature.md +1 -0
  31. package/prompts/10-learn-codebase.md +1 -0
  32. package/prompts/11-handoff.md +1 -0
  33. package/prompts/12-skillsmith.md +1 -0
  34. package/prompts/13-reverse-engineer.md +18 -0
  35. package/prompts/14-reflect.md +13 -0
  36. package/skills/challenge-me/SKILL.md +81 -0
  37. package/skills/complete-feature/SKILL.md +17 -0
  38. package/skills/debate-me/SKILL.md +82 -0
  39. package/skills/handoff/SKILL.md +12 -0
  40. package/skills/kickstart-pathfinder/SKILL.md +49 -0
  41. package/skills/learn-codebase/SKILL.md +33 -0
  42. package/skills/learn-feature/SKILL.md +48 -0
  43. package/skills/learning-review/SKILL.md +76 -0
  44. package/skills/load-feature/SKILL.md +17 -0
  45. package/skills/prototype/SKILL.md +46 -0
  46. package/skills/quiz-me/SKILL.md +78 -0
  47. package/skills/reflect/SKILL.md +481 -0
  48. package/skills/reverse-engineer/SKILL.md +252 -0
  49. package/skills/review-feature/SKILL.md +25 -0
  50. package/skills/skillsmith/SKILL.md +14 -0
  51. package/skills/start-feature/SKILL.md +25 -0
  52. package/skills/teach-architecture/SKILL.md +79 -0
  53. package/skills/teach-feature/SKILL.md +110 -0
  54. package/skills/to-specs/SKILL.md +45 -0
  55. package/src/cli.mjs +156 -0
  56. package/src/install.mjs +99 -0
  57. package/src/kit.mjs +94 -0
  58. package/templates/CHANGELOG.template.md +11 -0
  59. package/templates/feature-spec.template.md +99 -0
  60. package/templates/lesson.template.md +71 -0
  61. package/templates/progress-entry.template.md +23 -0
  62. package/templates/project-overview.template.md +198 -0
@@ -0,0 +1,252 @@
1
+ ---
2
+ name: reverse-engineer
3
+ description: Analyze an external product, interface, repository, workflow, or reference implementation and produce an evidence-based reconstruction blueprint without copying protected assets or inventing unsupported details.
4
+ ---
5
+
6
+ # Reverse Engineer
7
+
8
+ Use this skill when the user wants to understand how an existing external product, interface, repository, interaction, animation, or workflow was likely built so they can learn from it, recreate its underlying behavior, or adapt its patterns to their own project.
9
+
10
+ This skill analyzes references.
11
+
12
+ It does not initialize a Pathfinder project, implement a feature, or replace `kickstart-pathfinder`, `prototype`, `to-specs`, `learn-codebase`, or the feature delivery loop.
13
+
14
+ ## Appropriate Inputs
15
+
16
+ The user may provide one or more of:
17
+
18
+ * a public website or product URL
19
+ * a public repository URL
20
+ * screenshots or screen recordings
21
+ * a live interface
22
+ * product documentation
23
+ * source files the user is authorized to inspect
24
+ * a description of a product or interaction
25
+ * a specific flow, component, animation, or system to analyze
26
+
27
+ ## First Determine the Target
28
+
29
+ Identify what the user actually wants reverse-engineered:
30
+
31
+ * visual design
32
+ * user experience
33
+ * interaction behavior
34
+ * animation or motion
35
+ * frontend architecture
36
+ * backend or data flow
37
+ * component structure
38
+ * state management
39
+ * API behavior
40
+ * information architecture
41
+ * business workflow
42
+ * full product system
43
+
44
+ Do not automatically analyze every layer.
45
+
46
+ Prefer the narrowest scope that answers the request.
47
+
48
+ If the target is broad, state which layers can be observed directly and which can only be inferred.
49
+
50
+ ## Evidence Levels
51
+
52
+ Classify meaningful findings as one of:
53
+
54
+ * **Observed** — directly visible in the provided reference, source code, network behavior, documentation, or repository.
55
+ * **Strong inference** — not directly visible, but strongly supported by multiple observations.
56
+ * **Possible implementation** — one reasonable way to reproduce the behavior, but not evidence of how the original was built.
57
+ * **Unknown** — cannot be determined from the available evidence.
58
+
59
+ Never present an inference as a confirmed implementation detail.
60
+
61
+ ## Process
62
+
63
+ ### 1. Define the objective
64
+
65
+ Restate:
66
+
67
+ * what is being analyzed
68
+ * what the user wants to learn or reproduce
69
+ * the analysis boundary
70
+ * what evidence is available
71
+ * what cannot be verified
72
+
73
+ Ask a question only when a missing answer would materially change the analysis.
74
+
75
+ Otherwise, proceed using clearly stated assumptions.
76
+
77
+ ### 2. Gather evidence
78
+
79
+ Inspect only the evidence relevant to the requested scope.
80
+
81
+ Depending on the input, this may include:
82
+
83
+ * visible page structure
84
+ * responsive behavior
85
+ * navigation and user flows
86
+ * interaction states
87
+ * timing and motion characteristics
88
+ * accessibility semantics
89
+ * repository structure
90
+ * package and configuration files
91
+ * source code boundaries
92
+ * API calls visible through authorized inspection
93
+ * public technical documentation
94
+ * repeated visual or behavioral patterns
95
+
96
+ Do not perform destructive actions.
97
+
98
+ Do not attempt to bypass authentication, authorization, paywalls, rate limits, anti-bot controls, or private systems.
99
+
100
+ ### 3. Decompose the system
101
+
102
+ Break the target into understandable parts such as:
103
+
104
+ * experience and user flow
105
+ * page or screen hierarchy
106
+ * component hierarchy
107
+ * data and state flow
108
+ * services and integrations
109
+ * animation system
110
+ * responsive behavior
111
+ * accessibility behavior
112
+ * likely architectural boundaries
113
+
114
+ Use only the sections relevant to the request.
115
+
116
+ Do not force a full-stack analysis onto a visual interaction request.
117
+
118
+ ### 4. Separate facts from reconstruction choices
119
+
120
+ For each major area, distinguish:
121
+
122
+ 1. what was observed
123
+ 2. what was inferred
124
+ 3. what remains unknown
125
+ 4. what implementation Pathfinder could use to reproduce the outcome
126
+
127
+ The reconstruction recommendation does not need to use the original product’s exact stack.
128
+
129
+ Prefer a solution appropriate for the user’s project, constraints, and existing conventions.
130
+
131
+ ### 5. Identify the transferable pattern
132
+
133
+ Explain the underlying idea rather than merely listing surface details.
134
+
135
+ Examples:
136
+
137
+ * progressive disclosure
138
+ * optimistic interaction
139
+ * scroll-linked storytelling
140
+ * command palette architecture
141
+ * reusable card composition
142
+ * local-first state
143
+ * staged data loading
144
+ * motion used as spatial continuity
145
+ * server-driven configuration
146
+
147
+ State why the pattern works and where it may fail.
148
+
149
+ ### 6. Produce a reconstruction blueprint
150
+
151
+ When implementation guidance is requested, include:
152
+
153
+ * smallest reproducible version
154
+ * logical components or modules
155
+ * state and data responsibilities
156
+ * interaction states
157
+ * responsive requirements
158
+ * accessibility requirements
159
+ * dependencies only when justified
160
+ * risks and unknowns
161
+ * verification approach
162
+ * optional higher-fidelity improvements
163
+
164
+ Keep the blueprint stack-agnostic unless the user’s project context establishes a stack.
165
+
166
+ ### 7. Recommend the Pathfinder handoff
167
+
168
+ End by recommending the correct next Pathfinder step.
169
+
170
+ Use one of these:
171
+
172
+ * `kickstart-pathfinder` — when this analysis is becoming a new project
173
+ * `debate-me` — when major product or technical decisions remain
174
+ * `prototype` — when the experience or technical assumption needs validation
175
+ * `to-specs` — when the direction is approved and ready to become feature files
176
+ * `load-feature` — when the analysis applies to one already-planned feature
177
+ * `learn-codebase` — when the user wants to understand their own repository instead
178
+ * no handoff — when the user only requested analysis
179
+
180
+ Do not silently run or imitate the responsibilities of those skills.
181
+
182
+ ## Default Output
183
+
184
+ Use only the sections that add value:
185
+
186
+ # Reverse-Engineering Report
187
+
188
+ ## Objective
189
+
190
+ What was analyzed and what the user wants to reproduce or understand.
191
+
192
+ ## Evidence Available
193
+
194
+ The sources inspected and important limitations.
195
+
196
+ ## Observed Behavior
197
+
198
+ Directly verifiable findings.
199
+
200
+ ## Likely Structure
201
+
202
+ Strongly supported architectural, component, data, or interaction inferences.
203
+
204
+ ## Unknowns
205
+
206
+ Details that cannot be determined honestly.
207
+
208
+ ## Transferable Patterns
209
+
210
+ The underlying techniques worth learning or adapting.
211
+
212
+ ## Reconstruction Blueprint
213
+
214
+ A practical implementation approach for the user’s project.
215
+
216
+ ## Risks and Tradeoffs
217
+
218
+ Complexity, accessibility, performance, maintenance, legal, or fidelity concerns.
219
+
220
+ ## Recommended Pathfinder Handoff
221
+
222
+ The appropriate next skill, if any, and why.
223
+
224
+ ## Rules
225
+
226
+ * Distinguish observation from inference.
227
+ * Do not claim to know a private or server-side implementation from surface evidence.
228
+ * Do not copy proprietary source code, trademarks, text, illustrations, icons, audio, video, or other protected assets.
229
+ * Reproduce underlying behavior and patterns, not brand identity.
230
+ * Do not bypass technical or access controls.
231
+ * Do not inspect unrelated parts of a repository or product.
232
+ * Do not modify the user’s project unless explicitly requested through the appropriate Pathfinder delivery skill.
233
+ * Do not install dependencies.
234
+ * Do not create feature files unless the user invokes `to-specs`.
235
+ * Do not create prototype code unless the user invokes `prototype`.
236
+ * Do not turn uncertain technology guesses into requirements.
237
+ * Prefer simple reconstruction approaches over stack imitation.
238
+ * Respect `CLAUDE.md`, `AGENTS.md`, and `context/ai-interaction.md` when operating inside a Pathfinder-enabled repository.
239
+ * Keep the output proportional to the target. A single component should not receive a full product architecture report.
240
+
241
+ ## Quality Check
242
+
243
+ Before finishing, verify:
244
+
245
+ * Is the requested target clearly defined?
246
+ * Are observations and inferences visibly separated?
247
+ * Is every major claim supported by available evidence?
248
+ * Are unknowns stated honestly?
249
+ * Does the blueprint reproduce the outcome rather than imitate the brand?
250
+ * Is the recommended implementation appropriate for the user’s project?
251
+ * Does the skill avoid overlapping with another Pathfinder skill?
252
+ * Is the next Pathfinder handoff explicit and correct?
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: review-feature
3
+ description: Review an implemented feature against its spec, repository standards, regressions, and project quality priorities.
4
+ ---
5
+
6
+ # Review Feature
7
+
8
+ Review the actual diff and behavior, not only a summary.
9
+
10
+ ## Check
11
+
12
+ - acceptance criteria and missed requirements
13
+ - regressions, logic errors, edge/failure states
14
+ - security/privacy and data boundaries
15
+ - accessibility, performance, compatibility, and operations when applicable
16
+ - tests and verification quality
17
+ - scope creep and unrelated churn
18
+ - consistency with approved architecture and prototype direction
19
+ - documentation accuracy
20
+
21
+ ## Output
22
+
23
+ List findings by severity with file/location, impact, and practical fix. Then list verification performed, residual risk, and whether it is ready to complete.
24
+
25
+ Do not modify code unless the user asks for fixes. Do not manufacture findings to fill a template.
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: skillsmith
3
+ description: Teach and help create small, verifiable local agent skills from repeated workflow pain.
4
+ ---
5
+
6
+ # Skillsmith
7
+
8
+ A skill is a reusable behavior contract, not a project manifesto.
9
+
10
+ Ask: what repeated task fails, when should the skill trigger, what minimum inputs are needed, what concrete output should result, how is success verified, and what must it not do?
11
+
12
+ A good skill has a narrow trigger, bounded context, ordered process, human checkpoints where needed, concrete output, stop condition, and conflict-free guardrails.
13
+
14
+ Teach through one relevant example and one anti-example. Keep version one small and easy to delete.
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: start-feature
3
+ description: Implement the active feature one stable delivery chunk at a time under the project's approved workflow.
4
+ ---
5
+
6
+ # Start Feature
7
+
8
+ ## Before Coding
9
+
10
+ Restate goal, chunk, files/areas, context, risks, assumptions, verification, exclusions, Git state, and intended Git action.
11
+
12
+ ## Process
13
+
14
+ 1. Follow the project's documented Git and approval policy.
15
+ 2. Read only the active chunk's context.
16
+ 3. Implement the smallest complete change.
17
+ 4. Verify the chunk with relevant checks.
18
+ 5. Keep the project stable.
19
+ 6. Update current-feature state and move to the next chunk only when appropriate.
20
+
21
+ ## Rules
22
+
23
+ - Stop on conflicts between spec, durable context, and repository reality.
24
+ - Do not add dependencies, expand scope, adopt prototype code, commit, merge, or deploy without the documented approval.
25
+ - Do not hide multiple features inside one delivery chunk.
@@ -0,0 +1,79 @@
1
+ ---
2
+ name: teach-architecture
3
+ description: Explain how one or more completed features fit into the wider application and system architecture.
4
+ argument-hint: optional scope such as frontend, data, realtime, testing, or full
5
+ ---
6
+
7
+ # Teach Architecture
8
+
9
+ Use this skill when the learner understands an individual feature and needs to zoom out.
10
+
11
+ The goal is to connect implementation details to system boundaries, ownership, scaling, and team architecture.
12
+
13
+ ## Read First
14
+
15
+ 1. `context/project-overview.md`
16
+ 2. `context/learning/learner-profile.md`
17
+ 3. Relevant completed feature specs and lessons
18
+ 4. Architecture-relevant source files only
19
+ 5. Data contracts, API boundaries, stores, routing, and deployment configuration relevant to the requested scope
20
+ 6. Existing ADRs, if present
21
+
22
+ Do not infer services or infrastructure that do not exist. Clearly distinguish current architecture from likely future architecture.
23
+
24
+ ## Teach These Layers
25
+
26
+ Select only the relevant layers:
27
+
28
+ - Product surfaces and user journeys
29
+ - Component and design-system boundaries
30
+ - Feature/module boundaries
31
+ - Client state versus server state
32
+ - Data fetching and cache lifecycle
33
+ - API and backend contracts
34
+ - Persistence
35
+ - Authentication and authorization
36
+ - Event and real-time flows
37
+ - Observability and failure handling
38
+ - Testing pyramid and contract boundaries
39
+ - Build, deployment, and runtime boundaries
40
+ - Team ownership and package boundaries
41
+ - Performance and scale limits
42
+
43
+ ## Required Output
44
+
45
+ Create or update a scoped lesson under:
46
+
47
+ ```text
48
+ context/learning/lessons/YYYY-MM-DD-architecture-[scope].md
49
+ ```
50
+
51
+ Include:
52
+
53
+ 1. Current architecture
54
+ 2. A Mermaid container or flow diagram
55
+ 3. Dependency direction
56
+ 4. State and data ownership
57
+ 5. Important invariants
58
+ 6. Failure paths
59
+ 7. Scaling pressure points
60
+ 8. Credible alternative architecture
61
+ 9. Why the current level of complexity is or is not appropriate
62
+ 10. Senior interview questions and answer outlines
63
+
64
+ ## Architecture Honesty
65
+
66
+ Use labels such as:
67
+
68
+ - `implemented`
69
+ - `mocked`
70
+ - `planned`
71
+ - `recommended later`
72
+
73
+ Do not present a future target diagram as current reality.
74
+
75
+ ## Scope
76
+
77
+ - Do not refactor code.
78
+ - Do not introduce microservices, microfrontends, queues, or real-time infrastructure merely to make the diagram impressive.
79
+ - Prefer the simplest architecture that satisfies current requirements.
@@ -0,0 +1,110 @@
1
+ ---
2
+ name: teach-feature
3
+ description: Teach the verified current feature from its spec, diff, tests, and implementation without changing product code.
4
+ ---
5
+
6
+ # Teach Feature
7
+
8
+ Use this skill after a feature has been implemented and reviewed, or when the user explicitly asks to understand an existing feature.
9
+
10
+ The goal is not to produce generic documentation. The goal is to help the learner build a durable mental model from the actual repository.
11
+
12
+ ## Read First
13
+
14
+ Read only the smallest useful context:
15
+
16
+ 1. `context/learning/learner-profile.md`
17
+ 2. `context/current-feature.md`
18
+ 3. The source feature spec under `context/features/`
19
+ 4. `context/project-overview.md`
20
+ 5. The current branch, working tree status, and focused diff
21
+ 6. Tests and implementation files touched by the feature
22
+ 7. Relevant ADR, coding standard, or design-system guidance only when it materially affects the feature
23
+
24
+ Do not read the entire repository by default.
25
+
26
+ If the feature or diff cannot be identified, ask for the branch, spec, commit range, or explicit file set.
27
+
28
+ ## Reconcile Before Teaching
29
+
30
+ Briefly determine:
31
+
32
+ - What the spec intended
33
+ - What the implementation actually does
34
+ - What tests verify
35
+ - Any drift, incomplete work, or uncertainty
36
+
37
+ Do not teach planned behavior as if it exists.
38
+
39
+ ## Teaching Goals
40
+
41
+ Explain:
42
+
43
+ - The user or system problem
44
+ - The feature boundary
45
+ - The mental model
46
+ - Event and data flow
47
+ - Responsibilities of important files
48
+ - State ownership and synchronization
49
+ - Error, loading, empty, and success behavior
50
+ - Testing strategy
51
+ - Accessibility implications
52
+ - Performance implications
53
+ - Maintainability and extension points
54
+ - Meaningful decisions and tradeoffs
55
+ - Production-scale gaps
56
+ - Senior-level interview framing
57
+
58
+ ## Adaptation
59
+
60
+ Use `context/learning/learner-profile.md`.
61
+
62
+ For an experienced engineer:
63
+
64
+ - Do not spend most of the lesson paraphrasing syntax.
65
+ - Explain architectural consequences.
66
+ - Compare credible alternatives.
67
+ - Identify hidden coupling and invariants.
68
+ - Connect component-level decisions to team and system scale.
69
+ - Point out gaps directly and constructively.
70
+
71
+ ## Lesson Artifact
72
+
73
+ Create:
74
+
75
+ ```text
76
+ context/learning/lessons/YYYY-MM-DD-[feature-slug].md
77
+ ```
78
+
79
+ Use `templates/lesson.template.md`.
80
+
81
+ Keep the lesson focused. Prefer five strong transferable concepts over twenty shallow observations.
82
+
83
+ Mermaid diagrams are encouraged for:
84
+
85
+ - event flow
86
+ - state ownership
87
+ - request lifecycle
88
+ - component boundaries
89
+ - dependency direction
90
+
91
+ ## Interaction Rule
92
+
93
+ After producing the lesson, stop and offer exactly one recommended next action:
94
+
95
+ - `quiz-me`
96
+ - `challenge-me`
97
+ - `teach-architecture`
98
+ - a later spaced review
99
+ - no follow-up needed
100
+
101
+ Do not automatically run the next skill.
102
+
103
+ ## Safety and Scope
104
+
105
+ - Do not modify product code.
106
+ - Do not install packages.
107
+ - Do not commit or merge.
108
+ - Do not invent intent that is unsupported by code or specs.
109
+ - Do not reveal private chain-of-thought.
110
+ - Explain evidence, reasoning summaries, and tradeoffs.
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: to-specs
3
+ description: Convert approved project context into small sequential feature specs optimized for focused LLM context and reliable delivery.
4
+ ---
5
+
6
+ # To Specs
7
+
8
+ ## Readiness Check
9
+
10
+ Confirm:
11
+
12
+ - MVP and first useful flow are defined
13
+ - critical stack and workflow choices are approved or deliberately deferred
14
+ - required prototype direction is approved
15
+ - known verification methods exist or are explicitly deferred
16
+ - no material context contradictions remain
17
+
18
+ If not ready, report the blockers instead of inventing decisions.
19
+
20
+ ## Sizing Principles
21
+
22
+ Each feature should:
23
+
24
+ - create one visible or system-verifiable outcome
25
+ - fit one focused branch/change set under the project's workflow
26
+ - be independently reviewable and verifiable
27
+ - require a coherent, bounded set of context
28
+ - state dependencies, assumptions, and exclusions
29
+ - contain stable delivery chunks
30
+
31
+ Split a feature when it mixes several systems, requires a repo-wide mental model, combines infrastructure with unrelated UX/polish, or cannot be verified independently.
32
+
33
+ ## Output
34
+
35
+ Create only the coherent MVP roadmap in `context/features/`, using the example template and project-selected naming/delivery policies.
36
+
37
+ Each spec must include Context Boundary, Delivery Chunks, and Learning Targets.
38
+
39
+ After creation, summarize file, outcome, dependency, visible/verifiable win, context risk, and recommended first feature.
40
+
41
+ ## Rules
42
+
43
+ - Do not implement or install packages.
44
+ - Do not assume UI, mobile, a framework, a branch type, or conventional commits.
45
+ - Do not plan the entire dream product.