Agent skill

Indicator Stream

by facioquo in facioquo/stock-indicators-dotnet

Implement StreamHub real-time indicators — base-class choice (ChainHub, BarProvider, StreamHub), constructor and ToIndicator conventions, RollbackState overrides, per-tick performance rules…

Apache-2.0Auto-check passedBusiness, Finance & HR

Install Indicator Stream

skills CLI
$ npx skills add facioquo/stock-indicators-dotnet --skill indicator-stream -a claude-code

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

GitHub CLI
$ gh skill install facioquo/stock-indicators-dotnet indicator-stream --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/facioquo/stock-indicators-dotnet.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/indicator-stream .claude/skills/indicator-stream && 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
indicator-stream
GitHub stars
1.2k
Token cost
~1.6k tokens
SKILL.md length
614 words
Files
5 (incl. references)
Skills in repo
10
Repo updated
First seen
Licence
Apache-2.0

At a glance

Implement StreamHub real-time indicators — base-class choice (ChainHub, BarProvider, StreamHub), constructor and ToIndicator conventions, RollbackState overrides, per-tick performance rules…

  • Editing a src/Indicators//{Name}Hub.cs file
  • SKILL.md covers Choose a base class, Hub shape, Per-tick cost and Rollback state, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Its {Name}HubTests.cs

What it does

Indicator Stream is an agent skill from facioquo/stock-indicators-dotnet. Implement StreamHub real-time indicators — base-class choice (ChainHub, BarProvider, StreamHub), constructor and ToIndicator conventions, RollbackState overrides, per-tick performance rules, compound hubs, and the stream-specific test interfaces. Use when creating or editing a src/Indicators//{Name}Hub.cs file or its {Name}HubTests.cs, when a hub test fails Series parity after late arrival, removal, or pruning, or when a Stream benchmark shows a hub is slow.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/compound-hubs.md`, `references/performance-patterns.md` and `references/provider-selection.md`).

It sits in Business, Finance & HR, covering Trading and backtesting. The repository describes itself as: Stock Indicators for .NET is a C NuGet package that transforms raw equity, commodity, forex, or cryptocurrency financial market price quotes into technical indicators and trading… The licence is Apache-2.0.

When your agent uses it

  • Editing a src/Indicators//{Name}Hub.cs file
  • Its {Name}HubTests.cs
  • A hub test fails Series parity after late arrival
  • A Stream benchmark shows a hub is slow

Example prompts

  • “/indicator-stream”

What it can do on your machine

Read from SKILL.md and the folder at commit e439ae4. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are csharp).

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

  • Network

    No URLs in SKILL.md.

    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

Indicator Stream loads about 1.6k tokens when it runs, and up to ~5.4k if it reads all its reference files. Until then it costs about 120 tokens; SKILL.md has 614 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~120
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.4k

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 facioquo/stock-indicators-dotnet at commit e439ae4, republished under its Apache-2.0 licence (© facioquo). 614 words, ~1,644 tokens.

Download SKILL.mdSave it as .claude/skills/indicator-stream/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
indicator-stream
description
Implement StreamHub real-time indicators — base-class choice (ChainHub, BarProvider, StreamHub), constructor and ToIndicator conventions, RollbackState overrides, per-tick performance rules, compound hubs, and the stream-specific test interfaces. Use when creating or editing a src/Indicators/**/{Name}Hub.cs file or its {Name}HubTests.cs, when a hub test fails Series parity after late arrival, removal, or pruning, or when a Stream benchmark shows a hub is slow.

StreamHub indicator development

A hub computes one result per provider item, incrementally, and must match the Series result exactly — including after late arrivals, removals, and pruning. The indicator-series skill owns the full per-indicator file set and completion checklist; this skill covers only the hub.

Load the reference that matches the moment:

  • Choosing a base class, or the hub is not one-result-per-input (aggregator, Renko-style) → provider selection
  • Adding any stateful field, or a hub test fails after late arrival or removal → rollback patterns
  • Writing ToIndicator, or a Stream benchmark is slow → performance patterns
  • The hub needs another hub's output as input (StochRSI on RSI, Gator on Alligator) → compound hubs

Choose a base class

InputOutputBase classExample
Single valueChainable (IReusable)ChainHub<IReusable, TResult>EmaHub, RsiHub
OHLCV barChainable (IReusable)ChainHub<IBar, TResult>AdxHub, AtrHub
OHLCV barMulti-value, not chainableStreamHub<IBar, TResult>DonchianHub, KeltnerHub
Single valueMulti-value, not chainableStreamHub<IReusable, TResult>AlligatorHub
OHLCV barBar (IBar)BarProvider<IBar, TResult>HeikinAshiHub, RenkoHub

ChainHub requires TResult : IReusable; BarProvider requires TResult : IBar. Only those two can feed general downstream hubs; a compound hub typed to a specific result, such as GatorHub : StreamHub<AlligatorResult, GatorResult>, can also consume a StreamHub output.

Hub shape

Follow EmaHub (src/Indicators/e-j/Ema/EmaHub.cs):

csharp
public class EmaHub
    : ChainHub<IReusable, EmaResult>, IEma
{
    internal EmaHub(
        IChainProvider<IReusable> provider,
        int lookbackPeriods) : base(provider)
    {
        Ema.Validate(lookbackPeriods);
        LookbackPeriods = lookbackPeriods;
        K = 2d / (lookbackPeriods + 1);
        Name = $"EMA({lookbackPeriods})";

        ValidateCacheSize(lookbackPeriods, Name);
        Reinitialize();
    }

    protected override (EmaResult result, int index)
        ToIndicator(IReusable item, int? indexHint)
    {
        ArgumentNullException.ThrowIfNull(item);
        int i = indexHint ?? ProviderCache.IndexOf(item, true);
        // compute from ProviderCache[i], Cache[i - 1], and incremental state
        // ...
        return (result, i);
    }
}
  • The constructor is internal; the public entry point is a To{Name}Hub(this IChainProvider<IReusable> …) or (this IBarProvider<IBar> …) extension in the indicator's static partial class.
  • Initialize every field ToIndicator reads before calling Reinitialize(), and call it last: it replays the provider's existing history through ToIndicator.
  • Set Name in the constructor; the base ToString() returns it and the hub test asserts it.
  • Call ValidateCacheSize(warmupPeriods, Name) with the indicator's warmup length so a too-small MaxCacheSize fails at construction.

Per-tick cost

ToIndicator runs once per provider item. Its cost must not grow with history length: read Cache[i - 1] or keep incremental state, never re-run a Series method or loop back to index 0. A scan bounded by the lookback window is acceptable. The performance-testing skill owns the overhead targets and benchmark authoring.

Rollback state

Any field that carries state between ToIndicator calls (buffers, running sums, smoothed averages, previous values) needs a RollbackState(int restoreIndex) override. restoreIndex is the last ProviderCache index to keep, or -1 to reset everything; rebuild state as if items [0..restoreIndex] had just been processed. The base class owns the call order and locking (documented in src/Common/AGENTS.md).

csharp
protected override void RollbackState(int restoreIndex)
{
    _window.Clear();
    if (restoreIndex < 0) { return; }

    int startIdx = Math.Max(0, restoreIndex + 1 - LookbackPeriods);
    for (int p = startIdx; p <= restoreIndex; p++)
    {
        _window.Add(ProviderCache[p].Value);
    }
}

A hub whose ToIndicator reads only ProviderCache and Cache (like EmaHub) needs no override.

Show full SKILL.md (220 more words)Show less

Tests

{Name}HubTests inherits StreamHubTestBase. Pick the observer interface by input type — ITestChainObserver for IReusable input, ITestBarObserver for IBar input — and add ITestChainProvider when the hub derives from ChainHub or BarProvider. The testing-standards skill owns the required methods and assertion patterns.

Hub-specific completion items

  • src/Indicators/{range}/{Name}/{Name}Hub.cs holds the hub class and its To{Name}Hub extension.
  • Every stateful field is restored by RollbackState and, if it tracks absolute positions, adjusted by PruneState.
  • tests/Library/Indicators/{range}/{Name}/{Name}HubTests.cs passes, including late-arrival, removal, and pruning parity.
  • tools/performance/Perf.Stream.cs has a benchmark for the hub.

Do not do these

  • Do not recompute history inside ToIndicator (calling .To{Name}() on a subset, or looping from index 0). It turns streaming into O(n²).
  • Do not detect rebuilds inside ToIndicator (for example by comparing i to a last-processed index). The base class calls RollbackState for every rollback.
  • Do not re-emit results or touch Cache from RollbackState. The base class removes and replays results after it returns.
  • Do not create a hub inside ToIndicator. Construct any internal hub once, in the constructor.
  • Do not store a CircularDoubleBuffer in a readonly field. It is a mutable struct, so Add on a readonly field mutates a copy and the window never fills.
  • Do not call Add, RemoveAt, RemoveRange, or a second Reinitialize on a subscribed hub. They throw on non-root hubs; drive changes through the root BarHub or TradeTickHub.

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

Files

SKILL.md and 4 other files (references) in .agents/skills/indicator-stream of facioquo/stock-indicators-dotnet.

  • SKILL.md
  • references/compound-hubs.md
  • references/performance-patterns.md
  • references/provider-selection.md
  • references/rollback-patterns.md

Open the folder on GitHubat commit e439ae4

Compare with similar skills

Indicator Stream 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.

Indicator Stream compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Indicator Stream this skillfacioquo/stock-indicators-dotnet1.2k—~1.6kAutomated safety check: PassApache-2.0
Tushare Datazillionare/zillionare3192 repos~2.3kAutomated safety check: PassNone
Tradingview MCPatilaahmettaner/tradingview-mcp5k—~1.3kAutomated safety check: PassMIT
Digital Oraclekomako-workshop/digital-oracle870—~5.9kAutomated safety check: PassMIT
Fintoolsecond-state/fintool3161 repos~5.9kAutomated safety check: PassNone
Polyclawchainstacklabs/polyclaw3601 repos~2kAutomated safety check: PassApache-2.0

Similar skills

  • Tushare Data

    zillionare/zillionare

    面向中文自然语言的 Tushare 数据研究技能。用于把“看看这只股票最近怎么样”“帮我查财报趋势”“最近哪个板块最强”“北向资金在买什么”“给我导出一份行情数据”这类请求,转成可执行的数据获取、清洗、对比、筛选、导出与简要分析流程。适用于 A 股、指数、ETF/基金、财务、估值、资金流、公告新闻、板块概念与宏观数据等研究场景。

    319 GitHub starsUsed in 2 repos~2.3k tokens
    Business, Finance & HRAuto-check passed
  • Tradingview MCP

    atilaahmettaner/tradingview-mcp

    AI Trading Intelligence — live prices, 30+ technical indicators, backtesting (6 strategies), walk-forward overfitting detection, trade logs, equity curves, licensed news sentiment (Marketaux), and…

    5k GitHub stars~1.3k tokensUpdated today
    Business, Finance & HRAuto-check passed
  • Digital Oracle

    komako-workshop/digital-oracle

    Answer prediction questions using market trading data, not opinions.

    870 GitHub stars~5.9k tokensUpdated 2 mo ago
    Business, Finance & HRAuto-check passed
  • Fintool

    second-state/fintool

    Financial trading CLIs — spot and perp trading on Hyperliquid, Binance, Coinbase, OKX.

    316 GitHub starsUsed in 1 repo~5.9k tokens
    Business, Finance & HRAuto-check passed
  • Polyclaw

    chainstacklabs/polyclaw

    Trade on Polymarket via split + CLOB execution. An agent skill from chainstacklabs/polyclaw.

    360 GitHub starsUsed in 1 repo~2k tokens
    Business, Finance & HRAuto-check passed
  • Openmobius Skill

    MobiusQuant/OpenMobius-skill

    Provides multi-school trading Q&A, chart/OHLCV analysis, annotation, and fresh-market workflows covering ICT/SMC, ChanLun, Wyckoff, Price Action, Order Flow, VSA, and Elliott Wave.

    695 GitHub stars~7.2k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed

More from facioquo/stock-indicators-dotnet

All 10 skills in this repo
  • Markdown

    facioquo/stock-indicators-dotnet

    Format and lint Markdown in this repository against GitHub Flavored Markdown and its markdownlint-cli2 configuration — headers, lists, code fences, callouts (VitePress containers on docs-site pages…

    1.2k GitHub stars~812 tokensUpdated today
    Auto-check passed
  • Indicator Series

    facioquo/stock-indicators-dotnet

    Implement Series-style batch indicators (To{Name}() in {Name}.Series.cs), the canonical numerical reference every BufferList and StreamHub must match exactly.

    1.2k GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Performance Testing

    facioquo/stock-indicators-dotnet

    Benchmark indicators with BenchmarkDotNet in tools/performance — add Series, Buffer, Stream, and style-comparison benchmarks, spot-check one indicator against committed baselines, evaluate the full…

    1.2k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Documentation

    facioquo/stock-indicators-dotnet

    Author indicator reference pages on the VitePress documentation site — page section order, parameter and result tables, warmup and convergence wording, chaining and streaming examples, the…

    1.2k GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • Indicator Buffer

    facioquo/stock-indicators-dotnet

    Implement BufferList incremental indicators ({Name}List, a BufferList<TResult subclass) — increment interface choice, constructor and To{Name}List() conventions, rolling-buffer helpers, pruning and…

    1.2k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Indicator Catalog

    facioquo/stock-indicators-dotnet

    Write {Name}.Catalog.cs listings with CatalogListingBuilder — parameters, results, chart panes, isRequired and isReusable rules — register them in Catalog.Listings.cs, refresh the catalog shape…

    1.2k GitHub stars~1.6k tokensUpdated today
    Auto-check passed

Questions about Indicator Stream

What does Indicator Stream do?

Implement StreamHub real-time indicators — base-class choice (ChainHub, BarProvider, StreamHub), constructor and ToIndicator conventions, RollbackState overrides, per-tick performance rules…. Indicator Stream is an agent skill from facioquo/stock-indicators-dotnet. Implement StreamHub real-time indicators — base-class choice (ChainHub, BarProvider, StreamHub), constructor and ToIndicator conventions, RollbackState overrides, per-tick performance rules, compound hubs, and the stream-specific test interfaces.

When should I use Indicator Stream?

Indicator Stream fits situations like: editing a src/Indicators//{Name}Hub.cs file; its {Name}HubTests.cs; A hub test fails Series parity after late arrival; A Stream benchmark shows a hub is slow.

How do I install Indicator Stream in Claude Code?

Run `npx skills add facioquo/stock-indicators-dotnet --skill indicator-stream -a claude-code`. Or copy the skill folder (.agents/skills/indicator-stream in facioquo/stock-indicators-dotnet) into .claude/skills/indicator-stream in your project. Claude Code loads it when a task matches its description.

How do I install Indicator Stream in Codex?

Run `npx skills add facioquo/stock-indicators-dotnet --skill indicator-stream -a codex`. Or copy the skill folder (.agents/skills/indicator-stream in facioquo/stock-indicators-dotnet) into .agents/skills/indicator-stream in your project. Codex loads it when a task matches its description.

Can I use Indicator Stream 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 facioquo/stock-indicators-dotnet --skill indicator-stream -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/indicator-stream, .gemini/skills/indicator-stream, .github/skills/indicator-stream and .opencode/skills/indicator-stream in your project.

What does Indicator Stream need to run?

SKILL.md names no scripts, command-line tools or credentials: Indicator Stream is instructions for the agent only.

Does Indicator Stream access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Indicator Stream 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 Indicator Stream use?

Indicator Stream is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Indicator Stream use?

About 1.6k tokens (SKILL.md is roughly 6.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.7k tokens, read only when the agent opens those files.

What are the alternatives to Indicator Stream?

Skills that share tags, products or a category with Indicator Stream: Tushare Data (zillionare/zillionare, 319 stars), Tradingview MCP (atilaahmettaner/tradingview-mcp, 5k stars), Digital Oracle (komako-workshop/digital-oracle, 870 stars) and Fintool (second-state/fintool, 316 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Indicator Stream?

facioquo (a GitHub organization) maintains it in facioquo/stock-indicators-dotnet, which has 1,247 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 7, 2026.

Source: facioquo/stock-indicators-dotnet on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.