Logotipo de Konflux Component

Konflux Component

Organización
opendatahub-io
konflux-component

Gestiona un componente de Konflux

Descripción general

Editoropendatahub-io
Repositorioai-helpers
Nombre de la habilidadkonflux-component
Estrellas
39
Forks
76
Archivos incluidos
Solo instrucciones
LicenciaApache-2.0
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por opendatahub-io en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Konflux Component en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-konflux/skills/konflux-component
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/opendatahub-io/ai-helpers.git /tmp/ai-helpers
mkdir -p .claude/skills
cp -r /tmp/ai-helpers/plugins/odh-konflux/skills/konflux-component .claude/skills/konflux-component
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Konflux Component en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Konflux Component automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Konflux Component no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Name

odh-ai-helpers:konflux-component

Synopsis

/konflux:component status <component>
/konflux:component build <components> [--wait duration] [--nudge] [--wait-for-release release-duration]

Description

The konflux:component command to manage Konflux component(s).

This command helps you:

  • Get status of a component - last build, commit message, snapshot and release
  • Trigger build of a component and wait until the build or release is done

Implementation

Subcommand: status

The command performs the following steps:

  1. Prerequisites Check:

    • Verify oc CLI is installed: which oc
    • Verify cluster access: oc whoami
    • If not installed or not authenticated, provide clear instructions
    • Verify git CLI is installed: which git
    • Verify the current directory is a Git repository: git remote -v
  2. Parse Arguments:

    • component: Component name (required)
  3. List components:

    • Get component
      bash
      kubeclt get component {component} -o yaml
    • The application name is provided .spec.application
    • The component name is provided .spec.componentName
    • The Git repository URL is provided .spec.source.git.url
    • The commit SHA is provided .status.lastBuiltCommit
    • The image is provided .status.lastPromotedImage
  4. Get Git information:

    • Use git branch -a --contains <commit-sha> to find the branch name
    • The Git repository should be in the current working directory. If it is not fail the command.
  5. Get Snapshots:

    • Get snapshots of the component and order by oldest
      bash
      kubectl get snapshot -l pac.test.appstudio.openshift.io/sha={commit},appstudio.openshift.io/component={component} --sort-by=.metadata.creationTimestamp
  6. Get Releases:

    • Get releases object for each snapshot
      bash
      kubectl get release -l pac.test.appstudio.openshift.io/sha={commit},appstudio.openshift.io/component={component}
    • The snapshot is specified in .spec.snapshot
    • The .status.conditions show if the release failed or succeeded
  7. Display result:

    • Display the result:
      | Component        | Built SHA | lastPromotedImage    |  Commit Message             | Git Branch   | Snapshots (oldest first) |
      |------------------|-----------|----------------------|-----------------------------|--------------|--------------------------|
      | {component}      | {commit}  | {lastPromotedImage}  | {commit-message}            | {git-branch} | {snapshots}              |
      | otel-bundle-main | 8ba2e60   |                      | Fix service account (#693)  | main         | otel-main-jnhfz          |
    • Display snapshot with release information for each snapshot
      Component: {component}
      | Snapshot        | Release                       | Release status                           |
      |-----------------|-------------------------------|------------------------------------------|
      | {snapshot}      | {release}                     | {release-status}                         |
      | otel-main-jnhfz | otel-main-jnhfz-8ba2e60-nnwnp | Failed (ManagedPipelineProcessed failed) |

Subcommand: build

The command performs the following steps:

  1. Prerequisites Check:

    • Verify oc CLI is installed: which oc
    • Verify cluster access: oc whoami
    • If not installed or not authenticated, provide clear instructions
    • Verify git CLI is installed: which git
    • Verify the current directory is a Git repository
  2. Parse Arguments:

    • $1: Component(s) (required): Konflux Component(s) name
    • $2: flag --wait <duration> (optional) wait duration for the build to finish
      • The duration can have suffix s for seconds, m for minutes or h for hours.
      • If other suffixes are specified fail the command
    • $3: flag --nudge (optional) nudge files after the build finishes
      • --nudge can be used only if --wait is used
    • $4: flag --wait-for-release <release-duration> (optional) wait until release is done
      • --wait-for-release can be used only if --wait is used
      • The duration can have suffix s for seconds, m for minutes or h for hours.
  3. Trigger the build:

    • Annotate each component to trigger the build
      bash
      kubectl annotate components/{compponent} build.appstudio.openshift.io/request=trigger-pac-build
  4. Get the build information:

    bash
    kubectl get pipelinerun -l appstudio.openshift.io/component={component}
    • Wait up to 5 minutes, it takes time for the PipelineRun to be created
    • The started pipeline name must have -on-push in the name
  5. Wait for the build to finish:

    • If --wait <duration> is provided wait for the PipelineRun to finish. The duration can be in s for seconds, m for minutes or h for hours.
    bash
    kubectl wait --for=condition=Suceeded=true pipelinerun/{pipelinerun} --timeout={duration}
    • Extract the nudge files specified in the .metadata.annotations["build.appstudio.openshift.io/build-nudge-files"] in the PipelineRun
    • The Snapshot object is created when the build finishes
    • Get the Snapshot object and extract container image .spec.components[?(@.name=="{component}")].containerImage
      bash
      kubectl get snapshot -l appstudio.openshift.io/build-pipelinerun={pipelinerun}
    • If the build fails use the troubleshooting instructions to explain the failure
  6. Wait for the release to finish:

    • If --wait-for-release <release-duration> is provided wait for the Release to finish. The release-duration can be in s for seconds, m for minutes or h for hours.
    bash
    kubectl wait --for=condition=Released=true --timeout={release-duration} -l appstudio.openshift.io/build-pipelinerun={pipelinerun}
  7. Nudge files:

    • If --wait <duration> and --nudge are provided nudge the files by repacing the containerImage in those files
  8. Display result:

    • Display the result:
      Component: {component} | PipelineRun: {pipelinerun-name} | Snapshot: {snapshot} | Container Image: {containerImage}

Return Value

  • status: Table of all components
  • build: PipelineRun custom resource name which is executing the build and snapshot if the build finished

Examples

  1. Get status of otel-collector-main component:

    bash
    /konflux:component status otel-collector-main
  2. Trigger build of the otel-collector-main component:

    bash
    /konflux:component build otel-collector-main
  3. Trigger build of the otel-collector-main and otel-operator-main component:

    bash
    /konflux:component build otel-collector-main otel-operator-main
  4. Trigger build of the otel-collector-main component and wait 30 minutes to finish:

    bash
    /konflux:component build otel-collector-main --wait 30m

Arguments

status

  • component (required): Name of the Konflux component

build

  • component (required): Name of the Konflux component
  • --wait (required): Duration how long to wait for the pipelinerun to finish

Troubleshooting

build

  • PipelineRun progress and failure:

    • The PipelineRun creates TaskRun(s) objects which create actuall pods to run the build.
    • The TaskRun for a specific PipelineRun can be found by kubectl get taskrun -l tekton.dev/pipelineRun={pipelinerun}
    • The pod for a specific TaskRun can be found by kubectl get pod -l tekton.dev/taskRun={taskrun}
    • Get the pod logs, kubernetes events, status and explain the failure
  • Release progress and failure

    • The release is executed as a PipelineRun. The release PipelineRun is defined in the Release object in .status.managedProcessing.pipelineRun
    • The example value is rhtap-releng-tenant/managed-vks2b. Which means the PipelineRun name is managed-vks2b and runs in rhtap-releng-tenant Kubernetes namespace.
    • The TaskRun for the release PipelineRun can be found by kubectl get taskrun -l tekton.dev/pipelineRun={pipelinerun} -n {namespace}
    • The pod for the release TaskRun can be found by kubectl get pod -l tekton.dev/taskRun={taskrun} -n {namespace}

Related Commands

  • /konflux:application status <application> - Show application status

Additional Resources

Preguntas frecuentes

¿Qué hace la habilidad de IA Konflux Component?

Gestiona un componente de Konflux

¿Por qué usar Konflux Component en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Konflux Component está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Konflux Component en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-konflux/skills/konflux-component. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Konflux Component?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Konflux Component?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Konflux Component con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Konflux Component?

Sí. opendatahub-io la ha publicado en GitHub bajo la licencia Apache-2.0. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇