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.
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
git clone --depth 1 https://github.com/fern-api/fern /tmp/fern && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/fern/seed/cli/oauth-client-credentials-custom-prefix-openapi/.agents/skills/custom-commands ~/.gemini/antigravity-cli/skills/oauth-client-credentials-openapi-custom-Antigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install oauth-client-credentials-openapi-custom-commands in Antigravity CLI
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
ANo 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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
