# Gsc writer

> Gsc writer is an open-source agent skill for developer tools. Guides an agent to write and review IW4X/MW2 GSC scripts with lint-first checks. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/back1ply/iw4x-toolkit/tree/main/skills/gsc-writer
- **Repository:** https://github.com/back1ply/iw4x-toolkit
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** gsc-writer
- **Collection:** https://github.com/back1ply/iw4x-toolkit
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill sets an agent up to write, edit and review GSC (Game Script) files for the IW4X build of Call of Duty: Modern Warfare 2. It explains that IW4 uses an older dialect unlike JavaScript, Python or later Black Ops GSC, and lists the constructs to avoid, such as the function keyword, var declarations, push calls, null comparisons and object literals, along with the correct replacements.

The workflow asks the agent to inspect existing files with an outline tool, verify each built-in function's signature with a lookup tool, and check unfamiliar patterns against an anti-pattern reference before writing. After editing, the agent runs a linter on every touched file and applies fixes until it reports no errors. A pre-flight checklist and a validation checklist cover entity prefixes on waittill, notify and endon, wait calls in infinite loops, and thread usage.

The skill expects the gsc_* tools to be available as MCP tools or through the iw4x-toolkit command-line interface, and it works on GSC source files. It includes no bundled scripts.

## When your agent uses it

> Use when writing, editing, or reviewing GSC (Game Script) files for IW4X/MW2. MANDATORY for all GSC tasks. Provides IW4-specific rules, a pre-flight checklist, and a strict lint-then-fix workflow using gsc_lint, gsc_lookup, gsc_anti_patterns, and gsc_outline.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/back1ply/iw4x-toolkit/tree/HEAD/skills/gsc-writer)
- [License: MIT](https://github.com/back1ply/iw4x-toolkit/tree/HEAD/skills/gsc-writer)

## Features

- **Dialect restriction table:** Lists IW4 GSC constructs that are invalid and gives the correct replacement for each.
- **Lint-then-fix workflow:** Requires running the linter and fix commands on every touched file until no errors remain.
- **Pre-write verification steps:** Directs the agent to outline existing files and look up each built-in function before coding.
- **Event system rules:** Covers entity prefixes for waittill, notify and endon, plus threading and wait requirements.
- **Pre-flight and validation checklists:** Provides checklists to run before writing each function and before declaring a file finished.

## Good for

- Write a new game mode script for MW2 under IW4X
- Fix a GSC file that fails the linter
- Review an existing IW4X mod script for dialect mistakes
- Add a HUD or player event handler to an IW4 gametype

## Install

### Claude Code

This skill ships in the `iw4x-toolkit` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add back1ply/iw4x-toolkit
/plugin install iw4x-toolkit@iw4x-toolkit
```

Or copy only this skill to `~/.claude/skills/gsc-writer`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/back1ply/iw4x-toolkit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/gsc-writer &&
cp -R "$tmp/skills/gsc-writer" ~/.claude/skills/gsc-writer &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/gsc-writer` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/gsc-writer` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/back1ply/iw4x-toolkit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/gsc-writer &&
cp -R "$tmp/skills/gsc-writer" ~/.agents/skills/gsc-writer &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/gsc-writer` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/gsc-writer` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/back1ply/iw4x-toolkit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/gsc-writer &&
cp -R "$tmp/skills/gsc-writer" ~/.cursor/skills/gsc-writer &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/gsc-writer` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/back1ply/iw4x-toolkit.git --path skills/gsc-writer
```

Or copy the folder to `~/.gemini/skills/gsc-writer` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/gsc-writer`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/back1ply/iw4x-toolkit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/gsc-writer &&
cp -R "$tmp/skills/gsc-writer" ~/.copilot/skills/gsc-writer &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/gsc-writer` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/back1ply/iw4x-toolkit.git
```

Then copy `iw4x-toolkit/skills/gsc-writer` into your agent's skills folder as `gsc-writer`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What tools does Gsc writer need?

It uses the gsc_lookup, gsc_lint, gsc_fix, gsc_outline, gsc_anti_patterns and gsc_template tools, either as MCP tools or through the iw4x-toolkit CLI.

### Which game is Gsc writer for?

It targets IW4, Call of Duty: Modern Warfare 2 (2009), running on the IW4X platform, and warns that its GSC dialect differs from BO3 GSC.

### Does Gsc writer trigger automatically?

It describes itself as mandatory for all GSC writing, editing and review tasks.

### How do I install Gsc writer in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/gsc-writer to use it in all your projects, or to .claude/skills/gsc-writer in one project. Or install the iw4x-toolkit plugin, which includes it: /plugin marketplace add back1ply/iw4x-toolkit, then /plugin install iw4x-toolkit@iw4x-toolkit.

### Does Gsc writer run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Gsc writer?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Gsc writer?

The closest alternatives to Gsc writer are Skill writer, Agent skills, Spec driven develop, Skill creator and Go code review.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Skill writer](https://ai-powered.com/skills/skill-writer): Skill writer is an open-source agent skill for developer tools.
- [Agent skills](https://ai-powered.com/skills/agent-skills): Agent skills is an open-source agent skill for developer tools.
- [Spec driven develop](https://ai-powered.com/skills/spec-driven-develop): Spec driven develop is an open-source agent skill for developer tools.
- [Skill creator](https://ai-powered.com/skills/skill-creator-base44): Skill creator is an open-source agent skill for developer tools.
- [Go code review](https://ai-powered.com/skills/go-code-review): Go code review is an open-source agent skill for developer tools.
- [Technical writing](https://ai-powered.com/skills/technical-writing): Technical writing is an open-source agent skill for developer tools.
- [Patterns](https://ai-powered.com/skills/patterns-xiaolai): Patterns is an open-source agent skill for developer tools.
- [Writing skills](https://ai-powered.com/skills/writing-skills-xiaolai): Writing skills is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/gsc-writer
