{"data":{"slug":"discovered-1ff6aacd44c44ddbe50835b540f2f687c39518b44797e224","title":"Issue Create","summary":"Drafts an issue from the current conversation and writes it to `notes\/<project>\/<topic>\/<task>\/issue.md` beside a fresh `task.json` or replaces the body of an existing `issue.md` on a refresh.","url":"https:\/\/skillshunter.net\/skills\/discovered-1ff6aacd44c44ddbe50835b540f2f687c39518b44797e224","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-1ff6aacd44c44ddbe50835b540f2f687c39518b44797e224","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-1ff6aacd44c44ddbe50835b540f2f687c39518b44797e224.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-1ff6aacd44c44ddbe50835b540f2f687c39518b44797e224\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before writing the issue, check the issue against `CLAUDE.md` task shaping rules and report the result \u2014 do not rewrite the issue to pass. An issue is a notes entry, not a GitHub issue, and must be written to the `notes` directory under the project, topic, and task path.","instructions":"---\ndescription: Gather the facts an issue needs, resolve its project, topic and task name, and write it to the task's notes directory as issue.md for me to edit\nallowed-tools: Bash(git branch:*), Bash(git remote:*), Bash(git rev-parse:*), Bash(pwd:*), Bash(ls:*), Bash(mkdir:*), Bash(date:*), Bash(nu -c:*), Read, Write, Edit\n---\n\nResolve which project, topic and task an issue belongs to, gather what has been\nestablished about the problem, and write the title and body from those facts into\n`notes\/<project>\/<topic>\/<task>\/issue.md` for me to edit.\n\n**An issue is a notes entry, not a GitHub issue.** These repos have one author,\nso the notes repo is the only tracker: the issue is `issue.md` beside the task's\n`task.json`, and writing both is what makes the task exist for `hwt` and `hdash`.\nNothing is filed anywhere else.\n\n**The facts come first and they constrain the text.** An issue is a problem\nstatement, so it may assert only what the gathering step actually established \u2014\nwhat was observed, where, and what reproduces it. A cause you have not verified is\na question in the body, not a claim. Show me the text before writing it.\n\nIssues are usually opened before any journal exists, so the conversation is the\nsource; on a refresh the existing `issue.md` is read as well.\n\n## Facts standard (applies to everything this skill writes)\n\n- **Evidence-gated:** Only call something done\/working when there is evidence \u2014\n  a passing test (name it), command output, an open\/merged PR (#), a commit SHA.\n  Without evidence, label it \"in progress\" \/ \"attempted\", never \"done\".\n- **No speculation:** Drop hedges and predictions (\"likely\", \"should\",\n  \"probably\", \"this will fix\"). State only what is known. If something is\n  unverified, say so plainly (\"not yet verified\").\n- **Cite the source:** Every non-obvious claim names its evidence inline \u2014 PR #,\n  commit SHA, file path, test name, or the exact command used.\n\n## Where an issue lives\n\n```\n~\/fun_repos\/hobby-mimisbrunnr\/notes\/<project>\/<topic>\/<task>\/\n    task.json    { \"done\": false, \"blocked\": null }   \u2014 the task exists\n    issue.md     the problem statement                 \u2014 what the work is\n```\n\n`issue.md` is zk-compatible:\n\n```markdown\n---\ntitle: \"<title>\"\ncreated: YYYY-MM-DD\ntags:\n  - issue\n---\n\n## Problem\n## Goal\n## Scope \/ acceptance criteria\n## Out of scope\n## Context\n```\n\n`hdash` shows the `title:` on the task's card, so it is a sentence about the\nproblem, not the task name. Issues migrated from GitHub also carry a `github:`\nline with the closed issue's URL; a refresh keeps it, a new issue never has one.\n\nThe three path components:\n\n- **Project** \u2014 a directory under `~\/fun_repos`. A project with no GitHub remote is\n  as good as any other; nothing here needs one.\n- **Topic** \u2014 directory-shaped (`[A-Za-z0-9._-]+`, no leading dot, no spaces).\n  Reuse an existing topic where one fits: `hwt topics -p <project>` lists them from\n  the notes tree. A new topic is fine when the work genuinely belongs to none of\n  them.\n- **Task** \u2014 a plain slug of the title: lowercase ASCII words joined by `_`, at most\n  40 characters, cut at a word boundary. No `gh-<n>` prefix \u2014 there is no number to\n  point at. It must not already exist anywhere under `notes\/<project>\/`, since\n  `hwt go` and `hwt restore` find a task by name across topics; pick a more specific\n  slug when it does.\n\n## The shape check (an issue is a task, so the shaping rules apply)\n\n`CLAUDE.md` -> **Task shaping** is the standard. Before writing the issue, check the\nissue against it and **report the result \u2014 do not rewrite the issue to pass.** A\nbadly shaped issue is usually a signal that the work is two issues, and that is my\ncall to make, not a wording problem to fix in the body.\n\nThree of the five rules are checkable from the text alone and are the ones to run\nhere:\n\n- **Rule 1** \u2014 does the issue name a user-visible behaviour? If it does not, it\n  must declare itself `enabling` and name the issue it unlocks. Never invent a\n  user-facing claim to make an issue pass; that is the specific failure the rule\n  exists to prevent.\n- **Rule 2** \u2014 is there a stated observation separating done from not-done? If the\n  conversation has not established one, say so rather than composing a plausible\n  one, and let me write it.\n- **Rule 4** \u2014 does the body contain an unanswered question? If it does, the\n  decision belongs in its own issue in front of this one.\n\nRules 3 and 5 are about the diff and the sequence, so they are checked at\nreview and merge time, not here.\n\nFor a **split**, say so plainly and propose the cut rather than writing one\nissue that holds several tasks. `\/task-split` is the pass for that.\n\n## Instructions\n\n1. **Determine the project:**\n\n   a. **From worktree path** (`~\/fun_worktrees\/PROJECT\/TOPIC\/TASK`): run `pwd`;\n   the **first** component is the project.\n\n   b. **From a main checkout**: `~\/fun_repos\/<project>` \u2014 `git rev-parse\n   --show-toplevel` and take the directory name.\n\n   c. Otherwise ask which project the issue belongs to.\n\n2. **Decide: new issue, or refresh an existing one?**\n\n   - I named a task, or the current worktree's notes dir already holds an\n     `issue.md` and the conversation is about that same work: a **refresh**.\n   - Otherwise a **new** issue. Working inside a worktree does not make the new\n     issue that task's \u2014 an issue found mid-task is usually a different task.\n\n3. **For a refresh, read the current `issue.md`** whole, and keep its body verbatim\n   in the facts \u2014 links, references and notes-to-self included. I decide what to\n   keep. Do not fold, merge or condense it.\n\n4. **Gather the facts from the conversation** \u2014 what was established this session,\n   with citations, under the layout below. Facts only: the command that failed and\n   its output, the file and line, the tasks mentioned. The title and body are\n   written from these in step 7, and assert nothing the facts do not.\n\n5. **Resolve topic and task** (see *Where an issue lives*):\n\n   - Topic: on a refresh, the existing directory's. Otherwise, inside a worktree\n     whose topic fits, the **second** component under `~\/fun_worktrees\/PROJECT\/`;\n     else the one from `nu -l -c 'hwt topics -p <project>'` that fits; else propose a\n     new one and say it is new. If the conversation gives no basis at all, **ask**.\n   - Task: on a refresh, the existing name. Otherwise slug the title, then\n     `ls ~\/fun_repos\/hobby-mimisbrunnr\/notes\/<project>\/*\/` to check it is unused.\n\n6. **Run the shape check** (see above) and **report the path you resolved** \u2014 say\n   when the topic would be new, and when a refresh would replace an existing body.\n   Report any shaping rule the issue fails, and stop for my decision when the\n   answer is that this is more than one issue.\n\n7. **Write it.** Write the title and body from the facts gathered above. Show me\n   both, and once I confirm:\n\n   a. **New issue:** `mkdir -p` the notes dir, write `task.json` as\n      `{ \"done\": false, \"blocked\": null }` (two-space indent, one key per line, the\n      shape `hwt` writes), and write `issue.md` with `created:` set to today\n      (`date +%F`).\n\n   b. **Refresh:** rewrite `issue.md` in place, keeping `created:`, `github:` and\n      any extra tags from the existing frontmatter. Never touch `task.json`, and\n      never touch an existing `## Progress` section \u2014 that is `\/issue-update`'s.\n\n   A task that waits on other work records it as a block, not a sentence in the\n   body, because a body cannot notice the work landing:\n   `nu -c \"use ~\/.config\/nushell\/hwt.nu *; hwt block --pr <url> --task <task> --project <project>\"`,\n   or `--reason` when there is no PR yet.\n\n   Leave `git add` \/ `commit` in the notes repo to me.\n\n8. **Report** the notes path and the title.\n\n9. **Suggest the follow-up** for a new issue: `hdash`, and **Start task** on its\n   card, or by hand `hwt restore <task>` then `hcdev wt <task>`. `hwt restore`\n   creates the worktree and its branch from the notes entry and leaves `task.json`\n   as it is.\n\n## Facts file layout\n\nFacts, with citations \u2014 the material the issue's own headings (Problem, Goal,\nScope, Out of scope, Context) are written from.\n\n```markdown\n## Observed\n- `<command run>` \u2192 <output, quoted>\n- <file>:<line> \u2014 <what is there>\n\n## Referenced this session\n- <project>\/<topic>\/<task> \u2014 <title>\n- <url>\n\n## Existing body (refresh only)\n<the current body, verbatim, in full>\n\n## Path\nnotes\/<project>\/<topic>\/<task> \u2014 topic <existing | new>, task <new | existing>\n\n## Unknown\n- <what was discussed but not established>\n```\n","use_cases":["Drafting an issue from a conversation for a specific project, topic, and task","Refreshing an existing issue by updating its body while preserving existing content","Creating a new task with an associated issue.md file in the notes directory"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/julianbieber\/hobby-tooling\/blob\/420f1f68d0f92201d2a7a51a0c463784e1e49405\/skills\/issue-create\/skill.md","source_commit":"420f1f68d0f92201d2a7a51a0c463784e1e49405","license":null,"version":null,"listing_approved_at":"2026-11-30","created_at":"2026-11-29T11:13:17.000000Z","updated_at":"2026-11-30T06:52:26.000000Z","seo_title":"Create an Issue from Conversation","seo_description":"Drafts an issue from the current conversation and writes it to the notes directory as `issue.md` for editing, following task shaping rules and ensuring accurate project,","seo_keywords":["issue creation","notes directory","task shaping","issue.md","project topic task","hwt topics","task.json"]}}