memory

naqerl's avatarfrom naqerl

Add new instruction to the global CLAUDE.md file

0stars🔀0forks📁View on GitHub🕐Updated Jan 10, 2026

When & Why to Use This Skill

This Claude skill enables persistent memory and context management by dynamically updating the global CLAUDE.md file. It allows the AI agent to store, organize, and recall user-defined instructions and preferences, ensuring consistent behavior and project-specific alignment across multiple sessions.

Use Cases

  • Coding Standards Enforcement: Add specific linting rules, naming conventions, or architectural patterns to the global configuration to ensure the agent always generates code that meets your team's requirements.
  • Workflow Personalization: Save frequently used project paths, environment setup commands, or preferred documentation styles to reduce repetitive prompting in new chat sessions.
  • Behavioral Customization: Define and persist high-level persona traits or operational constraints that the AI should adhere to globally, such as 'always provide concise answers' or 'prefer functional programming'.
namememory
descriptionAdd new instruction to the global CLAUDE.md file

Read the current contents of $HOME/.claude/CLAUDE.md file.

Then append the following new instruction to the file based on user input.

Make sure to:

  1. Preserve all existing content in the file
  2. Add the new instruction in an appropriate section (create a new section if needed)
  3. Maintain proper markdown formatting
  4. Place the new instruction in a logical location based on its content

After updating the file, confirm what was added.