Agent skill

New Action

by RafaelGB in RafaelGB/Obsidian-ZettelFlow

Scaffold a new ZettelFlow action following the project's 4-file convention (Action / Component / Settings / SettingsReader), register it, and document it.

MITAuto-check passedKnowledge Management

Install New Action

skills CLI
$ npx skills add RafaelGB/Obsidian-ZettelFlow --skill new-action -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install RafaelGB/Obsidian-ZettelFlow new-action --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/RafaelGB/Obsidian-ZettelFlow.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/new-action .claude/skills/new-action && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
new-action
GitHub stars
175
Token cost
~1.1k tokens
SKILL.md length
354 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

Scaffold a new ZettelFlow action following the project's 4-file convention (Action / Component / Settings / SettingsReader), register it, and document it.

  • Works in 4 steps: Action.tsx — the class → Component.tsx — build-time UI (skip if… → Settings.ts(x) — design-time config UI → …
  • The user asks to add an action
  • SKILL.md covers Decide the shape first, The 4 files, Register it and Document it, plus 1 more section
  • Calls npm; reaches rafaelgb.github.io

What it does

New Action is an agent skill from RafaelGB/Obsidian-ZettelFlow. Scaffold a new ZettelFlow action following the project's 4-file convention (Action / Component / Settings / SettingsReader), register it, and document it. Use when the user asks to "add an action", "create a new action type", "scaffold an action", or wants to extend the note builder with a new interactive step.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Knowledge Management. It works with Obsidian. The repository describes itself as: ZettelFlow is a plugin for Obsidian that helps you to create and manage your notes in a Zettelkasten way. The licence is MIT.

When your agent uses it

  • The user asks to add an action
  • Create a new action type
  • Scaffold an action
  • Wants to extend the note builder with a new interactive step

Example prompts

  • “add an action”
  • “create a new action type”
  • “scaffold an action”
  • “/new-action”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Action.tsx — the class
  2. Component.tsx — build-time UI (skip if hasUI: false)
  3. Settings.ts(x) — design-time config UI
  4. SettingsReader.ts — read-only config view

What it can do on your machine

Read from SKILL.md and the folder at commit b1be16f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • rafaelgb.github.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

New Action loads about 1.1k tokens when it runs. Until then it costs about 81 tokens; SKILL.md has 354 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~81
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from RafaelGB/Obsidian-ZettelFlow at commit b1be16f, republished under its MIT licence (© RafaelGB). 354 words, ~1,082 tokens.

Download SKILL.mdSave it as .claude/skills/new-action/SKILL.md (or your agent's skills folder).
name
new-action
description
Scaffold a new ZettelFlow action following the project's 4-file convention (Action / Component / Settings / SettingsReader), register it, and document it. Use when the user asks to "add an action", "create a new action type", "scaffold an action", or wants to extend the note builder with a new interactive step.

Add a new ZettelFlow action

An action is a unit attached to a canvas step that contributes to the generated note. Each action is a 4-file bundle in src/actions/<name>/ plus one registration line. Read docs/architecture/actions-and-note-builder.md for the full contract before starting; this skill is the mechanical recipe.

Decide the shape first

Ask (or infer) three things:

  1. Interactive or background? hasUI: true renders a wizard step (with a Component); hasUI: false runs silently during build (no Component), like script/task-management.
  2. Where does the value land? A zone — frontmatter (YAML property), body ({{key}} substitution), or context (ephemeral, shared between actions). Most value-producing actions expose a zone + key config.
  3. Does it need the real file? If it must touch a TFile after the note is written (like backlink), implement postProcess instead of / in addition to execute.

Copy the closest existing action as a template: prompt (simple UI + zone/key/static), selector (options list), script (background, imperative), backlink (postProcess).

The 4 files

Create src/actions/<name>/:

1. <Name>Action.tsx — the class
tsx
import { CustomZettelAction } from "architecture/api";
// ...
export class <Name>Action extends CustomZettelAction {
  id = "<type-id>";                       // unique; becomes Action.type
  defaultAction = { type: this.id, id: this.id, hasUI: true, zone: "frontmatter" };
  settings = <name>Settings;              // from <Name>Settings
  settingsReader = <name>SettingsReader;  // from <Name>SettingsReader
  link = "https://rafaelgb.github.io/Obsidian-ZettelFlow/actions/<Name>/";
  purpose = "One-line description shown in the action picker.";

  component(props) { return <<Name>Wrapper {...props} />; }   // only if hasUI

  async execute(info) {
    const { key, zone } = info.element;              // config
    const value = info.element.result;               // user input (or static value)
    switch (zone) {
      case "body":    info.content.modify(key, value); break;
      case "context": info.context[key] = value; break;
      default:        info.content.addFrontMatter({ [key]: value });
    }
  }

  getIcon() { return "<lucide-icon-id>"; }
  getLabel() { return "<sentence case label>"; }
}
2. <Name>Component.tsx — build-time UI (skip if hasUI: false)

A React component that collects input and submits via props.callback(value) (see PromptComponent for the Enter-to-submit pattern). Style with the c('...') helper.

Show full SKILL.md (161 more words)Show less
3. <Name>Settings.ts(x) — design-time config UI

Render Obsidian Setting rows (and/or a React root) that mutate the action object: the zone dropdown, key (with PropertySuggest), label/placeholder, and — for value actions — a static toggle that sets hasUI=false + a fixed staticValue. Mirror PromptSettings.

4. <Name>SettingsReader.ts — read-only config view

Render the config non-editably (used in community previews). Usually reuses the same detail renderer as Settings in read-only mode.

Register it

  1. Export the class from src/actions/index.ts.
  2. Add actionsStore.registerAction(new <Name>Action()); to registerActions() in src/main.ts.

Document it

  1. Add docs/actions/<Name>.md (follow an existing action page).
  2. Add it to the mkdocs.yml nav under 2. Actions.

Verify

  • npm run release (type-check + build) passes.
  • npm run lint is clean.
  • The label and any UI text are sentence case and, ideally, come from the i18n layer (architecture/lang/ — add keys to en.ts and es.ts).
  • No innerHTML and no inline el.style.* (use c() + SCSS). These cost Obsidian score — see the obsidian-plugin-quality skill.
  • Add the new action to the table in docs/architecture/actions-and-note-builder.md.

© RafaelGB, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/new-action of RafaelGB/Obsidian-ZettelFlow.

Open the folder on GitHubat commit b1be16f

Compare with similar skills

New Action next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

New Action compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
New Action this skillRafaelGB/Obsidian-ZettelFlow175—~1.1kAutomated safety check: PassMIT
Obsidian CLIAtmosphere/atmosphere3.8k13 repos~795Automated safety check: PassApache-2.0
Obsidian Canvas BoardsAgriciDaniel/claude-obsidian15k—~1.4kAutomated safety check: PassMIT
LLM Wikilewislulu/llm-wiki-skill655—~3.7kAutomated safety check: PassNone
Second BrainNicholasSpisak/second-brain737—~1.5kAutomated safety check: NotesNone
Codex History IngestAr9av/obsidian-wiki3.5k—~2.2kAutomated safety check: NotesMIT

Similar skills

  • Obsidian CLI

    Atmosphere/atmosphere

    Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more.

    3.8k GitHub starsUsed in 13 repos~795 tokens
    Knowledge ManagementAuto-check passed
  • Obsidian Canvas Boards

    AgriciDaniel/claude-obsidian

    Creates, inspects and updates Obsidian JSON Canvas boards in a vault, with text, file, link, group and edge nodes, using safe recoverable edits.

    15k GitHub stars~1.4k tokensUpdated 1 mo ago
    Knowledge ManagementAuto-check passed
  • LLM Wiki

    lewislulu/llm-wiki-skill

    Build and maintain a Karpathy-style LLM knowledge base — a self-compiling Obsidian markdown wiki where an Agent ingests raw sources, compiles cross-linked concept/entity/summary pages, answers…

    655 GitHub stars~3.7k tokensUpdated 5 mo ago
    Knowledge ManagementAuto-check passed
  • Second Brain

    NicholasSpisak/second-brain

    Set up a new Obsidian knowledge base with the LLM Wiki pattern.

    737 GitHub stars~1.5k tokensUpdated 6 mo ago
    Knowledge ManagementAuto-check: notes
  • Codex History Ingest

    Ar9av/obsidian-wiki

    Ingest Codex CLI conversation/session history into Obsidian as distilled knowledge.

    3.5k GitHub stars~2.2k tokensUpdated 2 days ago
    Knowledge ManagementAuto-check: notes
  • Autograph

    smixs/agent-second-brain

    Schema-as-code enforcement for any Obsidian vault. An agent skill from smixs/agent-second-brain.

    393 GitHub stars~3.7k tokensUpdated 2 mo ago
    Knowledge ManagementAuto-check passed

More from RafaelGB/Obsidian-ZettelFlow

All 9 skills in this repo
  • Obsidian Plugin Quality

    RafaelGB/Obsidian-ZettelFlow

    Audit ZettelFlow against the official Obsidian plugin guidelines and the Community-hub automated review / quality score.

    175 GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Release

    RafaelGB/Obsidian-ZettelFlow

    Cut a compliant ZettelFlow plugin release — version bump, versions.json, build, tag, and a GitHub Release whose notes follow the house format.

    175 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Specify

    RafaelGB/Obsidian-ZettelFlow

    Stage 1 of the SDD pipeline — write a ZettelFlow spec into a GitHub issue body (problem, value, functional requirements, testable acceptance criteria, capability disclosure, out-of-scope).

    175 GitHub stars~759 tokensUpdated yesterday
    Auto-check passed
  • Sdd

    RafaelGB/Obsidian-ZettelFlow

    The Spec-Driven Development pipeline for ZettelFlow — the end-to-end flow (constitution → specify → plan → tasks → implement → verify) and which skill/agent owns each stage.

    175 GitHub stars~842 tokensUpdated yesterday
    Auto-check passed
  • TDD

    RafaelGB/Obsidian-ZettelFlow

    The test-driven development workflow for ZettelFlow — write a failing test first, run jest, use the Obsidian mock and the bare-specifier alias mappings, and know which code is unit-testable.

    175 GitHub stars~724 tokensUpdated yesterday
    Auto-check passed
  • Implement

    RafaelGB/Obsidian-ZettelFlow

    Stage 4 of the SDD pipeline — execute a ZettelFlow task checklist (in a GitHub issue comment) test-first (red → green → refactor), one commit per advance, keeping npm run verify green and CI green…

    175 GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about New Action

What does New Action do?

Scaffold a new ZettelFlow action following the project's 4-file convention (Action / Component / Settings / SettingsReader), register it, and document it. New Action is an agent skill from RafaelGB/Obsidian-ZettelFlow. Scaffold a new ZettelFlow action following the project's 4-file convention (Action / Component / Settings / SettingsReader), register it, and document it.

When should I use New Action?

New Action fits situations like: the user asks to add an action; create a new action type; scaffold an action; wants to extend the note builder with a new interactive step.

How do I install New Action in Claude Code?

Run `npx skills add RafaelGB/Obsidian-ZettelFlow --skill new-action -a claude-code`. Or copy the skill folder (.claude/skills/new-action in RafaelGB/Obsidian-ZettelFlow) into .claude/skills/new-action in your project. Claude Code loads it when a task matches its description.

How do I install New Action in Codex?

Run `npx skills add RafaelGB/Obsidian-ZettelFlow --skill new-action -a codex`. Or copy the skill folder (.claude/skills/new-action in RafaelGB/Obsidian-ZettelFlow) into .agents/skills/new-action in your project. Codex loads it when a task matches its description.

Can I use New Action in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add RafaelGB/Obsidian-ZettelFlow --skill new-action -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/new-action, .gemini/skills/new-action, .github/skills/new-action and .opencode/skills/new-action in your project.

What does New Action need to run?

Going by SKILL.md and its folder, New Action needs the command-line tools its instructions call (npm).

Does New Action access the network?

SKILL.md names 1 domain. In commands or code: rafaelgb.github.io; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is New Action safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does New Action use?

New Action is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does New Action use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to New Action?

Skills that share tags, products or a category with New Action: Obsidian CLI (Atmosphere/atmosphere, 3.8k stars), Obsidian Canvas Boards (AgriciDaniel/claude-obsidian, 15k stars), LLM Wiki (lewislulu/llm-wiki-skill, 655 stars) and Second Brain (NicholasSpisak/second-brain, 737 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains New Action?

RafaelGB (a GitHub user) maintains it in RafaelGB/Obsidian-ZettelFlow, which has 175 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 10, 2026.

Source: RafaelGB/Obsidian-ZettelFlow on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.