agentleFS
thettwethettwe/nyann/skills/gen-templates/SKILL.md

gen-templates

Skill6 starsChanged 3 months agoMITView on GitHub

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.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run bin/gen-templates.sh --profile <profile> --target .

    line 27
  2. Distinctive:

    Commit scopes (from profile conventions)

    line 30
  3. Very specific:

    Ask: "Write these templates to .github/?"

    line 36
  4. Very specific:

    If files already exist, mention --force to overwrite.

    line 38
  5. Distinctive:

    If the profile has no hooks, a minimal default checklist is generated.

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Run bin/gen-templates.sh --profile <profile> --target . --dry-run to preview.
  2. 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

  1. Ask: "Write these templates to .github/?"
  2. On confirmation, run without --dry-run.
  3. If files already exist, mention --force to overwrite.

Phase 4: Suggest next steps

  1. 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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.