Skip to content

feat(skills): add progress bootstrap and tracker for .progress memory - #555

Closed
LanternCX wants to merge 16 commits into
obra:mainfrom
LanternCX:feat/progress-memory-skills
Closed

LanternCX wants to merge 16 commits into
obra:mainfrom
LanternCX:feat/progress-memory-skills

Conversation

@LanternCX

@LanternCX LanternCX commented Feb 26, 2026 •

Copy link
Copy Markdown

Summary

Add two new skills for project memory management and document them in README:

  • progress-bootstrap
  • progress-tracker
  • Minimal README workflow/library updates

Motivation and Context

This introduces a lightweight, structured memory layer for implementation outcomes across sessions.

Problem addressed:

  • Repeated trial-and-error across sessions
  • Missing traceability from implementation decisions to commits
    Scope decision for this first PR:
  • Use .progress/ as canonical path
  • Keep PR intentionally minimal (skills + docs only)

Related issue: #551

How Has This Been Tested?

  • Reviewed skill definitions for trigger conditions, required fields, and error handling consistency
  • Verified repository changes are limited to:
    • skills/progress-bootstrap/SKILL.md
    • skills/progress-tracker/SKILL.md
    • README.md
  • No runtime automation/scripts were introduced in this PR

Breaking Changes

No breaking changes.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

This PR intentionally avoids install/migration scripts to keep the first contribution focused and reviewable.

If direction is approved, follow-up PRs can add optional automation for initialization/entry management.

Closes #551

@obra obra added enhancement New feature or request claude-code Claude Code (Anthropic CLI) issues labels Mar 4, 2026
@LanternCX
LanternCX marked this pull request as ready for review March 8, 2026 11:23
@coderabbitai

coderabbitai Bot commented Mar 8, 2026 •

Copy link
Copy Markdown

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 9588ddc6-ee63-42ed-a7c2-eecc1f808200

📥 Commits

Reviewing files that changed from the base of the PR and between 3c5354e and e730daf.

📒 Files selected for processing (1)
  • skills/progress-tracker/SKILL.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • skills/progress-tracker/SKILL.md

📝 Walkthrough

Walkthrough

Adds two documentation-only skills: progress-bootstrap (bootstraps a canonical .progress/ layout and PROGRESS.md template with year directories) and progress-tracker (defines entry format, TOC contract, naming, validation, and guidance). No code or public API changes; purely additive docs.

Changes

Cohort / File(s) Summary
README updates
README.md
Inserted progress-bootstrap and progress-tracker into the main workflow and added a "Project Memory" subsection under the Skills Library describing both skills.
Progress Bootstrap Skill
skills/progress-bootstrap/SKILL.md
New skill doc specifying idempotent initialization of .progress/, exact PROGRESS.md template content, UTC-year entry directory creation, optional .gitkeep, and explicit error handling; avoids overwriting existing progress files.
Progress Tracker Skill
skills/progress-tracker/SKILL.md
New skill doc defining entry conventions (required/optional fields), entry location/naming pattern, TOC contract, suggested entry template, execution rules, and validation/concurrency error guidance.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 I nibble notes and stitch the trail,

A foldered map of every tale,
Small hops recorded, lessons kept,
Commits traced well, no wisdom slept,
In .progress we hop and prevail.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: adding two new skills (progress bootstrap and tracker) for project memory management rooted at .progress/.
Description check ✅ Passed The description is well-organized, providing clear motivation (reduce repeated trial-and-error), scope (skills and docs only), testing approach, and links to the related issue #551.
Linked Issues check ✅ Passed The PR fully addresses the primary objectives from #551: introduces structured progress documentation skills (progress-bootstrap and progress-tracker), uses .progress/ as canonical path, provides storage structure and template, and avoids out-of-scope runtime automation.
Out of Scope Changes check ✅ Passed All changes are within scope: three files modified (README.md, skills/progress-bootstrap/SKILL.md, skills/progress-tracker/SKILL.md) contain only documentation and minimal workflow updates; no runtime scripts or installation automation were introduced.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@skills/progress-bootstrap/SKILL.md`:
- Around line 40-48: Clarify and make initialization deterministic by either (a)
inlining the exact markdown content to create .progress/PROGRESS.md (including a
fully specified "Entry Template" section and the "Global TOC" header row: "|
Page ID | Date | Title | Path | Keywords |" and the separator row "| --- | --- |
--- | --- | --- |"), or (b) change the bootstrap flow to copy the concrete
template file from skills/progress-tracker/SKILL.md into .progress/PROGRESS.md;
update the bootstrap logic that checks/creates .progress/PROGRESS.md to use the
chosen concrete source (the explicit Entry Template plus Global TOC header) so
every initialization is deterministic.

In `@skills/progress-tracker/SKILL.md`:
- Around line 48-57: The TOC contract in SKILL.md leaves Page ID and Keywords
undefined; update the spec for the global `.progress/PROGRESS.md` TOC to include
deterministic derivation rules: define Page ID as "YYYY-MM-DD-N" where N is a
1-based counter for entries created on that date (use the existing file to
compute the next N), and define Keywords as a comma-separated, lowercased list
of tags with no spaces around commas (e.g., "tag1,tag2") derived from the page's
frontmatter `tags` or generated from the title if `tags` is absent; mention
these rules near the "TOC Contract" header so all sessions append compatible
rows.
- Around line 25-46: The prerequisite check only verifies existence of
`.progress/` and `.progress/PROGRESS.md` but misses the year-specific entries
folder, so on Jan 1 the first entry has no target; update the prerequisite logic
(in the progress-bootstrap/check or progress-tracker bootstrap step) to also
verify `.progress/entries/<YYYY>/` for the current year and create it if
missing, or modify the entry-write path in progress-tracker to ensure it creates
the target `.progress/entries/<YYYY>/` directory on demand before writing
entries (reference progress-bootstrap, progress-tracker,
`.progress/entries/<YYYY>/`, and `.progress/PROGRESS.md`).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 3eff90e8-3706-469c-8833-e97ab00d1498

📥 Commits

Reviewing files that changed from the base of the PR and between e4a2375 and 627d217.

📒 Files selected for processing (3)
  • README.md
  • skills/progress-bootstrap/SKILL.md
  • skills/progress-tracker/SKILL.md

Comment thread skills/progress-bootstrap/SKILL.md Resolved
Comment thread skills/progress-tracker/SKILL.md Resolved
Comment thread skills/progress-tracker/SKILL.md Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
skills/progress-bootstrap/SKILL.md (1)

87-89: Optional: vary sentence structure for readability.

Three consecutive sentences begin with "If...stop", which slightly reduces readability. Consider rephrasing one clause.

✍️ Suggested rewording
 - If write permission is missing, stop and report the exact path.
 - If `.progress` path is occupied by a file, stop and report conflict.
-- If file creation fails, stop and return the failing command and reason.
+- On file creation failure, return the failing command and reason.

As per static analysis tool LanguageTool: "Three successive sentences begin with the same word."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@skills/progress-bootstrap/SKILL.md` around lines 87 - 89, The three
consecutive sentences in SKILL.md that start with "If" (the lines mentioning
write permission, `.progress` path occupied by a file, and file creation
failure) reduce readability; rephrase one of them to vary sentence structure
(for example, change "If `.progress` path is occupied by a file, stop and report
conflict." to "Report a conflict and halt when the `.progress` path is occupied
by a file.") while keeping the same meaning about stopping and reporting exact
path, conflict, and failing command/reason.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.progress/entries/2026/2026-03-09-1.md:
- Around line 24-25: Replace the placeholder "TBD" under the "Related Commit
Hash" entry with the actual commit SHA for the fix referenced in the PR (the
commit that contains "fix(skills): make progress bootstrap deterministic");
locate the "Related Commit Hash" line and update the value from "TBD" to the
commit hash (or add a follow-up commit to populate it post-merge) by running the
suggested git log command to obtain the SHA and then editing the "TBD" token
accordingly.

In `@skills/progress-bootstrap/SKILL.md`:
- Line 82: Clarify the meaning of "current year" for the folder
`.progress/entries/<YYYY>/` by specifying the exact time source to use (e.g.,
UTC date, local system date, or git commit timestamp) and how to derive YYYY
(e.g., use new Date().getUTCFullYear() for UTC or new Date().getFullYear() for
local time, or use the latest commit date from HEAD for git-based determinism);
update the step text to state the chosen method explicitly (e.g., "use UTC year
derived from system clock") and note behavior in CI/distributed runs so all
agents compute the same YYYY.

---

Nitpick comments:
In `@skills/progress-bootstrap/SKILL.md`:
- Around line 87-89: The three consecutive sentences in SKILL.md that start with
"If" (the lines mentioning write permission, `.progress` path occupied by a
file, and file creation failure) reduce readability; rephrase one of them to
vary sentence structure (for example, change "If `.progress` path is occupied by
a file, stop and report conflict." to "Report a conflict and halt when the
`.progress` path is occupied by a file.") while keeping the same meaning about
stopping and reporting exact path, conflict, and failing command/reason.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: c00597ad-07ec-4b2b-912a-dfebb8c4db23

📥 Commits

Reviewing files that changed from the base of the PR and between 627d217 and 53bf452.

📒 Files selected for processing (3)
  • .progress/PROGRESS.md
  • .progress/entries/2026/2026-03-09-1.md
  • skills/progress-bootstrap/SKILL.md

Comment thread .progress/entries/2026/2026-03-09-1.md Resolved
Comment thread skills/progress-bootstrap/SKILL.md Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
skills/progress-bootstrap/SKILL.md (1)

87-89: Consider refactoring for readability (optional).

The three error cases are comprehensive and cover permission issues, path conflicts, and creation failures. However, the repetitive "If...stop" structure flagged by static analysis could be streamlined for slightly better readability.

♻️ Optional refactor for error handling structure
-## Error Handling
-
-- If write permission is missing, stop and report the exact path.
-- If `.progress` path is occupied by a file, stop and report conflict.
-- If file creation fails, stop and return the failing command and reason.
+## Error Handling
+
+Stop execution and report details when:
+- Write permission is missing (report the exact path)
+- `.progress` path is occupied by a file (report conflict)
+- File creation fails (return the failing command and reason)

This maintains the same information while reducing repetition.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@skills/progress-bootstrap/SKILL.md` around lines 87 - 89, Refactor the
repetitive "If... stop" checks into a single, clearer error-handling flow:
consolidate the three checks (missing write permission, `.progress` path
occupied by a file, and file creation failure) into a single helper like
ensureProgressPath(path) that performs guard checks in order and returns a
unified error object; centralize reporting via a helper such as
reportProgressError(path, error) so callers can log the exact path, the conflict
or permission details, and the failing command/reason in one place; update
callers to use ensureProgressPath/ reportProgressError instead of repeating the
three separate stop-and-report branches.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@skills/progress-bootstrap/SKILL.md`:
- Around line 87-89: Refactor the repetitive "If... stop" checks into a single,
clearer error-handling flow: consolidate the three checks (missing write
permission, `.progress` path occupied by a file, and file creation failure) into
a single helper like ensureProgressPath(path) that performs guard checks in
order and returns a unified error object; centralize reporting via a helper such
as reportProgressError(path, error) so callers can log the exact path, the
conflict or permission details, and the failing command/reason in one place;
update callers to use ensureProgressPath/ reportProgressError instead of
repeating the three separate stop-and-report branches.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 55fed6cb-71fb-455a-a04f-e3a0e80a9f1e

📥 Commits

Reviewing files that changed from the base of the PR and between 379eecb and 3c5354e.

📒 Files selected for processing (1)
  • skills/progress-bootstrap/SKILL.md

@LanternCX

Copy link
Copy Markdown
Author

🧹 Nitpick comments (1)

skills/progress-bootstrap/SKILL.md (1)> 87-89: Consider refactoring for readability (optional).

The three error cases are comprehensive and cover permission issues, path conflicts, and creation failures. However, the repetitive "If...stop" structure flagged by static analysis could be streamlined for slightly better readability.

♻️ Optional refactor for error handling structure

-## Error Handling
-
-- If write permission is missing, stop and report the exact path.
-- If `.progress` path is occupied by a file, stop and report conflict.
-- If file creation fails, stop and return the failing command and reason.
+## Error Handling
+
+Stop execution and report details when:
+- Write permission is missing (report the exact path)
+- `.progress` path is occupied by a file (report conflict)
+- File creation fails (return the failing command and reason)

This maintains the same information while reducing repetition.

🤖 Prompt for AI Agents

Verify each finding against the current code and only fix it if needed.

In `@skills/progress-bootstrap/SKILL.md` around lines 87 - 89, Refactor the
repetitive "If... stop" checks into a single, clearer error-handling flow:
consolidate the three checks (missing write permission, `.progress` path
occupied by a file, and file creation failure) into a single helper like
ensureProgressPath(path) that performs guard checks in order and returns a
unified error object; centralize reporting via a helper such as
reportProgressError(path, error) so callers can log the exact path, the conflict
or permission details, and the failing command/reason in one place; update
callers to use ensureProgressPath/ reportProgressError instead of repeating the
three separate stop-and-report branches.

🤖 Prompt for all review comments with AI agents

Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@skills/progress-bootstrap/SKILL.md`:
- Around line 87-89: Refactor the repetitive "If... stop" checks into a single,
clearer error-handling flow: consolidate the three checks (missing write
permission, `.progress` path occupied by a file, and file creation failure) into
a single helper like ensureProgressPath(path) that performs guard checks in
order and returns a unified error object; centralize reporting via a helper such
as reportProgressError(path, error) so callers can log the exact path, the
conflict or permission details, and the failing command/reason in one place;
update callers to use ensureProgressPath/ reportProgressError instead of
repeating the three separate stop-and-report branches.

ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 55fed6cb-71fb-455a-a04f-e3a0e80a9f1e

📥 Commits
Reviewing files that changed from the base of the PR and between 379eecb and 3c5354e.

📒 Files selected for processing (1)

I verified this against the current file and I don’t think it applies here. skills/progress-bootstrap/SKILL.md is process documentation, not executable code, so the bullets in the error-handling section are declarative rules rather than repeated implementation branches. There aren’t any helpers or callers in this file to refactor into ensureProgressPath(...) / reportProgressError(...), so I’m leaving it unchanged.

@LanternCX

Copy link
Copy Markdown
Author

I fixes a gap in the earlier progress-tracker workflow.
Previously, the skill allowed Related Commit Hash to be written as TBD, but it did not actually enforce a follow-up step that guaranteed the real commit hash would be written back later. In practice, that meant a progress entry could remain incomplete or be updated in an inconsistent way.
This change makes that follow-up requirement explicit: once the real hash is available, the implementation commit must already exist, then the progress entry must be updated with that hash, and that progress update must be committed separately. This ensures TBD is only temporary and that progress records end up with a real, valid commit hash.

@LanternCX
LanternCX marked this pull request as draft March 21, 2026 11:31
@LanternCX

Copy link
Copy Markdown
Author

I am planning another implementation, so I have decided to close this PR.

@LanternCX LanternCX closed this Mar 22, 2026
@LanternCX LanternCX mentioned this pull request Mar 22, 2026
4 of 5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude-code Claude Code (Anthropic CLI) issues enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add a core project memory system for cross-session retrieval and recording

2 participants