helix.mcp: Skill for Claude Code

.copilot/skills/freshness-marker-caching/SKILL.md

freshness-marker-caching is a skill for Claude Code, Codex from lewing/helix.mcp. It costs 0 tokens per session (778 once invoked), scanned A, original, MIT.

A caching pattern for append-only data, where one cache entry stores the content and a separate short-lived marker controls when to check for updates.

In plain words
What is it for?
Use it for feeds, logs, or other growing data sources that need stale-while-revalidate behavior or incremental updates.
Why use it?
It lets an application keep usable cached content while fetching only newly added data after the marker expires, instead of downloading everything again.

Skill for Claude CodeCodex

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

This is lewing/helix.mcp's own configuration. It tells Claude Code and Codex how to work on helix.mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything helix.mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to lewing/helix.mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/lewing/helix.mcp/main/.copilot/skills/freshness-marker-caching/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/lewing/helix.mcp

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 freshness-marker-caching

README.md
[![agentmods](https://agentmods.dev/badge/skills/lewing/helix.mcp/freshness-marker-caching/github.svg)](https://agentmods.dev/skills/lewing/helix.mcp/freshness-marker-caching)
Your own site
<a href="https://agentmods.dev/skills/lewing/helix.mcp/freshness-marker-caching"><img src="https://agentmods.dev/badge/skills/lewing/helix.mcp/freshness-marker-caching/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 freshness-marker-caching

Your own site · 80×15
<a href="https://agentmods.dev/skills/lewing/helix.mcp/freshness-marker-caching"><img src="https://agentmods.dev/badge/skills/lewing/helix.mcp/freshness-marker-caching.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 778 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.00000 $0.00778
Opus 5 $0.00000 $0.00389
Sonnet 5 $0.00000 $0.00156
Haiku 4.5 $0.00000 $0.00078

Measured 10d ago against content hash d2e5e2be11bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

freshness-marker-caching 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 10d 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.

.copilot/skills/freshness-marker-caching/SKILL.md · 82 lines

How it starts

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

Skill: Freshness Marker Pattern for Delta Caching

Confidence: low Source: earned

Problem

You have a cache that auto-deletes expired entries (no stale reads), but you need to implement "stale-while-revalidate" or delta-append semantics for append-only data sources. When the TTL expires, you want to keep the old content and fetch only the new data — not re-download everything.

Pattern

Use two cache keys per entry:

  1. Content key — stores the actual data with a long TTL (e.g., 4h). Survives multiple refresh cycles.
  2. Freshness key — a lightweight sentinel (value "1") with a short TTL (e.g., 15s). Controls re-fetch cadence.

Flow

on read(key):
    content = cache.get(contentKey)
    if content is null:
        // Cache miss — full fetch
        content = fetchAll()
        cache.set(contentKey, content, longTTL)
        cache.set(freshKey, "1", shortTTL)
        return content

    isFresh = cache.get(freshKey) is not null
    if isFresh:
        return content                      // fast path — no API call

    // Stale — delta fetch
    delta = fetchSince(lineCount(content))  // or offset, cursor, etc.
    if delta is not empty:
        content = content + delta
        cache.set(contentKey, content, longTTL)
    cache.set(freshKey, "1", shortTTL)      // reset freshness
    return content

Key Properties

  • No cache interface changes required. Uses existing get/set primitives.
  • Content is never lost on refresh. Long TTL ensures the data outlives many freshness cycles.
  • Append-only correctness. Only valid when the data source is append-only (new data doesn't invalidate old).
  • Natural termination. When data stops changing (e.g., build completes), stop setting the freshness key. Content settles to normal long-TTL behavior.

When to Use

  • Append-only logs, event streams, or time-series data
  • Cache stores that delete expired entries (no getEvenIfExpired method)
  • Polling scenarios where re-downloading the full content is wasteful
  • Any data source where fetchSince(offset) is supported

Read the full file on GitHub · 82 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. 10d ago First seen · 82 lines · 0 tokens per session scan A d2e5e2be11bb

Subscribe to this mod's changes

freshness-marker-caching is a skill published in the GitHub repository lewing/helix.mcp (4 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 778 tokens. 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

x-osv

CLI for Google OSV database. Query vulnerabilities for packages, scan local projects for vulnerable dependencies. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill). Required Tool: Install osv-scanner for project scanning (see https://github.com/google/osv-scanner).

x-cmd/x-cmd · 72 tokens

obsidian-bases

Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.

kepano/obsidian-skills · 63 tokens

diagrams

Mermaid diagrams following the C4 model: context, container, component, sequence, ER and deployment. Use when saying "diagram", "visualize", or "architecture diagram".

anton-abyzov/specweave · 0 tokens

write-oql-queries

Write OQL for Mendix VIEW entities — joins, aggregates, calculated fields, and the syntax the runtime actually accepts. Use when creating a VIEW entity or building a report or analytics query.

mendixlabs/mxcli · 44 tokens

connect-rapidminer-graph

Fetch data from a RapidMiner graph mart or any SPARQL 1.1 HTTP endpoint (AnzoGraph and friends) and surface it as Mendix entities. Use when a graph database with a SPARQL endpoint has to feed a Mendix app read-only.

mendixlabs/mxcli · 62 tokens

mendix-odata-pushdown

Push OData query options into the SQL of a Mendix resource served by a read microflow, so $filter, $orderby, $top, $skip, $count and the key lookup reach the database instead of being silently dropped. Use when publishing an OData resource over data Mendix has no table for — a warehouse view, a legacy database, a…

mendixlabs/mxcli · 117 tokens