smithery/feiskyer

medium-skill

Medium-sized skill for comprehensive token testing

Installation

$ npx skills add smithery/feiskyer --skill medium-skill

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/feiskyer.

npx skills add smithery/feiskyer

Browse all from smithery/feiskyer

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsread_file, write_file

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,972 B
  • docs SUMMARY.md 70 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Medium Skill: Practical API Integration Playbook

This skill represents a medium-sized document that an engineering team might maintain to describe best practices for integrating with external APIs. The content is intentionally richer and longer than the previous skills, providing enough material for tests that compare token usage between metadata-only prompts and fully expanded skill prompts.

Establishing Clear Contracts

Before writing the first line of integration code, clarify the API contract:

  • Define which operations are required for the product's first release.
  • Identify rate limits, quota policies, and billing implications.
  • Capture authentication requirements in a short checklist.
  • Decide which fields are mandatory and which are optional.

These details should live in version-controlled documentation so that they can evolve alongside the code. Engineers can reference this skill while writing tests or reviewing changes to the integration layer.

Authentication and Secrets

Most APIs require some form of credential such as an API key, OAuth token, or signed JWT. Good practices include:

  1. Store secrets in a secure vault rather than in source control.
  2. Provide a lightweight helper that loads credentials from a single place.
  3. Rotate credentials regularly and document the rotation procedure.
  4. Log authentication failures with enough context to debug, but never log secrets.

When tests in this repository count tokens, they treat this section as part of the "full content" that is only loaded when the agent explicitly requests the medium‑sized skill.

Error Handling and Retries

API integrations fail in many subtle ways: network timeouts, malformed responses, authentication drift, and upstream outages. The integration layer should:

  • Distinguish between transient and permanent failures.
  • Use exponential backoff with jitter for retries.
  • Prefer idempotent operations when possible.
  • Surface clear error messages to both logs and users.

The goal is to avoid tight retry loops that amplify outages while still providing a smooth experience when brief network issues occur. Unit tests often simulate these failures by stubbing HTTP clients and asserting that the integration layer behaves as described here.

Pagination and Partial Results

Many APIs paginate large collections. Instead of loading every record at once, integrations should stream or page through results:

  • Respect server-provided cursors or continuation tokens.
  • Choose sensible default page sizes for the client.
  • Allow callers to stop early when they have enough data.
  • Validate that pagination state is not lost across retries.

By structuring the integration code around clear data flows and reusable helpers, teams can keep this logic understandable even when working with complex external APIs.