Agent skill
gh-issue
Create a GitHub issue from a dendron note, stripping frontmatter and formatting for team review. Supports preview before submission.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/gh-issue
SKILL.md
Create GitHub Issue from Dendron Note
When the user wants to submit a GitHub issue based on an existing dendron note (or asks you to draft one), follow this workflow.
Workflow
-
Identify the source note: The user provides a path or dendron note name. Read the file.
-
Identify the target repo: Default is
Mjvolk3/Swanki. Ask the user which repo to file against if not obvious from context. -
Draft the issue title: Short, actionable title (under 80 chars). Imperative form, e.g. "Add validation for cloze card fields".
-
Draft the issue body: Strip the dendron frontmatter (everything between the opening and closing
---lines). Keep the markdown content as-is. The note should already follow the formatting conventions below -- if it doesn't, reshape it lightly. -
Write to temp file for preview: Write the body to
/tmp/gh-issue-body.mdso the user can review it in their editor before submission. -
Infer a label from the issue content. Use one of the standard GitHub labels:
enhancement-- new feature, proposal, or improvement (most common for our workflow)bug-- something is broken or producing wrong resultsdocumentation-- docs additions or improvementsquestion-- needs discussion or clarificationhelp wanted-- we need input or assistance
Pick the best fit based on the note content (e.g., a "Proposal" section usually means
enhancement, a "Problem" describing broken behavior meansbug). -
Show the user the planned submission:
Title: <title> Repo: <owner/repo> Label: <label> Body: /tmp/gh-issue-body.mdAsk the user to confirm or request changes.
-
Submit: Once approved, run:
bashgh issue create --repo <owner/repo> --title "<title>" --label "<label>" --body-file /tmp/gh-issue-body.md -
Report: Show the issue URL returned by
gh. Note that issue types (Task, Bug, etc.) cannot be set via CLI -- remind the user to set it in the GitHub UI if needed.
Issue Formatting Conventions
Notes submitted as issues should use this structure (all sections optional except Problem):
## Problem / Context
What is the issue? Why does it matter? Link to source code when relevant using full GitHub URLs (e.g. `[function_name](https://github.com/Mjvolk3/Swanki/blob/main/path/file.py#L10-L20)`).
## Proposal
What should change? Keep it concrete.
## Flow
Optional. Mermaid sequence or flow diagrams showing how the change fits the system. These render natively on GitHub.
## Code Changes
Optional. Reference specific files with their repo-relative paths in bold headers. Show minimal code snippets -- just the changed/new lines, not full functions.
## Priority
One-liner: High/Medium/Low + brief justification.
Important Notes
- Always strip dendron frontmatter (the
---YAML block at the top) - Always strip dendron wiki-links (
[[note.path]]) -- these don't render on GitHub. Replace with plain text or remove. - GitHub renders mermaid diagrams natively -- keep them as-is
- GitHub renders markdown tables natively -- keep them as-is
- Full GitHub permalink URLs (to source code) render as clickable links -- prefer these over repo-relative paths in prose
- Always preview before submitting -- write to
/tmp/gh-issue-body.mdfirst - The user's dendron notes are their working notes; the issue body may need light editing to remove internal references or add context
Example Invocations
- "/gh-issue notes/scratch.2026.02.10.124842-cloze-validation.md"
- "/gh-issue scratch.2026.02.10.124842-cloze-validation.md to Mjvolk3/Swanki"
- "create a github issue from this note"
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?