writing-agents

Define authoring standards for Claude Code agents with structured output schemas.

111|29|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/xiaolai/nlpm-for-claude --skill writing-agents-xiaolai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-agents
Source: https://github.com/xiaolai/nlpm-for-claude/tree/main/skills/nlpm/writing-agents
Command: npx skills add https://github.com/xiaolai/nlpm-for-claude --skill writing-agents-xiaolai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Authoring Claude Code agents can be error-prone without clear triggers, model guidance, and output guarantees. This Skill provides a structured framework to define how agents are invoked, which models they should use, and how results should be formatted, reducing ambiguity and rework.

Core Features & Use Cases

  • Clear trigger patterns and example-driven guidance to ensure consistent agent dispatch.
  • Model selection guidance to balance accuracy and cost for common agent tasks.
  • Structured output templates and safety boundaries to improve reliability and auditability.

Quick Start

Use this Skill to create a standard template for Claude Code agents, then adapt it to specific project needs.

Frequently Asked Questions about writing-agents

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

FAQPage Schema
How do I write Claude Code agents with reliable triggering?

Defining Claude Code agents requires clear trigger patterns and example-driven guidance to ensure reliable agent dispatch, reducing ambiguity and rework. This framework enforces frontmatter conformance and structured output formats for correct invocation.

What is the best way to structure output formats for Claude agents?

The best way to structure Claude agent outputs is using standardized output templates and safety boundaries to improve reliability and auditability. This enforces a consistent output schema, error handling, and well-scoped mission instructions across various workflows.

How do I select the right model for my Claude Code agent tasks?

Model selection for Claude Code agents balances accuracy and cost for common tasks. This framework provides model selection guidance to match the appropriate model with the specific agent workflow, ensuring reliable and consistent outputs.

Can I use this agent authoring framework for reviewing existing workflows?

Yes, you can use this framework to review and evaluate existing Claude Code agents across various workflows. It enforces frontmatter conformance, structured output schemas, error handling, boundaries, and well-scoped mission guidelines for evaluation.

Why does my Claude Code agent fail to trigger consistently?

Inconsistent triggering often results from missing clear trigger patterns or example blocks. This framework solves triggering failures by enforcing frontmatter conformance and clear authoring standards for how agents are invoked, ensuring reliable dispatch.