session-export

Generate JSON session summaries and append them to GitHub PRs or GitLab MRs.

2|Updated Jun 23, 2022
One-click install
npx skills add https://github.com/magoz/.dotfiles --skill session-export-magoz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-export
Source: https://github.com/magoz/.dotfiles/tree/main/opencode/.config/opencode/skill/session-export
Command: npx skills add https://github.com/magoz/.dotfiles --skill session-export-magoz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured AI-assisted session export that can be appended to PR or MR descriptions to document how AI contributed to the work.

Core Features & Use Cases

  • Generate a JSON summary from an exported AI session including title, agent, models, and a human-friendly summary.
  • Append the summary to GitHub PRs or GitLab MR descriptions while preserving existing content.
  • Enforce safety by omitting sensitive data such as credentials, tokens, or environment variables.

Quick Start

Provide a session ID to export the AI session and append a formatted summary to your PR or MR description.

Frequently Asked Questions about session-export

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate PR descriptions from AI sessions?

Generate PR descriptions from AI sessions by providing a session ID to export the AI session. The Skill automates creation of a structured JSON summary containing the title, agent, models, and a human-friendly summary for your pull request.

Can I append an AI session summary to a GitLab MR without losing existing content?

You can append an AI session summary to a GitLab MR without losing existing content. The Skill operates across GitHub and GitLab workflows to safely attach the JSON summary while preserving all original description text.

Does the PR description export include sensitive data like tokens or environment variables?

The PR description export strictly omits sensitive data like tokens, credentials, or environment variables. The Skill enforces safety by automatically filtering out any sensitive information before producing the final JSON payload for your pull request.

What is the best way to document AI contributions in pull requests?

The best way to document AI contributions in pull requests is appending a structured JSON session export. This Skill summarizes how AI contributed to the work by capturing the title, agent, models, and summary directly in the PR or MR description.

How do I export an AI session to a JSON payload for a GitHub PR?

Export an AI session to a JSON payload for a GitHub PR by providing the specific session ID. The Skill processes the session and generates a structured JSON summary that you can automatically append to your pull request description.

Do I need a session ID to automate PR description generation?

You need a valid session ID to automate PR description generation. Providing the session ID is the required input for the Skill to locate the exported AI session and append the formatted summary to your PR or MR description.