Getting Started
Set up ContextMark and start managing your Claude Code contexts in minutes.
Step 1: Install ContextMark
$ npm install -g @grazulex/contextmark
Requires Node.js 18 or higher.
Step 2: Initialize Your Library
$ contextmark init-library
✓ Created ~/.contextmark
✓ Created config.yml
✓ Created blocks/, profiles/, agents/, commands/
This creates your context library at ~/.contextmark.
Step 3: Create Your First Block
$ contextmark block create laravel/base
✓ Created block: laravel/base
$ contextmark block edit laravel/base
Opening in your default editor...
Add your Laravel conventions, coding style, or any reusable context to the block.
Step 4: Create a Profile
$ contextmark profile create my-stack
✓ Created profile: my-stack
$ contextmark profile edit my-stack
A profile combines multiple blocks. Edit the YAML to add your blocks:
name: My Stack
description: My default development profile
blocks:
- laravel/base
- style/code
agents:
- reviewer
Step 5: Initialize a Project
$ cd ~/projects/my-project
$ contextmark init --profile my-stack
✓ Generated CLAUDE.md with 2 blocks
✓ Created .contextmark.yml
Your project now has a generated CLAUDE.md composed from your blocks!
Step 6: Keep Projects Updated
$ contextmark status
Block laravel/base: outdated (1.0.0 -> 1.1.0)
$ contextmark update
✓ Updated CLAUDE.md
When you update a block in your library, use contextmark update to refresh all projects.