Contributions Hub reference: Workflow
In the kit: .github/skills/contributions-hub/references/workflow.md.
-
This file as plain text, at
https://letitglow.app/ahg/kit/raw/.github/skills/contributions-hub/references/workflow.md - Everything in the kit
Copy it into ChatGPT or another assistant
Read the plain text first
Contributions Hub reference: Workflow
Part of the contributions-hub skill. Read this only when the task reaches these sections.
Workflow
Step 1: Identify User & Scope
- Call #tool:mcp_github_github_get_me to get the authenticated username.
- Detect the workspace repo and organization.
- Load preferences from
.github/accessibility-agents/preferences.md(the user creates it fromdocs/reference/preferences.example.md) if available:- If that file does not exist, read
.github/agents/preferences.md(the older location) and suggest moving it: VS Code loads every.mdfile in.github/agents/as a custom agent. - Read
community.discussion_categoriesfor the categories to monitor. - Read
community.stale_daysfor when a discussion is considered stale (default: 30). - Read
community.welcome_message_templatefor new contributor greetings. - Read
repos.includefor the repos to audit in community health checks.
- If that file does not exist, read
- Parse the user's intent into an operation mode.
Step 2: Operation Modes
Mode A: List & Monitor Discussions
Flow:
- Search for discussions across repos using GitHub search.
- Group by category: Announcements, Q&A, Ideas, Show & Tell, General, etc.
- Show: title, author, category, comment count, upvotes, answered status (for Q&A), last activity.
- Priority signals:
- High activity (10+ comments in 24h)
- Unanswered Q&A (category Q&A, no marked answer, >3 days old)
- Ideas with high upvotes (community asking for a feature)
- Stale (no activity in 30+ days, still open)
- Offer: "Respond to one, generate a summary, convert to issue, or close?"
Mode B: Create Discussion
Flow:
- Identify the repo and ask (if not specified):
- Category -- Announcements / Ideas / Q&A / Show & Tell / General
- Title
- Body -- offer to draft based on user's description
- For Announcements (or any category with the announcement format): warn that only people with maintain or admin permissions can create new discussions there; anyone can comment and reply.
- Preview the full post (title + body) before creating.
- Create and confirm: "Discussion posted: {title}"
Draft assist: If the user gives a brief description, draft a full discussion post:
Draft for review:
**Title:** {generated title}
**Body:**
{generated body with context, questions, or proposal details}
Post as-is? [Yes / Edit / Change category / Cancel]
Mode C: Summarize Discussion Thread
Flow:
- Fetch all comments from the target discussion.
- Generate a structured summary:
## Discussion Summary: {title}
**Posted by:** @{author} on {date}
**Category:** {category}
**Status:** Open / Answered / Closed
**Engagement:** {comment count} replies, {upvote count} upvotes
### Core Question / Proposal
{1-2 sentence description of what this discussion is about}
### Key Points Raised
- **@{user}** -- {key point}
- **@{user}** -- {key point}
- **@{user}** -- disagreed: {point}
### Decisions / Consensus
{What was agreed upon, if anything. "No consensus yet" if ongoing.}
### Open Questions
- {unresolved question}
- {unresolved question}
### Suggested Next Step
{e.g., "Convert to issue for tracking", "Announcement reply summarizing the decision", "Close as resolved"}Mode D: Convert Discussion to Issue
Flow:
Fetch the discussion thread.
Summarize it into an issue title and body.
Preview the proposed issue:
About to create an issue from this discussion: Title: {generated title} Body: {generated body with context from discussion} Labels: {suggested labels} Link back to discussion: yes Proceed? [Yes / Edit / Cancel]Create the issue, then post a comment on the discussion linking to the new issue.
Mode E: Community Health Check
Flow:
- Scan the repo (or all repos in scope) for health files:
CODE_OF_CONDUCT.md,CONTRIBUTING.md,SECURITY.mdandSUPPORT.md, each in the repository root,docs/or.github/.github/FUNDING.yml(GitHub reads it only from the.githubfolder on the default branch)- If the repository has none of its own, a default file in the owner's public
.githubrepository also counts - Issue templates in
.github/ISSUE_TEMPLATE/ - PR template in
.github/pull_request_template.md README.md
- Score each file: Present / Missing / Outdated (last updated >1 year ago).
- Check
good first issuelabel usage:- Are there 3+ open issues with this label? (Good for attracting contributors)
- Are those issues actually appropriately sized for newcomers?
- Check
help wantedlabel:- Any open issues with this label?
- Generate a health report:
# Community Health Report -- {repo} -- {date}
## Health Score: {score}/10
| File | Status | Last Updated |
|------|--------|--------------|
| README.md | Present | {date} |
| CONTRIBUTING.md | Present | {date} |
| CODE_OF_CONDUCT.md | Missing | -- |
| SECURITY.md | Present | {date} |
| SUPPORT.md | Missing | -- |
| Issue templates | Present (3) | {date} |
| PR template | Present | {date} |
## Contributor Accessibility
| Signal | Status | Notes |
|--------|--------|-------|
| good first issue labels in use | 5 open | |
| help wanted labels in use | 0 open | Consider adding some |
| Average time to first response on issues | 5 days | Aim for <2 days |
## Recommendations
1. Add a `CODE_OF_CONDUCT.md` -- use the [Contributor Covenant](https://www.contributor-covenant.org/)
2. Add a `SUPPORT.md` to direct users to the right help channel
3. Add 2-3 `help wanted` issues to signal open contribution opportunitiesMode F: Contributor Insights
Flow:
- Search for PRs, issues, and comments from all contributors (not just org members).
- Build a leaderboard for the configured period:
# Contributor Insights -- {scope} -- {date range}
## Top Contributors
| Rank | Contributor | PRs Merged | Issues Filed | Reviews Given | Notes |
|------|-------------|-----------|--------------|---------------|-------|
| 1 | @{user} | 8 | 3 | 12 | Staff member |
| 2 | @{user} | 4 | 1 | 5 | External contributor |
| 3 | @{user} | 0 | 7 | 0 | Active issue reporter |
## First-Time Contributors This Period ({count})
| Contributor | First Contribution | Type | Status |
|-------------|-------------------|------|--------|
| @{user} | [PR #N: {title}](https://github.com/{owner}/{repo}/issues/{N}) | Pull Request | Merged |
| @{user} | [Issue #{N}: {title}](https://github.com/{owner}/{repo}/issues/{N}) | Issue | Open |
## Spotlight: Unrecognized Contributions
Non-code contributions sometimes go unnoticed:
- @{user} -- wrote 15 helpful comments this month without filing PRs
- @{user} -- answered 6 Q&A discussions- For first-time contributors with open (unmerged) PRs, draft a welcome comment to post on their PR.
Mode G: First-Time Contributor Welcome
Flow:
Detect PRs and issues where the author has never contributed before (first-time contributor label or no prior merged PRs).
Draft a warm, personalized welcome:
Welcome response draft for @{username}'s PR #{number}: --- Thanks for your first contribution, @{username}! I've taken a quick look and {positive observation about their change}. {One specific thing they did well}. A couple of things to help this move forward: - {specific actionable feedback} - {or "Everything looks good -- just waiting for CI to finish"} Don't hesitate to ask questions. We're happy to have you here. --- Post this? [Yes / Edit / Cancel]Never auto-post -- always preview and confirm.
Mode H: Stale Discussion Management
Flow:
- Find all discussions with no activity in
community.stale_days(default 30) days. - Categorize:
- Answered Q&As -- safe to close
- Unresolved discussions -- might need follow-up or conversion to issue
- Old announcements -- close/archive
- For each stale item, offer: close, post follow-up, convert to issue, or skip.
- Never auto-close without showing the discussion first.