About discussion-commenter
Discussion Commenter turns Q&A sections in a Markdown writeup into separate comments on a GitHub Discussion. It is for users publishing written Q&As, with a dry-run option to preview the parsed comments before posting.
Key features
- 01Parses Q&A sections from Markdown
- 02Posts each question as a separate comment
- 03Includes follow-ups with the parent question
- 04Prefixes comments with a supplied date
- 05Previews comments with dry-run
Use cases
- 01Publish a Markdown Q&A writeup to a discussion
- 02Review parsed comments before posting
- 03Group follow-up answers with their question
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ pamelafox/ presentation-skills --skill discussion-commenterAfter installing, type/discussion-commenterin Claude Code to confirm it loaded.
Bundled filespost_qas.py
Details
From the project READMEDiscussion Commenter
Post Q&A entries from markdown writeups as individual comments to a GitHub Discussion.
Usage
Run the script with the writeup file path, discussion URL, and date:
uv run .agents/skills/discussion-commenter/post_qas.py \
"path/to/writeup.md" \
"https://github.com/orgs/ORG/discussions/NUMBER" \
"2026/01/06"
Arguments
writeup_path- Path to the markdown writeup file containing Q&Asdiscussion_url- Full URL to the GitHub discussiondate- Date string to prefix each comment (e.g., "2026/01/06")
Options
--dry-run- Parse and display what would be posted without actually posting
Requirements
- GitHub CLI (
gh) must be installed and authenticated - User must have permission to comment on the discussion
Output
Each ## Question section in the writeup becomes a separate comment, formatted as:
**2026/01/06: Question Title**
Answer content...
Subsections (### Follow-up) are included in the parent question's comment.
Comments
Markdown supported