Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Github Project.Tag Issues

БесплатноБез исполняемых скриптовНе проверен

Rename the issues of a GitHub project to start with a tag, after review

gpsaggeseот gpsaggese★ 158 звёзд на GitHub

Об этом скилле

Goal

  • Given a <TAG> (e.g., Noesis) and a <PROJECT_URL> (e.g., https://github.com/users/gpsaggese/projects/2), rename every issue in the GitHub project so its title starts with <TAG>:
  • Propose first, apply only after the user approves
  • Follow the rules in .claude/skills/github_project.rules.md, .claude/skills/github_issue.rules.md, and .claude/skills/github.rules.md

Plan Only (--only_plan)

  • With --only_plan, follow .claude/skills/skill.rules.md section "Create Only a Plan with --only_plan"
  • Write the plan to github_project.tag_issues.<TAG>.md, then stop without executing the skill
    • Run the skill through "Write the Plan Files", and stop before "Get Approval"

Inputs

  • <TAG>: the prefix word, without colon (e.g., Noesis)
  • <PROJECT_URL>: the project URL in one of these forms
    • https://github.com/users/<OWNER>/projects/<NUM>
    • https://github.com/orgs/<OWNER>/projects/<NUM>
  • If either input is missing, ask the user for it

Workflow

Parse the Project URL

  • Extract <OWNER> and <NUM> from <PROJECT_URL>
  • Use <OWNER> and <NUM> in all gh project commands

Check Access

  • Private and public user projects need the read:project scope
  • Test access:
    > gh project view <NUM> --owner <OWNER> --format json
    
  • If it fails with missing required scopes [read:project], ask the user to run this command in the prompt, since it needs a browser and a device code
    ! gh auth refresh -h github.com -s read:project
    
    • Do not run it with the Bash tool: it waits for the browser and times out
    • -h github.com is required in a non-interactive shell
    • Wait for the user to confirm before continuing

Read the Items

  • Save the items to a file in the scratchpad directory, not in the repo:
    > gh project item-list <NUM> --owner <OWNER> --limit 500 --format json \
        > <SCRATCHPAD>/items.json
    
    • The default limit is 30: always pass --limit
    • Compare the saved item count with items.totalCount from gh project view
  • For each item, read these fields: content.number, content.type, content.repository, title
  • Treat items by content.type:
    • Issue: rename
    • PullRequest: keep unchanged (PR titles follow the UmdTask<N>_ convention)
    • DraftIssue: no issue number exists, so list it and skip it

Propose the New Titles

  • Apply these rules in order, per issue
    • Title already starts with <TAG>:: keep unchanged
    • Title starts with <TAG>_ (roadmap ID): replace _ with :
      • Bad: Noesis_PR_M12 Add tables
      • Good: Noesis: PR_M12 Add tables
    • Title contains <TAG> elsewhere: move the tag to the front and drop the redundant word
      • Bad: Organize Noesis codebase into components
      • Good: Noesis: Organize codebase into components
      • Bad: Noesis MVP: checker foundation
      • Good: Noesis: MVP checker foundation
    • Any other title: prepend <TAG>:
      • Good: Get the team gelled together becomes Noesis: Get the team gelled together
  • Drop redundant information in the new title
    • A second <TAG> word that repeats the prefix
    • A branch ID like UmdTask639_ when the issue number already identifies it
      • Bad: Noesis: Follow up to UmdTask639_Noesis_PR_S11
      • Good: Noesis: Follow up to PR_S11
  • Keep an existing second <TAG> mention when it is the subject of the sentence
    • Good: Noesis: Prove that Noesis improves over a single-sided market
  • Do not change anything else in the title: keep the roadmap IDs, the wording, and the case
  • Do not edit labels, status, body, or project fields

Write the Plan Files

  • Write a table with columns #, Before, After into github_project.tag_issues.<TAG>.md in the current dir
    • Include only the issues that change
    • Below the table, list the unchanged items by number with the reason (already prefixed, PR, draft issue)
  • Write the commands into github_project.tag_issues.<TAG>.sh
    • One line per changed issue, using the content.repository of that item:
      gh issue edit <ISSUE_NUM> --repo <OWNER>/<REPO> --title '<NEW_TITLE>'
      
    • Escape a single quote in a title as '\''
    • Start the file with the comment # NOT RUN. Review first.
  • Build both files with a script saved in a different directory than the downloaded JSON, and run it with python3 -I

Get Approval

  • Show the user the before / after table and the counts: changed, already OK, skipped
  • State the open decisions: the ID format, whether PRs are renamed, redundancy dropped
  • Do not run any gh issue edit before the user answers with a clear "go"
    • An answer to a decision question is not a "go"
    • An earlier "do not change the names" stays in force until the "go"
  • If the user changes a rule, regenerate both plan files and show the table again

Apply the Renames

  • Run the script after the "go":
    > bash github_projec
    
Полный SKILL.md на GitHub

Установить Github Project.Tag Issues в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Github Project.Tag Issues?

Rename the issues of a GitHub project to start with a tag, after review

Как установить скилл Github Project.Tag Issues?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Github Project.Tag Issues запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Github Project.Tag Issues с