
Code writer
Generates boilerplate code like tests and docstrings from reference files
Code writer is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 3.3K
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Code writer
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.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (732 bytes) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the portal plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add spotify/portal-ai-plugins
/plugin install portal@portalOr copy only this skill to ~/.claude/skills/code-writer:
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.
Copy the skill folder to ~/.agents/skills/code-writer to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/code-writer to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/spotify/portal-ai-plugins.git --path plugins/shunt/skills/code-writerOr copy the folder to ~/.gemini/skills/code-writer yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/code-writer:
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.
Get the folder:
git clone --depth 1 https://github.com/spotify/portal-ai-plugins.gitThen 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.
What it does
- 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
Code writer 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.
More from spotify/portal-ai-plugins

Offloads reading of large files and multi-file questions to AiKA
- Open source
- 3.3K GitHub stars
- Developer tools

Lets an agent find, inspect and run Spotify Portal actions through the Portal CLI
- Open source
- 3.3K GitHub stars
- Developer tools

Runs a read-only health check on Spotify Portal plugin, CLI and auth setup
- Open source
- 3.3K GitHub stars
- Developer tools

Sends your feedback about the Spotify Portal CLI to the Portal team
- Open source
- 3.3K GitHub stars
- Developer tools

Lets your agent check Fleetshift shift progress, target status and PR state without
- Open source
- 3.3K GitHub stars
- Developer tools

Opens reviewable pull requests for targets finished in a Fleetshift shift run
- Open source
- 3.3K GitHub stars
- Developer tools





