agentleFS
krakendkrakend/claude-code-plugin/skills/runtime-detector/SKILL.md

runtime-detector

Skill3 starsChanged 11 months agoApache-2.0View on GitHub

Detects the optimal way to run KrakenD (native binary vs Docker) and provides correct execution commands

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 1 is distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    NEVER invent Docker images or commands: Always follow this process:

    line 23
  2. Very specific:

    Call detect_runtime_environment tool with the config file path

    line 25
  3. Very specific:

    Use the recommendations array from the response (ordered by priority)

    line 26
  4. Very specific:

    Use command_template from priority=1 recommendation

    line 27
  5. Very specific:

    If Docker needed, use recommended_image field for the image name

    line 28
  6. Very specific:

    Response: Call detect_runtime_environment, then provide the command from command_template.

    line 45
  7. Very specific:

    After config-validator validates successfully → Offer to run with this skill

    line 48
  8. Very specific:

    After config-builder creates config → Offer to test run

    line 49
  9. Very specific:

    If user needs to validate first → Hand off to config-validator

    line 50

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

Runtime Detector

Purpose

Determines the correct way to execute KrakenD commands by detecting available runtimes and providing ready-to-use commands with the appropriate Docker image or native binary.

When to activate

  • User asks to run/start/execute KrakenD: "run krakend", "start the gateway", "execute krakend"
  • User mentions Docker commands for KrakenD: "docker run krakend", "which docker image"
  • User asks how to run their config: "how do I run this", "start my config"
  • User asks about KrakenD versions or images: "which version", "what image to use"

CRITICAL: Always Use Runtime Detection

NEVER invent Docker images or commands. Always follow this process:

  1. Call detect_runtime_environment tool with the config file path
  2. Use the recommendations array from the response (ordered by priority)
  3. Use command_template from priority=1 recommendation
  4. If Docker needed, use recommended_image field for the image name

Common hallucinations to avoid:

  • ❌ devopsfaith/krakend (outdated)
  • ❌ krakend:latest without checking
  • ❌ krakend/krakend:version (wrong format)
  • ✅ Use exactly what detect_runtime_environment returns

What the tool returns

  • has_native_krakend: Whether native binary is installed
  • has_docker: Whether Docker is available
  • recommended_image: Correct Docker image (e.g., krakend:2.8 or krakend/krakend-ee:2.8)
  • recommendations: Array of execution options with command_template ready to use
  • is_enterprise: Whether config uses EE features

Example Interaction

User: "Run my krakend.json" Response: Call detect_runtime_environment, then provide the command from command_template. Explain if using native or Docker and why.

Integration

  • After config-validator validates successfully → Offer to run with this skill
  • After config-builder creates config → Offer to test run
  • If user needs to validate first → Hand off to config-validator

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.