A structured markdown syntax for iterating on documents with Claude AI
Visual highlighting of iteration markers in Obsidian.
Use the setup-obsidian.md prompt with Claude Code to install the skill and configure Obsidian automatically.
The skill uses %% %% comment syntax for everything:
%% your feedback %%•%%> response <%%••%%> NOTE: info <%%•Both get the same orange comment styling - no plugins required!
Create .obsidian/snippets/iteration-markers.css:
/* Highlight %% comments %% and •%%> responses <%%• */
.cm-comment {
background-color: rgba(255, 165, 0, 0.3);
padding: 2px 4px;
border-radius: 3px;
}
/* Highlight ==text(TOKEN)== */
mark {
background-color: rgba(255, 255, 0, 0.4);
padding: 1px 2px;
}
/* Dark mode adjustments */
.theme-dark .cm-comment {
background-color: rgba(255, 165, 0, 0.2);
}
Enable in Settings → Appearance → CSS Snippets.
To make •%%> responses <%%• visually distinct from %% user comments %%, use the Regex Mark plugin.
Copy the pre-configured .obsidian folder from editor-configs/obsidian/ to your vault. This includes:
After copying, enable the plugin in Settings → Community plugins, and check for plugin updates.
Step 1: Install the plugin
Step 2: Add regex patterns
%% → CSS class: user-response•%%> → CSS class: claude-response-start<%%• → CSS class: claude-response-endStep 3: Add CSS styling
Add to your .obsidian/snippets/iteration-markers.css:
.user-response {
color: rgb(107, 95, 30);
padding: 0px 4px;
}
.claude-response-start,
.claude-response-end {
color: rgb(28, 79, 79);
padding: 0px 4px;
}
Make sure the snippet is enabled in Settings → Appearance → CSS Snippets.
(TOKEN) in ==text(TOKEN)== a different color isn’t possible - Obsidian processes highlights before plugins can act. A custom plugin could solve this (see plugin proposal).Install “Linter” plugin. Add custom rule to flag markers:
rules:
custom-regex:
- pattern: '%%[^%]*%%'
message: 'Iteration marker found'
severity: warning