
Writing agents
How to write Claude Code agents: example blocks, model choice, least-privilege tools.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 155
- Last commit
- today
- License
- ISC
- Listing updated
- today
When your agent uses it
How to write Claude Code agents: example blocks, model choice, least-privilege tools.
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 (12 KB) on GitHub on 17 November 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Install
This skill ships in the nlpm plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add xiaolai/nlpm
/plugin install nlpm@xiaolaiOr copy only this skill to ~/.claude/skills/writing-agents:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/xiaolai/nlpm.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/writing-agents &&
cp -R "$tmp/skills/nlpm/writing-agents" ~/.claude/skills/writing-agents &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/writing-agents inside it instead.
Copy the skill folder to ~/.agents/skills/writing-agents to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/xiaolai/nlpm.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/writing-agents &&
cp -R "$tmp/skills/nlpm/writing-agents" ~/.agents/skills/writing-agents &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/writing-agents inside it instead.
Copy the skill folder to ~/.cursor/skills/writing-agents to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/xiaolai/nlpm.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/writing-agents &&
cp -R "$tmp/skills/nlpm/writing-agents" ~/.cursor/skills/writing-agents &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/writing-agents inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/xiaolai/nlpm.git --path skills/nlpm/writing-agentsOr copy the folder to ~/.gemini/skills/writing-agents yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/writing-agents:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/xiaolai/nlpm.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/writing-agents &&
cp -R "$tmp/skills/nlpm/writing-agents" ~/.copilot/skills/writing-agents &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/writing-agents inside it instead.
Get the folder:
git clone --depth 1 https://github.com/xiaolai/nlpm.gitThen copy nlpm/skills/nlpm/writing-agents into your agent's skills folder as writing-agents. Agents that support SKILL.md read one folder per skill.
Writing agents FAQ
How do I install Writing agents in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/writing-agents to use it in all your projects, or to .claude/skills/writing-agents in one project. Or install the nlpm plugin, which includes it: /plugin marketplace add xiaolai/nlpm, then /plugin install nlpm@xiaolai.
Does Writing agents 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 Writing agents?
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.
More from xiaolai/nlpm

Universal NL conventions: SKILL.md open spec, AGENTS.md, vague quantifiers, naming.
- Open source
- 155 GitHub stars

Antigravity and Gemini CLI artifact schemas: .gemini/ paths, extensions, hooks.
- Open source
- 155 GitHub stars

Claude Code artifact schemas: plugin.json, frontmatter, hooks, settings, tools.
- Open source
- 155 GitHub stars
- AI models and LLM tooling

Codex CLI artifact schemas: config.toml, .codex-plugin, skills, hooks, AGENTS.md.
- Open source
- 155 GitHub stars

Multi-agent workflow patterns: parallel dispatch, pipelines, QC gates, retries.
- Open source
- 155 GitHub stars

NL artifact anti-patterns: vague quantifiers, bare prohibitions, oversized skills.
- Open source
- 155 GitHub stars