Skip to content

test post-session skill - #42

Closed
braughtg wants to merge 12 commits into
mainfrom
test
Closed

test post-session skill#42
braughtg wants to merge 12 commits into
mainfrom
test

Conversation

@braughtg

@braughtg braughtg commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Testing a skill for posting the Copilot session to a comment on a pull request.

Attributions

Assisted-by: gemini 3 flash

@github-actions
github-actions Bot marked this pull request as draft July 1, 2026 18:56
@FarmData2 FarmData2 deleted a comment from github-actions Bot Jul 2, 2026

braughtg commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Updated via GraphQL

braughtg commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Copilot Chat Log

Created: 2026-07-04 18:43:44


Implement the create comment.bash script so that it will:

  • Find the open pull request for the current branch
    see other scripts in the same directory and use the same tech)

Implement the create comment.bash script so that it will:

  • Find the open pull request for the current branch, report an error if no open pull request is found.
  • Find the hash of the first message in the chat.json file.
  • Search the comments in the open pull request for a hidden comment with that hash in the body.
  • if such a comment is found update it, otherwise create a new comment.
  • The comment should contain:
    • A top level heading "Copilot Chat Log"
    • A line indicating the time the chat log comment was created. Retain this time if updating.
    • Each prompt in the processed-chats.txt file separated by ---

Other scripts in the same directory perform some basic tasks that will be helpful here. See those scripts and use the same appraoches.


Instead of using the first message in the chat.json file to generate a hash, just use the messageID which is alreay a unique hash


braughtg commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Copilot Chat Log

Created: 2026-07-04 18:53:22


just say hello


put the contents of the chat window into the file chat2.txt in .github/skills/log-prompts


put the contents of the chat window into the file chat2.txt in .github/skills/log-prompts


on what date and time did this chat start


put the contents of the chat window into the file chat2.txt in .github/skills/log-prompts


I want to complete the createComment.bash script. This script shoud:

  1. Find the open pull request to the upstream for the active branch. If one does not exist, instruct the user to crete one and exit.
    2, Find all comments on the pull request that have the heading "Copilot Chat Log".
  2. If all of the comments iin the "Copilot Chat Log" that are prefixed with "User:" appear in the chat.txt file then append them to the comment. Otherwise add a new "Copilot Chat Log" comment.
  3. The new "Copilot Chat Log" comment should have a first level heading of "Copilot Chat Log" and contain one line of text indicating the current time in YYY-MM-DD HH:MM:SS format with an indication of the timezone.

Start implementation


/log-prompts


/log-prompts


/log-prompts


/log-prompts


/log-prompts


/log-prompts


/log-prompts


/log-prompts


reread the /log-prompts skill


/log-prompts


reread the log-prompt skill


/log-prompts


/log-prompts


/log-prompts


Start implementation


implement the processChatLog.bash script so that it:

  • Reads the chat.txt file.
  • Extracts all of the user prompts. Each propmpt starts on a line that begins with "User:" and ends before the next line that begins with "Assistant:"

Also rewrite the result into chat.txt.


Also preserve the --- separators.


remove the User: prefixes


/log-prompts


/log-prompts


read the /log-prompts skill


/log-prompts


Use the VSCode command to Export this chat as json in skills/log-prompts/chat2.json


modify this skill to export the chat as json rather than copy and paste it.


make step 3 more precise by providing the exact VSCode command to use


/log-prompts


@braughtg braughtg closed this Jul 5, 2026
@braughtg
braughtg deleted the test branch July 5, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant