Skip to content

docs(claude): Improve agent-memory skill guidelines#1068

Merged
yamadashy merged 1 commit intomainfrom
docs/improve-agent-memory-skill-guidelines
Jan 3, 2026
Merged

docs(claude): Improve agent-memory skill guidelines#1068
yamadashy merged 1 commit intomainfrom
docs/improve-agent-memory-skill-guidelines

Conversation

@yamadashy
Copy link
Owner

Enhance agent-memory skill to better support resuming work from a fresh conversation.

Changes

  • Guidelines: Change "Write for your future self" to "Write self-contained notes" - emphasizes including full context so readers need no prior knowledge
  • Frontmatter: Add optional status field (in-progress / resolved / blocked / abandoned) for tracking work state
  • Proactive Usage: Add guidance for saving in-progress work and checking memories when resuming after a break
  • Content Reference: New section with checklist for detailed memories (Context, State, Details, Next steps)

Design Intent

  • Keep simplicity while encouraging sufficient information for cold-start resumption
  • Status field is optional - use for work logs, omit for reference knowledge
  • Content Reference is a suggestion, not a rigid template

Checklist

  • Run npm run test (N/A - documentation only)
  • Run npm run lint (N/A - documentation only)

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 3, 2026

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

📝 Walkthrough

Walkthrough

Expanded documentation for the agent-memory skill to include status tracking in frontmatter (in-progress, resolved, blocked, abandoned) and introduced a new Content Reference section with guidelines for writing self-contained, structured memory notes with context, state, details, and next steps.

Changes

Cohort / File(s) Summary
Agent Memory Skill Documentation
.claude/skills/agent-memory/SKILL.md
Added status field to frontmatter with four possible states; expanded notes on resuming interrupted work; introduced "Content Reference" section detailing how to structure memory entries (context, state, details, next steps); revised wording emphasizing self-contained notes for future self-sufficiency

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: improving guidelines for the agent-memory skill documentation.
Description check ✅ Passed The description covers all essential aspects: changes made, design intent, and checklist completion. It exceeds the template requirements with comprehensive detail.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @yamadashy, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refines the agent-memory skill guidelines to enhance support for resuming work from fresh conversations. The changes focus on making memories more self-contained and actionable by providing clearer instructions for saving and checking progress, introducing a status tracking mechanism, and offering a structured approach to detailing memory content.

Highlights

  • Updated Memory Guidelines: Enhanced guidance for saving, checking, and organizing memories, specifically addressing in-progress work, resuming conversations, and updating work status.
  • Optional Status Field: Introduced an optional status field in the memory frontmatter to track the state of work (in-progress, resolved, blocked, abandoned).
  • Improved Note-Taking Principle: Revised the primary guideline from 'Write for your future self' to 'Write self-contained notes', emphasizing the inclusion of full context for clarity.
  • New Content Reference Section: Added a 'Content Reference' section with a checklist (Context, State, Details, Next steps) to guide the creation of detailed and comprehensive memories.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request significantly improves the guidelines for the agent-memory skill by making them more practical for resuming work across conversations. The introduction of a status field, clearer instructions on writing self-contained notes, and a new content reference checklist are all valuable additions. My review includes a couple of suggestions to enhance the consistency and completeness of the documentation related to the new status field. Overall, these are great improvements to the skill's documentation.

Organize memories when needed:
- Consolidate scattered memories on the same topic
- Remove outdated or superseded information
- Update status field when work completes or gets blocked
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

To make this guideline more complete, consider also mentioning the abandoned state, which is another possible final state for a task besides resolved (completes) and blocked.

Suggested change
- Update status field when work completes or gets blocked
- Update status field when work completes, gets blocked, or is abandoned


When writing detailed memories, consider including:
- **Context**: Goal, background, constraints
- **State**: What's done, in progress, or blocked
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The states mentioned here (done, in progress, blocked) are slightly different from the values defined for the status frontmatter field (in-progress, resolved, blocked, abandoned). To improve consistency and avoid potential confusion, it would be better to use the same terminology and values. This also adds the missing abandoned state.

Suggested change
- **State**: What's done, in progress, or blocked
- **State**: Current status of the work (e.g., `in-progress`, `resolved`, `blocked`, `abandoned`)

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 3, 2026

Deploying repomix with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5039ccf
Status:⚡️  Build in progress...

View logs

@codecov
Copy link

codecov bot commented Jan 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.19%. Comparing base (4a39afa) to head (5039ccf).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1068   +/-   ##
=======================================
  Coverage   87.19%   87.19%           
=======================================
  Files         116      116           
  Lines        4350     4350           
  Branches     1011     1011           
=======================================
  Hits         3793     3793           
  Misses        557      557           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
.claude/skills/agent-memory/SKILL.md (1)

143-151: Consider adding a brief example to the Content Reference section.

While the current guidance is clear and the disclaimer ("not all memories need all sections") appropriately keeps the approach flexible, a short, concrete example showing how one of these sections might be applied could help readers understand the intent—especially for the State and Next steps fields, which are most useful for in-progress work.

This is optional and could be added as a follow-up if user feedback suggests it would be helpful.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4a39afa and b3aced8.

📒 Files selected for processing (1)
  • .claude/skills/agent-memory/SKILL.md
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: CR
Repo: yamadashy/repomix PR: 0
File: .cursorrules:0-0
Timestamp: 2025-06-30T16:07:18.316Z
Learning: Applies to .agents/rules/base.md : Check the rules written in `.agents/rules/base.md` as they contain important project-specific guidelines and instructions.
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (14)
  • GitHub Check: Build and run (macos-latest, 25.x)
  • GitHub Check: Build and run (windows-latest, 22.x)
  • GitHub Check: Test (ubuntu-latest, 24.x)
  • GitHub Check: Test (windows-latest, 22.x)
  • GitHub Check: Test (windows-latest, 20.x)
  • GitHub Check: Build and run (windows-latest, 24.x)
  • GitHub Check: Test (ubuntu-latest, 22.x)
  • GitHub Check: Test (windows-latest, 24.x)
  • GitHub Check: Build and run (windows-latest, 25.x)
  • GitHub Check: Build and run (windows-latest, 20.x)
  • GitHub Check: Test (windows-latest, 25.x)
  • GitHub Check: Test with Bun (windows-latest, latest)
  • GitHub Check: claude-review
  • GitHub Check: Cloudflare Pages
🔇 Additional comments (1)
.claude/skills/agent-memory/SKILL.md (1)

1-151: Documentation improvements are well-structured and achieve the stated objectives.

The updates effectively support resuming work from fresh conversations by introducing the status field and expanding the Content Reference section. The phrasing change from "Write for your future self" to "Write self-contained notes" (line 138) is more explicit about including full context, and the optional nature of both the status field and Content Reference sections is clearly communicated (line 70, line 151).

The additions to Proactive Usage (lines 19, 24, 29) naturally extend the guidance to cover in-progress work and resumption workflows without adding unnecessary complexity.

@claude
Copy link
Contributor

claude bot commented Jan 3, 2026

PR Review: docs(claude): Improve agent-memory skill guidelines

Summary

This documentation PR enhances the agent-memory skill to better support resuming work from fresh conversations. The changes are well-structured and thoughtful.

Evaluation

Code Quality & Best Practices: ✅ Excellent

  • Clear, concise documentation improvements
  • Follows markdown best practices
  • Consistent formatting throughout

Changes Analysis:

Change Assessment
"Write for your future self" → "Write self-contained notes" ✅ Better emphasizes zero-prior-knowledge readability
Optional status field (in-progress/resolved/blocked/abandoned) ✅ Useful for work tracking without breaking existing memories
Proactive usage additions ✅ Clear guidance for resumption scenarios
Content Reference checklist ✅ Helpful structure (Context, State, Details, Next steps)

Potential Improvements

Minor Suggestions (Optional)
  1. Status field consistency: The frontmatter example uses status: in-progress with a comment showing all options. Consider also noting that leaving status blank is valid for reference knowledge (as mentioned in Design Intent).

  2. Content Reference placement: The new Content Reference section works well as a suggestion. The closing note "Not all memories need all sections - use what's relevant" effectively prevents over-engineering.

Premortem Analysis

Potential Risk Likelihood Mitigation
Users may treat Content Reference as rigid template Low Already addressed by "Not all memories need all sections" note
Status field confusion for simple knowledge notes Low Status is optional and Design Intent clarifies when to use it
Existing memories become "outdated" without status None Field is optional, backwards compatible

Verdict

LGTM

This is a well-crafted documentation improvement. The changes enhance usability for AI agents resuming work across conversations while maintaining simplicity. The optional nature of new features (status field, Content Reference) ensures backward compatibility.

No issues found. Ready to merge.


Reviewed by Claude

Enhance agent-memory skill to better support resuming work from scratch:

- Change "Write for your future self" to "Write self-contained notes"
  to emphasize including full context for zero-prior-knowledge readers
- Add status field to frontmatter (in-progress/resolved/blocked/abandoned)
  for tracking work state
- Add Content Reference section with checklist for detailed memories
- Update Proactive Usage to include in-progress work and conversation breaks
@yamadashy yamadashy force-pushed the docs/improve-agent-memory-skill-guidelines branch from b3aced8 to 5039ccf Compare January 3, 2026 13:04
@yamadashy yamadashy merged commit 3813e3b into main Jan 3, 2026
50 of 51 checks passed
@yamadashy yamadashy deleted the docs/improve-agent-memory-skill-guidelines branch January 3, 2026 13:05
@claude
Copy link
Contributor

claude bot commented Jan 3, 2026

PR Review: docs(claude): Improve agent-memory skill guidelines

Overview

This is a well-crafted documentation-only PR that enhances the agent-memory skill to better support resuming work from fresh conversations. I've reviewed the changes and found them to be thoughtful and well-structured.

Changes Review

Change Assessment
Proactive Usage - Added "In-progress work" and "resuming work after a conversation break" ✅ Practical additions for workflow continuity
Status field (in-progress / resolved / blocked / abandoned) ✅ Useful for work state tracking, appropriately optional
Guideline wording - "Write for your future self" → "Write self-contained notes" ✅ Better emphasizes zero-prior-knowledge readability
Content Reference section with checklist ✅ Helpful structure without being rigid

Quality Assessment

  • Code Quality: ✅ Clean, consistent markdown formatting
  • Best Practices: ✅ Follows existing documentation style
  • Backward Compatibility: ✅ All new fields are optional; existing memories remain valid
  • Test Coverage: N/A (documentation-only change)
  • Security: ✅ No security concerns

Premortem Analysis

Risk Likelihood Impact Mitigation
Users may over-engineer memories with all Content Reference sections Low Low Line 151: "Not all memories need all sections - use what's relevant"
Status field confusion for simple knowledge notes Low Low Design Intent notes status is optional for reference knowledge
Inconsistent status values across memories Low Low Clear enum values provided in comment format
Minor Observations (Non-blocking)
  1. Line 70: The status field example is well-documented with the inline comment showing all options. This pattern works well for self-documenting frontmatter.

  2. Lines 143-151: The Content Reference section provides excellent structure for detailed memories while maintaining flexibility. The four-item checklist (Context, State, Details, Next steps) covers typical resumption scenarios well.

Verdict

LGTM

This documentation improvement is ready to merge. The changes effectively support the stated goal of better resuming work from fresh conversations while maintaining simplicity and backward compatibility.


Reviewed by Claude

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant