Skill Instructions
Overview
This skill is designed to generate a log.md file containing detailed commit history of the Git repository, ordered from the most recent commit to the earliest. It includes full commit hashes, author information, dates, complete messages (subject and body), and file change statistics. It is activated when the user explicitly requests to "update logs".
When to Use
- •Use this skill only when the user says "update logs" or similar phrases indicating they want to update or create a commit log file.
- •Do not activate for general Git queries or other logging tasks.
Procedure
- •Verify that the current directory is a Git repository.
- •Run
git log --pretty=format:"### %H%n**Author:** %an <%ae>%n**Date:** %ad%n%n**Message:**%n%s%n%n%b%n%n**Changes:**%n" --date=short --statto retrieve detailed commit history including full hash, author details, date, message (subject and body), and file change statistics. - •Create or overwrite the
log.mdfile in the workspace root with the following structure:- •Header:
# Commit History - •Followed by the formatted commit details.
- •Header:
- •Confirm the file has been created/updated successfully.
Examples
- •User Input: "update logs"
- •Action: Execute the procedure and create
log.mdwith detailed commit history.
- •Action: Execute the procedure and create
- •Expected Output: A
log.mdfile like:code# Commit History ### abc1234abcd... **Author:** Author Name <email@example.com> **Date:** 2026-01-17 **Message:** Add streaming support Detailed commit body if present. **Changes:** KMK_Chatbot.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
Notes
- •Commits are listed from latest to earliest by default with
git log. - •If no commits exist, the file should contain just the header.
- •Ensure the skill only runs in a Git repository context.