Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

oauth-client-credentials-openapi-custom-commands

Skill by fern-api

Explains how to author custom commands for the oauth-client-credentials-openapi CLI using its co-generated SDK. It is written for developers who want to add their own commands to that CLI.

  • Score 81
  • 3.8k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install oauth-client-credentials-openapi-custom-commands

Built from the published package, never by AI.

git clone --depth 1 https://github.com/fern-api/fern /tmp/fern && mkdir -p ~/.claude/skills && cp -r /tmp/fern/seed/cli/oauth-client-credentials-custom-prefix-openapi/.agents/skills/custom-commands ~/.claude/skills/oauth-client-credentials-openapi-custom-

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install oauth-client-credentials-openapi-custom-commands in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill explains how to write custom commands for the oauth-client-credentials-openapi CLI. Custom commands are Rust handlers compiled into the binary alongside the auto-generated API commands. Each handler gets a typed SDK client that already uses the CLI's auth, retries, TLS, base URL and global headers, so no extra configuration is needed.

Commands are registered in cli/oauth-client-credentials-openapi/custom.rs inside a register() function. That file is protected by .fernignore, so fern generate does not overwrite it. The skill also covers building with cargo, running commands, and updating custom.rs when the generated SDK changes. It is aimed at developers who want to extend this CLI.

Written from the project's SKILL.md and checked against it.

What it can do

  • Register custom commandsAdds new CLI subcommands in custom.rs using a register() function.
  • Get an authenticated SDK clientReturns a fully wired SDK client that inherits the CLI's auth and settings.
  • Run async SDK callsRuns async SDK methods from synchronous command handlers using block_on.
  • Use typed modelsImports generated typed models for request and response serialization.
  • Build and test commandsBuilds the CLI with cargo and runs custom commands, with optional RUST_LOG debug output.

What you need

  • Cargo, to build the CLI with cargo build
  • Fern CLI, to run fern generate
  • OAUTH_CLIENT_CREDENTIALS_OPENAPI_CLIENT_ID environment variable
  • OAUTH_CLIENT_CREDENTIALS_OPENAPI_CLIENT_SECRET environment variable

Try asking

  • Add a custom command that gets a plant by ID using the SDK client
  • Show me how to call the plants client from a custom CLI command
  • Explain how to keep my custom.rs safe when running fern generate

Good to know

  • custom.rs is protected by .fernignore and is not regenerated
  • If the SDK surface changes, custom.rs must be updated by hand
  • Auth is configured for the oauth-client-credentials scheme only

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: seed/cli/oauth-client-credentials-custom-prefix-openapi/.agents/skills/custom-commands/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to oauth-client-credentials-openapi-custom-commands

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

oauth-client-credentials-openapi-custom-commands: common questions

Will fern generate overwrite my custom commands?

No. The source says custom.rs is protected by .fernignore, so fern generate will not overwrite it. Generated files such as the SDK and main.rs are updated to match the latest API spec.

Do I need to set up authentication in my custom command?

No. The source says custom commands automatically inherit the CLI's authentication, so no manual auth wiring is needed in the handlers.

Which SDK clients are available to custom commands?

The source lists two sub-clients: client.identity for identity operations and client.plants for plants operations.

How do I install oauth-client-credentials-openapi-custom-commands?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is oauth-client-credentials-openapi-custom-commands free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is oauth-client-credentials-openapi-custom-commands safe to use?

It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to oauth-client-credentials-openapi-custom-commands?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

oauth-client-credentials-openapi-custom-commands Install

Add to stack

Loading.