# Code writer

> Code writer is an open-source agent skill for developer tools. Generates boilerplate code like tests and docstrings from reference files. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/spotify/portal-ai-plugins/tree/main/plugins/shunt/skills/code-writer
- **Repository:** https://github.com/spotify/portal-ai-plugins
- **GitHub stars:** 3,322
- **License:** Apache-2.0
- **Skill name:** code-writer
- **Collection:** https://github.com/spotify/portal-ai-plugins
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill lets Claude Code hand predictable code generation to AiKA, an external generator, instead of writing every line itself. It runs a code-write command from the plugin root with a spec describing what to produce and one or more reference files that show the expected style and structure. The output can be written straight to a target file or printed to stdout for review.

The skill treats each call as independent. To build on earlier output, the generated file is passed as the reference for the next run, which lets a sequence of related files follow the same pattern. The instructions ask the agent to review what comes back and make small manual edits for the parts that need deeper judgment.

Using it requires the Claude Code plugin that contains the skill and access to the code-write command it calls. The skill's own file is a short set of instructions, and the surrounding repository is licensed under Apache-2.0.

## When your agent uses it

> Delegate boilerplate code generation to AiKA. Use for tests, config, docstrings, type stubs, or any generation where >80% is predictable from reference files.

## What it can access

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

- [Instructions only, no scripts](https://github.com/spotify/portal-ai-plugins/tree/HEAD/plugins/shunt/skills/code-writer)
- [License: Apache-2.0](https://github.com/spotify/portal-ai-plugins/tree/HEAD/plugins/shunt/skills/code-writer)

## Features

- **Delegated code generation:** Sends a spec and reference files to AiKA so the bulk of predictable code is produced outside the main agent session.
- **Direct file output:** Writes generated code to a chosen target path, or prints it to stdout when no target is given.
- **Reference-driven patterns:** Uses existing files as templates so new code follows the same structure and conventions.
- **Chained generation:** Feeds each generated file in as the reference for the next call to build related outputs step by step.
- **Review and edit step:** Guides the agent to check the output and correct the small portion that needs careful judgment.

## Good for

- Generate unit tests that follow an existing test file
- Write docstrings for a set of functions in a module
- Create type stubs from a reference implementation
- Produce config files that match an established template

## Install

### Claude Code

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

```sh
/plugin marketplace add spotify/portal-ai-plugins
/plugin install portal@portal
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/spotify/portal-ai-plugins.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/code-writer &&
cp -R "$tmp/plugins/shunt/skills/code-writer" ~/.claude/skills/code-writer &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/spotify/portal-ai-plugins.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/code-writer &&
cp -R "$tmp/plugins/shunt/skills/code-writer" ~/.agents/skills/code-writer &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/spotify/portal-ai-plugins.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/code-writer &&
cp -R "$tmp/plugins/shunt/skills/code-writer" ~/.cursor/skills/code-writer &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/code-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/spotify/portal-ai-plugins.git --path plugins/shunt/skills/code-writer
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/spotify/portal-ai-plugins.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/code-writer &&
cp -R "$tmp/plugins/shunt/skills/code-writer" ~/.copilot/skills/code-writer &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/spotify/portal-ai-plugins.git
```

Then copy `portal-ai-plugins/plugins/shunt/skills/code-writer` into your agent's skills folder as `code-writer`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does the skill trigger?

It is meant for generation tasks such as tests, config, docstrings, type stubs, or any work where most of the output is predictable from reference files.

### What does Code writer need to run?

It calls a code-write command from the plugin root, so the Claude Code plugin must be installed, along with access to AiKA through that command.

### Does Code writer modify files automatically?

It writes to a target file only when a --target path is given; otherwise the output goes to stdout.

### Are the generated results reviewed?

The instructions tell the agent to review the output and make surgical edits for the parts that need more judgment.

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

Copy the skill folder from GitHub to ~/.claude/skills/code-writer to use it in all your projects, or to .claude/skills/code-writer in one project. Or install the portal plugin, which includes it: /plugin marketplace add spotify/portal-ai-plugins, then /plugin install portal@portal.

### Does Code 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 Code writer?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

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

The closest alternatives to Code writer are Skill creator, Skill writer, Skill creator, Skill creator and Principle build the lever.

## Where this comes from

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

## Alternatives

- [Skill creator](https://ai-powered.com/skills/skill-creator-jdforsythe): Skill creator is an open-source agent skill for developer tools.
- [Skill writer](https://ai-powered.com/skills/skill-writer): Skill writer is an open-source agent skill for developer tools.
- [Skill creator](https://ai-powered.com/skills/skill-creator): Skill creator is a free agent skill for ai models and llm tooling.
- [Skill creator](https://ai-powered.com/skills/skill-creator-base44): Skill creator is an open-source agent skill for developer tools.
- [Principle build the lever](https://ai-powered.com/skills/principle-build-the-lever): Principle build the lever is an open-source agent skill for developer tools.
- [Codeact](https://ai-powered.com/skills/codeact): Codeact is an open-source agent skill for developer tools.
- [Skill update](https://ai-powered.com/skills/skill-update): Skill update is an open-source agent skill for developer tools.
- [Writing agents](https://ai-powered.com/skills/writing-agents-xiaolai): Writing agents is an open-source agent skill for developer tools.

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