Catalogue / create-issues-from-text
create-issues-from-text
MITSignedUse when break down assignment into multiple structured issues--- name: create-issues-from-text description: Use when break down assignment into multiple structured issues license: MIT metadata: author: Petr Král (pekral.cz) ---
Constraints
- Preserve original assignment (store in parent or first issue)
- Write every issue it derives as a business-only assignment, as
@rules/compound-engineering/assignment.mddefines - Do not implement code
- Assign all issues to current user
- Use CLI tools
---
Execution
1. Analyze Assignment
- Understand scope and dependencies
- Identify logical implementation steps, and cut them as *Split into vertical slices* below defines
2. Propose Breakdown
- List steps with short descriptions
- Proceed directly to step 3; do not gate on a confirmation round when the breakdown is unambiguous
3. Create Issues
- Before every issue is created, apply *Guard for a possible vulnerability* below; a withheld item gets no issue, and no created issue, the EPIC parent included, names or describes it
- One issue per step
- Ensure each is independently deliverable: it delivers a working result on its own (*Split into vertical slices*)
- For every issue created — flat breakdown, EPIC parent, and sub-issues alike — select and apply the single most relevant existing label per
@rules/compound-engineering/tracker.md*Label tracker issues, and keep the labels true*; this is additive to, and independent of, the structuralEPIClabel from *EPIC parent & sub-issues* below - Right after the issues are created and verified, triage every issue this run created — flat breakdown, EPIC parent, and sub-issues alike — and no other, as
@rules/compound-engineering/tracker.md*Triage every GitHub issue an agent creates, right after it is created*. A withheld item has no issue and is not triaged
4. Output
- Return list of created issues with URLs, and the list of withheld items with their reasons
- Report the triage result of each created issue, and name each untriaged issue with the reason
---
Guard for a possible vulnerability
This section is the single owner of the guard. @skills/create-issue/SKILL.md and @skills/do-it/SKILL.md step 5 reference it and do not restate it. The public-disclosure guard stays the L3 source of the rule.
- Check the visibility of the repository the issue is created in, once per target, with
gh repo view <owner/name> --json isPrivate. Use the same<owner/name>that the create call gets. A result that is nottrue, a check that fails, and a target whose visibility cannot be shown (a tracker that is not GitHub, for example) count as public. - On a public repository, create no issue for an item whose text describes an unfixed vulnerability: a missing or broken security control with an exploit path in code that already exists. Disclosing it on a public tracker is L3. This holds even when *Constraints* say to preserve the original assignment.
- No created issue names or describes a withheld item. This covers the title, the body, a comment,
## Context,## Dependencies, the preserved original text, and the EPIC parent, its title included. An item that depends on a withheld item is withheld too, and the report names it. - Report each withheld item to the operator as withheld, with the reason, and name the private routes: GitHub private vulnerability reporting and a draft security advisory. The operator decides the disclosure. The report goes to the operator only, never to a tracker, a comment, or a pull request.
- The other items continue. On a private repository every item is created as the steps above state.
---
Split into vertical slices
This section is the single owner of how an assignment is cut into issues. @rules/compound-engineering/backlog.md *Decomposition mode* step 2 and *EPIC parent & sub-issues* below reference it and do not restate it.
An issue is a vertical slice (a "tracer bullet"). It goes through every layer the feature needs — migration, model, Repository / ModelManager, Action, controller or Livewire component, UI, test — and delivers a working piece that is deployable on its own. A horizontal issue (a backend issue, then a frontend issue) is not a slice. The first one merges with no visible effect. The second cannot be tested until the first lands. A design mistake shows only when the two are joined.
- The first issue is the simplest case end to end. It proves the design holds across all layers before any later issue builds on it.
- Each later issue adds one behaviour on top of a working slice. It is again a full cut through the layers it touches, and it leaves the codebase working.
- Split by behaviour, never by layer or by application area. Do not create one issue per layer. Do not bundle two unrelated behaviours into one issue either.
Example for "export orders":
- #1 Export the selected orders to CSV (the simplest case, end to end).
- #2 Add a date filter to the export.
- #3 Run the export in the background through the queue for large volumes.
A wide refactor — expand, migrate, contract
A refactor that touches too many places for one pull request (for example renaming a column status to state that 40 places use) is split in time, not by layer. Every phase is its own issue, and each issue lists the phase before it in ## Dependencies.
- Expand. Add the new form next to the old one and write both. Nothing breaks.
- Migrate. Switch the callers to the new form in batches. Each batch is its own issue and one pull request, small and green, and lists Expand in
## Dependencies. - Contract. When nothing reads the old form any more, remove it. The Contract issue lists every Migrate batch in
## Dependencies.
For a database column, @rules/sql/optimalize.md *Deploy-safe schema changes* owns the expand → backfill → contract deploy order. This section only splits the work into issues along that order. The backfill ships with the Expand issue (or as its own issue right after it), and every Migrate issue that switches a reader lists it in ## Dependencies.
---
Issue Structure
Use the template defined in templates/issue-structure.md. It is the business-only shape of @rules/compound-engineering/assignment.md. A JIRA issue uses templates/issue-structure-jira.md instead, with the section titles in the language of the tracker (*The shape in a JIRA description*).
The body opens with *What this is about* as plain text, then an open block for each other section, and the preserved original text is the last block, *Original assignment*, which is the only collapsed one (*The shape in a GitHub issue body — the opening text, open blocks, and a collapsed original*): nothing that *What an assignment never contains* lists goes into an issue, and a security requirement of the original is restated as a business rule. The technical detail of the original assignment stays in the preserved original text. When an issue text mentions another issue of the same tracker, the output reports each missing native link with its recommended type, as that rule states.
---
EPIC parent & sub-issues
Use this when the assignment bundles several behaviours that are each delivered as their own vertical slice (e.g. an export, its date filter, and its background run). Instead of a flat list of peer issues, build a parent → children tree so the whole effort is trackable from one place.
> A human approves the tree before any of it is created (L2). Present one confirmation package first — the parent's title and scope, one line per proposed sub-issue, the dependencies, and the resolve order — and wait for the user to approve it in words. Only that approval permits the writes below, and only for the pieces it names. Silence is not approval, the original request is not approval, and an approval given for one package does not carry to a changed split. Without it, report the proposed breakdown and stop: the pieces are in the report, so nothing is lost. A flat list of peer issues is outside this gate and keeps its existing consent (@rules/compound-engineering/backlog.md *Decomposition mode*).
- Pick (or create) the parent. When the assignment already has a tracker item, that item becomes the EPIC parent. When the assignment is a described task with no tracker item, create the parent issue first, carrying the full original assignment in its body.
- Label the parent `EPIC`. Apply the
EPIClabel to the parent. Create the label once if the repository does not have it yet (gh label create EPIC --description "Tracks a cross-cutting effort split into sub-issues" --color 5319e7), then ignore the "already exists" outcome on subsequent runs. - Create one sub-issue per vertical slice. Cut the sub-issues as *Split into vertical slices* above defines. Each sub-issue is an independently deliverable, business-only assignment (same
templates/issue-structure.mdstructure) that delivers a working piece through every layer it needs. Never create one sub-issue per layer or per application area. - Link every sub-issue back to the parent (both directions).
- In each sub-issue body, reference the parent with
Part of #<parent>so the relationship is visible from the child. Place the line after the last block of the body, never before the opening text, so *What this is about* stays the first text of the body. - In the parent body, keep a checkable task list of the children —
- [ ] #<child>per sub-issue — under a## Sub-issuesheading, so the parent shows the full breakdown and progress. Place the heading and the list after the last block of the parent body, never before the opening text.
- Order. Fill each sub-issue's
## Dependenciesso a resolving run can pick a dependency-aware order — dependencies before dependents. - Triage. Triage the parent only when step 1 created it, and every sub-issue, right after they are created, as step 3 of *Execution* states. An existing tracker item that became the parent is not triaged.
- Output. Return the
EPIC-labelled parent URL plus the list of linked sub-issue URLs, the planned resolve order, and the untriaged issues with their reasons.
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 10.2 kB | 16c409538b2c |
| SKILVAULT_SOURCE.json | 1.3 kB | 91331a24c2c1 |
| THIRD_PARTY_NOTICES.md | 1.1 kB | aef1ecb399c8 |
| templates/issue-structure-jira.md | 790 B | 512094064d4b |
| templates/issue-structure.md | 1.1 kB | 920452be5107 |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | 851162fcceda | 2 Dec 2026 |
Locking a skill to one version needs Pro.