agent-spec-authoring

Author and refine agent-spec .spec task contract files.

444|32|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/ZhangHanDong/agent-spec --skill agent-spec-authoring
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-spec-authoring
Source: https://github.com/ZhangHanDong/agent-spec/tree/main/.claude/skills/agent-spec-authoring
Command: npx skills add https://github.com/ZhangHanDong/agent-spec --skill agent-spec-authoring

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you write, edit, and refine agent-spec Task Contracts, ensuring your specifications are clear, precise, and machine-verifiable, leading to more robust AI agent implementations.

Core Features & Use Cases

  • Spec Creation: Scaffold new .spec files with correct structure and sections.
  • Editing & Refinement: Improve intent, constraints, boundaries, and scenarios for clarity and completeness.
  • Scenario Writing: Author BDD-style scenarios with proper test selectors and step tables.
  • Debugging: Identify and fix lint warnings to improve contract quality.
  • Use Case: You need to define a new API endpoint for user registration. Use this Skill to create a comprehensive .spec file that details the intent, technical decisions, boundaries, and acceptance criteria, ensuring the agent implements it correctly.

Quick Start

Use the agent-spec authoring skill to create a new task contract for a user profile update API.

Frequently Asked Questions about agent-spec-authoring

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

FAQPage Schema
How do I write a task contract for an AI agent?

To write an AI agent task contract, you create a `.spec` file with defined intent, technical decisions, constraints, and boundaries to ensure the agent implementation is clear and machine-verifiable.

What is BDD-style scenario writing in agent specifications?

BDD-style scenario writing in agent specifications involves authoring acceptance criteria with explicit test selectors and step tables to verify agent behavior against the task contract.

How do I refine an existing agent-spec file to improve contract quality?

You refine an existing agent-spec file by improving its intent, constraints, boundaries, and scenarios, while fixing lint warnings to enforce hard syntax rules and improve contract quality.

Do I need any specific frameworks to scaffold a .spec file?

No specific frameworks are required to scaffold a `.spec` file. You can author task contracts independently to define API endpoints or user profile updates without external dependencies.

Why does my agent-spec contract fail lint warnings?

Your agent-spec contract fails lint warnings when it violates hard syntax rules or lacks a complete behavior surface checklist, requiring you to fix structure and rewrite parity contract considerations.