create-issue

A set of instructions for working in the moztw/www.moztw.org repository. It explains how agents should collaborate, which files are the editable source, and how generated HTML is built.

In plain words
What is it for?
Use it when changing that repository's .shtml templates or include files, coordinating work through separate Git worktrees, and preparing generated HTML with the project's Grunt build.
Why use it?
It prevents agents from editing generated files in the wrong place or interfering with another agent's work. It also makes the required review and build approval process clear.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/loopdive/js2/create-issue
Any agent
npx skills add loopdive/js2 --skill create-issue
Clone the repo
git clone --depth 1 https://github.com/loopdive/js2

Made for: Claude Code, Codex.

Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 848 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00028 $0.00848
Opus 5 $0.00014 $0.00424
Sonnet 5 $0.00006 $0.00170
Haiku 4.5 $0.00003 $0.00085

Measured yesterday against content hash af40af8db7b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-issue scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/create-issue/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Create Issue from Failure Pattern

Input

Describe the failure pattern: error message, test category, approximate count.

Steps

  1. Reserve the next issue id atomically (#2531) — never hand-pick a number (a parallel PR may grab the same one; the dup only fails in the merge_group and wedges the queue):
NEW=$(node scripts/claim-issue.mjs --allocate)   # prints the reserved id
echo "$NEW"

This reserves the next id unique against origin/main ∪ every open PR's added issue files ∪ ids already reserved on the orphan ref, with first-push-wins atomicity. Use $NEW as {N} below. (The CI gate check:issue-ids:against-main rejects any PR that introduces a main-colliding id, so this is enforced, not just advised.)

  1. Find sample test files matching the pattern:
grep -l "<error pattern>" /workspace/benchmarks/results/test262-results.jsonl | head -5

Or search the JSONL:

python3 -c "
import json
matches = []
with open('benchmarks/results/test262-results.jsonl') as f:
    for line in f:
        r = json.loads(line)
        if '<pattern>' in r.get('error',''):
            matches.append(r['file'])
print(f'Found {len(matches)} matching tests')
for m in matches[:5]:
    print(f'  {m}')
"
  1. For each sample, extract the relevant source lines from the test file.

  2. Write the issue file:

---
id: {N}
title: "{description} ({count} tests)"
created: YYYY-MM-DD
updated: YYYY-MM-DD
priority: {high|medium|low}
feasibility: {easy|medium|hard}
depends_on: []
goal: core-semantics
es_edition: {es5|es2015|es2016|es2017|es2018|es2019|es2020|es2021|es2022|es2023|es2024|multi|n/a}
language_feature: {normalized-feature-slug}
task_type: {bug|feature|test|refactor|planning}
---

# #{N} -- {title}

## Problem

{count} tests fail with {error pattern}. {1-2 sentence description}.

### Sample files with exact errors and source

**1. {test name}**
File: `{path}`
Error: `{exact error}`
```js
// Relevant source lines

Root cause: {why the compiler produces wrong output}

ECMAScript spec reference

{Link to the relevant spec section(s) at https://tc39.es/ecma262/} Example: §7.1.1 ToPrimitive

If multiple sections apply, list each with a one-line note on which step or sub-algorithm is relevant to this issue.

Root cause in compiler

{Which codegen function/file produces this pattern}

Suggested fix

{High-level approach — specific enough for architect to spec}

Acceptance criteria

  • {specific test files that must pass}
  • ={target} of {total} tests fixed

Read the full file on GitHub · 111 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 111 lines · 28 tokens per session scan A af40af8db7b2

Subscribe to this mod's changes

create-issue is a skill published in the GitHub repository loopdive/js2 (59 stars, last pushed yesterday), licensed Apache-2.0. It adds 28 tokens to every session and 848 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.