Forge-Agentic-Coding-CLI: Skill for Claude Code

.agents/skills/add-provider/SKILL.md

add-provider is a skill for Claude Code, Codex from hoangsonww/Forge-Agentic-Coding-CLI. It costs 37 tokens per session (438 once invoked), scanned A, original, MIT.

Instructions for adding a new model provider to Forge, meaning a service or local system that supplies AI model responses. They cover the provider class, registration, model classification, routing, and tests.

In plain words
What is it for?
Implementing availability checks, chat or completion requests, token counting, streaming, error handling, credential redaction, registry wiring, routing checks, and mocked unit tests.
Why use it?
They provide the required integration points and checks so Forge can discover, call, and route requests to the new provider safely.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is hoangsonww/Forge-Agentic-Coding-CLI's own configuration. It tells Claude Code and Codex how to work on Forge-Agentic-Coding-CLI 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 Forge-Agentic-Coding-CLI configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hoangsonww/Forge-Agentic-Coding-CLI. 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/hoangsonww/Forge-Agentic-Coding-CLI/master/.agents/skills/add-provider/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/hoangsonww/Forge-Agentic-Coding-CLI

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/hoangsonww/forge-agentic-coding-cli/add-provider/github.svg)](https://agentmods.dev/skills/hoangsonww/forge-agentic-coding-cli/add-provider)
Your own site
<a href="https://agentmods.dev/skills/hoangsonww/forge-agentic-coding-cli/add-provider"><img src="https://agentmods.dev/badge/skills/hoangsonww/forge-agentic-coding-cli/add-provider/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 add-provider

Your own site · 80×15
<a href="https://agentmods.dev/skills/hoangsonww/forge-agentic-coding-cli/add-provider"><img src="https://agentmods.dev/badge/skills/hoangsonww/forge-agentic-coding-cli/add-provider.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 438 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.00037 $0.00438
Opus 5.5 $0.00015 $0.00175
Sonnet 5.5 $0.00007 $0.00088
Haiku 4.5 $0.00004 $0.00044

Measured 2mo ago against content hash 9847d99da93a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-provider 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 2mo 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.

.agents/skills/add-provider/SKILL.md · 54 lines

What it actually says

Copy the shape of an existing provider (src/models/ollama.ts, src/models/openai.ts, src/models/anthropic.ts). Do not invent a new shape.

1. src/models/<name>.ts

  • Match the existing provider interface (availability probe, chat/complete, token count, streaming).
  • Availability probe ≤ 1.5 seconds. Long timeouts break REPL cold-start budget.
  • HTTP via undici (already a dependency). No axios, no node-fetch.
  • Redact credentials via src/security/redact.ts before any log call.
  • Map transport errors to ForgeRuntimeError with the right retryable flag and a recoveryHint where possible.

2. src/models/registry.ts

  • Add the id to providerEnum.
  • Register the class in initProviders.
  • If local (runs on the user's machine), add it to isLocalProvider.

3. src/models/local-catalog.ts

  • Add model id → family classification here. Do not write ad-hoc regex in the provider for capability detection.

4. src/models/router.ts

  • Verify routing reaches the new provider via standard rules. If routing changes, update test/unit/adapter.test.ts.

5. Unit test

Mock the transport (see test/unit/adapter.test.ts). Cover:

  • availability probe success and failure,
  • chat/complete happy path,
  • 429 retry behaviour,
  • auth failure surfaces a non-retryable structured error.

6. Docs

Update the provider table in docs/ARCHITECTURE.md §6, bump the README "At a glance" count, and add a one-line setup note to docs/SETUP.md.

Finish with the verify skill.

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. 2mo ago First seen · 54 lines · 37 tokens per session scan A 9847d99da93a

Subscribe to this mod's changes

add-provider is a skill published in the GitHub repository hoangsonww/Forge-Agentic-Coding-CLI (26 stars, last pushed 1mo ago), licensed MIT. It adds 37 tokens to every session and 438 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

add-provider compared with skills from other repositories

add-provider next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-providerhoangsonww/Forge-Agentic-Coding-CLISkill261mo agoMITA37Claude Code, Codex
building-agentsericrisco/rsc-harnessSkill5032d agoMITA85Claude Code, Codex
agent-evalericrisco/rsc-harnessSkill5032d agoMITA79Claude Code, Codex
code-revieweralirezarezvani/claude-code-tresorSkill7824mo agoMITA54Claude Code
git-commit-helperalirezarezvani/claude-code-tresorSkill7824mo agoMITA55Claude Code
test-generatoralirezarezvani/claude-code-tresorSkill7824mo agoMITA55Claude Code
readme-updateralirezarezvani/claude-code-tresorSkill7824mo agoMITA49Claude Code