agentleFS
arch3rProarch3rPro/ark-space-legacy/skills/provider-manager/SKILL.md

provider-manager

Skill2 starsChanged 6 months agoMITView on GitHub

Use when configuring ArkSpace providers, fixing missing provider URLs or API keys, checking provider readiness, or setting up multiple API key rotation.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this when a skill reports missing provider configuration, the user wants to set a self-hosted service URL, or a provider needs one or …

    line 10
  2. Distinctive:

    Do not ask the user to find and edit config files by hand.

    line 14
  3. Distinctive:

    Add API key references for future API-backed providers:

    line 78
  4. Very specific:

    Use provider setup when a provider has ArkSpace defaults, such as Tavily, Exa, or Firecrawl.

    line 87
  5. Distinctive:

    When a provider is missing:

    line 106
  6. Distinctive:

    Ask whether to start setup now and present exactly two choices:

    line 109
  7. Distinctive:

    If the current host can execute shell commands and can provide interactive secret input, run the setup command for them.

    line 113
  8. Very specific:

    If the host shell is non-interactive, do not run --wizard through that tool.

    line 114
  9. Distinctive:

    If setup succeeds, rerun or tell the user to rerun the original skill invocation.

    line 116

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Provider Manager

Manage provider configuration as a guided runtime setup, not as manual file editing.

Use this when a skill reports missing provider configuration, the user wants to set a self-hosted service URL, or a provider needs one or more API keys. Public package files only declare provider capabilities. Personal endpoints and key references live in user config.

Configuration Rule

Do not ask the user to find and edit config files by hand. Help them run the setup command.

Provider config defaults to:

~/.config/ark-space/providers.json

Provider state defaults to:

~/.local/state/ark-space/provider-state.json

Provider secrets default to:

~/.config/ark-space/secrets.json

Override paths with ARKSPACE_PROVIDER_CONFIG, ARKSPACE_PROVIDER_STATE, ARKSPACE_PROVIDER_SECRETS, --config-path, or --state-path.

Common Commands

Resolve the installed ArkSpace package root before running commands. Replace <installed-arkspace-path> with the directory two levels above the loaded ArkSpace SKILL.md, such as /Users/<user>/.claude/plugins/cache/ark-space/ark-space/0.2.0. Use the installed package path, not a repository-relative command, in installed host sessions.

Show paths:

python3 <installed-arkspace-path>/scripts/arkspace.py provider paths

Configure a self-hosted SearXNG endpoint:

python3 <installed-arkspace-path>/scripts/arkspace.py provider configure searxng --base-url "https://searx.example.org"

Configure API-backed skills with ArkSpace defaults:

python3 <installed-arkspace-path>/scripts/arkspace.py provider setup tavily --wizard --key-count 2
python3 <installed-arkspace-path>/scripts/arkspace.py provider check tavily --capability web_search
python3 <installed-arkspace-path>/scripts/arkspace.py provider setup exa --wizard --key-count 2
python3 <installed-arkspace-path>/scripts/arkspace.py provider check exa --capability web_search
python3 <installed-arkspace-path>/scripts/arkspace.py provider setup firecrawl --wizard --key-count 2
python3 <installed-arkspace-path>/scripts/arkspace.py provider check firecrawl --capability web_search
python3 <installed-arkspace-path>/scripts/arkspace.py provider check firecrawl --capability structured_extract
python3 <installed-arkspace-path>/scripts/arkspace.py provider check firecrawl --capability web_interact
python3 <installed-arkspace-path>/scripts/arkspace.py provider check firecrawl --capability web_monitor

Inspect provider config without secret values:

python3 <installed-arkspace-path>/scripts/arkspace.py provider show

Resolve a provider before use:

python3 <installed-arkspace-path>/scripts/arkspace.py provider resolve searxng --capability web_search

Add API key references for future API-backed providers:

python3 <installed-arkspace-path>/scripts/arkspace.py provider add-key brave-search --env BRAVE_API_KEY_1 --header X-Subscription-Token
python3 <installed-arkspace-path>/scripts/arkspace.py provider add-key brave-search --env BRAVE_API_KEY_2 --header X-Subscription-Token

The provider config stores env:BRAVE_API_KEY_1, env:TAVILY_API_KEY_1, env:EXA_API_KEY_1, or env:FIRECRAWL_API_KEY_1 references. When --save-secret is used, the actual key values are stored in the local private secrets file with 0600 permissions.

Use provider setup when a provider has ArkSpace defaults, such as Tavily, Exa, or Firecrawl. Use provider configure and provider add-key as advanced commands for self-hosted endpoints or new providers that do not have setup defaults yet.

Key Rotation

ArkSpace provider runtime supports multiple API key references per provider. It resolves available env:<NAME> values from the process environment first, then ArkSpace's private secrets file, selects the least recently used key, and stores cooldown state locally after failures.

Default rotation behavior:

SettingDefault
Strategyround_robin using least recently used state
Retry statuses429,500,502,503,504
Disable statuses401,403
Cooldown300 seconds

Provider scripts should record request results through arkspace_runtime.provider_config.record_provider_result() when they add API-backed calls.

Agent Behavior

When a provider is missing:

  1. Explain the exact capability that is missing, such as web_search.
  2. Ask whether to start setup now and present exactly two choices:
    • "Start setup wizard" - start interactive setup with the setup command.
    • "Not now" - leave the provider unconfigured; if the user still wants results, ask whether to continue with a clearly labeled non-ArkSpace fallback.
  3. Give the one setup command that fixes it. For Tavily, Exa, or Firecrawl API keys, prefer provider setup <provider> --wizard.
  4. If the current host can execute shell commands and can provide interactive secret input, run the setup command for them.
  5. If the host shell is non-interactive, do not run --wizard through that tool. Offer either interactive terminal setup or saving a pasted key through provider setup tavily --save-secret TAVILY_API_KEY --secret-stdin, provider setup exa --save-secret EXA_API_KEY --secret-stdin, or provider setup firecrawl --save-secret FIRECRAWL_API_KEY --secret-stdin.
  6. Re-run the provider check after setup.
  7. If setup succeeds, rerun or tell the user to rerun the original skill invocation.

For secrets, never ask the user to paste a raw API key into committed files. Use the private ArkSpace secrets file through --save-secret or environment variables.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.