agentleFS
martingarramonmartingarramon/claude-code-starter-kit/skills/tool-integration/SKILL.md

tool-integration

Skill4 starsChanged 9 months agoMITView on GitHub

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. About 0 are common, 18 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈18

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every integration is a contract.

    line 9
  2. Distinctive:

    Before writing any code:

    line 15
  3. Distinctive:

    Keep integrations simple and scoped.

    line 22
  4. Distinctive:

    Write the tool description so Claude knows when to use it and when not to

    line 26
  5. Distinctive:

    Start with a single operation (e.g., "read" before "read + write + delete")

    line 30
  6. Distinctive:

    Test with real credentials against a sandbox/test account

    line 31
  7. Distinctive:

    Verify error handling: what happens with bad input?

    line 32
  8. Distinctive:

    Document: what it does, how to set it up, what credentials are needed

    line 38
  9. Distinctive:

    Never hardcode secrets -- use environment variables or secure storage

    line 39
  10. Distinctive:

    Add the tool to CLAUDE.md skill triggers so Claude knows it's available

    line 40
  11. Distinctive:

    Check tool health at session start if it's critical to workflow

    line 44
  12. Distinctive:

    When an integration fails, diagnose before retrying (auth expired?

    line 45
  13. Distinctive:

    Keep a fallback plan -- if the tool is down, what's the manual alternative?

    line 46
  14. Distinctive:

    When building a new MCP server:

    line 49
  15. Distinctive:

    Test every integration with real credentials before documenting it as "working."

    line 66
  16. Distinctive:

    Never store API keys, tokens, or secrets in tracked files.

    line 67
  17. Distinctive:

    If an integration costs money per call, add a warning to the tool description.

    line 68
  18. Distinctive:

    When an integration breaks, check the changelog of the external service first.

    line 69

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Skill: Tool Integration

When to Use

Activate when connecting Claude Code to external tools, APIs, or services. This includes MCP server setup, API integrations, webhook configurations, and any workflow where Claude needs to interact with systems beyond the local filesystem.

Core Principle

Every integration is a contract. Define what it does, what it expects, how it fails, and how you verify it works. Undocumented integrations become time bombs.

Process

1. Define the Integration

Before writing any code:

  • What tool/service are you connecting to?
  • What specific operations does Claude need? (read, write, search, execute)
  • What authentication is required? (API key, OAuth, service account)
  • What are the rate limits, quotas, or costs?

2. Design the Interface

Keep integrations simple and scoped.

  • One tool per MCP server when possible. Don't create monolithic tool servers.
  • Define clear input/output schemas for each operation
  • Include error responses -- what does the tool return when it fails?
  • Write the tool description so Claude knows when to use it and when not to

3. Implement and Test

Build the minimum viable integration first.

  • Start with a single operation (e.g., "read" before "read + write + delete")
  • Test with real credentials against a sandbox/test account
  • Verify error handling: what happens with bad input? Network timeout? Auth failure?
  • Log the first successful call as proof of life

4. Configure and Document

Make the integration reproducible.

  • Store config in .claude/settings.json or equivalent
  • Document: what it does, how to set it up, what credentials are needed
  • Never hardcode secrets -- use environment variables or secure storage
  • Add the tool to CLAUDE.md skill triggers so Claude knows it's available

5. Monitor and Maintain

Integrations break silently.

  • Check tool health at session start if it's critical to workflow
  • When an integration fails, diagnose before retrying (auth expired? endpoint changed? rate limited?)
  • Keep a fallback plan -- if the tool is down, what's the manual alternative?

MCP Server Checklist

When building a new MCP server:

  • Server starts without errors
  • Tool descriptions are clear and specific
  • Input validation catches bad parameters before API calls
  • Error messages are actionable ("API key expired" not "request failed")
  • Rate limiting is respected
  • Credentials are loaded from environment, not hardcoded
  • README explains setup in under 5 minutes

Anti-Patterns

  • God server: One MCP server with 20 tools. Split by domain.
  • Silent failure: Tool returns empty result instead of an error. Always surface failures.
  • Retry storms: Looping retries on a failed API call. Fail fast, diagnose, fix.
  • Missing docs: Integration works on your machine. Nobody else can set it up.
  • Credential sprawl: API keys in config files, environment, and hardcoded in 3 places.

Rules

  • Test every integration with real credentials before documenting it as "working."
  • Never store API keys, tokens, or secrets in tracked files.
  • If an integration costs money per call, add a warning to the tool description.
  • When an integration breaks, check the changelog of the external service first.

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.