lightning-enable-mcp: Skill for Claude Code

.claude/skills/new-mcp-tool/SKILL.md

new-mcp-tool is a skill for Claude Code from refined-element/lightning-enable-mcp. It costs 20 tokens per session (706 once invoked), scanned A, original, MIT.

A scaffold generator for adding a new MCP tool to a .NET project. Scaffolding creates the initial code structure, including models, services, dependency-injection registration, and tests.

In plain words
What is it for?
Use it to create a tool class, request and response models, service methods, registrations, configuration checks, and tests.
Why use it?
It reduces the manual setup needed to add a tool while following the project's existing conventions.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is refined-element/lightning-enable-mcp's own configuration. It tells Claude Code how to work on lightning-enable-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 lightning-enable-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to refined-element/lightning-enable-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/refined-element/lightning-enable-mcp/main/.claude/skills/new-mcp-tool/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/refined-element/lightning-enable-mcp

Made for: Claude Code.

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 new-mcp-tool

README.md
[![agentmods](https://agentmods.dev/badge/skills/refined-element/lightning-enable-mcp/new-mcp-tool/github.svg)](https://agentmods.dev/skills/refined-element/lightning-enable-mcp/new-mcp-tool)
Your own site
<a href="https://agentmods.dev/skills/refined-element/lightning-enable-mcp/new-mcp-tool"><img src="https://agentmods.dev/badge/skills/refined-element/lightning-enable-mcp/new-mcp-tool/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 new-mcp-tool

Your own site · 80×15
<a href="https://agentmods.dev/skills/refined-element/lightning-enable-mcp/new-mcp-tool"><img src="https://agentmods.dev/badge/skills/refined-element/lightning-enable-mcp/new-mcp-tool.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 706 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00020 $0.00706
Opus 5 $0.00010 $0.00353
Sonnet 5 $0.00004 $0.00141
Haiku 4.5 $0.00002 $0.00071

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

Security

Grade A, and why

new-mcp-tool 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.

.claude/skills/new-mcp-tool/SKILL.md · 68 lines

How it starts

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

Create a new MCP tool following project conventions. Use $ARGUMENTS for the tool name and description.

Steps

  1. Create tool class in the appropriate tools directory

    • Static class with [McpServerToolType] attribute
    • Static method with [McpServerTool(Name = "snake_case_name")] attribute
    • Add [Description("...")] on EVERY parameter
    • Use flat parameters (no complex objects)
    • Nullable optional service injection for wallet services
    • Include IsConfigured check — return error result if required service not configured
  2. Add models to the appropriate models file if needed

    • Request/response records
  3. Add service interface method in the service interface if the tool needs business logic beyond direct API calls

  4. Implement service method in the implementation class

  5. Update DI registration in Program.cs if new services are needed

  6. Write tests following existing test patterns

Patterns to Follow

[McpServerToolType]
public static class MyNewTool
{
    [McpServerTool(Name = "my_new_tool")]
    [Description("What this tool does")]
    public static async Task<string> Execute(
        [Description("Parameter description")] string requiredParam,
        [Description("Optional parameter")] string? optionalParam = null,
        IMyService? myService = null)
    {
        if (myService is null || !myService.IsConfigured)
            return "Error: MyService is not configured. Set MY_ENV_VAR environment variable.";

        // Implementation
        return JsonSerializer.Serialize(result, new JsonSerializerOptions { WriteIndented = true });
    }
}

Key Conventions

  • Tool name: snake_case (e.g., get_btc_price, check_wallet_balance)
  • Class name: PascalCase + "Tool" suffix
  • Return JSON-serialized results for structured data
  • Use [Description] on every parameter — MCP clients use these for documentation
  • Wallet priority: LND > NWC > Strike > OpenNode
  • L402 requires preimage — only works with LND, Strike, CoinOS NWC, CLINK NWC, Alby Hub NWC

Read the full file on GitHub · 68 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 · 68 lines · 20 tokens per session scan A 98ec3df76379

Subscribe to this mod's changes

new-mcp-tool is a skill published in the GitHub repository refined-element/lightning-enable-mcp (9 stars, last pushed 6d ago), licensed MIT. It adds 20 tokens to every session and 706 once invoked, about $0.0001 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

saturnzap

Non-custodial Lightning wallet for AI agents via sz CLI: send/receive sats, pay invoices, auto-pay HTTP 402 (L402), manage channels and liquidity. Use when: (1) paying for API access with Lightning, (2) creating or paying BOLT11 invoices, (3) checking wallet balance or channel health, (4) managing peers and channels.…

lqwdtech/SaturnZap · 98 tokens

lightning-memory

Decentralized agent memory with Nostr identity and Lightning L402 payments.

singularityjason/lightning-memory · 19 tokens

debridge

Complete deBridge Protocol SDK for building cross-chain bridges, message passing, and token transfers on Solana. Use when building cross-chain applications, bridging assets between Solana and EVM chains, or implementing trustless external calls.

internet-court/internet-court-skill · 48 tokens

near-intents

Cross-chain token swap integration using NEAR Intents 1Click API. Use when building swap widgets, bridge interfaces, or multi-chain transfers across EVM, Solana, NEAR, TON, Stellar, and Tron.

internet-court/internet-court-skill · 49 tokens

sparkbtcbot

Give an AI agent a self-custodial Bitcoin wallet on the Spark L2. Covers wallet init from a BIP39 mnemonic, zero-fee Spark and BTKN/LRC20 token transfers, Lightning invoices (create and pay), Spark native invoices, L402 paywall payment, L1 deposits and cooperative withdrawals, and message signing. Make sure to use…

echennells/sparkbtcbot · 215 tokens

add-data-source

Step-by-step guide for adding a new data source provider to the free-crypto-news platform. Covers the full lifecycle from API evaluation to adapter implementation, testing, and registration. Use when integrating a new market data, on-chain, social, or news source.

nirholas/cryptocurrency.cv · 56 tokens