dev-tasks

A collection of recipes for maintaining and extending a Java search server. It covers adding searchable fields, supporting file formats, debugging STDIO communication, and improving performance.

In plain words
What is it for?
Use it when adding facet fields, supporting new document formats, diagnosing STDIO problems, tuning performance, or updating the search index schema.
Why use it?
It gives developers project-specific steps and warnings for changes that can break indexing, file parsing, or the JSON-RPC connection used by MCP.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/mirkosertic/mcpluceneserver/dev-tasks
Any agent
npx skills add mirkosertic/MCPLuceneServer --skill dev-tasks
Clone the repo
git clone --depth 1 https://github.com/mirkosertic/MCPLuceneServer

Made for: Claude Code, Codex.

Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 759 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00035 $0.00759
Opus 5 $0.00017 $0.00380
Sonnet 5 $0.00007 $0.00152
Haiku 4.5 $0.00003 $0.00076

Measured 3d ago against content hash f9fdd4672ea6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dev-tasks 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 3d 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.

.claude/skills/dev-tasks/SKILL.md · 73 lines

How it starts

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

Common Development Tasks

Adding a New Facet Field

  1. Update DocumentIndexer.java - add the field to FacetsConfig
  2. Add the field to the Lucene document in the indexing method
  3. Bump SCHEMA_VERSION in DocumentIndexer.java (triggers automatic reindex on upgrade)
  4. Update README.md field schema table

Adding File Format Support

  1. Add the file extension pattern to application.yaml under include-patterns
  2. Apache Tika handles most formats automatically via auto-detection
  3. For custom parsing beyond Tika: extend FileContentExtractor.java
  4. Test with real documents of the new format
  5. Update README.md supported formats section

Debugging STDIO Issues

The MCP server uses STDIO transport. Any output to stdout breaks the JSON-RPC protocol.

Checklist:

  • Must use deployed profile: java -Dspring.profiles.active=deployed -jar target/luceneserver-*.jar
  • The deployed profile disables all console logging appenders
  • Search for System.out.println in codebase -- there must be NONE
  • Search for System.err.println -- also problematic
  • Logger output goes to file only in deployed mode
  • Test command: java -Dspring.profiles.active=deployed -jar target/luceneserver-*.jar

Performance Tuning

Indexing is slow

  • Increase thread-pool-size in config (more parallel file walkers)
  • Increase batch-size (fewer Lucene commits)
  • Increase batch-timeout-ms (larger batches)
  • Check if max-content-length is causing excessive content truncation

Search is slow

  • Check for leading wildcard queries (*term) -- these are expensive even with content_reversed optimization
  • Reduce pageSize in search requests
  • Check total index size -- very large indices may benefit from optimizeIndex()

Out of Memory (OOM)

  • Set max-content-length to limit per-document content size
  • Increase JVM heap: -Xmx2g or higher
  • Reduce thread-pool-size (each thread holds document content in memory)
  • Check for very large files being indexed (e.g., multi-GB archives)

Read the full file on GitHub · 73 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. 3d ago First seen · 73 lines · 35 tokens per session scan A f9fdd4672ea6

Subscribe to this mod's changes

dev-tasks is a skill published in the GitHub repository mirkosertic/MCPLuceneServer (5 stars, last pushed 6d ago), licensed Apache-2.0. It adds 35 tokens to every session and 759 once invoked, about $0.0002 per session on Opus 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

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

tika-eval-compare

Compare extracts from two Tika builds over a corpus to detect regressions in content, encoding, exceptions, and embedded-document handling. Use for "compare before/after extracts", "eval this change against the corpus".

apache/tika · 50 tokens

xcodebuildmcp-structured-output-review

Use when reviewing XcodeBuildMCP structured output schema changes, schema versioning, manifest outputSchema metadata, and JSON fixture compatibility.

getsentry/XcodeBuildMCP · 37 tokens

opik-diagnose

Surface the Opik traces worth a developer's attention, ranked by signal — errors, failed tool calls, latency, regressions, and low online-eval scores — plus Diagnostics issues. Reads live/production traces via the SDK (searchtraces and agentinsights) and works with no MCP; uses the MCP issue entity when connected.…

comet-ml/opik-mcp · 147 tokens

mcp-transport-contract-auditor

Route shaft-mcp transport-contract audits to the canonical playbook.

ShaftHQ/SHAFT_ENGINE · 22 tokens

create-operator

MUST READ before creating or moving any operator (createop, copyop, setopposition, or executepython builds). Required verification, canonical positioning recipe, and error-checking steps.

dylanroscover/Embody · 42 tokens