Skip to content

Instantly share code, notes, and snippets.

View rafaeltuelho's full-sized avatar

Rafael Torres Coelho Soares (aka Tuelho) rafaeltuelho

View GitHub Profile
@rafaeltuelho
rafaeltuelho / ai-tutor-rule.md
Created January 21, 2026 00:31
Augment AI Tutor rule
type description
agent_requested
/run AI Tutor

AI Tutor Mode

Welcome! I'm your interactive guide to Augment Code. I'll help you accomplish your tasks while teaching you the most effective Augment features to use along the way.

How This Works

@rafaeltuelho
rafaeltuelho / plan-mode-rule.md
Created January 21, 2026 00:30
Augment Plan Mode rule
type description
agent_requested
/run plan mode

Plan Mode Rules

Quick Start: Ask Questions First

When entering Plan Mode, IMMEDIATELY ask focused questions to gather critical information:

@rafaeltuelho
rafaeltuelho / .augment-guidelines.md
Created January 21, 2026 00:27
Augment Code sample Guidelines

General agent guidelines

Response Formatting

  • Whenever listing or mentioning a file path in the response, MAKE IT a clickable link so I can click it and open it in the Editor.

External frameworks and libraries documentation

  • Whenever possible, try to leverage the Context 7 MCP tools to retrieve updated libraries, frameworks, and SDK docs
  • Try to retrieve documentation thatis relevant and aligned to the version being used by the project (referenced in the package management)

Explainability

  • Always list the tools called (if any) during the prompt processing at the end of your response.
@rafaeltuelho
rafaeltuelho / task-trivy-image-scan.yaml
Created July 14, 2025 14:56
Tekton Task to use Trivy image scan tool exporting reults to Red Hat ACS format
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: trivy-image-scan
annotations:
task.results.format: application/json
task.results.type: roxctl-image-scan
task.results.key: SCAN_OUTPUT
task.output.location: logs
task.results.container: step-report
@rafaeltuelho
rafaeltuelho / backstage-community-plugin-announcements-dynamic-export.md
Last active February 4, 2025 21:35
Dynamic Plugin export for Red Hat Developer Hub based iDPs

Dynamic Plugin export for Red Hat Developer Hub based iDPs

This tutorial describes how to export a existing Backstage plugin as a Dynamic plugin to be loaded into Red Hat Developer Hub.

For this demo I choose the Announcements plugin for Backstage as it is composed by multiple components including front-end UI, backend and search-backend.

Reference documentation:

@rafaeltuelho
rafaeltuelho / rhtas-tools-devfile.yaml
Created November 4, 2024 21:10
Sample Dev Spaces'devfile with Red Hat Trusted Artifact Signer (RHTAS based on Sigstore project) tools for code/container signing
schemaVersion: 2.2.0
metadata:
generateName: secured-app
components:
- volume:
size: 4Gi
name: home
- name: development-tooling
container:
image: quay.io/devfile/universal-developer-image:latest
@rafaeltuelho
rafaeltuelho / OpenshiftArtifactoryHa-cr.yaml
Last active August 13, 2024 19:55
Deploys an JFrog Artifactory instance using the JFrog Operator for Openshift 4.x
apiVersion: charts.helm.k8s.io/v1
kind: OpenshiftArtifactoryHa
metadata:
name: openshiftartifactoryha
namespace: artifactory
spec:
artifactory-ha:
artifactory:
joinKey: ae576b44d1dfe2ef3750cfbf.... #openssl rand -hex 32
masterKey: 4c2bd4d2082a0c2fa2e54... #openssl rand -hex 32
@rafaeltuelho
rafaeltuelho / bitnami-postgresql-values.yaml
Created August 8, 2024 22:08
Deploys a Postgres DB instance using bitami/postgresql Helm Chart on Openshift 4.x
global:
postgresql:
auth:
postgresPassword: "secret"
username: "artifactory"
password: "artifactory"
database: "artifactory"
primary:
persistence:
enabled: false
@rafaeltuelho
rafaeltuelho / jfrog-artifactory-oss-values.yaml
Created August 8, 2024 18:05
JFrog Artifactory Chart values to deploy on Openshift 4.x
# Default values for artifactory-oss.
# This is a YAML-formatted file.
# Beware when changing values here. You should know what you are doing!
# Access the values with {{ .Values.key.subkey }}
# This chart is based on the main artifactory chart with some customizations.
# See all supported configuration keys in https://github.com/jfrog/charts/tree/master/stable/artifactory
containerSecurityContext:
@rafaeltuelho
rafaeltuelho / pymongo-fastapi-crud-devworkspace-cr.yaml
Last active October 28, 2024 21:59
Sample Python3 + MongoDB DevWorkspace CR which creates a Openshift Dev Spaces workspace
apiVersion: workspace.devfile.io/v1alpha2
kind: DevWorkspace
metadata:
annotations:
che.eclipse.org/che-editor: che-incubator/che-code/latest
name: pymongo-fastapi-crud
namespace: user1-devspaces
finalizers:
- rbac.controller.devfile.io
spec: