backlog-import
Skill3 starsChanged 19 days agoMITView on GitHub
Imports open issues from a tracker (GitHub Issues or GitLab issues) into the backlog: reads them, classifies each as a bug or a feature, picks up priority, severity, story points and area from its labels, skips pull requests, closed issues and issues already imported, shows the plan, and after the user approves hands each issue to feature-plan or bug-report to draft, estimate and write. Nothing is closed or edited in the tracker. TRIGGER when asked to import, bring in, migrate or sync issues into the backlog, to start a backlog from the existing issues, or to turn issue #N into a feature or bug. Not for creating a new item from a description: use feature-plan or bug-report.
- Commits and pushes
In this repository17 other files it gives its agents.
- backlog-cycleSkill
- backlog-forecastSkill
- backlog-reportSkill
- bug-fixSkill
- bug-reportSkill
- bugs-archiveSkill
- bugs-nextSkill
- bugs-statusSkill
- bugs-triageSkill
- decision-recordSkill
- feature-developmentSkill
- feature-planSkill
- features-archiveSkill
- features-nextSkill
- features-statusSkill
- features-triageSkill
- gitflowSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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
- Very specific: line 19
Import open tracker issues into the markdown backlog, one reviewed item at a time.
- Distinctive: line 35
Anything else: ask the user to paste or export the issues as JSON.
- Distinctive: line 37
Write the list to a temporary file outside the repository (your scratchpad or the system temp directory) and never commit it.
- Distinctive: line 61
Do not translate a label into a value the owning skill's own rules reject (a points label outside 1, 2, 3, 5, 8, 13, a priority outside …
- Very specific: line 72
Never write a backlog file directly.
- Distinctive: line 73
Never import without the user's approval of the plan, and never more than the plan showed.
- Very specific: line 74
Do not write the issue number as #<digits> in a PR title or body later.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
Import open tracker issues into the markdown backlog, one reviewed item at a time. The tracker is only read; the backlog is written by feature-plan and bug-report, so ids, estimation questions and confirmations stay theirs.
<backlog> is docs/backlog unless .backlog-kit.toml sets [paths] backlog_dir.
Input: Optionally a filter ("only the label ready", "issue 21", "the 5 oldest"). With none, the open issues of the repository the current directory belongs to.
Steps
1. Fetch the issues (read-only)
Find the host the way gitflow does (do not invoke it): [git] host in .backlog-kit.toml, else the origin URL (git remote get-url origin).
- GitHub:
gh issue list --state open --limit 100 --json number,title,body,labels,url,state(add--label <name>for a filter); withoutgh,mcp__github__list_issueswith theowner/repoderived fromgit remote get-url origin. - GitLab:
glab issue list --output json(add--label <name>). - Anything else: ask the user to paste or export the issues as JSON.
Write the list to a temporary file outside the repository (your scratchpad or the system temp directory) and never commit it. If the tracker is not reachable, say so and stop; do not use raw REST/curl calls.
2. Build the plan
python3 scripts/plan_import.py <repo-root> <issues.json> [--limit 10] [--json]Run it from this skill's base directory and show the ## Import plan as it is. It lists, per open issue, bug or feature, the priority (P0-P3), severity (S1-S4), story points and area that its labels state, and what it skipped (pull requests, closed issues, issues whose URL already appears in a brief under <backlog>/features/ or <backlog>/bugs/).
Label conventions it understands: bug/defect/regression, priority: high / P1, severity: major / S2, points: 5 (1, 2, 3, 5, 8, 13), area: <name>.
A bug without a severity label takes one from its priority; anything else stays empty, for the next step to ask.
3. Ask which to import
Print the plan, then ask with AskUserQuestion which issues to import: "All listed", "Specific ones (I'll list the numbers)", "None". Resolve a specific list against the printed one. Importing is capped by --limit (default 10) per run: tell the user how many more are waiting.
4. Hand each approved issue to the owning skill
For every approved issue, in order:
- Feature — invoke
feature-planwith the issue title and body as the description, and pass along the label-derived priority, area and points as suggestions. It drafts the user story and acceptance criteria, asks for the story points, confirms and writes. - Bug — invoke
bug-reportwith the title, the body (steps, expected, actual as far as the issue states them; unknown parts stay<unknown — needs repro>) and the severity and area as suggestions. It confirms and writes. - In both, put the issue URL in the brief (the
Technical notesof a feature, theNotesbullet of a bug) asImported from <url>. This is what stops the next run from importing it again.
Do not translate a label into a value the owning skill's own rules reject (a points label outside 1, 2, 3, 5, 8, 13, a priority outside P0-P3); leave it for the skill to ask.
5. Report
List what was imported (#N of the issue, the new feature number or Bug ID) and what was left, and remind the user that the tracker was not touched: issues stay open until the user closes them, for example after features-archive or bugs-archive.
Guardrails
- The tracker is read-only here: never comment on, label, close or edit an issue.
- Never write a backlog file directly. Rows, briefs and ids come from
feature-planandbug-report. - Never import without the user's approval of the plan, and never more than the plan showed.
- Do not write the issue number as
#<digits>in a PR title or body later; writeissue 21. In a brief, the URL is enough. - Never run
git commit,git pushor open a PR.
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
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.

