Agent skill

Indicator Buffer

by facioquo in 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…

Apache-2.0Auto-check passedBusiness, Finance & HR

Install Indicator Buffer

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

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

GitHub CLI
$ gh skill install facioquo/stock-indicators-dotnet indicator-buffer --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-buffer .claude/skills/indicator-buffer && 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-buffer
GitHub stars
1.2k
Token cost
~1.1k tokens
SKILL.md length
385 words
Files
1
Skills in repo
10
Repo updated
First seen
Licence
Apache-2.0

At a glance

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

  • Editing a src/Indicators//{Name}List.cs file
  • SKILL.md covers Increment interface, Class shape, Buffers and state and Tests, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Its {Name}BufferListTests.cs

What it does

Indicator Buffer is an agent skill from 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 Clear() state, and the BufferList test interfaces. Use when creating or editing a src/Indicators//{Name}List.cs file or its {Name}BufferListTests.cs, when a BufferList test fails Series parity or pruning, or when a Buffer benchmark shows a list is slow.

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 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}List.cs file
  • Its {Name}BufferListTests.cs
  • A BufferList test fails Series parity
  • A Buffer benchmark shows a list is slow

Example prompts

  • “/indicator-buffer”

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 Buffer loads about 1.1k tokens when it runs. Until then it costs about 121 tokens; SKILL.md has 385 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~121
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 facioquo/stock-indicators-dotnet at commit e439ae4, republished under its Apache-2.0 licence (© facioquo). 385 words, ~1,113 tokens.

Download SKILL.mdSave it as .claude/skills/indicator-buffer/SKILL.md (or your agent's skills folder).
name
indicator-buffer
description
Implement BufferList incremental indicators (`{Name}List`, a `BufferList<TResult>` subclass) — increment interface choice, constructor and `To{Name}List()` conventions, rolling-buffer helpers, pruning and `Clear()` state, and the BufferList test interfaces. Use when creating or editing a `src/Indicators/**/{Name}List.cs` file or its `{Name}BufferListTests.cs`, when a BufferList test fails Series parity or pruning, or when a Buffer benchmark shows a list is slow.

BufferList indicator development

A BufferList must produce results identical to the Series output for the same input. The indicator-series skill owns the full per-indicator file set and completion checklist; this skill covers only the {Name}List.cs file and its tests.

Increment interface

Pick the interface from the Series input type. Both are internal and live in src/Common/BufferLists/.

Series inputInterfaceAdd overloads to implement
IReadOnlyList<IReusable>IIncrementFromChainAdd(DateTime timestamp, double value), Add(IReusable value), Add(IReadOnlyList<IReusable> values)
IReadOnlyList<IBar>IIncrementFromBarAdd(IBar bar), Add(IReadOnlyList<IBar> bars)
  • Route every chain overload through Add(DateTime, double) so the calculation exists once.
  • Pass value.Value from the IReusable overloads, or value.Hl2OrValue() where the Series defaults bars to HL2 (Alligator and Awesome, for example).
  • An IIncrementFromBar list has no IReusable overloads. It accepts bars and any result that is an IBar (such as HeikinAshiResult, a Bar record), but never an arbitrary IReusable result.

Class shape

src/Indicators/e-j/Ema/EmaList.cs (chain) and src/Indicators/a-b/Adx/AdxList.cs (bar) are the reference implementations.

csharp
public class EmaList : BufferList<EmaResult>, IIncrementFromChain, IEma
{
    private readonly Queue<double> _buffer;

    public EmaList(int lookbackPeriods)
    {
        Ema.Validate(lookbackPeriods);
        LookbackPeriods = lookbackPeriods;
        _buffer = new Queue<double>(lookbackPeriods);
        Name = $"EMA({lookbackPeriods})";
    }

    public EmaList(int lookbackPeriods, IReadOnlyList<IReusable> values)
        : this(lookbackPeriods) => Add(values);
}

public static partial class Ema
{
    public static EmaList ToEmaList(
        this IReadOnlyList<IReusable> source,
        int lookbackPeriods)
        => new(lookbackPeriods) { source };
}
  • The primary constructor validates with the Series Validate(...), stores parameters as I{Name} properties, allocates buffers, and sets Name.
  • The chaining constructor takes IReadOnlyList<IReusable> or IReadOnlyList<IBar> to match the interface and delegates with : this(...) => Add(...).
  • The To{Name}List() extension sits in the same file and uses a collection initializer.
  • Append results with AddInternal(...), which also enforces MaxListSize; revise an earlier result with UpdateInternal(index, ...).
Show full SKILL.md (173 more words)Show less

Buffers and state

  • Roll a fixed window with _buffer.Update(capacity, value) from BufferListUtilities.
  • Use _buffer.UpdateWithDequeue(capacity, value) to maintain a running sum. For a value-type T it returns default(T) (0), not null, when nothing was dequeued, so gate the subtraction on whether the buffer was full before the call.
  • Override Clear() to call base.Clear() and reset every buffer, running sum, and cached prior value.
  • When the list keeps history outside a capacity-bounded Queue<T> (a List<T> cache, for example), override PruneList() so that history shrinks with the list.

Tests

{Name}BufferListTests inherits BufferListTestBase and implements ITestChainBufferList for IIncrementFromChain or ITestBarBufferList for IIncrementFromBar, plus ITestCustomBufferListCache for a custom cache. Every test that produces results asserts IsExactly against the Series output. The testing-standards skill lists the required methods.

Do not do these

  • Do not add Add(IBar) overloads to an IIncrementFromChain list or Add(IReusable) overloads to an IIncrementFromBar list.
  • Do not reimplement the Series formula differently; reuse its Increment(...) kernel where one exists.
  • Do not grow an internal collection without bound; every buffer is capacity-limited or pruned with the list.

© 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

Just SKILL.md in .agents/skills/indicator-buffer of facioquo/stock-indicators-dotnet.

Open the folder on GitHubat commit e439ae4

Compare with similar skills

Indicator Buffer 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 Buffer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Indicator Buffer this skillfacioquo/stock-indicators-dotnet1.2k—~1.1kAutomated 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
  • Indicator Stream

    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…

    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 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 Buffer

What does Indicator Buffer do?

Implement BufferList incremental indicators ({Name}List, a BufferList<TResult subclass) — increment interface choice, constructor and To{Name}List() conventions, rolling-buffer helpers, pruning and…. Indicator Buffer is an agent skill from 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 Clear() state, and the BufferList test interfaces.

When should I use Indicator Buffer?

Indicator Buffer fits situations like: editing a src/Indicators//{Name}List.cs file; its {Name}BufferListTests.cs; A BufferList test fails Series parity; A Buffer benchmark shows a list is slow.

How do I install Indicator Buffer in Claude Code?

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

How do I install Indicator Buffer in Codex?

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

Can I use Indicator Buffer 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-buffer -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-buffer, .gemini/skills/indicator-buffer, .github/skills/indicator-buffer and .opencode/skills/indicator-buffer in your project.

What does Indicator Buffer need to run?

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

Does Indicator Buffer 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 Buffer 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 Buffer use?

Indicator Buffer 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 Buffer use?

About 1.1k tokens (SKILL.md is roughly 4.5k 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 Indicator Buffer?

Skills that share tags, products or a category with Indicator Buffer: 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 Buffer?

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.