OpenParable
Skip to content
← Back to skills

Agentic Github Discussion

Apps & Automation
agentic-github-discussion

Agentic Github Discussion is an Agent Skill for apps & automation published in the carlos-algms/agentic.nvim repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use when creating, listing, or managing GitHub discussions in carlos-algms/agentic.nvim repository

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/carlos-algms/agentic.nvim/blob/HEAD/.agents/skills/agentic-github-discussion/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/agentic-github-discussion, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

GitHub Discussion

Manage discussions in carlos-algms/agentic.nvim via GraphQL API.

IDs Reference

Repository ID: R_kgDOQXqKiw

Categories

CategoryID
AnnouncementsDIC_kwDOQXqKi84C1alq
GeneralDIC_kwDOQXqKi84C1alr
IdeasDIC_kwDOQXqKi84C1alt
PollsDIC_kwDOQXqKi84C1alv
Q&ADIC_kwDOQXqKi84C1als
ResearchDIC_kwDOQXqKi84C1alw
Show and tellDIC_kwDOQXqKi84C1alu

Labels

LabelID
bugLA_kwDOQXqKi88AAAACQBotaQ
documentationLA_kwDOQXqKi88AAAACQBoteg
duplicateLA_kwDOQXqKi88AAAACQBotgw
enhancementLA_kwDOQXqKi88AAAACQBotkQ
good first issueLA_kwDOQXqKi88AAAACQBotpA
help wantedLA_kwDOQXqKi88AAAACQBotnA
invalidLA_kwDOQXqKi88AAAACQBotqA
not-acp-standardLA_kwDOQXqKi88AAAACQBottw
questionLA_kwDOQXqKi88AAAACQBotrw
quality-of-lifeLA_kwDOQXqKi88AAAACVMzaQA

Usage

Default category: Research

Override: /agentic-github-discussion Ideas or /agentic-github-discussion Q&A

Create Discussion

gh api graphql -f query='
mutation {
  createDiscussion(input: {
    repositoryId: "R_kgDOQXqKiw",
    categoryId: "DIC_kwDOQXqKi84C1alw",
    title: "TITLE",
    body: "BODY"
  }) {
    discussion {
      id
      url
    }
  }
}'

List Discussions

gh api graphql -f query='
{
  repository(owner: "carlos-algms", name: "agentic.nvim") {
    discussions(first: 10, orderBy: {field: CREATED_AT, direction: DESC}) {
      nodes {
        id
        number
        title
        url
        category { name }
        labels(first: 5) { nodes { name } }
      }
    }
  }
}'

Filter by category:

gh api graphql -f query='
{
  repository(owner: "carlos-algms", name: "agentic.nvim") {
    discussions(first: 10, categoryId: "DIC_kwDOQXqKi84C1alw") {
      nodes { number title url }
    }
  }
}'

Add Labels to Discussion

Requires discussion ID (starts with D_):

gh api graphql -f query='
mutation {
  addLabelsToLabelable(input: {
    labelableId: "D_kwDOQXqKi84...",
    labelIds: ["LA_kwDOQXqKi88AAAACQBotkQ"]
  }) {
    labelable {
      ... on Discussion { title }
    }
  }
}'

Remove Labels

gh api graphql -f query='
mutation {
  removeLabelsFromLabelable(input: {
    labelableId: "D_kwDOQXqKi84...",
    labelIds: ["LA_kwDOQXqKi88AAAACQBotkQ"]
  }) {
    labelable {
      ... on Discussion { title }
    }
  }
}'

Update Discussion

Update discussion title, body, or category:

gh api graphql -f query='
mutation {
  updateDiscussion(input: {
    discussionId: "D_kwDOQXqKi84...",
    title: "New Title",
    body: "New Body"
  }) {
    discussion {
      id
      url
    }
  }
}'

Add Comment to Discussion

Get discussion ID first, then add comment using variables to avoid escaping:

# Get discussion ID
gh api graphql -f query='
{
  repository(owner: "carlos-algms", name: "agentic.nvim") {
    discussion(number: 108) {
      id
    }
  }
}' --jq '.data.repository.discussion.id'

# Add comment using file for complex content
COMMENT_BODY=$(cat comment.md)
gh api graphql -F discussionId="D_kwDOQXqKi84..." -F body="$COMMENT_BODY" -f query='
mutation($discussionId: ID!, $body: String!) {
  addDiscussionComment(input: {
    discussionId: $discussionId,
    body: $body
  }) {
    comment {
      id
      url
    }
  }
}'

Update Discussion Comment

Requires comment ID (starts with DC_):

gh api graphql -f query='
mutation {
  updateDiscussionComment(input: {
    commentId: "DC_kwDOQXqKi84...",
    body: "Updated comment body"
  }) {
    comment {
      id
      url
    }
  }
}'

Critical Notes

  • Escape quotes in body: use \" for literal quotes
  • No native command: gh discussion doesn't exist
  • Repo owner: carlos-algms (not carlos.gomes)
  • Return the discussion URL when done