This rule provides instruction for interacting with the Obsidian API
BasesEntry: Represents a note/entry with propertiesBasesViewConfig: View configuration (user options)BasesPropertyId: Property identifier (string)App: Obsidian application instanceTFile: Obsidian file// Get property value
const value = entry.getValue(propertyId);
// Get property display name
const displayName = config.getDisplayName(propertyId);
// Get image (resolves internal and external paths)
import { getResourcePath } from "@/lib/obsidian/link";
const imageSrc = getResourcePath(app, imageUrl, entry.file.path);
The Obsidian context exposes shared Obsidian variables.
const { app, component, containerEl, isEmbedded } = useObsidian();
Define and use reusable hooks to wrap Obsidian features in src/hooks to simplify the workflow and increase reusability
// Get config value with default
const layout = useConfigValue<"vertical" | "horizontal">("layout", "vertical");
// Get entry data
const entry = useEntry(entryId);
// Get entry property
const property = useEntryProperty(entryId, propertyId);
// Get entry title
const title = useEntryTitle(entryId);
// Handler to open entry
const handleOpen = useEntryOpen(entryId);
// Handler for hover with preview
const handleHover = useEntryHover(entryId, linkRef);
npx skills add aitorllj93/using-obsidian-api下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer