fusion-issue-authoring
Skill2 starsChanged 2 months agoMITView on GitHub
Classify issue type, activate the matching agent mode for type-specific drafting, and enforce shared safety gates before GitHub mutation.
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- caveman-compressSkill
- fusion-core-servicesSkill
- fusion-dependency-reviewSkill
- fusion-designSkill
- fusion-framework-mockingSkill
- fusion-framework-testingSkill
- fusion-github-review-resolutionSkill
- fusion-issue-solvingSkill
- fusion-issue-task-planningSkill
- fusion-mcpSkill
- fusion-package-scribeSkill
- fusion-pm-mcpSkill
- fusion-backend-devSkill
- fusion-developer-appSkill
- fusion-developer-portalSkill
- fusion-devtoolsSkill
- fusion-help-apiSkill
- fusion-help-docsSkill
- fusion-help-integrationSkill
- fusion-infra-cliSkill
- fusion-roles-cliSkill
- fusion-rulesSkill
- fusion-skill-authoringSkill
- fusionSkill
- fusion-skillsSkill
- equinor-design-systemSkill
- fusion-code-conventionsSkill
- fusion-researchSkill
- fusion-rule-authorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
34 rules. About 0 are common, 20 are distinctive, and 14 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈20
Distinctive · estimate
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
Use when turning ideas, bugs, feature requests, or user needs into clear, actionable GitHub issues, and as top-level router for creating …
- Very specific: line 60
If required details are missing, ask concise clarifying questions from references/questions.md.
- Distinctive: line 61
If issue destination is unclear, ask explicitly where the issue should be created/updated before drafting mutation commands.
- Distinctive: line 73
If ambiguous, ask only essential clarifying questions.
- Very specific: line 80
When no explicit repository is given, check the active workspace for contributor guides (CONTRIBUTING.md, contribute/) that define default …
- Distinctive: line 81
If no routing guidance exists in the repo, ask explicitly where the issue should be created.
- Very specific: line 88
Run one focused duplicate search with mcp_github::search_issues and surface matches before drafting/publishing.
- Distinctive: line 89
Do not run repeated broad duplicate scans unless the user changes scope/title materially.
- Distinctive: line 97
Ask for content edits first.
- Distinctive: line 98
Ask explicit publish confirmation before mutation.
- Distinctive: line 99
Never publish/update in the same pass as first draft unless user explicitly confirms.
- Distinctive: line 110
If the host only exposes point label lookups and no cached label set exists yet, do not loop through labels one by one.
- Very specific: line 112
When assignee lookup is needed, cache candidate results for the active session keyed by owner/repo (or owner) and query.
- Distinctive: line 113
If rate limits block optional label or assignee enrichment, ask whether to continue without them instead of looping retries.
- Distinctive: line 117
After explicit confirmation, execute MCP mutations in this order:
- Very specific: line 123
If mutation fails due to missing MCP server/auth/config:
- Distinctive: line 130
Stop non-essential lookups and skip optional enrichments when rate limits are hit.
- Distinctive: line 131
Keep draft artifacts and return a safe retry plan instead of looping retries.
- Very specific: line 132
Prefer MCP tools over ad hoc gh api/GraphQL retries when equivalent MCP capability exists.
- Distinctive: line 133
When using GraphQL fallback: mutations cost 5 secondary-limit points each (vs 1 for queries), so batch fields into a single mutation call …
- Very specific: line 137
Only use type if the repository has issue types configured.
- Distinctive: line 138
Use cached issue types per organization when available.
- Very specific: line 139
Call mcp_github::list_issue_types only on cache miss or invalid cache.
- Very specific: line 140
If issue types are not supported, omit type for the rest of the session.
- Distinctive: line 145
use sub-issues for decomposition
- Distinctive: line 146
use sub-issue ordering to represent prerequisites
- Distinctive: line 147
ensure no contradictory dependency graph
- Very specific: line 149
Use detailed behavior and payload examples in references/instructions.md and references/mcp-server.md.
- Very specific: line 159
Use detailed authoring guidance in references/instructions.md.
- Very specific: line 183
Run mcp_github::issue_write create/update without explicit user confirmation
- Distinctive: line 190
Keep drafts concise and editable
- Distinctive: line 191
Prefer WHAT/WHY over implementation HOW in issue text
- Very specific: line 192
Use full repository issue references (for example owner/repo#123)
- Very specific: line 193
Use issue-closing keywords when closure is intended (for example fixes owner/repo#123, resolves owner/repo#123, or closes owner/repo#123)
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Issue Authoring
Agent modes
This skill uses internal agent modes for type-specific drafting logic:
agents/bug.agent.md: bug-focused issue drafting and triage structureagents/feature.agent.md: feature-focused scope and acceptance structureagents/user-story.agent.md: role/workflow/scenario-driven story structureagents/task.agent.md: checklist-first task decomposition and dependency planningagents/devils-advocate.agent.md: always-on quality collaborator that raises key concerns after classification (moderate mode) and runs a full structured interview when explicitly asked, when scope/criteria gaps are significant, or when invoked fromfusion-issue-task-planningwith two or more architecture-ambiguity signals present (interrogator mode)
Agent modes are activated internally based on issue type classification. Users never reference agent files directly. Shared gates (labels, assignee confirmation, draft review, publish confirmation, and mutation sequencing) remain in this skill.
When to use
Use when turning ideas, bugs, feature requests, or user needs into clear, actionable GitHub issues, and as top-level router for creating and updating issues.
Typical triggers:
- "create an issue"
- "draft a ticket"
- "turn this into a GitHub issue"
- "help me structure this work item"
- "update / maintain / clean up this issue"
- "add this as a sub-issue / set parent issue / link as child"
When not to use
- Implementing code changes
- PR authoring or review
- General research not resulting in an issue draft
- Mutating GitHub state without explicit user confirmation
Required inputs
Collect before publishing:
- Target repository
- Issue intent/context and type (Bug, Feature, User Story, Task)
- Existing issue number/URL when updating
- Repository label set (or confirmation labels are intentionally skipped). Cache full label set per repo for session; filter locally. Prefer host session memory; otherwise
.tmp/cache file (never committed). - Parent/related issue links and dependency direction (sub-issue vs blocking)
- Assignee preference (
@me, specific person, or unassigned). Reuse cached assignee-candidate results; skip searches when user gave@meor exact login.
If required details are missing, ask concise clarifying questions from references/questions.md.
If issue destination is unclear, ask explicitly where the issue should be created/updated before drafting mutation commands.
Instructions
Step 1 — Classify and route
Classify request as Bug, Feature, User Story, or Task, then activate the matching agent mode:
- Bug ->
agents/bug.agent.md - Feature ->
agents/feature.agent.md - User Story ->
agents/user-story.agent.md - Task ->
agents/task.agent.md
If ambiguous, ask only essential clarifying questions.
Devil's advocate pass: agents/devils-advocate.agent.md is always active in moderate mode — it surfaces the 2–3 most important concerns after classification without interrupting flow. When the user asks to be "grilled", says "stress-test this", when scope/criteria gaps are significant, or when invoked from fusion-issue-task-planning with two or more architecture-ambiguity signals present, escalate to interrogator mode for a full structured interview before the type-specific agent. The devil's advocate returns confirmed decisions and noted risks, then hands off to the type-specific drafting agent.
Step 2 — Resolve repository and template
- Resolve the destination repository before any mutation.
- 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. - If no routing guidance exists in the repo, ask explicitly where the issue should be created.
- Template precedence:
- repository template (
.github/ISSUE_TEMPLATE/) - specialist fallback template
- repository template (
Step 3 — Check duplicates
Run one focused duplicate search with mcp_github::search_issues and surface matches before drafting/publishing.
Do not run repeated broad duplicate scans unless the user changes scope/title materially.
Step 4 — Draft first
Before writing, check user preferences and session memory for a preferred draft location. If a stored preference exists, use it. If no preference is found and the intent is ambiguous, ask once and remember the answer for the session. Default to .tmp/{TYPE}-{CONTEXT}.md when no preference is found and there is nothing to ask about. Write the draft using GitHub Flavored Markdown.
Step 5 — Review and confirm
- Ask for content edits first.
- Ask explicit publish confirmation before mutation.
- Never publish/update in the same pass as first draft unless user explicitly confirms.
Step 6 — Apply shared gates
Before mutation, confirm:
- labels (only labels that exist in the target repo)
- assignee intent (
@me, specific login, or unassigned)
Shared gate cache policy:
- On the first label lookup for
owner/repo, fetch the repository label set once and cache it for the active session. Prefer/memories/session/<owner>-<repo>-labels.jsonwhen the host exposes session memory; otherwise use.tmp/issue-authoring-labels-<owner>-<repo>.json. - On cache hit, validate requested labels locally. Do not repeat point lookups for each requested label.
- If the host only exposes point label lookups and no cached label set exists yet, do not loop through labels one by one. Ask whether to skip optional labels or include only user-confirmed labels in the first
mcp_github::issue_writecall and handle a single rejection path. - Skip
mcp_github::search_userswhen the user already gave@meor an exact GitHub login. - When assignee lookup is needed, cache candidate results for the active session keyed by owner/repo (or owner) and query. Prefer
/memories/session/<owner>-<repo>-assignee-candidates.jsonor/memories/session/<owner>-assignee-candidates.json; otherwise use.tmp/issue-authoring-assignee-candidates-<owner>-<repo>.json. - If rate limits block optional label or assignee enrichment, ask whether to continue without them instead of looping retries.
Step 7 — Mutate via MCP (ordered)
After explicit confirmation, execute MCP mutations in this order:
mcp_github::issue_writecreate/update with the full known payload (title,body, and includelabels,assignees,typeonly when supported)- Optional single follow-up
mcp_github::issue_writeonly when required fields were unknown in step 1 and become available later mcp_github::sub_issue_writeonly when relationship/order changes are requestedmcp_github::add_issue_commentonly when blocker/status notes are explicitly requested
If mutation fails due to missing MCP server/auth/config:
- explain the failure clearly
- guide user to setup steps in
references/mcp-server.md - retry after user confirms setup is complete
Rate-limit behavior:
- Detect and report rate-limit failures clearly (
API rate limit exceeded,secondary rate limit, GraphQL quota exhaustion). - Stop non-essential lookups and skip optional enrichments when rate limits are hit.
- Keep draft artifacts and return a safe retry plan instead of looping retries.
- Prefer MCP tools over ad hoc
gh api/GraphQL retries when equivalent MCP capability exists. - When using GraphQL fallback: mutations cost 5 secondary-limit points each (vs 1 for queries), so batch fields into a single mutation call and pause at least 1 second between mutation calls.
- Respect
retry-afterandx-ratelimit-resetheaders before retrying any request.
type rule:
- Only use
typeif the repository has issue types configured. - Use cached issue types per organization when available.
- Call
mcp_github::list_issue_typesonly on cache miss or invalid cache. - If issue types are not supported, omit
typefor the rest of the session.
Step 8 — Validate relationships
Before linking:
- use sub-issues for decomposition
- use sub-issue ordering to represent prerequisites
- ensure no contradictory dependency graph
Use detailed behavior and payload examples in references/instructions.md and references/mcp-server.md.
Core behavior to preserve
- Classification-first workflow
- Route-to-agent-mode workflow
- Draft-first workflow
- Clarifying questions for missing critical context
- Explicit confirmation before any GitHub mutation
Use detailed authoring guidance in references/instructions.md.
Fallback template locations:
- Bug:
assets/issue-templates/bug.md - Feature:
assets/issue-templates/feature.md - User Story:
assets/issue-templates/user-story.md - Task:
assets/issue-templates/task*.md
Expected output
- Selected agent mode path
- Draft issue file path under
.tmp/ - Template source used (repository template path or fallback asset path)
- Proposed title, body summary, and labels
- Issue type plan
- Dependency plan (order + proposed sub-issue/blocking links)
- Assignee plan (who will be assigned, or explicit unassigned decision)
- Explicit status:
Awaiting user content approvalbefore any publish/update command - Any related/duplicate issue links found
- Exact create/update command(s) to be run after confirmation
- Created/updated issue URL/number only after confirmed mutation
- Suggested template maintenance follow-up when repository templates are missing or weak
Safety & constraints
Never:
- Run
mcp_github::issue_writecreate/update without explicit user confirmation - Publish/update an issue before the user confirms the draft content is correct
- Assume the user wants to publish to GitHub
- Request or expose secrets/credentials
- Perform destructive commands without explicit confirmation
Always:
- Keep drafts concise and editable
- Prefer WHAT/WHY over implementation HOW in issue text
- Use full repository issue references (for example
owner/repo#123) - Use issue-closing keywords when closure is intended (for example
fixes owner/repo#123,resolves owner/repo#123, orcloses owner/repo#123)
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
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.

