Skip to content

Commit e90fb97

Browse files
authored
docs: add issue routing guidance and contributor-guide-aware routing to fusion-issue-authoring (#112)
* docs: add issue routing guidance and contributor-guide-aware routing to fusion-issue-authoring * docs: exclude security vulnerabilities from fusion-issue-authoring guidance * docs: add security vulnerability disclosure reminder to issues section * docs: fix link to issue tracker for feature requests in issue authoring guidance
1 parent 859fd0c commit e90fb97

File tree

7 files changed

+67
-1
lines changed

7 files changed

+67
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"fusion-issue-authoring": patch
3+
---
4+
5+
Add contributor-guide-aware repository routing to issue authoring
6+
7+
- SKILL.md Step 2: read active workspace `CONTRIBUTING.md` / `contribute/` for routing rules before asking the user
8+
- `references/instructions.md`: add Repository routing note pointing to SKILL.md Step 2 as authoritative flow

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ Before requesting review, make sure your PR is:
5151

5252
If you are unsure about direction, open a draft PR early and ask for feedback.
5353

54+
## Issues and feature requests
55+
56+
Use the `fusion-issue-authoring` skill to draft and publish issues — it enforces draft-first review, correct routing, and consistent structure. See [Issue authoring guide](contribute/07-issue-authoring.md) for routing rules and usage.
57+
58+
Do not report security vulnerabilities via GitHub issues or `fusion-issue-authoring`; always follow [SECURITY.md](SECURITY.md) and Equinor CSIRT guidance instead.
59+
5460
## Full contribution guide
5561

5662
Use the full maintainer workflow in [contribute/README.md](contribute/README.md).

contribute/01-where-to-start.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@
3636
## Questions and uncertainty
3737

3838
If naming, safety constraints, or ownership are unclear, open a draft PR early and document the open questions in the PR description.
39+
40+
For issue routing and how to author issues, see [CONTRIBUTING.md](../CONTRIBUTING.md).

contribute/07-issue-authoring.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Issue authoring
2+
3+
All **non-security** issues related to this repository must be drafted and published using the **`fusion-issue-authoring`** skill.
4+
5+
The skill enforces draft-first review, reads this repository's contributor guides to resolve the correct destination automatically, and walks through a confirm-before-publish gate — so no issue lands in the wrong tracker or goes out half-baked.
6+
7+
> **Security vulnerabilities:** Do **not** use GitHub issues or the `fusion-issue-authoring` skill to report potential security issues. Instead, follow this repository's responsible disclosure process described in [`SECURITY.md`](../SECURITY.md).
8+
9+
## Where issues go
10+
11+
| Issue type | Repository |
12+
|---|---|
13+
| Bug, CI failure, tooling error, skill regression | [equinor/fusion-skills](https://github.com/equinor/fusion-skills/issues) |
14+
| Feature, user story, task, improvement | [equinor/fusion-core-tasks](https://github.com/equinor/fusion-core-tasks/issues) |
15+
16+
## Install the skill
17+
18+
If you don't have it installed, ask Copilot:
19+
20+
> "find a skill for issue authoring"
21+
22+
## How to use
23+
24+
Just describe what you want — the skill classifies, templates, routes, and drafts:
25+
26+
- "create an issue for X"
27+
- "draft a bug report"
28+
- "turn this into a task"
29+
- "update issue #123"
30+
31+
## Why the skill, not a manual issue form?
32+
33+
- Applies the right template (repository template or type-specific fallback).
34+
- Checks for duplicates before drafting.
35+
- Confirms routing against this repo's contributor guides — no wrong-tracker mistakes.
36+
- Enforces a confirm-before-publish gate — no accidental mutations.
37+
- Caches label and assignee lookups to minimize back-and-forth.
38+
- Ensures full issue references (`owner/repo#123`) and closing keywords are used consistently.
39+
40+
Skipping the skill means skipping these gates.

contribute/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ Then follow this path:
2222
If your change touches automation in `scripts/`, read [Repository scripts and code rules](06-scripts-code-rules.md) before opening a PR.
2323

2424
Why? Script changes can break CI, release flow, or both — and nobody enjoys surprise archaeology in pipeline logs.
25+
26+
## Reporting issues or requesting features?
27+
28+
Read [Issue authoring guide](07-issue-authoring.md) to learn which repo to use and how to draft issues with the `fusion-issue-authoring` skill.

skills/fusion-issue-authoring/SKILL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ If ambiguous, ask only essential clarifying questions.
7777
### Step 2 — Resolve repository and template
7878

7979
- Resolve the destination repository before any mutation.
80+
- When no explicit repository is given, check the active workspace for contributor guides (`CONTRIBUTING.md`, `contribute/`) that define default issue routing by type. Apply any routing rules found there before asking the user.
81+
- If no routing guidance exists in the repo, ask explicitly where the issue should be created.
8082
- Template precedence:
8183
1. repository template (`.github/ISSUE_TEMPLATE/`)
8284
2. specialist fallback template

skills/fusion-issue-authoring/references/instructions.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@ Goal: create clear GitHub issues fast, with draft-first review and safe mutation
2121
- Run sub-issue mutations only for relationships that actually changed.
2222
- If rate limits are hit, stop optional lookups and return a clear retry plan.
2323

24+
## Repository routing
25+
26+
Routing is repo-specific. When no explicit repository is given, read the active workspace's `CONTRIBUTING.md` and `contribute/` docs and apply any issue routing rules found there. See SKILL.md Step 2 for the authoritative flow. Never hardcode destinations in this skill.
27+
2428
## Workflow
2529

2630
1. Classify issue type (`Bug`, `Feature`, `User Story`, `Task`).
27-
2. Resolve destination repository.
31+
2. Resolve destination repository (apply contributor guide routing when in the active workspace context).
2832
3. Check template source in order:
2933
- repository template (`.github/ISSUE_TEMPLATE/`)
3034
- specialist fallback template

0 commit comments

Comments
 (0)