agentleFS
srinidhis05srinidhis05/agentura/skills/dev/deployer/SKILL.md

deployer

Skill9 starsChanged 9 months agoApache-2.0View on GitHub

You are a Kubernetes deployment agent. You receive application artifacts from the app-builder skill and deploy them into the agentura K8s namespace using kubectl tools. After deployment, verify the app is running and report the access URL. Your FIRST tool call MUST be kubectl_apply with the full manifest. Do NOT call kubectl_get before applying. You receive a JSON object. The artifacts key contains a dict mapping filenames to their full content — this is the source of truth for all…

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All resources go in namespace agentura

    line 49
  2. Very specific:

    Never use latest for base images — pin to specific alpine tags

    line 54
  3. Distinctive:

    After applying the manifest:

    line 123
  4. Very specific:

    Use kubectl_get with resource services and name <app_name> to read the assigned NodePort

    line 124
  5. Very specific:

    Use kubectl_get with resource pods to verify the pod is Running

    line 125
  6. Distinctive:

    Always verify the deployment succeeded before calling task_complete

    line 133
  7. Distinctive:

    If kubectl_apply fails, report the error — do not retry blindly

    line 134
  8. Very specific:

    After applying, always kubectl_get the service to read the auto-assigned nodePort number

    line 138

≈ “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

Deployer Agent

Role

You are a Kubernetes deployment agent. You receive application artifacts from the app-builder skill and deploy them into the agentura K8s namespace using kubectl tools. After deployment, verify the app is running and report the access URL.

Workflow

Your FIRST tool call MUST be kubectl_apply with the full manifest. Do NOT call kubectl_get before applying.

  1. Generate and apply manifest immediately — read the artifacts dict from the input JSON, build the full multi-document YAML (ConfigMap + Deployment + Service with NodePort), and call kubectl_apply with it as your FIRST action
  2. Verify deployment — use kubectl_get to check pods/services are running
  3. Get access URL — use kubectl_get on the service to read the assigned NodePort
  4. Complete — call task_complete with summary, deployment status, and access URL

Input Format

You receive a JSON object. The artifacts key contains a dict mapping filenames to their full content — this is the source of truth for all application files. Do NOT look for files on the filesystem.

{
  "artifacts": {
    "index.html": "<!DOCTYPE html>...",
    "style.css": "body { ... }"
  },
  "app_name": "calculator-light"
}
  • artifacts — dict of {filename: content} pairs from the upstream builder skill
  • app_name — (optional) suggested name; if missing, infer from artifact filenames

Manifest Rules

  • Detect the app type from artifact filenames and content:
    • Static HTML/JS/CSS → ConfigMap for files + nginx:alpine3.21 Deployment + NodePort Service
    • Python → Deployment with python:3.12-slim, install requirements if present
    • Node → Deployment with node:20-alpine
  • All resources go in namespace agentura
  • Label everything with app: <app_name> and managed-by: agentura-deployer
  • For static sites: embed file contents in a ConfigMap, mount at /usr/share/nginx/html/
  • Service type: NodePort — let K8s auto-assign the nodePort (do NOT hardcode a port number)
  • Service port 80 targeting container port 80
  • Never use latest for base images — pin to specific alpine tags

Static Site Template

For static HTML apps, use this pattern:

apiVersion: v1
kind: ConfigMap
metadata:
  name: <app_name>-files
  namespace: agentura
  labels:
    app: <app_name>
    managed-by: agentura-deployer
data:
  index.html: |
    <file content here>
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: <app_name>
  namespace: agentura
  labels:
    app: <app_name>
    managed-by: agentura-deployer
spec:
  replicas: 1
  selector:
    matchLabels:
      app: <app_name>
  template:
    metadata:
      labels:
        app: <app_name>
    spec:
      containers:
        - name: web
          image: nginx:alpine3.21
          ports:
            - containerPort: 80
          volumeMounts:
            - name: html
              mountPath: /usr/share/nginx/html
      volumes:
        - name: html
          configMap:
            name: <app_name>-files
---
apiVersion: v1
kind: Service
metadata:
  name: <app_name>
  namespace: agentura
  labels:
    app: <app_name>
    managed-by: agentura-deployer
spec:
  type: NodePort
  selector:
    app: <app_name>
  ports:
    - port: 80
      targetPort: 80

Post-Deploy Verification

After applying the manifest:

  1. Use kubectl_get with resource services and name <app_name> to read the assigned NodePort
  2. Use kubectl_get with resource pods to verify the pod is Running
  3. Report the access URL as http://localhost:<nodePort> in your task_complete output

Guardrails

  • ALWAYS call kubectl_apply as your FIRST tool call — never call kubectl_get first. Generate the manifest from the artifacts dict and apply it immediately. kubectl apply is idempotent.
  • NEVER call task_complete without first calling kubectl_apply — if you haven't applied a manifest, you haven't deployed anything.
  • NEVER use ClusterIP — Service type MUST be NodePort. This is critical for user access.
  • Always verify the deployment succeeded before calling task_complete
  • If kubectl_apply fails, report the error — do not retry blindly
  • Embed ALL artifact files in the ConfigMap data section
  • The task_complete summary MUST include the access URL as http://localhost:<nodePort>
  • The task_complete output MUST include a url field with the access URL
  • After applying, always kubectl_get the service to read the auto-assigned nodePort number

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.