Skip to content

Commit 69f84f8

Browse files
committed
refactor: extract GitHub issue search from AGENTS.md into a skill
Move the "Issue Context" section out of AGENTS.md (which runs on every conversation) and into .claude/skills/github-issues/ so it can be invoked on demand instead.
1 parent 27f156a commit 69f84f8

2 files changed

Lines changed: 18 additions & 10 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: github-issues
3+
description: Scan the BlockNote GitHub repository for issues and PRs relevant to the current task. Use when starting work on a new feature, bug fix, or other code modification.
4+
---
5+
6+
This skill searches the BlockNote GitHub repository for existing issues and PRs that are relevant to the task at hand.
7+
8+
# When to use
9+
10+
Use this skill when prompted to write a new feature, fix a bug, or make some other modification to the code. It should be invoked before writing any code to surface relevant context from the project's issue tracker.
11+
12+
# Steps
13+
14+
1. Use the GitHub CLI (`gh`) to search for issues and PRs in the repository that are relevant to the user's task. Search both open and closed issues/PRs using relevant keywords.
15+
2. Summarize the findings:
16+
- If nothing relevant is found, report that and proceed with the task.
17+
- If relevant issues or PRs are found, present a summary and prompt the user on next steps before writing code.
18+
3. Once the task is completed, remind the user of the relevant issues and PRs found during this initial investigation so they can be referenced or closed as appropriate.

AGENTS.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22

33
BlockNote is a block-based rich text editor for the web. It's designed as a batteries-included product that offers a solid user experience with minimal setup. However, it also offers extensibility via plugins and custom block types.
44

5-
# Issue Context
6-
7-
When prompted to write a new feature, fix a bug, or make some other modification to the code, the project repository on GitHub should be scanned for issues and PRs which are relevant to the task at hand. Before writing any code, a summary of these should be given. If nothing relevant is found, the task can be started immediately. Otherwise, the user should be prompted on next steps.
8-
9-
This should only be done for new conversations. If GitHub was already scanned in the same conversation, it does not need to be scanned again.
10-
11-
Once the task is done and the feature is completed, bug is fixed, etc, the user should be reminded of the relevant issues and PRs found in the initial investigation.
12-
13-
The GitHub CLI should be used to browse issues and PRs.
14-
155
# Common Commands
166

177
All commands below are listed under `package.json` in the project root. See `vite.config.ts` for relevant configuration settings.

0 commit comments

Comments
 (0)