writing-agents

Define test-driven agent roles with structured frontmatter and coordination protocols.

2|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/aleksandrov/instructions --skill writing-agents-aleksandrov
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-agents
Source: https://github.com/aleksandrov/instructions/tree/main/.claude/skills/writing-agents
Command: npx skills add https://github.com/aleksandrov/instructions --skill writing-agents-aleksandrov

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing agents are a formalized way to define, test, and coordinate specialized subagents within a project. This skill provides a structured approach to create, validate, and reuse agent definitions that align with project context and workflow.

Core Features & Use Cases

  • Clear persona and scope for each agent
  • Explicit deferral rules and coordination protocols
  • Templates and project-context guidance to accelerate setup

Quick Start

Create a new agent file in .claude/agents named after the task and restart Claude Code to activate.

Frequently Asked Questions about writing-agents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design specialized subagents for autonomous task execution?

To design specialized subagents, you define test-driven agent roles with clear persona, scope, anti-patterns, and coordination protocols. This structured approach ensures reliable autonomous task execution by providing deployment-ready agent templates.

What is the best way to coordinate multiple agents within a software engineering project?

Coordinating multiple agents requires explicit deferral rules and coordination protocols applied across the project context. This formalization provides structured frontmatter and templates to ensure specialized subagents interact and hand off tasks reliably.

How do I set up agent templates using project-context guidance?

You set up agent templates by creating a new agent file in the .claude/agents directory named after the task. Restarting Claude Code activates the agent, applying project-context guidance to accelerate setup and validate structured frontmatter.

Does test-driven development work for defining subagent roles?

Test-driven development works for defining subagent roles by ensuring reliable autonomous task execution through validated personas and scopes. This formalization applies to projects requiring clear anti-patterns, deferral rules, and documented workflows.

Why do I need explicit deferral rules for multi-agent coordination?

Explicit deferral rules are needed for multi-agent coordination to prevent scope overlap and ensure structured handoffs between specialized subagents. Without them, autonomous task execution becomes unreliable due to undefined agent boundaries and workflows.