feat(learning): add repo-based learning support#3
Open
MatteoDiPaolo wants to merge 2 commits into
Open
Conversation
Allow lessons to be tied to an existing repo so /learn analyzes the project (file tree, dependencies, source patterns) and tailors milestones to what's actually in the repo. Add a --repo flag to /new-learning that generates ideas building on top of existing code, and an optional repo segment in the backlog format. /learn step 3 now distinguishes existing repo vs fresh project, with a new step 3.5 producing a repo summary that feeds milestone generation; step 4 adds a repo-aware delivery section covering guided/challenge modes and incidental observations. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
DavidGRueda
approved these changes
Apr 29, 2026
aldorea
reviewed
Apr 29, 2026
| 3. Add input validation, error handling, and integration tests | ||
| ``` | ||
|
|
||
| **Repo-based proposal format** (when `--repo` was provided): |
There was a problem hiding this comment.
This could be extracted as reference. wdyt?
Contributor
Author
There was a problem hiding this comment.
Good call — extracted both worked examples (standard + repo-based) to skills/new-learning/references/proposal-formats.md in a2ad555. Kept the formal field structure and the one-line repo-context rule inline since those are load-bearing for step 4. SKILL.md is now 96 lines. PTAL when you have a sec.
Move both worked examples (standard + repo-based) out of SKILL.md into references/proposal-formats.md, leaving the formal field structure and the one-line repo-context rule inline. Trims SKILL.md from 119 to 96 lines and consolidates the example shapes in one place so the format can evolve without touching the skill body. Per review feedback from @aldorea on PR #3. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
kevinccbsg
approved these changes
May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/learnanalyzes the project (file tree, dependencies, source patterns) and tailors milestones to what's actually there instead of starting from scratch./new-learninggains a--repo <path>flag that cross-references the topic with repo state and generates milestones building on existing code; backlog items get an optional— **repo:** <path>segment./learnstep 3 distinguishes existing-repo vs fresh-project; new step 3.5 produces a repo summary fed into milestone generation; step 4 adds a repo-aware delivery section covering guided/challenge modes and incidental observations.Test plan
/new-learning "X" --repo <path>and confirm the proposed milestones reference real files from the repo and the saved backlog item carries therepo:segment./learnagainst a backlog item with arepofield — confirm it auto-uses the path and produces a sensible repo summary before milestone delivery./learnagainst a backlog item without arepofield — confirm it prompts "existing repo or fresh?" and handles both branches.🤖 Generated with Claude Code