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.
- package/AGENTS.md +7 -0
- package/CLAUDE.md +71 -0
- package/LICENSE +21 -0
- package/README.md +60 -0
- package/bin/create-pathfinder.mjs +8 -0
- package/context/ai-interaction.md +76 -0
- package/context/coding-standards.md +72 -0
- package/context/current-feature.md +46 -0
- package/context/features/example-feature-spec.md +99 -0
- package/context/history.md +14 -0
- package/context/learning/learner-profile.md +35 -0
- package/context/learning/lessons/.gitkeep +0 -0
- package/context/learning/progress.md +28 -0
- package/context/project-overview.md +198 -0
- package/copy-list.json +11 -0
- package/package.json +51 -0
- package/prompts/01-kickstart-project.md +1 -0
- package/prompts/01-teach-current-feature.md +9 -0
- package/prompts/02-debate-me.md +1 -0
- package/prompts/02-quiz-current-feature.md +7 -0
- package/prompts/03-challenge-current-feature.md +7 -0
- package/prompts/03-prototype.md +1 -0
- package/prompts/04-teach-current-architecture.md +7 -0
- package/prompts/04-to-specs.md +1 -0
- package/prompts/05-learning-review.md +5 -0
- package/prompts/05-load-feature.md +1 -0
- package/prompts/06-start-feature.md +1 -0
- package/prompts/07-review-feature.md +1 -0
- package/prompts/08-complete-feature.md +1 -0
- package/prompts/09-learn-feature.md +1 -0
- package/prompts/10-learn-codebase.md +1 -0
- package/prompts/11-handoff.md +1 -0
- package/prompts/12-skillsmith.md +1 -0
- package/prompts/13-reverse-engineer.md +18 -0
- package/prompts/14-reflect.md +13 -0
- package/skills/challenge-me/SKILL.md +81 -0
- package/skills/complete-feature/SKILL.md +17 -0
- package/skills/debate-me/SKILL.md +82 -0
- package/skills/handoff/SKILL.md +12 -0
- package/skills/kickstart-pathfinder/SKILL.md +49 -0
- package/skills/learn-codebase/SKILL.md +33 -0
- package/skills/learn-feature/SKILL.md +48 -0
- package/skills/learning-review/SKILL.md +76 -0
- package/skills/load-feature/SKILL.md +17 -0
- package/skills/prototype/SKILL.md +46 -0
- package/skills/quiz-me/SKILL.md +78 -0
- package/skills/reflect/SKILL.md +481 -0
- package/skills/reverse-engineer/SKILL.md +252 -0
- package/skills/review-feature/SKILL.md +25 -0
- package/skills/skillsmith/SKILL.md +14 -0
- package/skills/start-feature/SKILL.md +25 -0
- package/skills/teach-architecture/SKILL.md +79 -0
- package/skills/teach-feature/SKILL.md +110 -0
- package/skills/to-specs/SKILL.md +45 -0
- package/src/cli.mjs +156 -0
- package/src/install.mjs +99 -0
- package/src/kit.mjs +94 -0
- package/templates/CHANGELOG.template.md +11 -0
- package/templates/feature-spec.template.md +99 -0
- package/templates/lesson.template.md +71 -0
- package/templates/progress-entry.template.md +23 -0
- package/templates/project-overview.template.md +198 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
# [Project Name] — Project Overview
|
|
2
|
+
|
|
3
|
+
> Describe the product, audience, intended feeling, and reason it should exist.
|
|
4
|
+
|
|
5
|
+
## Status
|
|
6
|
+
|
|
7
|
+
- Stage: `[idea / prototype / MVP / production / maintenance]`
|
|
8
|
+
- Repo type: `[new / existing / application / library / service / monorepo / other]`
|
|
9
|
+
- Primary goal: `[success definition]`
|
|
10
|
+
- Prototype status: `[not required / recommended / in progress / approved / rejected / TBD]`
|
|
11
|
+
|
|
12
|
+
## Decision States
|
|
13
|
+
|
|
14
|
+
- `TBD` — human decision required
|
|
15
|
+
- `None` — intentionally excluded
|
|
16
|
+
- `N/A` — not applicable
|
|
17
|
+
- `Deferred` — intentionally postponed
|
|
18
|
+
|
|
19
|
+
## Product Vision
|
|
20
|
+
|
|
21
|
+
- Problem:
|
|
22
|
+
- Primary user:
|
|
23
|
+
- First useful outcome:
|
|
24
|
+
- Distinctive quality:
|
|
25
|
+
- What this must avoid becoming:
|
|
26
|
+
|
|
27
|
+
## MVP Boundary
|
|
28
|
+
|
|
29
|
+
### In scope
|
|
30
|
+
|
|
31
|
+
- `[essential outcome]`
|
|
32
|
+
|
|
33
|
+
### Out of scope
|
|
34
|
+
|
|
35
|
+
- `[deferred outcome]`
|
|
36
|
+
|
|
37
|
+
### Success signals
|
|
38
|
+
|
|
39
|
+
- `[observable user, business, system, or learning signal]`
|
|
40
|
+
|
|
41
|
+
## Core Experience or System Flow
|
|
42
|
+
|
|
43
|
+
```text
|
|
44
|
+
starting state -> action/process -> useful result -> reason to return or continue
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Requirements, Preferences, Constraints, and Open Decisions
|
|
48
|
+
|
|
49
|
+
| Type | Item | Notes |
|
|
50
|
+
| --- | --- | --- |
|
|
51
|
+
| Requirement | `[must be true]` | |
|
|
52
|
+
| Preference | `[desired but negotiable]` | |
|
|
53
|
+
| Constraint | `[limit or external obligation]` | |
|
|
54
|
+
| Open decision | `[TBD]` | |
|
|
55
|
+
|
|
56
|
+
## Recommended and Approved Technology
|
|
57
|
+
|
|
58
|
+
Recommendations may be proposed by `debate-me`; approved choices belong here.
|
|
59
|
+
|
|
60
|
+
| Layer | Approved choice | Reason | Status |
|
|
61
|
+
| --- | --- | --- | --- |
|
|
62
|
+
| Platform/runtime | `TBD` | | |
|
|
63
|
+
| Language(s) | `TBD` | | |
|
|
64
|
+
| UI/presentation | `TBD / N/A` | | |
|
|
65
|
+
| Backend/application layer | `TBD / None` | | |
|
|
66
|
+
| Data storage | `TBD / None` | | |
|
|
67
|
+
| Data access/ORM | `TBD / None` | | |
|
|
68
|
+
| Authentication | `TBD / None` | | |
|
|
69
|
+
| Authorization | `TBD / None` | | |
|
|
70
|
+
| API/integration style | `TBD / None` | | |
|
|
71
|
+
| State management | `TBD / N/A` | | |
|
|
72
|
+
| Testing | `TBD` | | |
|
|
73
|
+
| Build/package tooling | `TBD` | | |
|
|
74
|
+
| Deployment/runtime environment | `TBD` | | |
|
|
75
|
+
| Observability | `TBD / Deferred` | | |
|
|
76
|
+
| AI providers/models | `TBD / None` | | |
|
|
77
|
+
|
|
78
|
+
## Architecture
|
|
79
|
+
|
|
80
|
+
- Architecture style: `TBD`
|
|
81
|
+
- Repository shape: `TBD`
|
|
82
|
+
- Main boundaries/modules:
|
|
83
|
+
- Data/control flow:
|
|
84
|
+
- Important tradeoffs:
|
|
85
|
+
|
|
86
|
+
```text
|
|
87
|
+
[path or module] # purpose
|
|
88
|
+
[path or module] # purpose
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Prototype Direction
|
|
92
|
+
|
|
93
|
+
- Prototype needed: `[yes / no / TBD]`
|
|
94
|
+
- Type: `[experience / technical / diagram / mixed / N/A]`
|
|
95
|
+
- Assumption being validated:
|
|
96
|
+
- Output location:
|
|
97
|
+
- Review criteria:
|
|
98
|
+
- Approved direction:
|
|
99
|
+
- Elements explicitly not adopted into production:
|
|
100
|
+
|
|
101
|
+
## Delivery Workflow
|
|
102
|
+
|
|
103
|
+
| Area | Choice |
|
|
104
|
+
| --- | --- |
|
|
105
|
+
| Git workflow | `TBD` |
|
|
106
|
+
| Default/stable branch | `TBD` |
|
|
107
|
+
| Branch naming | `TBD / N/A` |
|
|
108
|
+
| Commit convention | `TBD / None` |
|
|
109
|
+
| Pull request policy | `TBD` |
|
|
110
|
+
| Merge strategy | `TBD` |
|
|
111
|
+
| CI/CD | `TBD / None` |
|
|
112
|
+
| Versioning | `TBD / None` |
|
|
113
|
+
| Changelog | `TBD / None` |
|
|
114
|
+
| Release process | `TBD / None` |
|
|
115
|
+
|
|
116
|
+
## Environments and Integrations
|
|
117
|
+
|
|
118
|
+
| Area | Choice | Notes |
|
|
119
|
+
| --- | --- | --- |
|
|
120
|
+
| Local development | `TBD` | |
|
|
121
|
+
| Preview/staging | `TBD / None` | |
|
|
122
|
+
| Production | `TBD / None` | |
|
|
123
|
+
| Environment configuration | `TBD` | |
|
|
124
|
+
| Secrets management | `TBD / N/A` | |
|
|
125
|
+
| External APIs/services | `TBD / None` | |
|
|
126
|
+
| Rate/cost limits | `TBD / N/A` | |
|
|
127
|
+
|
|
128
|
+
## Quality Priorities
|
|
129
|
+
|
|
130
|
+
Rank only what matters for this project.
|
|
131
|
+
|
|
132
|
+
1. `[priority]`
|
|
133
|
+
2. `[priority]`
|
|
134
|
+
3. `[priority]`
|
|
135
|
+
|
|
136
|
+
| Concern | Target or decision |
|
|
137
|
+
| --- | --- |
|
|
138
|
+
| Correctness/reliability | `TBD` |
|
|
139
|
+
| Security/privacy | `TBD / N/A` |
|
|
140
|
+
| Accessibility | `TBD / N/A` |
|
|
141
|
+
| Performance | `TBD / N/A` |
|
|
142
|
+
| Browser/platform support | `TBD / N/A` |
|
|
143
|
+
| Localization | `TBD / None` |
|
|
144
|
+
| Offline behavior | `TBD / N/A` |
|
|
145
|
+
|
|
146
|
+
## Core Domain Concepts
|
|
147
|
+
|
|
148
|
+
Describe durable concepts without assuming a language:
|
|
149
|
+
|
|
150
|
+
```text
|
|
151
|
+
Entity/Concept: Example
|
|
152
|
+
Required fields: id, name
|
|
153
|
+
Important states: draft, active, archived
|
|
154
|
+
Relationships: belongs to / contains / references
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## Build, Test, and Run Commands
|
|
158
|
+
|
|
159
|
+
```text
|
|
160
|
+
install: TBD
|
|
161
|
+
run/dev: TBD
|
|
162
|
+
test: TBD
|
|
163
|
+
lint/static analysis: TBD
|
|
164
|
+
build/package: TBD
|
|
165
|
+
other verification: TBD
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## Build Phases
|
|
169
|
+
|
|
170
|
+
| Phase | Goal | Visible or verifiable win |
|
|
171
|
+
| --- | --- | --- |
|
|
172
|
+
| 1 | Foundation | `[result]` |
|
|
173
|
+
| 2 | Core experience/system | `[result]` |
|
|
174
|
+
| 3 | Real data/integration | `[result]` |
|
|
175
|
+
| 4 | Quality and release readiness | `[result]` |
|
|
176
|
+
|
|
177
|
+
## Learning Goals
|
|
178
|
+
|
|
179
|
+
- What the human wants to understand:
|
|
180
|
+
- Preferred lesson format: `[HTML / MDX / Markdown / existing docs system / TBD]`
|
|
181
|
+
- Quiz preferences:
|
|
182
|
+
- Topics to emphasize:
|
|
183
|
+
- Topics to avoid over-explaining:
|
|
184
|
+
|
|
185
|
+
## Durable Decisions
|
|
186
|
+
|
|
187
|
+
| Date | Decision | Reason | Status |
|
|
188
|
+
| --- | --- | --- | --- |
|
|
189
|
+
| `[YYYY-MM-DD]` | `[decision]` | `[reason]` | `[proposed / accepted / superseded]` |
|
|
190
|
+
|
|
191
|
+
## Things To Avoid
|
|
192
|
+
|
|
193
|
+
- Building before critical decisions are understood.
|
|
194
|
+
- Treating recommendations as approval.
|
|
195
|
+
- Silently resolving `TBD` items.
|
|
196
|
+
- Turning prototype shortcuts into production defaults.
|
|
197
|
+
- Over-documenting temporary implementation detail.
|
|
198
|
+
- Creating feature specs too large for a focused LLM context window.
|
package/copy-list.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "The canonical list of what a destination project receives when the Pathfinder kit is installed. This file is the single source of truth. src/kit.mjs reads it at runtime, .github/scripts/validate-kit.py checks every other statement of the list against it, and npm publishes it inside the package so the installer is self-contained. Change the list here and nowhere else; validation will name whatever falls out of step.",
|
|
3
|
+
"entries": [
|
|
4
|
+
"AGENTS.md",
|
|
5
|
+
"CLAUDE.md",
|
|
6
|
+
"context",
|
|
7
|
+
"prompts",
|
|
8
|
+
"skills",
|
|
9
|
+
"templates"
|
|
10
|
+
]
|
|
11
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-pathfinder",
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "Install the Pathfinder AI-assisted, human-in-the-loop workflow kit into a Git repository.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pathfinder",
|
|
7
|
+
"ai",
|
|
8
|
+
"agent",
|
|
9
|
+
"claude",
|
|
10
|
+
"workflow",
|
|
11
|
+
"skills",
|
|
12
|
+
"scaffold"
|
|
13
|
+
],
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"author": "Ricardo Lamadrid (Lamadrid Labs)",
|
|
16
|
+
"homepage": "https://github.com/rikilamadrid/pathfinder#readme",
|
|
17
|
+
"bugs": "https://github.com/rikilamadrid/pathfinder/issues",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/rikilamadrid/pathfinder.git",
|
|
21
|
+
"directory": "packages/create-pathfinder"
|
|
22
|
+
},
|
|
23
|
+
"type": "module",
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18"
|
|
26
|
+
},
|
|
27
|
+
"bin": {
|
|
28
|
+
"create-pathfinder": "bin/create-pathfinder.mjs"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"bin",
|
|
32
|
+
"src",
|
|
33
|
+
"copy-list.json",
|
|
34
|
+
"AGENTS.md",
|
|
35
|
+
"CLAUDE.md",
|
|
36
|
+
"context",
|
|
37
|
+
"prompts",
|
|
38
|
+
"skills",
|
|
39
|
+
"templates"
|
|
40
|
+
],
|
|
41
|
+
"scripts": {
|
|
42
|
+
"stage": "node scripts/stage-kit.mjs",
|
|
43
|
+
"unstage": "node scripts/stage-kit.mjs --clean",
|
|
44
|
+
"prepack": "node scripts/stage-kit.mjs",
|
|
45
|
+
"postpack": "node scripts/stage-kit.mjs --clean",
|
|
46
|
+
"prepublishOnly": "node scripts/publish-guard.mjs"
|
|
47
|
+
},
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use `skills/kickstart-pathfinder/SKILL.md` to discover and initialize this new or existing project. Ask progressively, preserve existing repo facts, distinguish recommendations from approved choices, and do not install packages, generate feature specs, or write product code yet.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Use `skills/teach-feature/SKILL.md`.
|
|
2
|
+
|
|
3
|
+
Teach me the verified current feature from its spec, focused diff, implementation, and tests.
|
|
4
|
+
|
|
5
|
+
Adapt the depth to `context/learning/learner-profile.md`.
|
|
6
|
+
|
|
7
|
+
Create the lesson under `context/learning/lessons/`.
|
|
8
|
+
|
|
9
|
+
Do not modify product code, install packages, commit, or merge.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use `skills/debate-me/SKILL.md` to pressure-test this idea or project. Recommend an MVP, technology/architecture, delivery workflow, and prototype checkpoint based on the findings. Present them for my acceptance, modification, comparison, or deferral; do not silently approve them for me.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Use `skills/quiz-me/SKILL.md`.
|
|
2
|
+
|
|
3
|
+
Quiz me on the most recent lesson for the current feature.
|
|
4
|
+
|
|
5
|
+
Ask one question at a time. Use varied question formats. Diagnose understanding rather than rewarding memorization.
|
|
6
|
+
|
|
7
|
+
Update `context/learning/progress.md` conservatively after the quiz.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Use `skills/challenge-me/SKILL.md`.
|
|
2
|
+
|
|
3
|
+
Create a small transfer challenge based on the current feature's lesson and my learning gaps.
|
|
4
|
+
|
|
5
|
+
Change at least one meaningful constraint so I must apply the concept in a new context.
|
|
6
|
+
|
|
7
|
+
Do not modify code until I explicitly approve implementation.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use `skills/prototype/SKILL.md` to validate the most important unresolved assumption with the cheapest useful prototype. Define review criteria, create or iterate the artifact, and do not treat it as production code.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Use `skills/teach-architecture/SKILL.md`.
|
|
2
|
+
|
|
3
|
+
Explain how the current feature fits into the wider application architecture.
|
|
4
|
+
|
|
5
|
+
Clearly distinguish implemented, mocked, planned, and later-recommended architecture.
|
|
6
|
+
|
|
7
|
+
Create a concise architecture lesson with Mermaid diagrams. Do not refactor code.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use `skills/to-specs/SKILL.md` to create a coherent MVP roadmap of context-sized, independently verifiable feature specs. Do not implement code or invent unresolved decisions.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Use `skills/learning-review/SKILL.md` in interview mode.
|
|
2
|
+
|
|
3
|
+
Review my recent lessons, quizzes, challenges, completed features, and progress.
|
|
4
|
+
|
|
5
|
+
Identify what I can credibly explain in a senior frontend interview, where my evidence is weak, and the three highest-value concepts to reinforce through upcoming features.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use `skills/load-feature/SKILL.md` to prepare the requested or next feature, validate its dependencies and context size, and populate `context/current-feature.md`. Do not implement yet.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use `skills/start-feature/SKILL.md` to implement the active feature one stable delivery chunk at a time under the project-selected workflow.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use `skills/review-feature/SKILL.md` to review the actual implementation against its spec, regressions, and project quality priorities. Report findings before changing code.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use `skills/complete-feature/SKILL.md` to verify, record, and close the accepted feature under the project delivery policy, then route to feature learning when enabled.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use `skills/learn-feature/SKILL.md` to create a rich interactive lesson and varied quiz for the completed feature, scoped to its implementation and direct dependencies.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use `skills/learn-codebase/SKILL.md` to create a modular interactive learning portal for this repository at the current milestone.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use `skills/handoff/SKILL.md` to create a compact factual handoff for the next agent or session.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use `skills/skillsmith/SKILL.md` to teach me how to design or improve a small local skill for a repeated workflow problem.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Use `skills/reverse-engineer/SKILL.md`.
|
|
2
|
+
|
|
3
|
+
Reverse-engineer the reference I provide.
|
|
4
|
+
|
|
5
|
+
Focus on the specific product, experience, system, component, animation, repository, or workflow I name.
|
|
6
|
+
|
|
7
|
+
Clearly separate:
|
|
8
|
+
|
|
9
|
+
* directly observed behavior
|
|
10
|
+
* strong inferences
|
|
11
|
+
* possible reconstruction choices
|
|
12
|
+
* unknown details
|
|
13
|
+
|
|
14
|
+
Explain the transferable patterns and produce a practical reconstruction blueprint.
|
|
15
|
+
|
|
16
|
+
Do not copy protected assets or claim unsupported knowledge about private implementation details.
|
|
17
|
+
|
|
18
|
+
Do not modify project files, create feature specs, install dependencies, or implement code unless I explicitly invoke the appropriate Pathfinder skill afterward.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Use `skills/reflect/SKILL.md`.
|
|
2
|
+
|
|
3
|
+
Reflect on the completed work I name.
|
|
4
|
+
|
|
5
|
+
Reconstruct what actually happened from repository evidence, then classify each finding as PROJECT, WORKFLOW CANDIDATE, or NOISE.
|
|
6
|
+
|
|
7
|
+
Only propose a Pathfinder change when the lesson would still hold in another language, framework, and business domain, and is not already covered by an existing skill or document.
|
|
8
|
+
|
|
9
|
+
Prefer the smallest durable improvement. Concluding that Pathfinder should not change is a valid result.
|
|
10
|
+
|
|
11
|
+
Then make one bounded pass over the reflection itself. Report `No Reflect improvement proposed.` unless evidence shows the process genuinely failed to do its job. Do not recurse further.
|
|
12
|
+
|
|
13
|
+
Do not modify Pathfinder, `AGENTS.md`, skills, prompts, or project files as part of reflection. Propose the changes and wait for my decision.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: challenge-me
|
|
3
|
+
description: Create a small transfer exercise that applies a learned feature concept in a changed context.
|
|
4
|
+
argument-hint: design|debug|refactor|implement
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Challenge Me
|
|
8
|
+
|
|
9
|
+
Use this skill after a lesson or quiz when the user wants to apply the concept rather than merely recall it.
|
|
10
|
+
|
|
11
|
+
A good challenge changes the context while preserving the underlying concept.
|
|
12
|
+
|
|
13
|
+
## Read First
|
|
14
|
+
|
|
15
|
+
1. `context/learning/learner-profile.md`
|
|
16
|
+
2. The relevant lesson
|
|
17
|
+
3. `context/learning/progress.md`
|
|
18
|
+
4. The feature spec and focused implementation when needed
|
|
19
|
+
5. Current git status if the challenge may involve code
|
|
20
|
+
|
|
21
|
+
## Challenge Types
|
|
22
|
+
|
|
23
|
+
Choose one, or honor the requested argument:
|
|
24
|
+
|
|
25
|
+
- `design` — propose an architecture or API under new constraints
|
|
26
|
+
- `debug` — diagnose a realistic defect
|
|
27
|
+
- `refactor` — improve structure while preserving behavior
|
|
28
|
+
- `implement` — build a small extension in a sandboxed or explicit feature branch
|
|
29
|
+
|
|
30
|
+
## Challenge Requirements
|
|
31
|
+
|
|
32
|
+
The challenge must include:
|
|
33
|
+
|
|
34
|
+
- Scenario
|
|
35
|
+
- Learning objective
|
|
36
|
+
- Constraints
|
|
37
|
+
- Definition of done
|
|
38
|
+
- Evidence expected from the learner
|
|
39
|
+
- Hints, hidden initially
|
|
40
|
+
- Evaluation rubric
|
|
41
|
+
|
|
42
|
+
Keep it small enough for one focused session.
|
|
43
|
+
|
|
44
|
+
## Transfer Rule
|
|
45
|
+
|
|
46
|
+
Do not simply ask the learner to reproduce the same feature.
|
|
47
|
+
|
|
48
|
+
Change at least one meaningful dimension:
|
|
49
|
+
|
|
50
|
+
- data volume
|
|
51
|
+
- asynchronous behavior
|
|
52
|
+
- user role
|
|
53
|
+
- accessibility requirement
|
|
54
|
+
- failure mode
|
|
55
|
+
- state ownership
|
|
56
|
+
- real-time updates
|
|
57
|
+
- backend contract
|
|
58
|
+
- performance constraint
|
|
59
|
+
- mobile interaction
|
|
60
|
+
- team or package boundary
|
|
61
|
+
|
|
62
|
+
## Coding Safety
|
|
63
|
+
|
|
64
|
+
For `implement` or `refactor`:
|
|
65
|
+
|
|
66
|
+
- Explain the proposed scope first.
|
|
67
|
+
- Do not edit code until the user explicitly approves implementation.
|
|
68
|
+
- Use a feature branch.
|
|
69
|
+
- Do not merge or commit without permission.
|
|
70
|
+
- Keep challenge code separate from production work when appropriate.
|
|
71
|
+
|
|
72
|
+
## Evaluation
|
|
73
|
+
|
|
74
|
+
After the learner responds:
|
|
75
|
+
|
|
76
|
+
- Evaluate against the rubric.
|
|
77
|
+
- Identify the strongest decision.
|
|
78
|
+
- Identify the most important weakness.
|
|
79
|
+
- Explain a stronger solution.
|
|
80
|
+
- Update `context/learning/progress.md`.
|
|
81
|
+
- Mark `transferable` only when the concept was applied correctly in the changed context.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: complete-feature
|
|
3
|
+
description: Close an accepted feature through final verification, records, delivery metadata, and an optional learning handoff.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Complete Feature
|
|
7
|
+
|
|
8
|
+
1. Confirm review findings are resolved or explicitly accepted.
|
|
9
|
+
2. Run final project-appropriate verification.
|
|
10
|
+
3. Confirm each acceptance criterion with evidence.
|
|
11
|
+
4. Follow the approved commit, PR, merge, changelog, versioning, release, and deployment policy—requesting approval where required.
|
|
12
|
+
5. Append the durable outcome to `context/history.md`.
|
|
13
|
+
6. Mark/reset `context/current-feature.md` and identify the next action.
|
|
14
|
+
7. Offer or invoke `learn-feature` when learning is enabled.
|
|
15
|
+
8. Produce a compact completion summary.
|
|
16
|
+
|
|
17
|
+
Do not claim completion when checks failed, evidence is missing, or the feature remains unaccepted.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: debate-me
|
|
3
|
+
description: Pressure-test an idea or project and recommend an MVP, technology, delivery workflow, and prototype checkpoint for human selection.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Debate Me
|
|
7
|
+
|
|
8
|
+
Use this skill before implementation when important product or technical choices deserve challenge.
|
|
9
|
+
|
|
10
|
+
## Inputs
|
|
11
|
+
|
|
12
|
+
Read the user's idea and the smallest relevant project context. Inspect an existing repo only enough to respect its constraints.
|
|
13
|
+
|
|
14
|
+
## Debate Areas
|
|
15
|
+
|
|
16
|
+
- user/problem clarity and first useful outcome
|
|
17
|
+
- MVP cuts and differentiation
|
|
18
|
+
- product, UX, operational, data, integration, security, and maintenance risks
|
|
19
|
+
- architecture and technical complexity
|
|
20
|
+
- team, budget, deadline, platform, and learning constraints
|
|
21
|
+
- testing, deployment, and supportability
|
|
22
|
+
- need for an experience or technical prototype
|
|
23
|
+
|
|
24
|
+
## Output
|
|
25
|
+
|
|
26
|
+
### Strongest Version of the Idea
|
|
27
|
+
|
|
28
|
+
A sharper restatement.
|
|
29
|
+
|
|
30
|
+
### Keep in MVP / Cut from MVP
|
|
31
|
+
|
|
32
|
+
Protect the first useful version.
|
|
33
|
+
|
|
34
|
+
### Biggest Risks
|
|
35
|
+
|
|
36
|
+
3–7 risks with practical mitigation.
|
|
37
|
+
|
|
38
|
+
### Questions That Materially Change the Build
|
|
39
|
+
|
|
40
|
+
Only unresolved questions with real consequences.
|
|
41
|
+
|
|
42
|
+
### Recommended Project Setup
|
|
43
|
+
|
|
44
|
+
Recommend, when relevant:
|
|
45
|
+
|
|
46
|
+
- product shape and architecture
|
|
47
|
+
- platform/runtime and language
|
|
48
|
+
- UI/presentation approach
|
|
49
|
+
- backend, database/data access, auth/authorization, APIs
|
|
50
|
+
- testing and observability
|
|
51
|
+
- deployment/environments
|
|
52
|
+
- Git workflow, branching, commits, reviews, CI/CD, versioning, releases
|
|
53
|
+
|
|
54
|
+
For each choice, explain why it fits and label it `recommended`, not `approved`.
|
|
55
|
+
|
|
56
|
+
### Prototype Recommendation
|
|
57
|
+
|
|
58
|
+
State one of:
|
|
59
|
+
|
|
60
|
+
- no prototype needed
|
|
61
|
+
- experience prototype
|
|
62
|
+
- technical proof of concept
|
|
63
|
+
- architecture/data-flow prototype
|
|
64
|
+
- mixed prototype
|
|
65
|
+
|
|
66
|
+
Define the assumption to validate, cheapest useful format, review criteria, and what must not be mistaken for production code.
|
|
67
|
+
|
|
68
|
+
### Human Choice
|
|
69
|
+
|
|
70
|
+
Ask the user to choose:
|
|
71
|
+
|
|
72
|
+
1. accept the recommendations
|
|
73
|
+
2. modify selected choices
|
|
74
|
+
3. compare alternatives
|
|
75
|
+
4. leave specific items `TBD`
|
|
76
|
+
5. prototype before deciding
|
|
77
|
+
|
|
78
|
+
Do not write approved context until the human responds.
|
|
79
|
+
|
|
80
|
+
### Recommended Next Move
|
|
81
|
+
|
|
82
|
+
Choose `prototype`, `kickstart-pathfinder`, `to-specs`, or pause.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: handoff
|
|
3
|
+
description: Preserve compact factual state so another agent or session can continue safely.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Handoff
|
|
7
|
+
|
|
8
|
+
Read current feature, relevant spec, history, Git state, and verification evidence.
|
|
9
|
+
|
|
10
|
+
Return current state, changed outcomes, approved decisions, verification, unresolved issues, assumptions, exact next action, and files worth reading.
|
|
11
|
+
|
|
12
|
+
Keep it compact. Do not include private chain-of-thought or an irrelevant transcript dump.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: kickstart-pathfinder
|
|
3
|
+
description: Discover and initialize a new or existing project without writing product code.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Kickstart Pathfinder
|
|
7
|
+
|
|
8
|
+
Use this skill to turn an idea or existing repository into durable, human-approved project context.
|
|
9
|
+
|
|
10
|
+
## Rules
|
|
11
|
+
|
|
12
|
+
- Do not install packages or write product code.
|
|
13
|
+
- Inspect existing repositories lightly and preserve established facts.
|
|
14
|
+
- Ask progressively; do not dump a giant questionnaire.
|
|
15
|
+
- Classify answers as requirements, preferences, constraints, or open decisions.
|
|
16
|
+
- Distinguish recommendations from approved choices.
|
|
17
|
+
- Never silently resolve `TBD` decisions.
|
|
18
|
+
|
|
19
|
+
## Discovery Areas
|
|
20
|
+
|
|
21
|
+
Ask only what materially affects the project:
|
|
22
|
+
|
|
23
|
+
1. Product, audience, first useful outcome, success signal
|
|
24
|
+
2. MVP boundary and explicit exclusions
|
|
25
|
+
3. Platform and experience type
|
|
26
|
+
4. Existing technical constraints or preferred technologies
|
|
27
|
+
5. Data, backend, database, auth, APIs, AI, payments, files, offline needs
|
|
28
|
+
6. Architecture and repository shape
|
|
29
|
+
7. Quality priorities: security, accessibility, performance, reliability, privacy, localization
|
|
30
|
+
8. Deployment, environments, cost limits, and external services
|
|
31
|
+
9. Git, review, CI/CD, versioning, changelog, and release preferences
|
|
32
|
+
10. Prototype and learning goals
|
|
33
|
+
11. AI tools and actions requiring human approval
|
|
34
|
+
|
|
35
|
+
When the user is unsure, provide a small recommendation with reasoning and alternatives.
|
|
36
|
+
|
|
37
|
+
## Process
|
|
38
|
+
|
|
39
|
+
1. Read the kit context and inspect relevant repository facts.
|
|
40
|
+
2. Ask the minimum unresolved questions in small groups.
|
|
41
|
+
3. Summarize requirements, preferences, constraints, open decisions, and contradictions.
|
|
42
|
+
4. Route uncertain product/technical choices to `debate-me` when useful.
|
|
43
|
+
5. Present the proposed context and request human corrections or approval.
|
|
44
|
+
6. Update `context/project-overview.md`, `context/coding-standards.md`, `context/ai-interaction.md`, `CLAUDE.md`, and `AGENTS.md` only after the choices are sufficiently clear.
|
|
45
|
+
7. Recommend `debate-me`, `prototype`, or `to-specs` as the next action.
|
|
46
|
+
|
|
47
|
+
## Stop Condition
|
|
48
|
+
|
|
49
|
+
Stop before feature specs, dependency installation, scaffolding, or implementation.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: learn-codebase
|
|
3
|
+
description: Generate a modular, interactive learning portal that explains an entire codebase at a milestone.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Learn Codebase
|
|
7
|
+
|
|
8
|
+
Use for onboarding, milestone review, handoff, or interview preparation—not after every feature.
|
|
9
|
+
|
|
10
|
+
## Process
|
|
11
|
+
|
|
12
|
+
1. Establish learning goals and audience.
|
|
13
|
+
2. Map the repository deliberately, excluding generated/vendor/build output.
|
|
14
|
+
3. Identify architecture, modules, domain concepts, major flows, tests, deployment, and durable decisions.
|
|
15
|
+
4. Generate modular lessons rather than one giant document.
|
|
16
|
+
5. Include navigable diagrams, demonstrations, exercises, and quizzes.
|
|
17
|
+
6. Cite source paths and distinguish current behavior from recommendations.
|
|
18
|
+
|
|
19
|
+
## Default Output
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
learning/codebase/
|
|
23
|
+
├── index.html
|
|
24
|
+
├── modules/
|
|
25
|
+
├── assets/
|
|
26
|
+
└── README.md
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Use self-contained HTML/CSS/JS by default; use an existing docs/MDX system when approved. Do not install a framework solely for the portal without approval.
|
|
30
|
+
|
|
31
|
+
## Modules May Include
|
|
32
|
+
|
|
33
|
+
orientation, architecture, domain/data flow, UI or interfaces, services/integrations, testing, deployment/operations, security boundaries, extension exercises, and cumulative quiz.
|