gratitude-loop
OpenClaw skill for GratitudeLoop — saves gratitude journal entries and synthesis reports as formatted Markdown files.
- License 许可
- MIT
- 最近更新
- 2026-09-04
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- gratitude-loop
- author
- rabbit-r1-skillz
- version
- 1.0.0
- description
- OpenClaw skill for GratitudeLoop — saves gratitude journal entries and synthesis reports as formatted Markdown files.
02 资源文件 3
- 资产文件card.jpg23.7 KB
- 资产文件icon.png10.3 KB
- 参考文档index.html67.3 KB
03 SKILL.md 正文
GratitudeLoop OpenClaw Skill
This skill handles file export — receives journal entries and synthesis reports from the R1 device and saves them as Markdown files on your local machine.
Setup
Requirements
- Node.js 18+ or Python 3.10+
- OpenClaw installed and running on your local machine
Installation
- Copy this directory to your OpenClaw skills folder:
~/.openclaw/skills/gratitude-loop/
- Install dependencies (Node.js version):
cd ~/.openclaw/skills/gratitude-loop
npm install
- Restart OpenClaw or run:
openclaw reload
Commands
save
Saves a journal entry or synthesis report as a Markdown file.
Params:
| Key | Type | Description |
|---|---|---|
filename |
string | Target filename (e.g. gratitude-2026-06-14.md) |
content |
string | Full Markdown content to write |
Response:
{ "status": "done", "data": { "path": "/path/to/output/folder" } }
Output location: Files are saved to ~/Documents/GratitudeLoop/ by default. Override with the GRATITUDE_OUTPUT_DIR environment variable.
Skill implementation (Node.js)
Create ~/.openclaw/skills/gratitude-loop/index.js:
const fs = require('fs');
const path = require('path');
const os = require('os');
const http = require('http');
const OUTPUT_DIR = process.env.GRATITUDE_OUTPUT_DIR
|| path.join(os.homedir(), 'Documents', 'GratitudeLoop');
module.exports = {
name: 'gratitude-loop',
async handle(command, params) {
if (command === 'save') {
return handleSave(params);
}
throw new Error('Unknown command: ' + command);
}
};
async function handleSave({ filename, content }) {
if (!filename || !content) throw new Error('filename and content are required');
// Sanitize filename — allow only safe characters
const safe = filename.replace(/[^a-zA-Z0-9._-]/g, '-').slice(0, 120);
if (!safe.endsWith('.md')) throw new Error('Only .md files are accepted');
fs.mkdirSync(OUTPUT_DIR, { recursive: true });
const dest = path.join(OUTPUT_DIR, safe);
fs.writeFileSync(dest, content, 'utf8');
return { path: OUTPUT_DIR };
}
File output format
Exported entries are standard Markdown:
# Gratitude Journal
*Exported June 14, 2026*
---
## Sat, Jun 14
1. I'm grateful for my morning coffee ritual, the quiet before the day starts.
*simple joys, peaceful*
2. I'm grateful for my sister calling to check in.
*people, warm*
3. I'm grateful for finishing the project I've been avoiding.
*work, growth, proud*
Security notes
- This skill only writes
.mdfiles to the configured output directory. - Filenames are sanitized — path traversal sequences (
../, absolute paths) are rejected. - No network requests are made by this skill.
- The skill does not read files from disk or execute arbitrary code.
- Do not expose your OpenClaw port to the public internet.
04 同仓库更多 Skills
whisper-quiz
WhisperQuiz — voice-answered trivia game for Rabbit R1. Generates questions via the R1's built-in LLM, captures spoken answers via STT, and evaluates correctness with flexible LLM-based matching.
walk-cast
Walking podcast production skill. Receives raw audio metadata and transcript from the R1, removes long pauses, applies noise reduction and normalization, generates AI chapter titles and episode metadata via LLM, and uploads the final episode to your configured podcast RSS host (Spotify for Podcasters / Anchor, Podbean, Buzzsprout, RSS.com, or any FTP-accessible feed).
voice-novel
Local machine skill for VoiceNovel — handles story export to disk.
voice-guide
Environment description and navigation assistant for blind and low-vision users. Analyzes camera frames via a vision LLM, reads visible text, identifies scene categories (people/vehicles/food/hazards/exits), performs 360° scans, retrieves GPS position, and sends emergency SMS alerts — all via audio feedback with zero screen dependency.
voice-draft
Voice-driven document drafting for the Rabbit R1. Dictate stream-of-consciousness speech; the R1 formats it into Email, Blog Post, Report, Proposal, Meeting Notes, Creative Writing, Code Comments, Cover Letter, or Tweet Thread — then saves the result to a configured folder on your local machine via OpenClaw.
voice-commit
Hands-free git and CI workflow voice controller for the Rabbit R1. Speak git/CI commands and hear results — commit, push, status, PR management, test runs, and deploy, all voice-driven via OpenClaw.