Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

foam-notes泡沫笔记

Agent Skill

foam-notes 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

36,511

周安装

1,477

GitHub Stars

1

下载量

11,462
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:foam-notes(泡沫笔记)
来源仓库:https://github.com/hegghammer/foam-notes
安装命令:
openclaw skills install foam-notes
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install foam-notes

简介

在 Foam 笔记系统中创建、编辑与关联知识条目。

  • 提供智能维基链接与标签建议,增强笔记互联性。
  • 支持反向链接发现与每日笔记自动生成。foam-notes 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 安装命令:openclaw skills install foam-notes
  • 要求本地存在有效的 Foam 存储库目录结构。

SKILL.md

name
foam-notes
description
Work with Foam note repositories. Create, edit, link, and tag notes. Get intelligent wikilink and tag suggestions. Skill supports backlinks discovery, daily notes, templates, graph visualization, note deletion, and renaming. Full Foam documentation included for easy querying.

Foam Notes

Work with Foam note-taking workspaces in VS Code. Foam is a free, open-source personal knowledge management system using standard Markdown files with wikilinks.

Quick Reference

  • Wikilinks: [[note-name]] — connect notes bidirectionally
  • Embeds: ![[note-name]] — include content from other notes
  • Backlinks: Automatically discovered connections to current note
  • Tags: #tag or frontmatter tags: [tag1, tag2]
  • Daily Notes: Alt+D or command "Foam: Open Daily Note"

Configuration

Copy config.json.template to config.json and edit to taste:

{
  "foam_root": "/path/to/your/foam-workspace",
  "default_template": "new-note",
  "default_notes_folder": "notes",
  "daily_note_folder": "journals",
  "author": "Your Name",
  "wikilinks": {
    "title_stopwords": ["home", "index", "readme", "draft", "template"],
    "suffixes": ["-hub"],
    "min_length": 3
  },
  "tags": {
    "editorial_stopwords": ["notes", "note", "foam", "markdown", "file", "page", "section"]
  }
}

Location: config.json in the skill directory (next to SKILL.md).

Config keys

KeyTypeDefaultDescription
foam_rootstring"" (auto-detect)Path to your Foam workspace
default_templatestring"new-note"Template for new notes
default_notes_folderstring"notes"Subfolder for new notes
daily_note_folderstring"journals"Subfolder for daily notes
authorstring""Author name for note creation
wikilinks.title_stopwordslist[]Note titles to never match as wikilinks (e.g. "home", "index", "todo"). Add any generic filenames from your workspace that produce false positives.
wikilinks.suffixeslist[]Filename suffixes whose base stem should also register as a match key. For example, if you name your hub/MOC notes docker-hub.md, add "-hub" here so that "docker" in prose matches docker-hub.md.
wikilinks.min_lengthint3Minimum key length to consider for wikilink matching
tags.editorial_stopwordslist[]Domain-specific words to exclude from tag suggestions (in addition to standard English stopwords).

Foam root priority order (highest to lowest)

  1. --foam-root CLI argument
  2. FOAM_WORKSPACE environment variable
  3. foam_root in config.json
  4. Auto-detect by finding .foam or .vscode directory
  5. Current working directory

See references/configuration.md for complete documentation.

Scripts

All scripts support --foam-root to override the workspace path.

init_templates.py

Initialize .foam/templates/ with starter templates from the official Foam template:

python3 scripts/init_templates.py              # Copy to current workspace
python3 scripts/init_templates.py --foam-root ~/notes
python3 scripts/init_templates.py --list      # Show available templates
python3 scripts/init_templates.py --force     # Overwrite existing
python3 scripts/init_templates.py --dry-run   # Preview what would be copied

Templates included:

  • new-note.md — Default template for new notes
  • daily-note.md — Template for daily notes
  • your-first-template.md — Example template demonstrating VS Code snippets

create_note.py

Create a new note from template:

python3 scripts/create_note.py "My New Idea"
python3 scripts/create_note.py "Meeting Notes" --template meeting
python3 scripts/create_note.py "Research Topic" --dir research/

find_backlinks.py

Find all notes that link to a given note:

python3 scripts/find_backlinks.py "Machine Learning"
python3 scripts/find_backlinks.py "ml-basics" --format json

search_tags.py

Find notes by tag:

python3 scripts/search_tags.py "#research"
python3 scripts/search_tags.py machine-learning --include-frontmatter

list_tags.py

List all tags with usage counts:

python3 scripts/list_tags.py
python3 scripts/list_tags.py --hierarchy --min-count 3

graph_summary.py

Analyze the knowledge graph:

python3 scripts/graph_summary.py
python3 scripts/graph_summary.py --format json

daily_note.py

Create daily notes:

python3 scripts/daily_note.py
python3 scripts/daily_note.py --yesterday
python3 scripts/daily_note.py --template custom-daily
python3 scripts/daily_note.py --print-path   # Just output the path

suggest_wikilinks.py

Suggest wikilinks by finding text in a note that matches existing note titles:

python3 scripts/suggest_wikilinks.py my-note.md              # Interactive mode
python3 scripts/suggest_wikilinks.py my-note.md --apply 1,3,5  # Auto-apply
python3 scripts/suggest_wikilinks.py my-note.md --auto-apply   # Apply all
python3 scripts/suggest_wikilinks.py my-note.md --dry-run      # Preview only
python3 scripts/suggest_wikilinks.py my-note.md --with-aliases # Create [[target|text]] format

The script scans the note content and identifies words/phrases that match existing note titles in the archive. It presents them as a numbered list:

1. Line 12, col 8
   Text: "machine learning"
   Link to: [[machine-learning]]
   Context: ...working on machine learning projects...

Wikilink formats:

  • Default: [[target]] — clean, simple links
  • With --with-aliases: [[target|display text]] — preserves original text as alias

Respond with:

  • Numbers to implement (e.g., 1 3 5)
  • all to apply all suggestions
  • none to cancel

suggest_tags.py

Suggest tags for a note based on content and existing tags in the archive:

python3 scripts/suggest_tags.py my-note.md              # Interactive mode
python3 scripts/suggest_tags.py my-note.md --apply all  # Add all suggested
python3 scripts/suggest_tags.py my-note.md --apply existing  # Only existing tags
python3 scripts/suggest_tags.py my-note.md --frontmatter     # Add to frontmatter

The script:

  1. Extracts keywords from note content
  2. Finds matching existing tags (with usage counts)
  3. Suggests new tags based on content analysis

Presented as numbered list with two sections:

  • Existing Tags — Already used in your archive
  • New Suggestions — Extracted from current note content

Respond with:

  • Numbers (e.g., 1 3 5)
  • all — all suggestions
  • existing — only existing tags
  • new — only new suggestions
  • none — cancel
  • Or type custom tags: #mytag #project

delete_note.py

Delete notes with optional backup and automatic backlink handling:

python3 scripts/delete_note.py "Old Note"                    # Interactive deletion
python3 scripts/delete_note.py "Old Note" --force          # Skip confirmation
python3 scripts/delete_note.py "Old Note" --backup         # Move to .foam/trash/
python3 scripts/delete_note.py "Old Note" --fix-links      # Remove wikilinks from other notes

Features:

  • Backup mode: Moves note to .foam/trash/ instead of permanent deletion
  • Backlink detection: Shows which notes link to the one being deleted
  • Link fixing: Automatically removes wikilinks from other notes
  • Confirmation: Prompts before deletion (skip with --force)

rename_note.py

Rename notes and automatically update all wikilinks:

python3 scripts/rename_note.py "Old Name" "New Name"       # Interactive rename
python3 scripts/rename_note.py "Old Name" "New Name" --force  # Skip confirmation

Features:

  • Automatic wikilink updates: Finds and updates all [[old-name]] references
  • File rename: Changes filename from old-name.md to new-name.md
  • Title preservation: Keeps note content intact, only updates links
  • Confirmation: Shows affected notes before proceeding

When to Use This Skill

Use this skill when:

  • Creating or editing notes in a Foam workspace
  • Working with wikilinks, backlinks, or the knowledge graph
  • Analyzing note relationships and connections
  • Setting up or configuring Foam templates
  • Working with daily notes or tags
  • Publishing Foam workspaces to static sites

Foam Workspace Structure

foam-workspace/
├── .vscode/
│   ├── extensions.json      # Recommended extensions
│   └── settings.json        # VS Code settings
├── .foam/
│   └── templates/           # Note templates (.md and .js)
├── journals/                # Daily notes (default location)
├── attachments/             # Images and files
├── *.md                     # Your notes
└── foam.json (optional)     # Foam configuration

Core Concepts

Wikilinks

Create connections between notes using double brackets:

See also [[related-concept]] for more information.
  • Autocomplete with [[ + type note name
  • Navigate with Ctrl+Click (or Cmd+Click on Mac)
  • Create new notes by clicking non-existent links
  • Link to sections: [[note-name#Section Title]]

See references/wikilinks.md for complete documentation.

Backlinks

Backlinks show which notes reference the current note — discovered automatically by Foam.

Access via:

  • Command palette: "Explorer: Focus on Connections"
  • Shows forward links, backlinks, or both

Use backlinks for:

  • Finding unexpected connections between ideas
  • Identifying hub concepts (notes with many backlinks)
  • Building context around ideas across domains

See references/backlinks.md for complete documentation.

Tags

Organize notes beyond wikilinks:

# Inline tags
#machine-learning #research #in-progress

# Frontmatter tags
---
tags: [machine-learning, research, in-progress]
---
  • Hierarchical: #programming/python
  • Browse in Tag Explorer panel
  • Search: "Foam: Search Tag"

See references/tags.md for complete documentation.

Daily Notes

Quick daily journaling:

  • Shortcut: Alt+D
  • Command: "Foam: Open Daily Note"
  • Snippets: /today, /yesterday, /tomorrow

Template: .foam/templates/daily-note.md

See references/daily-notes.md for complete documentation.

Templates

Customize note creation. Foam looks for templates in .foam/templates/.

To initialize starter templates:

python3 scripts/init_templates.py

This copies official Foam templates to your workspace:

  • new-note.md — Default template
  • daily-note.md — Daily notes template
  • your-first-template.md — Example with VS Code snippets

Markdown templates (.md):

---
foam_template:
  filepath: '$FOAM_CURRENT_DIR/$FOAM_SLUG.md'
---

# $FOAM_TITLE

Created: $FOAM_DATE_YEAR-$FOAM_DATE_MONTH-$FOAM_DATE_DATE

$FOAM_SELECTED_TEXT

JavaScript templates (.js) — for smart, context-aware templates.

See references/templates.md for complete documentation.

Common Tasks

Creating a New Note

When creating notes programmatically (not via VS Code), always read the workspace template in .foam/templates/new-note.md first and follow its structure exactly.

In VS Code:

  1. Use "Foam: Create New Note" for default template
  2. Use "Foam: Create New Note From Template" to choose template
  3. Or click a non-existent wikilink [[new-note]]

Finding Note Relationships

  1. Backlinks: Check Connections panel for linked notes
  2. Graph View: Command "Foam: Show Graph" for visual network
  3. Tag Explorer: Browse notes by tag

Working with Embeds

Include content from other notes:

![[glossary]]

See the full definition above.

Publishing

Foam can publish to static sites:

  • GitHub Pages (built-in template)
  • Netlify
  • Vercel
  • GitLab Pages
  • Custom static site generators (Gatsby, MkDocs, etc.)

See recipes in Foam documentation for publishing options.

Foam vs Obsidian

FeatureFoamObsidian
Wikilinks[[note]][[note]]
Embeds![[note]]![[note]]
PlatformVS CodeDedicated app
Plugin ecosystemMinimal (VS Code extensions)Extensive
File formatStandard MarkdownMarkdown with extensions
Configuration.vscode/settings.json.obsidian/ folder
PriceFreeFreemium

Both use the same core linking syntax. Foam prioritizes simplicity and standard formats.

Configuration

Key .vscode/settings.json options:

{
  "foam.openDailyNote.onStartup": true,
  "foam.dateSnippets.format": "yyyy-mm-dd",
  "markdown.styles": [".foam/css/custom.css"]
}

Foam CLI Commands

Key VS Code commands:

  • Foam: Open Daily Note — Create/open today's note
  • Foam: Create New Note — Create from default template
  • Foam: Create New Note From Template — Choose template
  • Foam: Create New Template — Create new template
  • Foam: Show Graph — Visualize knowledge graph
  • Foam: Search Tag — Search for tagged notes
  • Explorer: Focus on Connections — Show backlinks panel

Reference Documentation

  • foam-overview.md — General Foam introduction and philosophy
  • wikilinks.md — Complete wikilinks guide
  • backlinks.md — Backlinks and knowledge discovery
  • tags.md — Tag organization and filtering
  • daily-notes.md — Daily note workflows
  • templates.md — Template creation (Markdown and JavaScript)

Read these files for detailed information on specific features.

External Resources

  • Official site: https://foamnotes.com
  • GitHub: https://github.com/foambubble/foam
  • Discord: https://foambubble.github.io/join-discord/w

Tips

  1. Start small: Foam works best with consistent note-taking habits
  2. Link liberally: Create wikilinks even to non-existent notes (placeholders)
  3. Use the graph: Visualize your knowledge network to find gaps
  4. Trust the process: Backlinks reveal connections you didn't plan
  5. Keep it standard: Foam uses standard Markdown — your notes remain portable

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

81.84%
按下载量换算9,381

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills