add-connection

add-connection is a skill for Claude Code, Codex from FacturaScripts/fs-claude-plugin. It costs 19 tokens per session (1,634 once invoked), scanned A, original, MIT.

A setup guide for adding a FacturaScripts installation to the connection configuration used by the server.

In plain words
What is it for?
Use it to add a named connection with an ERP URL, API token, and optional setting for self-signed HTTPS certificates.
Why use it?
It collects the address and access details in one configuration file, so the server can connect without repeated setup.

Skill for Claude CodeCodex

Part of the fs-mcp plugin — 4 skills shipped together

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/facturascripts/fs-claude-plugin/add-connection
Any agent
npx skills add FacturaScripts/fs-claude-plugin --skill add-connection
Clone the repo
git clone --depth 1 https://github.com/FacturaScripts/fs-claude-plugin

Made for: Claude Code, Codex.

Or install fs-mcp, the plugin that ships this one along with the rest of its 4 skills.

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 add-connection

README.md
[![agentmods](https://agentmods.dev/badge/skills/facturascripts/fs-claude-plugin/add-connection.svg)](https://agentmods.dev/skills/facturascripts/fs-claude-plugin/add-connection)
Your own site
<a href="https://agentmods.dev/skills/facturascripts/fs-claude-plugin/add-connection"><img src="https://agentmods.dev/badge/skills/facturascripts/fs-claude-plugin/add-connection.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,634 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.00019 $0.01634
Opus 5 $0.00010 $0.00817
Sonnet 5 $0.00004 $0.00327
Haiku 4.5 $0.00002 $0.00163

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

Security

Grade A, and why

add-connection 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 5d 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.

fs-mcp/skills/add-connection/SKILL.md · 184 lines

How it starts

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

Añadir Conexión a FacturaScripts

Este skill configura una nueva conexión a una instancia de FacturaScripts. Las conexiones se guardan en ~/.fs-claude.json, un archivo en el directorio home del usuario que funciona en cualquier sistema operativo (macOS, Linux, Windows) y es leído automáticamente por el servidor MCP sin necesidad de configuración adicional.

¿Qué necesitas?

Antes de comenzar, asegúrate de tener a mano:

  • Clave de conexión: Un identificador único (por ejemplo: empresa-principal, fs-demo)
  • Nombre descriptivo: Descripción legible (por ejemplo: "FacturaScripts Principal")
  • URL del ERP: La dirección completa (por ejemplo: https://facturascripts.miempresa.com)
  • Token API: El token de autenticación de FacturaScripts
  • Verificación SSL: Si la instalación usa HTTPS con certificado auto-firmado (típico en instalaciones locales), necesitarás desactivar la verificación

Pasos

1. Solicita la información

Te haré algunas preguntas para recopilar los datos necesarios:

¿Cuál es la clave de conexión? (identificador único, sin espacios)
¿Cuál es el nombre descriptivo?
¿Cuál es la URL de FacturaScripts?
¿Cuál es el token API?
¿Quieres que sea la conexión por defecto? (sí/no)
¿La instalación usa HTTPS con certificado auto-firmado o no verificable? (sí/no)

La última pregunta es especialmente relevante en estos casos:

  • Instalaciones locales (https://localhost, https://192.168.x.x, etc.)
  • Servidores de desarrollo con certificados auto-firmados
  • Cualquier instalación donde el navegador muestre advertencia de certificado

2. Detecta el entorno

Una vez recopilados los datos, ejecuta estos comandos para obtener la ruta correcta según el sistema operativo:

# Detectar sistema operativo y directorio home
python3 -c "import os, sys; home = os.path.expanduser('~'); print(os.path.join(home, '.fs-claude.json'))"

Esto devuelve la ruta exacta a ~/.fs-claude.json en cualquier SO:

  • macOS/Linux: /Users/username/.fs-claude.json o /home/username/.fs-claude.json
  • Windows: C:\Users\username\.fs-claude.json

Read the full file on GitHub · 184 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. 5d ago First seen · 184 lines · 19 tokens per session scan A 7075ef6678dc

Subscribe to this mod's changes

add-connection is a skill published in the GitHub repository FacturaScripts/fs-claude-plugin (8 stars, last pushed 2d ago), licensed MIT. It adds 19 tokens to every session and 1,634 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens