Skip to content

Instantly share code, notes, and snippets.

View vkeenan's full-sized avatar
💭
Looking for Salesforce Devops Connections!

Vernon Keenan vkeenan

💭
Looking for Salesforce Devops Connections!
View GitHub Profile
@vkeenan
vkeenan / acp-generator.md
Created March 8, 2024 19:41
Advanced Contextual Preamble (ACP)

ACP Generator Prompt

You are an advanced AI language model trained to understand and generate human-like text based on the input you receive. Your core strength lies in your ability to synthesize information, answer questions, and generate creative content. Now, you're being asked to assist in the creation of Advanced Contextual Preamble (ACP) prompts. ACP is a technique where the user leverages the system prompt to provide high-level instructions or context to guide the model's responses effectively. Here are the key principles to remember when creating ACP prompts:

  1. Establish the Context: Begin by providing an overview of the context within which the user's question or problem exists. This might involve explaining the subject, the setting, or the key concepts that will be relevant in the conversation.
  2. Highlight the Problem or Question: Once the context is set, briefly state the question or problem that needs to be addressed. This gives directions to the conversation and helps you understand the use

Collaborative AI Assistance for Refactoring Apex Code in Salesforce: Leveraging AI Pair Programming

Context

In the realm of Salesforce development, Apex code serves as the backbone for customizing and extending the platform's capabilities. Refactoring Apex code plays a vital role in improving code quality, enhancing performance, and ensuring maintainability. As a developer seeking assistance in this area, you are looking to leverage the power of AI pair programming to streamline and optimize your refactoring process. By collaborating with an AI language model specialized in Salesforce Apex, you aim to enhance your efficiency and achieve cleaner, more efficient code.

Problem

You want to enhance your Apex codebase by refactoring it, ensuring adherence to best practices, improving performance, and promoting code maintainability. However, you need guidance on how to approach the refactoring process, identify areas for improvement, and implement the necessary changes effectively. You seek an AI partner

Advanced Contextual Preamble (ACP) Prompt Generator

You are an advanced AI language model trained to understand and generate human-like text based on the input you receive. Your core strength lies in your ability to synthesize information, answer questions, and generate creative content. Now, you're being asked to assist in the creation of Advanced Contextual Preamble (ACP) prompts. ACP is a technique where the user leverages the system prompt to provide high-level instructions or context to guide the model's responses effectively. Here are the key principles to remember when creating ACP prompts:

  1. Establish the Context: Begin by providing an overview of the context within which the user's question or problem exists. This might involve explaining the subject, the setting, or the key concepts that will be relevant in the conversation.
  2. Highlight the Problem or Question: Once the context is set, briefly state the question or problem that needs to be addressed. This gives directions to the conversation a
@vkeenan
vkeenan / Salesforce Test Data.md
Last active May 10, 2023 22:20
Salesforce Test Data

Salesforce Test Data

Generate Test Classes and Data

System: You are an expert in Salesforce devopment and languages.

generate test data suitable for use with this Salesforce SOQL statement. Do this in the form of a Test Class which inserts three accounts which you generate.

				SELECT

Id,

@vkeenan
vkeenan / Salesforce Devops Market Research.md
Last active May 10, 2023 04:12
Salesforce Devops Market Research

Devops Market Research

Testing Solutions

System: You are a market researcher in Salesforce devops.

I am a technical manager who is searching for a testing solution. Analyze the primary factors used to make this selection and summarize the choices in a table with the top 5 competitors by factors.

ChatGPT-4 Response

@vkeenan
vkeenan / Jira Integration.md
Created May 10, 2023 03:35
Salesforce Devops Jira Integration

Salesforce Devops Jira Integration

Jira Integration

You are an AI pair programmer who is an expert in Salesforce languages and salesforce devops. I need to integrate my Jira instance with activities happening in GitHub Actions. Can you help me with this?

response

Yes, I can help you with integrating your Jira instance with activities happening in GitHub Actions. You can achieve this by using GitHub Actions to create, update, or transition Jira issues based on events happening in your repository.

@vkeenan
vkeenan / SalesforceDeveloper.md
Created May 10, 2023 03:32
How to use ChatGPT-4 as a Salesforce Developer

How to use ChatGPT-4 as a Salesforce Developer

Loading the Model

System: You are a helpful AI pair programmer who is an expert in Salesforce languages and Salesforce system integration.

I am a Salesforce developer who has an existing Apex class library that follows set patterns. I want to show this to you so you can learn from it and help me write more code like it.

To get started, here is an existing Apex class called ResearchTopic that I want to show you.

@vkeenan
vkeenan / how-to-actions.md
Last active April 20, 2024 12:03
How To Use SFDX-CLI with GitHub Actions

How To Use SFDX-CLI with GitHub Actions

Create JWT Auth Flow

Create Self-Signed Cert and Key

mkdir -p ~/.ssh/jwt
cd ~/.ssh/jwt
openssl genrsa -des3 -passout pass:SomePassword -out server.pass.key 2048
@vkeenan
vkeenan / push-action-deploy.yml
Last active April 5, 2022 19:54
GitHub Action: SFDX-CLI Deploy from Repository
name: SFDX-CLI Deploy from Repository
on: [push]
jobs:
SFDX-CLI-Deploy:
runs-on: ubuntu-latest
steps:
- run: echo "🐧 GitHub Action running on ${{ runner.os }}"
- run: echo "🔎 Retrieving ${{ github.ref }} from ${{ github.repository }}."
- uses: actions/checkout@v2
- run: npm install sfdx-cli -g
How To Power Up SFDX-CLI with VS Code Remote - SSH, Windows Edition
by Vernon Keenan
from SalesforceDevops.net
Youtube: https://youtu.be/vdwM2WOUBuk
Change these values for your environment:
devops = DNS hostname of remote SSH server
vern = Linux username on remote server