agentleFS
h-watah-wata/claude-skills/skills/memo/SKILL.md

memo

Skill0 starsChanged 6 months agoApache-2.0View on GitHub

Quick memo to Obsidian Daily note

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read config.json to get output path

    line 12
  2. Very specific:

    Create directory and file if they don't exist (mkdir -p + touch)

    line 13
  3. Very specific:

    Add timestamp heading (HH:MM format, obtained from date +%H:%M in Bash at execution time)

    line 14
  4. Very specific:

    allowed-tools は Bash, Read: Write ツールは使わない。追記は上の quoted heredoc で

    line 52

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

First, read ~/work/claude-skills/config.json to get the obsidian_daily_path.

Then append the following memo to {obsidian_daily_path}/$(date +%Y-%m-%d).md

Steps

  1. Read config.json to get output path
  2. Create directory and file if they don't exist (mkdir -p + touch)
  3. Add timestamp heading (HH:MM format, obtained from date +%H:%M in Bash at execution time)
  4. Append to end of file

Append rules

時刻の事前解決(重要)

quoted heredoc (<<'EOF') はシェル展開を全て抑止するので、本文中に $(date +%H:%M) や $TIME を書いても展開されない。時刻は先に Bash で date +%H:%M を実行して結果文字列を取得し、heredoc 本文にはその結果をリテラルで埋め込むこと。以下の2段階で実装する:

  1. Bash で date +%H:%M を実行(例: 結果が 18:42)
  2. 次に書き込むコマンドの heredoc 本文に 18:42 を直接タイプする(変数ではなくリテラルとして)

エスケープ

$ARGUMENTS はバッククォート・$・引用符などを含みうる。必ず quoted heredoc で書き込むこと。echo や unquoted heredoc はシェル展開されて内容が壊れる。

書き込みコマンド例

時刻取得結果が 18:42、$ARGUMENTS が 明日MTGをレビュー の場合:

FILE=/path/to/2026-04-21.md
# 既存ファイルが有る場合のみ、既存最終行と新見出しの間を空行1行で区切る
# - ファイルが空なら何もしない(新規書き込みで冒頭に空行を作らない)
# - 末尾が LF 終端でないなら LF を 1 つ足して段落区切りを確保
if [ -s "$FILE" ]; then
  [ "$(tail -c1 "$FILE" | wc -l)" -eq 0 ] && printf '\n' >> "$FILE"
  printf '\n' >> "$FILE"
fi
cat >> "$FILE" <<'EOF'
## 18:42

明日MTGをレビュー
EOF

(## 18:42 と本文は 実行時にリテラルで差し替える。変数は使わない。heredoc 冒頭に空行は入れない — 既存ファイルがある場合の空行は上の if ブロックで先に担保する)

その他

  • 既存ファイルへの追記: 既存最終行と新 ## HH:MM 見出しの間に空行 1 行を入れる(上の if ブロックで、LF 終端担保 + 空行 1 行の 2 段階で処理)
  • 新規ファイル: 冒頭にファイルレベル見出し(# 2026-04-21 など)は付けない。日付はファイル名に入っている。冒頭空行も作らない(上の if ブロックが空ファイルをスキップするため自動的に担保される)
  • allowed-tools は Bash, Read: Write ツールは使わない。追記は上の quoted heredoc で

Memo content

$ARGUMENTS

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.