selection-processor

selection-processor is a skill for Claude Code, Codex from Jacobinwwey/notemdpro. It costs 27 tokens per session (1,058 once invoked), scanned A, original, MIT.

A tool for processing only text selected in an editor instead of an entire file.

In plain words
What is it for?
It helps generate content, add links, translate, or otherwise process a chosen section while optionally including nearby context.
Why use it?
It avoids rewriting unrelated content and reduces the amount of text sent for processing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps generate content, add links, translate, or otherwise process a chosen section while optionally including nearby context.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jacobinwwey/notemdpro/selection-processor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Jacobinwwey/notemdpro --skill selection-processor
Clone the repo
git clone --depth 1 https://github.com/Jacobinwwey/notemdpro

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for selection-processor

README.md
[![agentmods](https://agentmods.dev/badge/skills/jacobinwwey/notemdpro/selection-processor/github.svg)](https://agentmods.dev/skills/jacobinwwey/notemdpro/selection-processor)
Your own site
<a href="https://agentmods.dev/skills/jacobinwwey/notemdpro/selection-processor"><img src="https://agentmods.dev/badge/skills/jacobinwwey/notemdpro/selection-processor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for selection-processor

Your own site · 80×15
<a href="https://agentmods.dev/skills/jacobinwwey/notemdpro/selection-processor"><img src="https://agentmods.dev/badge/skills/jacobinwwey/notemdpro/selection-processor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,058 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.01058
Opus 5.5 $0.00011 $0.00423
Sonnet 5.5 $0.00005 $0.00212
Haiku 4.5 $0.00003 $0.00106

Measured 1mo ago against content hash 192bf3c21308, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

selection-processor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/selection-processor/SKILL.md · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

NoteMD Pro - Selection-Based Processing

Overview

This skill enables processing of selected text portions within files, rather than forcing full-file rewrites. This saves tokens, reduces processing time, and allows targeted AI operations on specific sections.

When to Use

  • Partial content generation: Generate content for just a section
  • Selective linking: Add links to specific paragraphs
  • Targeted translation: Translate selected portions
  • Efficient processing: Save tokens by processing only what's needed

Function Call Chain

Process Selection
├── Get selected text from editor
├── Get surrounding context (optional)
├── Process selected content (LLM)
├── Replace or append selected content
└── Update file

Selection Processing Patterns

1. Get Selected Text

// From Obsidian editor
const editor = view.editor;
const selection = editor.getSelection();

// From VS Code
const selection = editor.selection;
const text = editor.document.getText(selection);

2. Process with Context

For better results, include surrounding context:

// Get context before and after selection
const lineNum = editor.getCursor().line;
const beforeLines = editor.getRange({line: 0, ch: 0}, {line: lineNum, ch: 0});
const afterLines = editor.getRange({line: lineNum, ch: 0}, {line: maxLine, ch: 0});
const fullContext = beforeLines + selection + afterLines;

3. Replace Selection

// Replace selected text with processed result
editor.replaceSelection(processedContent);

// Or append after selection
editor.replaceRange('\n\n' + processedContent, {line: lineNum + 1, ch: 0});

Use Cases

Wiki-Link from Selection

// Selected: "Machine learning is a subset of AI"
// Process: Add links to key concepts
// Result: "Machine learning is a subset of [[AI]]"
async function addLinksToSelection(app: App, editor: Editor) {
    const selection = editor.getSelection();
    const prompt = getSystemPrompt('addLinks');
    const result = await callLLM(prompt, selection);
    editor.replaceSelection(result);
}

Read the full file on GitHub · 162 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 162 lines · 27 tokens per session scan A 192bf3c21308

Subscribe to this mod's changes

selection-processor is a skill published in the GitHub repository Jacobinwwey/notemdpro (2 stars, last pushed 16d ago), licensed MIT. It adds 27 tokens to every session and 1,058 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

google-workspace

Fetch and query data from Google Workspace using the gws CLI — Gmail, Calendar, Docs, Sheets, Slides, and Drive. Use this skill whenever the user mentions email, inbox, messages, calendar, meetings, schedule, agenda, Google Docs, spreadsheets, presentations, or Drive files. Trigger on phrases like "check my email"…

opendatahub-io/ai-helpers · 107 tokens

email-meeting-summary

Use when the user wants to summarize a Google Meet meeting and send the summary by email. Reviews a Google Meet transcript for a specific meeting topic, then composes a Gmail draft summarizing decisions and action items for that topic. Prompts for meeting selection if not specified, and for topic selection before…

opendatahub-io/ai-helpers · 78 tokens

gmail-draft

Use this skill to compose a Gmail draft from text content in the conversation. Accepts a body, recipient list, and subject — either from the user or from context — and creates a draft in the user's Gmail Drafts folder via gws.

opendatahub-io/ai-helpers · 53 tokens

caveman

Compress agent chat replies: less filler, max meaning. Use when the user says caveman mode, /caveman, talk like caveman, be brief, or asks for fewer tokens in chat. Intensities: /caveman lite|full|ultra. Stop with stop caveman or normal mode. Chat narration only — not commits, PRs, or customer docs unless the user…

takara-ai/miru-code · 86 tokens

quick-tasks

Token-saving mode for everyday lightweight work. Use for one-line fixes, typo/config-value changes, quick questions ("what does this function do?"), throwaway scripts, and anything that ends inside a single file. Output is a minimal diff and a short report. For multi-file, design, or new-feature work, switch to the…

Kimyongari/harness-factory · 73 tokens

Dispatching Parallel Agents

Concurrent execution of independent subtasks using multi-agent scheduling.

ankur-gaurav161418/omniforge · 16 tokens