agentleFS
felixgollnhuberfelixgollnhuber/dienstweg/.agents/skills/create-issue/SKILL.md

create-issue

Skill1 starsChanged 5 months agoMITView on GitHub

Draft a new Linear issue following the dienstweg project schema - interference check plus collaborative drafting. Use when the user wants to create, open, or file a backlog issue / ticket / task for this repository. Creates ONLY the backlog issue; no code, branch, or worktree.

22 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-pr, review-pr and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SentrySkill

    create-pr

    Create pull requests following Sentry conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review. Follows Sentry's code review guidelines.

    Also in 9 projects that use this

  • Microsoft AzureSkill

    review-pr

    Review a pull request for functional issues, coding guideline adherence, and best practices. Use this when asked to review, inspect, or provide feedback on a pull request (Azure DevOps or GitHub). Proposes comments for user approval before posting.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    git-workflow

    Squad branching model: dev-first workflow with insiders preview channel

    Also in 3 projects that use this

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 4 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 9 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

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

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

    Read dienstweg.config.json at the repo root.

    line 14
  2. Very specific:

    Read dienstweg.local.md if it exists - its rules apply in addition to this skill.

    line 15
  3. Very specific:

    Use the Linear MCP tools (list_teams, list_issues, save_issue, ...

    line 17
  4. Distinctive:

    If no topic was provided: ask the user for it (a title idea + 1-3 sentences of context).

    line 21
  5. Distinctive:

    If the topic is a single vague keyword: ask what concretely should happen before starting step 2.

    line 22
  6. Distinctive:

    Run in parallel (no dependencies):

    line 27
  7. Very specific:

    If a project is set: list_milestones project="<projectId>" for the assignment in step 5.

    line 31
  8. Very specific:

    Single-writer locks in the affected area: if the area from step 1 matches a single-writer:<area> label (config.areas.singleWriter), check …

    line 40
  9. Distinctive:

    If an existing issue already covers the topic: STOP, show the user the hits and ask whether the old issue should be used/extended instead, …

    line 45
  10. Distinctive:

    Project + milestone: default from config; milestone only if one fits.

    line 55
  11. Distinctive:

    Before creating: show the user the full body + metadata (title, project, milestone, labels, priority, relations) and get explicit approval.

    line 93
  12. Distinctive:

    If the conflict table had hits and the user decided to create the issue anyway: list the conflicts again at the end with the reasoning.

    line 117
  13. Distinctive:

    No code changes, no branch/worktree creation, no build/setup runs in this skill.

    line 121
  14. Very specific:

    NO state="In Progress", NO assignee="me" without an explicit user request.

    line 122
  15. Distinctive:

    If an existing issue covers the topic: by default create no new issue.

    line 125
  16. Very specific:

    When unsure about the area: prefer single-writer:<area> over a wrong parallel-safe.

    line 126

“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “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
<!-- GENERATED by dienstweg v0.3.1 - DO NOT EDIT. Project values live in dienstweg.config.json, project-specific rules in dienstweg.local.md. Run `dienstweg update` to upgrade. -->

You are creating a new Linear issue about the topic the user gave you (the text of their request; if none was given, ask for it - do not guess). Goal: a complete, cleanly planned issue following the project convention (see the dienstweg block in AGENTS.md) - description template, AC, DoD, correct labels, project assignment - without conflicting with issues that are currently in flight.

Hard rule up front: this skill changes no code, creates no branch, initializes no worktree and sets no state to "In Progress". All of that happens later via the start-task skill. Here we only create a backlog issue.

Step 0 - Load the project config

  • Read dienstweg.config.json at the repo root. All config.* references below come from this file.
  • Read dienstweg.local.md if it exists - its rules apply in addition to this skill.
  • Respond to the user in config.language.
  • Use the Linear MCP tools (list_teams, list_issues, save_issue, ... - the tool prefix depends on the installed Linear MCP server).

Step 1 - Understand the topic

  • If no topic was provided: ask the user for it (a title idea + 1-3 sentences of context). Do not guess.
  • If the topic is a single vague keyword: ask what concretely should happen before starting step 2. An interference check without a clear scope is wasted time.
  • Roughly identify the area (compare with config.areas.highRisk and config.areas.singleWriter). This drives labels, risks and DoD gates later.

Step 2 - Load repo + Linear context

Run in parallel (no dependencies):

  • list_teams -> find the team config.tracker.linearTeam (default team for this repo).
  • list_projects -> list active projects. Default: config.tracker.defaultProject (null = no project, team backlog). If the user explicitly named another project, use that.
  • If a project is set: list_milestones project="<projectId>" for the assignment in step 5.
  • list_issue_labels team="<config.tracker.linearTeam>" -> cache existing labels (especially parallel-safe and all single-writer:<area>). Important: without the team parameter, team-scoped labels are missing. If a needed label does not exist, create it in step 5 via create_issue_label - but only after explicit user approval.

Step 3 - Interference check (mandatory, parallel to step 2)

Goal: find issues that could collide with the planned topic - by content, by shared files/modules, or through single-writer locks. Run all of these checks (batch them):

  1. All actively running issues: list_issues team="<team>" state="In Progress" - the hottest conflict candidates (branches/worktrees exist).
  2. All "In Review" issues: list_issues team="<team>" state="In Review" - open PRs might already cover the scope.
  3. Single-writer locks in the affected area: if the area from step 1 matches a single-writer:<area> label (config.areas.singleWriter), check list_issues label="single-writer:<area>" state="In Progress" and state="In Review".
  4. Topically similar backlog issues: list_issues team="<team>" state="Backlog" and state="Todo", filter locally on title keywords (case-insensitive). With more than 50 hits, evaluate only the top matches.

Build a conflict table from the results (issue, state, area/label, conflict type, impact on the new issue).

If an existing issue already covers the topic: STOP, show the user the hits and ask whether the old issue should be used/extended instead, or the new issue is still a separate scope.

Step 4 - Draft together (present, do not create yet)

  • First present the conflict table compactly (even when empty - then say explicitly "no interference found").
  • Then ask as many questions as needed, one at a time. Two or three extra questions beat one silent assumption. Typical topics:
    • Title: propose + confirm. Short, descriptive, without prefix (Linear assigns it).
    • Scope boundaries: this issue vs. follow-up issue?
    • Acceptance criteria: 2 to max 6-8 atomic, verifiable criteria, one checkbox each.
    • Priority: Urgent (1) / High (2) / Medium (3) / Low (4). Default Medium.
    • Project + milestone: default from config; milestone only if one fits.
    • Labels: exactly one of parallel-safe OR single-writer:<area> is mandatory. Area unclear -> ask the user.
    • Relations: parent / blocked-by / blocks? If not settable via save_issue: note in ## Setup as Blocked by: <issuePrefix>-XXX.
    • High-risk area (config.areas.highRisk) touched? Then tighten the DoD (step 5).
    • Sketch the plan now? Optional; if "no", ## Plan stays a placeholder for start-task.

Step 5 - Compose the description from the template

Build the complete description following the mandatory template:

## Plan
<if roughly planned in step 4: here; otherwise: "TBD - will be filled by start-task">

## Acceptance Criteria
- [ ] AC #1
- [ ] AC #2

## Definition of Done
- [ ] <config.gates.build> exit 0
- [ ] Acceptance criteria fulfilled + checked off
- [ ] No unauthorized side effects (cronjobs/webhooks/destructive scripts)
- [ ] High-risk areas (<config.areas.highRisk>) verified
- [ ] No secrets in the code
- [ ] Single-writer lock checked (parallel-safe or lock-free at merge time)
- [ ] <config.review.ensembleSize>x ensemble review executed
- [ ] PR base = <config.git.baseBranch>
<one checkbox line per entry in config.extraDoD>

## Setup
- Worktree: <set by start-task>
- Single-writer lock: <parallel-safe | single-writer:<area>>
- Blocked by: <issuePrefix>-XXX (if any)

## Final Summary
<set before state=Done>

Before creating: show the user the full body + metadata (title, project, milestone, labels, priority, relations) and get explicit approval. On change requests go back to step 4 - no silent adjustments.

Step 6 - After approval: create the issue

  1. save_issue without id (create mode): team from config, title, description (full body), project (if set), milestone (if assigned), priority, labels, state = the team's default backlog state. assignee only on explicit user request.
  2. Verify success: extract the assigned identifier, re-read with get_issue. If sections/labels are missing: patch via another save_issue.
  3. Relations that were not settable via save_issue: note them in a comment (save_comment) + tell the user the link still needs a click in the Linear UI.

Step 7 - Final output to the user

Issue created: <issuePrefix>-XXX - <title>
URL: <Linear URL>

Project: <name or ->
Milestone: <name or ->
Priority: <value>
Labels: <list>
Conflict status: <short>

Next step (optional):
Run the start-task skill on <issuePrefix>-XXX - create worktree + plan for implementation.

If the conflict table had hits and the user decided to create the issue anyway: list the conflicts again at the end with the reasoning.

Hard rules

  • No code changes, no branch/worktree creation, no build/setup runs in this skill. Pure Linear MCP drafting.
  • NO state="In Progress", NO assignee="me" without an explicit user request.
  • Reference labels ONLY from the list_issue_labels team="..." result; new labels only after user approval via create_issue_label.
  • Description ALWAYS follows the template - do not invent your own structure.
  • If an existing issue covers the topic: by default create no new issue; let the user decide.
  • When unsure about the area: prefer single-writer:<area> over a wrong parallel-safe.
  • Batch independent tool calls (steps 2 + 3).

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.