Skip to content
Back to skills

Write Issue

ASecurity

Draft and open a GitHub issue for nestjs-langchain with the project's format, the right labels (type, MoSCoW priority, breaking, good first issue) and milestone. Use when the user wants to create, write, open or file an issue, report a bug, or turn an idea/discussion into a tracked task.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 6, 2026
ai-agentsgobashnodegitapici/cddocumentation

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned November 6, 2026

npx -y skills add Martin-Bruel/nestjs-langchain --skill write-issue --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Write Issue?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Write Issue
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/martin-bruel-write-issue/badge)](https://www.skillsdirectory.com/skills/martin-bruel-write-issue)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: write-issue
description: Draft and open a GitHub issue for nestjs-langchain with the project's format, the right labels (type, MoSCoW priority, breaking, good first issue) and milestone. Use when the user wants to create, write, open or file an issue, report a bug, or turn an idea/discussion into a tracked task.
argument-hint: "[short description of the problem or idea]"
---

# Write an issue

Goal: an issue that someone (a human or Claude via `/implement-issue`) can implement without
re-asking what was meant. Project rules (language, approvals) are in `CLAUDE.md`.

## 1. Understand before writing

1. Restate the need in one sentence. If the scope is ambiguous (what is in, what is out, what
   problem it solves), ask the user with `AskUserQuestion` before drafting.
2. Look for duplicates and related work:
   ```bash
   gh issue list --state all --search "<keywords>" --limit 20
   ```
   If an issue already covers it, stop and propose to comment on it instead.
   Note the related issues (RFCs, parents, blockers) to cite them as `#N`.
3. Read the code concerned (`lib/`, `tests/`, `README.md`) so that the context quotes the real
   names, files and behaviour, not guesses.

## 2. Pick the labels and the milestone

Always read the current labels and milestones, they may have changed:

```bash
gh label list --limit 100
gh api 'repos/:owner/:repo/milestones?state=all' --jq '.[]|"\(.title) (\(.state)): \(.description)"'
```

At the time of writing, the rules are:

| Axis | Labels | Rule |
|---|---|---|
| Type (exactly one, two when both are true) | `bug`, `feature`, `refactor`, `technical`, `test`, `documentation`, `CI/CD`, `rfc` | `refactor` = code restructuring with no behaviour change. `technical` = tooling, build, typing. `rfc` = a design discussion to settle *before* any implementation |
| Priority (exactly one, MoSCoW) | `must` comes first: what the project cannot do without · `should` important, not vital · `could` when there is room · `won't` not now: waits for a user's request | Propose one, the user confirms |
| `breaking` | when the change alters the public API (anything exported from `lib/index.ts`, module options, decorator behaviour, a thrown error type, a peer dependency floor) | |
| `good first issue` | see below | |
| `help wanted`, `question` | only if the user asks | |

**`good first issue`** only when *all* of these hold:
- the scope is well delimited: the files to touch are known and few
- no open design decision remains (nothing that would need an `rfc` or a question to the maintainer)
- not `breaking`, not `must`: it can wait for a newcomer
- the acceptance criteria are verifiable by a newcomer (a test to add, a command that must pass)

When in doubt, do not add it.

**Milestone**: one per big subject (at the time of writing `Structured output`, `Streaming`,
`MCP`, `RAG`). Set the one the issue belongs to, follow-ups of a shipped subject included; none
when it belongs to no subject. A new subject's milestone is the user's to create.

## 3. Draft with the project's format

Title: a plain sentence, no conventional-commit prefix, code in backticks, stating the problem
or the outcome. Examples from the repo:
- `` `z.int()` on a `number` parameter is rejected as contradicting the signature ``
- `` Add an `isGlobal` option so one agent can serve several feature modules ``

Body (omit the sections that bring nothing):

```markdown
## Context

What exists today (real code excerpts if useful), why it is a problem, links to related issues.

## Decisions

Only if choices were already made (in an RFC, with the user). Numbered, each with its reason.
Cite the source: "Decided in #124 (point 3)".

## Sketch

Optional: the target API or a code shape. Mark what is still open.

## Acceptance criteria

- [ ] Observable, verifiable items (behaviour, test, doc, README, migration note)
- [ ] For `breaking`: "Listed in the next major's breaking changes"
```

For a `bug`: in Context, give the reproduction (minimal code), the expected and actual
behaviour, and the version.

Style: short sentences, concrete, no filler. State the *why* of every decision.

Never cite an issue, PR, discussion or commit of another repository (`owner/repo#N` or its URL),
in the issue or in any comment: GitHub shows a link back to this project on their side, and no
later edit or deletion removes it. Describe the upstream behaviour from the installed code instead
(`node_modules/<package>/dist/<file>:<line>`, with the version).

## 4. Validate, then create

1. Show the user the title, labels, milestone and body, and adjust until they approve.
2. Create it from a file to keep the Markdown intact (`--milestone` only when it has one):
   ```bash
   gh issue create --title "<title>" --label "feature,should" --milestone "<milestone>" \
     --body-file <scratchpad>/issue.md
   ```
3. Give back the issue URL. If it relates to others, offer to add a comment linking it on them.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.