Skip to content
Development
Skill

/gen-templates

Generate GitHub PR and issue templates for this repository. TRIGGER ON: 'generate templates', 'add PR template', 'create issue templates', 'add GitHub templates', 'set up PR template', 'generate PR template', 'add pull request template', 'create bug report template', 'add

From plugin
nyann
741 skills41 commands3 hooks

Claude Code

$ npx -y skills add thettwe/nyann --skill gen-templates --agent claude-code

SKILL.md

gen-templates.SKILL.md
name: gen-templates
description: "Generate GitHub PR and issue templates for this repository. TRIGGER ON: 'generate templates', 'add PR template', 'create issue templates', 'add GitHub templates', 'set up PR template', 'generate PR template', 'add pull request template', 'create bug report template', 'add feature request template'. Generates .github/PULL_REQUEST_TEMPLATE.md and .github/ISSUE_TEMPLATE/ with checklists matching the project's hook configuration."

gen-templates — Generate GitHub PR and Issue Templates

You are the gen-templates skill. You generate GitHub templates (PR template with quality checklists, bug report, feature request, and config) that mirror the project's quality gates.

When to trigger

  • User asks to generate templates, add PR template, create issue templates
  • User asks to set up PR template, add GitHub templates
  • User asks to create bug report or feature request templates

**DO NOT trigger on:** general questions about GitHub templates, modifying templates not generated by nyann.

Execution flow

Phase 1: Resolve profile

1. Resolve and load the active profile via `bin/load-profile.sh <name>` (resolves preferences → CLAUDE.md markers → `"default"` fallback).

Phase 2: Preview

3. Run `bin/gen-templates.sh --profile <profile> --target . --dry-run` to preview. 4. Show the user:

  • PR template checklist items (derived from hook phases)
  • Commit scopes (from profile conventions)
  • Issue templates that will be created
  • Which files will be skipped (already exist)

Phase 3: Confirm and write

5. Ask: "Write these templates to `.github/`?" 6. On confirmation, run without `--dry-run`. 7. If files already exist, mention `--force` to overwrite.

Phase 4: Suggest next steps

8. Suggest:

  • "Run `/nyann:gen-ci` to add a CI workflow"
  • "Commit and push to see templates on GitHub"

Key constraints

  • Existing template files are NOT overwritten unless `--force` is passed. This respects user customizations.
  • If the profile has no hooks, a minimal default checklist is generated.
  • Issue templates use GitHub's YAML frontmatter for labels and assignees.

When to hand off

  • "Add a CI workflow too" → `gen-ci` skill.
  • "Apply branch protection" → `gh-protect` skill.
  • "Commit these templates" → `commit` skill.
Read more
@thettwe
Ships withnyann

ငြမ်း is Burmese for scaffolding. Nyann is the Claude Code plugin that picks expert git defaults for your stack — branching, working hooks (Husky / pre-commit.com / lefthook), commits, releases, CI, docs — then keeps the repo on those rails through every PR

Stars on GitHub

Momentum

stars in total
7
Star history of thettwe/nyann on GitHub, a chart by star-history.com

Other skills on nyann.

add-team-source

add-team-source

Register a git URL as a team-profile source so nyann can periodically sync and expose its profiles under a namespace. TRIGGER…

@thettwe@thettweInstall Skill
bootstrap-project

bootstrap-project

Bootstrap a fresh or existing repo with nyann. TRIGGER when the user says "set up this project", "initialize git workflow",…

@thettwe@thettweInstall Skill
check-prereqs

check-prereqs

Survey the machine and report which nyann features are usable right now. TRIGGER when the user says "is my machine ready for…

@thettwe@thettweInstall Skill
cleanup-branches

cleanup-branches

Prune local branches whose work is already merged into the base. TRIGGER when the user says "clean up branches", "delete merged…

@thettwe@thettweInstall Skill
commit

commit

Generate a Conventional Commits message from the staged diff and create the commit after user confirmation. TRIGGER when the user…

@thettwe@thettweInstall Skill
diagnose

diagnose

Bundle a redacted, support-grade snapshot of the current nyann state for inclusion in a bug report or support request. Combines…

@thettwe@thettweInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about gen-templates.

Which coding agents can use gen-templates?
gen-templates installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.